@studyportals/domain-client 3.6.0-0 → 3.6.0-1
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 +45 -45
- package/index.js +27 -27
- package/package.json +1 -1
- package/src/domain-client.d.ts +14 -14
- package/src/domain-client.js +60 -60
- package/src/exceptions/bad-request-exception.d.ts +2 -2
- package/src/exceptions/bad-request-exception.js +6 -6
- package/src/exceptions/client-exception.d.ts +2 -2
- package/src/exceptions/client-exception.js +6 -6
- package/src/exceptions/internal-server-exception.d.ts +2 -2
- package/src/exceptions/internal-server-exception.js +6 -6
- package/src/exceptions/not-found-exception.d.ts +2 -2
- package/src/exceptions/not-found-exception.js +6 -6
- package/src/exceptions/property-not-available-exception.d.ts +2 -2
- package/src/exceptions/property-not-available-exception.js +6 -6
- package/src/factories/DateFactory.d.ts +5 -5
- package/src/factories/DateFactory.js +9 -9
- package/src/factories/InternalLinkFactory.d.ts +9 -9
- package/src/factories/InternalLinkFactory.js +19 -19
- package/src/i-api-response.d.ts +6 -6
- package/src/i-api-response.js +2 -2
- package/src/i-class-factory.d.ts +4 -4
- package/src/i-class-factory.js +2 -2
- package/src/i-model-description.d.ts +7 -7
- package/src/i-model-description.js +9 -9
- package/src/model-client.d.ts +16 -16
- package/src/model-client.js +45 -45
- package/src/model-factory.d.ts +11 -11
- package/src/model-factory.js +71 -71
- package/src/models/bestfit-programme/bestfit-programme-client.d.ts +7 -7
- package/src/models/bestfit-programme/bestfit-programme-client.js +16 -16
- package/src/models/bestfit-programme/i-best-fit-programme.d.ts +82 -82
- package/src/models/bestfit-programme/i-best-fit-programme.js +2 -2
- package/src/models/bestfit-programme/i-g-p-a-requirement.d.ts +20 -20
- package/src/models/bestfit-programme/i-g-p-a-requirement.js +2 -2
- package/src/models/bestfit-programme/i-living-cost.d.ts +20 -20
- package/src/models/bestfit-programme/i-living-cost.js +2 -2
- package/src/models/common/i-city.d.ts +14 -14
- package/src/models/common/i-city.js +2 -2
- package/src/models/common/i-country.d.ts +14 -14
- package/src/models/common/i-country.js +2 -2
- package/src/models/common/i-english-requirements.d.ts +30 -30
- package/src/models/common/i-english-requirements.js +2 -2
- package/src/models/common/i-internal-link.d.ts +28 -28
- package/src/models/common/i-internal-link.js +2 -2
- package/src/models/common/i-logo.d.ts +14 -14
- package/src/models/common/i-logo.js +2 -2
- package/src/models/common/i-tuition-fee.d.ts +50 -50
- package/src/models/common/i-tuition-fee.js +2 -2
- package/src/models/dotdigital-organisation/dotdigital-organisation-client.d.ts +7 -7
- package/src/models/dotdigital-organisation/dotdigital-organisation-client.js +16 -16
- package/src/models/dotdigital-organisation/i-dot-digital-organisation.d.ts +31 -30
- package/src/models/dotdigital-organisation/i-dot-digital-organisation.js +2 -2
- package/src/models/dotdigital-organisation/i-review.d.ts +7 -7
- package/src/models/dotdigital-organisation/i-review.js +2 -2
- package/src/models/dotdigital-programme/dotdigital-programme-client.d.ts +7 -7
- package/src/models/dotdigital-programme/dotdigital-programme-client.js +16 -16
- package/src/models/dotdigital-programme/i-dot-digital-programme.d.ts +89 -89
- package/src/models/dotdigital-programme/i-dot-digital-programme.js +2 -2
- package/src/models/programme-card/i-click-tracking-data.d.ts +5 -5
- package/src/models/programme-card/i-click-tracking-data.js +2 -2
- package/src/models/programme-card/i-cover.d.ts +14 -14
- package/src/models/programme-card/i-cover.js +2 -2
- package/src/models/programme-card/i-deadline.d.ts +20 -20
- package/src/models/programme-card/i-deadline.js +2 -2
- package/src/models/programme-card/i-duration.d.ts +40 -40
- package/src/models/programme-card/i-duration.js +2 -2
- package/src/models/programme-card/i-link.d.ts +22 -22
- package/src/models/programme-card/i-link.js +2 -2
- package/src/models/programme-card/i-location.d.ts +7 -7
- package/src/models/programme-card/i-location.js +2 -2
- package/src/models/programme-card/i-optional-link.d.ts +23 -23
- package/src/models/programme-card/i-optional-link.js +2 -2
- package/src/models/programme-card/i-programme-card.d.ts +126 -126
- package/src/models/programme-card/i-programme-card.js +2 -2
- package/src/models/programme-card/i-start-date.d.ts +33 -33
- package/src/models/programme-card/i-start-date.js +2 -2
- package/src/models/programme-card/i-timing.d.ts +45 -45
- package/src/models/programme-card/i-timing.js +2 -2
- package/src/models/programme-card/i-tracked-link.d.ts +29 -29
- package/src/models/programme-card/i-tracked-link.js +2 -2
- package/src/models/programme-card/i-tracking.d.ts +46 -46
- package/src/models/programme-card/i-tracking.js +2 -2
- package/src/models/programme-card/programme-card-client.d.ts +7 -7
- package/src/models/programme-card/programme-card-client.js +16 -16
- package/src/models/search-country-faq/i-search-country-faq.d.ts +18 -18
- package/src/models/search-country-faq/i-search-country-faq.js +2 -2
- package/src/models/search-country-faq/public-search-country-faq-client.d.ts +7 -7
- package/src/models/search-country-faq/public-search-country-faq-client.js +16 -16
- package/src/models/search-projection/i-geo-targeting-configuration.d.ts +38 -38
- package/src/models/search-projection/i-geo-targeting-configuration.js +2 -2
- package/src/models/search-projection/i-geo-targeting-values.d.ts +30 -30
- package/src/models/search-projection/i-geo-targeting-values.js +2 -2
- package/src/models/search-projection/i-organisation-values.d.ts +40 -40
- package/src/models/search-projection/i-organisation-values.js +2 -2
- package/src/models/search-projection/i-premium-values.d.ts +35 -35
- package/src/models/search-projection/i-premium-values.js +2 -2
- package/src/models/search-projection/i-search-projection.d.ts +180 -180
- package/src/models/search-projection/i-search-projection.js +2 -2
- package/src/models/search-projection/i-tuition-values.d.ts +50 -50
- package/src/models/search-projection/i-tuition-values.js +2 -2
- package/src/models/search-projection/search-projection-client.d.ts +7 -7
- package/src/models/search-projection/search-projection-client.js +16 -16
- package/src/types/portal-map.d.ts +2 -2
- package/src/types/portal-map.js +2 -2
- package/src/types/portal-type.d.ts +7 -7
- package/src/types/portal-type.js +11 -11
- package/src/types.d.ts +4 -4
- package/src/types.js +2 -2
package/index.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { BadRequestException } from "./src/exceptions/bad-request-exception";
|
|
2
|
-
import { ClientException } from "./src/exceptions/client-exception";
|
|
3
|
-
import { InternalServerException } from "./src/exceptions/internal-server-exception";
|
|
4
|
-
import { NotFoundException } from "./src/exceptions/not-found-exception";
|
|
5
|
-
import { PropertyNotAvailableException } from "./src/exceptions/property-not-available-exception";
|
|
6
|
-
import { ICover } from "./src/models/programme-card/i-cover";
|
|
7
|
-
import { ILink } from "./src/models/programme-card/i-link";
|
|
8
|
-
import { IOptionalLink } from "./src/models/programme-card/i-optional-link";
|
|
9
|
-
import { ILocation } from "./src/models/programme-card/i-location";
|
|
10
|
-
import { IClickTrackingData } from "./src/models/programme-card/i-click-tracking-data";
|
|
11
|
-
import { ITracking } from "./src/models/programme-card/i-tracking";
|
|
12
|
-
import { IDuration } from "./src/models/programme-card/i-duration";
|
|
13
|
-
import { IDeadline } from "./src/models/programme-card/i-deadline";
|
|
14
|
-
import { IStartDate } from "./src/models/programme-card/i-start-date";
|
|
15
|
-
import { ITiming } from "./src/models/programme-card/i-timing";
|
|
16
|
-
import { ITrackedLink } from "./src/models/programme-card/i-tracked-link";
|
|
17
|
-
import { IProgrammeCard } from "./src/models/programme-card/i-programme-card";
|
|
18
|
-
import { ProgrammeCardClient } from "./src/models/programme-card/programme-card-client";
|
|
19
|
-
import { ITuitionValues } from "./src/models/search-projection/i-tuition-values";
|
|
20
|
-
import { IPremiumValues } from "./src/models/search-projection/i-premium-values";
|
|
21
|
-
import { IOrganisationValues } from "./src/models/search-projection/i-organisation-values";
|
|
22
|
-
import { IGeoTargetingConfiguration } from "./src/models/search-projection/i-geo-targeting-configuration";
|
|
23
|
-
import { IGeoTargetingValues } from "./src/models/search-projection/i-geo-targeting-values";
|
|
24
|
-
import { ISearchProjection } from "./src/models/search-projection/i-search-projection";
|
|
25
|
-
import { SearchProjectionClient } from "./src/models/search-projection/search-projection-client";
|
|
26
|
-
import { ILivingCost } from "./src/models/bestfit-programme/i-living-cost";
|
|
27
|
-
import { IGPARequirement } from "./src/models/bestfit-programme/i-g-p-a-requirement";
|
|
28
|
-
import { IBestFitProgramme } from "./src/models/bestfit-programme/i-best-fit-programme";
|
|
29
|
-
import { BestfitProgrammeClient } from "./src/models/bestfit-programme/bestfit-programme-client";
|
|
30
|
-
import { IDotDigitalProgramme } from "./src/models/dotdigital-programme/i-dot-digital-programme";
|
|
31
|
-
import { DotdigitalProgrammeClient } from "./src/models/dotdigital-programme/dotdigital-programme-client";
|
|
32
|
-
import { ISearchCountryFaq } from "./src/models/search-country-faq/i-search-country-faq";
|
|
33
|
-
import { PublicSearchCountryFaqClient } from "./src/models/search-country-faq/public-search-country-faq-client";
|
|
34
|
-
import { IReview } from "./src/models/dotdigital-organisation/i-review";
|
|
35
|
-
import { IDotDigitalOrganisation } from "./src/models/dotdigital-organisation/i-dot-digital-organisation";
|
|
36
|
-
import { DotdigitalOrganisationClient } from "./src/models/dotdigital-organisation/dotdigital-organisation-client";
|
|
37
|
-
import { IInternalLink } from "./src/models/common/i-internal-link";
|
|
38
|
-
import { ILogo } from "./src/models/common/i-logo";
|
|
39
|
-
import { ITuitionFee } from "./src/models/common/i-tuition-fee";
|
|
40
|
-
import { IEnglishRequirements } from "./src/models/common/i-english-requirements";
|
|
41
|
-
import { ICity } from "./src/models/common/i-city";
|
|
42
|
-
import { ICountry } from "./src/models/common/i-country";
|
|
43
|
-
import { PortalType } from "./src/types/portal-type";
|
|
44
|
-
import { PortalMap } from "./src/types/portal-map";
|
|
45
|
-
export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, IInternalLink, ILogo, ITuitionFee, IEnglishRequirements, ICity, ICountry, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, PortalMap, PortalType };
|
|
1
|
+
import { BadRequestException } from "./src/exceptions/bad-request-exception";
|
|
2
|
+
import { ClientException } from "./src/exceptions/client-exception";
|
|
3
|
+
import { InternalServerException } from "./src/exceptions/internal-server-exception";
|
|
4
|
+
import { NotFoundException } from "./src/exceptions/not-found-exception";
|
|
5
|
+
import { PropertyNotAvailableException } from "./src/exceptions/property-not-available-exception";
|
|
6
|
+
import { ICover } from "./src/models/programme-card/i-cover";
|
|
7
|
+
import { ILink } from "./src/models/programme-card/i-link";
|
|
8
|
+
import { IOptionalLink } from "./src/models/programme-card/i-optional-link";
|
|
9
|
+
import { ILocation } from "./src/models/programme-card/i-location";
|
|
10
|
+
import { IClickTrackingData } from "./src/models/programme-card/i-click-tracking-data";
|
|
11
|
+
import { ITracking } from "./src/models/programme-card/i-tracking";
|
|
12
|
+
import { IDuration } from "./src/models/programme-card/i-duration";
|
|
13
|
+
import { IDeadline } from "./src/models/programme-card/i-deadline";
|
|
14
|
+
import { IStartDate } from "./src/models/programme-card/i-start-date";
|
|
15
|
+
import { ITiming } from "./src/models/programme-card/i-timing";
|
|
16
|
+
import { ITrackedLink } from "./src/models/programme-card/i-tracked-link";
|
|
17
|
+
import { IProgrammeCard } from "./src/models/programme-card/i-programme-card";
|
|
18
|
+
import { ProgrammeCardClient } from "./src/models/programme-card/programme-card-client";
|
|
19
|
+
import { ITuitionValues } from "./src/models/search-projection/i-tuition-values";
|
|
20
|
+
import { IPremiumValues } from "./src/models/search-projection/i-premium-values";
|
|
21
|
+
import { IOrganisationValues } from "./src/models/search-projection/i-organisation-values";
|
|
22
|
+
import { IGeoTargetingConfiguration } from "./src/models/search-projection/i-geo-targeting-configuration";
|
|
23
|
+
import { IGeoTargetingValues } from "./src/models/search-projection/i-geo-targeting-values";
|
|
24
|
+
import { ISearchProjection } from "./src/models/search-projection/i-search-projection";
|
|
25
|
+
import { SearchProjectionClient } from "./src/models/search-projection/search-projection-client";
|
|
26
|
+
import { ILivingCost } from "./src/models/bestfit-programme/i-living-cost";
|
|
27
|
+
import { IGPARequirement } from "./src/models/bestfit-programme/i-g-p-a-requirement";
|
|
28
|
+
import { IBestFitProgramme } from "./src/models/bestfit-programme/i-best-fit-programme";
|
|
29
|
+
import { BestfitProgrammeClient } from "./src/models/bestfit-programme/bestfit-programme-client";
|
|
30
|
+
import { IDotDigitalProgramme } from "./src/models/dotdigital-programme/i-dot-digital-programme";
|
|
31
|
+
import { DotdigitalProgrammeClient } from "./src/models/dotdigital-programme/dotdigital-programme-client";
|
|
32
|
+
import { ISearchCountryFaq } from "./src/models/search-country-faq/i-search-country-faq";
|
|
33
|
+
import { PublicSearchCountryFaqClient } from "./src/models/search-country-faq/public-search-country-faq-client";
|
|
34
|
+
import { IReview } from "./src/models/dotdigital-organisation/i-review";
|
|
35
|
+
import { IDotDigitalOrganisation } from "./src/models/dotdigital-organisation/i-dot-digital-organisation";
|
|
36
|
+
import { DotdigitalOrganisationClient } from "./src/models/dotdigital-organisation/dotdigital-organisation-client";
|
|
37
|
+
import { IInternalLink } from "./src/models/common/i-internal-link";
|
|
38
|
+
import { ILogo } from "./src/models/common/i-logo";
|
|
39
|
+
import { ITuitionFee } from "./src/models/common/i-tuition-fee";
|
|
40
|
+
import { IEnglishRequirements } from "./src/models/common/i-english-requirements";
|
|
41
|
+
import { ICity } from "./src/models/common/i-city";
|
|
42
|
+
import { ICountry } from "./src/models/common/i-country";
|
|
43
|
+
import { PortalType } from "./src/types/portal-type";
|
|
44
|
+
import { PortalMap } from "./src/types/portal-map";
|
|
45
|
+
export { BadRequestException, ClientException, InternalServerException, NotFoundException, PropertyNotAvailableException, IInternalLink, ILogo, ITuitionFee, IEnglishRequirements, ICity, ICountry, ICover, ILink, IOptionalLink, ILocation, IClickTrackingData, ITracking, IDuration, IDeadline, IStartDate, ITiming, ITrackedLink, IProgrammeCard, ProgrammeCardClient, ITuitionValues, IPremiumValues, IOrganisationValues, IGeoTargetingConfiguration, IGeoTargetingValues, ISearchProjection, SearchProjectionClient, ILivingCost, IGPARequirement, IBestFitProgramme, BestfitProgrammeClient, IDotDigitalProgramme, DotdigitalProgrammeClient, ISearchCountryFaq, PublicSearchCountryFaqClient, IReview, IDotDigitalOrganisation, DotdigitalOrganisationClient, PortalMap, PortalType };
|
package/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PortalType = exports.DotdigitalOrganisationClient = exports.PublicSearchCountryFaqClient = exports.DotdigitalProgrammeClient = exports.BestfitProgrammeClient = exports.SearchProjectionClient = exports.ProgrammeCardClient = exports.PropertyNotAvailableException = exports.NotFoundException = exports.InternalServerException = exports.ClientException = exports.BadRequestException = void 0;
|
|
4
|
-
const bad_request_exception_1 = require("./src/exceptions/bad-request-exception");
|
|
5
|
-
Object.defineProperty(exports, "BadRequestException", { enumerable: true, get: function () { return bad_request_exception_1.BadRequestException; } });
|
|
6
|
-
const client_exception_1 = require("./src/exceptions/client-exception");
|
|
7
|
-
Object.defineProperty(exports, "ClientException", { enumerable: true, get: function () { return client_exception_1.ClientException; } });
|
|
8
|
-
const internal_server_exception_1 = require("./src/exceptions/internal-server-exception");
|
|
9
|
-
Object.defineProperty(exports, "InternalServerException", { enumerable: true, get: function () { return internal_server_exception_1.InternalServerException; } });
|
|
10
|
-
const not_found_exception_1 = require("./src/exceptions/not-found-exception");
|
|
11
|
-
Object.defineProperty(exports, "NotFoundException", { enumerable: true, get: function () { return not_found_exception_1.NotFoundException; } });
|
|
12
|
-
const property_not_available_exception_1 = require("./src/exceptions/property-not-available-exception");
|
|
13
|
-
Object.defineProperty(exports, "PropertyNotAvailableException", { enumerable: true, get: function () { return property_not_available_exception_1.PropertyNotAvailableException; } });
|
|
14
|
-
const programme_card_client_1 = require("./src/models/programme-card/programme-card-client");
|
|
15
|
-
Object.defineProperty(exports, "ProgrammeCardClient", { enumerable: true, get: function () { return programme_card_client_1.ProgrammeCardClient; } });
|
|
16
|
-
const search_projection_client_1 = require("./src/models/search-projection/search-projection-client");
|
|
17
|
-
Object.defineProperty(exports, "SearchProjectionClient", { enumerable: true, get: function () { return search_projection_client_1.SearchProjectionClient; } });
|
|
18
|
-
const bestfit_programme_client_1 = require("./src/models/bestfit-programme/bestfit-programme-client");
|
|
19
|
-
Object.defineProperty(exports, "BestfitProgrammeClient", { enumerable: true, get: function () { return bestfit_programme_client_1.BestfitProgrammeClient; } });
|
|
20
|
-
const dotdigital_programme_client_1 = require("./src/models/dotdigital-programme/dotdigital-programme-client");
|
|
21
|
-
Object.defineProperty(exports, "DotdigitalProgrammeClient", { enumerable: true, get: function () { return dotdigital_programme_client_1.DotdigitalProgrammeClient; } });
|
|
22
|
-
const public_search_country_faq_client_1 = require("./src/models/search-country-faq/public-search-country-faq-client");
|
|
23
|
-
Object.defineProperty(exports, "PublicSearchCountryFaqClient", { enumerable: true, get: function () { return public_search_country_faq_client_1.PublicSearchCountryFaqClient; } });
|
|
24
|
-
const dotdigital_organisation_client_1 = require("./src/models/dotdigital-organisation/dotdigital-organisation-client");
|
|
25
|
-
Object.defineProperty(exports, "DotdigitalOrganisationClient", { enumerable: true, get: function () { return dotdigital_organisation_client_1.DotdigitalOrganisationClient; } });
|
|
26
|
-
const portal_type_1 = require("./src/types/portal-type");
|
|
27
|
-
Object.defineProperty(exports, "PortalType", { enumerable: true, get: function () { return portal_type_1.PortalType; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PortalType = exports.DotdigitalOrganisationClient = exports.PublicSearchCountryFaqClient = exports.DotdigitalProgrammeClient = exports.BestfitProgrammeClient = exports.SearchProjectionClient = exports.ProgrammeCardClient = exports.PropertyNotAvailableException = exports.NotFoundException = exports.InternalServerException = exports.ClientException = exports.BadRequestException = void 0;
|
|
4
|
+
const bad_request_exception_1 = require("./src/exceptions/bad-request-exception");
|
|
5
|
+
Object.defineProperty(exports, "BadRequestException", { enumerable: true, get: function () { return bad_request_exception_1.BadRequestException; } });
|
|
6
|
+
const client_exception_1 = require("./src/exceptions/client-exception");
|
|
7
|
+
Object.defineProperty(exports, "ClientException", { enumerable: true, get: function () { return client_exception_1.ClientException; } });
|
|
8
|
+
const internal_server_exception_1 = require("./src/exceptions/internal-server-exception");
|
|
9
|
+
Object.defineProperty(exports, "InternalServerException", { enumerable: true, get: function () { return internal_server_exception_1.InternalServerException; } });
|
|
10
|
+
const not_found_exception_1 = require("./src/exceptions/not-found-exception");
|
|
11
|
+
Object.defineProperty(exports, "NotFoundException", { enumerable: true, get: function () { return not_found_exception_1.NotFoundException; } });
|
|
12
|
+
const property_not_available_exception_1 = require("./src/exceptions/property-not-available-exception");
|
|
13
|
+
Object.defineProperty(exports, "PropertyNotAvailableException", { enumerable: true, get: function () { return property_not_available_exception_1.PropertyNotAvailableException; } });
|
|
14
|
+
const programme_card_client_1 = require("./src/models/programme-card/programme-card-client");
|
|
15
|
+
Object.defineProperty(exports, "ProgrammeCardClient", { enumerable: true, get: function () { return programme_card_client_1.ProgrammeCardClient; } });
|
|
16
|
+
const search_projection_client_1 = require("./src/models/search-projection/search-projection-client");
|
|
17
|
+
Object.defineProperty(exports, "SearchProjectionClient", { enumerable: true, get: function () { return search_projection_client_1.SearchProjectionClient; } });
|
|
18
|
+
const bestfit_programme_client_1 = require("./src/models/bestfit-programme/bestfit-programme-client");
|
|
19
|
+
Object.defineProperty(exports, "BestfitProgrammeClient", { enumerable: true, get: function () { return bestfit_programme_client_1.BestfitProgrammeClient; } });
|
|
20
|
+
const dotdigital_programme_client_1 = require("./src/models/dotdigital-programme/dotdigital-programme-client");
|
|
21
|
+
Object.defineProperty(exports, "DotdigitalProgrammeClient", { enumerable: true, get: function () { return dotdigital_programme_client_1.DotdigitalProgrammeClient; } });
|
|
22
|
+
const public_search_country_faq_client_1 = require("./src/models/search-country-faq/public-search-country-faq-client");
|
|
23
|
+
Object.defineProperty(exports, "PublicSearchCountryFaqClient", { enumerable: true, get: function () { return public_search_country_faq_client_1.PublicSearchCountryFaqClient; } });
|
|
24
|
+
const dotdigital_organisation_client_1 = require("./src/models/dotdigital-organisation/dotdigital-organisation-client");
|
|
25
|
+
Object.defineProperty(exports, "DotdigitalOrganisationClient", { enumerable: true, get: function () { return dotdigital_organisation_client_1.DotdigitalOrganisationClient; } });
|
|
26
|
+
const portal_type_1 = require("./src/types/portal-type");
|
|
27
|
+
Object.defineProperty(exports, "PortalType", { enumerable: true, get: function () { return portal_type_1.PortalType; } });
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/src/domain-client.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IModelDescription } from "./i-model-description";
|
|
2
|
-
export declare class DomainClient {
|
|
3
|
-
readonly baseUrl: string;
|
|
4
|
-
readonly apiKey: string | undefined;
|
|
5
|
-
readonly model: string;
|
|
6
|
-
readonly version: string;
|
|
7
|
-
readonly isPublic: boolean;
|
|
8
|
-
readonly seed: number;
|
|
9
|
-
constructor(baseUrl: string, apiKey: string | undefined, model: string, version: string, isPublic: boolean, seed: number);
|
|
10
|
-
doRequest(ids: number[]): Promise<IModelDescription[]>;
|
|
11
|
-
private handleErrors;
|
|
12
|
-
private buildUrl;
|
|
13
|
-
private shouldAddPublicPrefix;
|
|
14
|
-
}
|
|
1
|
+
import { IModelDescription } from "./i-model-description";
|
|
2
|
+
export declare class DomainClient {
|
|
3
|
+
readonly baseUrl: string;
|
|
4
|
+
readonly apiKey: string | undefined;
|
|
5
|
+
readonly model: string;
|
|
6
|
+
readonly version: string;
|
|
7
|
+
readonly isPublic: boolean;
|
|
8
|
+
readonly seed: number;
|
|
9
|
+
constructor(baseUrl: string, apiKey: string | undefined, model: string, version: string, isPublic: boolean, seed: number);
|
|
10
|
+
doRequest(ids: number[]): Promise<IModelDescription[]>;
|
|
11
|
+
private handleErrors;
|
|
12
|
+
private buildUrl;
|
|
13
|
+
private shouldAddPublicPrefix;
|
|
14
|
+
}
|
package/src/domain-client.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DomainClient = void 0;
|
|
4
|
-
const axios_1 = require("axios");
|
|
5
|
-
const bad_request_exception_1 = require("./exceptions/bad-request-exception");
|
|
6
|
-
const internal_server_exception_1 = require("./exceptions/internal-server-exception");
|
|
7
|
-
const not_found_exception_1 = require("./exceptions/not-found-exception");
|
|
8
|
-
class DomainClient {
|
|
9
|
-
constructor(baseUrl, apiKey, model, version, isPublic, seed) {
|
|
10
|
-
this.baseUrl = baseUrl;
|
|
11
|
-
this.apiKey = apiKey;
|
|
12
|
-
this.model = model;
|
|
13
|
-
this.version = version;
|
|
14
|
-
this.isPublic = isPublic;
|
|
15
|
-
this.seed = seed;
|
|
16
|
-
}
|
|
17
|
-
async doRequest(ids) {
|
|
18
|
-
const url = this.buildUrl(ids);
|
|
19
|
-
const config = { baseURL: this.baseUrl };
|
|
20
|
-
if (this.apiKey !== undefined) {
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
22
|
-
config["headers"] = { 'x-api-key': this.apiKey };
|
|
23
|
-
}
|
|
24
|
-
const axiosResponse = await axios_1.default.get(url, config);
|
|
25
|
-
const response = axiosResponse.data;
|
|
26
|
-
this.handleErrors(response);
|
|
27
|
-
const models = [];
|
|
28
|
-
for (const id of ids) {
|
|
29
|
-
const modelData = response.data[id];
|
|
30
|
-
if (!modelData) {
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
models.push(modelData);
|
|
34
|
-
}
|
|
35
|
-
return models;
|
|
36
|
-
}
|
|
37
|
-
handleErrors(response) {
|
|
38
|
-
if (!response.status) {
|
|
39
|
-
throw new internal_server_exception_1.InternalServerException(response.message);
|
|
40
|
-
}
|
|
41
|
-
if (response.status === 400) {
|
|
42
|
-
throw new bad_request_exception_1.BadRequestException(response.message);
|
|
43
|
-
}
|
|
44
|
-
if (response.status === 404) {
|
|
45
|
-
throw new not_found_exception_1.NotFoundException(response.message);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
buildUrl(ids) {
|
|
49
|
-
const publicPrefix = this.shouldAddPublicPrefix() ? 'public/' : '';
|
|
50
|
-
let query = `${publicPrefix}${this.model}/${this.version}/?seed=${this.seed}`;
|
|
51
|
-
for (const id of ids) {
|
|
52
|
-
query += `&id=${id}`;
|
|
53
|
-
}
|
|
54
|
-
return query;
|
|
55
|
-
}
|
|
56
|
-
shouldAddPublicPrefix() {
|
|
57
|
-
return this.isPublic && this.apiKey === undefined;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.DomainClient = DomainClient;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DomainClient = void 0;
|
|
4
|
+
const axios_1 = require("axios");
|
|
5
|
+
const bad_request_exception_1 = require("./exceptions/bad-request-exception");
|
|
6
|
+
const internal_server_exception_1 = require("./exceptions/internal-server-exception");
|
|
7
|
+
const not_found_exception_1 = require("./exceptions/not-found-exception");
|
|
8
|
+
class DomainClient {
|
|
9
|
+
constructor(baseUrl, apiKey, model, version, isPublic, seed) {
|
|
10
|
+
this.baseUrl = baseUrl;
|
|
11
|
+
this.apiKey = apiKey;
|
|
12
|
+
this.model = model;
|
|
13
|
+
this.version = version;
|
|
14
|
+
this.isPublic = isPublic;
|
|
15
|
+
this.seed = seed;
|
|
16
|
+
}
|
|
17
|
+
async doRequest(ids) {
|
|
18
|
+
const url = this.buildUrl(ids);
|
|
19
|
+
const config = { baseURL: this.baseUrl };
|
|
20
|
+
if (this.apiKey !== undefined) {
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
22
|
+
config["headers"] = { 'x-api-key': this.apiKey };
|
|
23
|
+
}
|
|
24
|
+
const axiosResponse = await axios_1.default.get(url, config);
|
|
25
|
+
const response = axiosResponse.data;
|
|
26
|
+
this.handleErrors(response);
|
|
27
|
+
const models = [];
|
|
28
|
+
for (const id of ids) {
|
|
29
|
+
const modelData = response.data[id];
|
|
30
|
+
if (!modelData) {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
models.push(modelData);
|
|
34
|
+
}
|
|
35
|
+
return models;
|
|
36
|
+
}
|
|
37
|
+
handleErrors(response) {
|
|
38
|
+
if (!response.status) {
|
|
39
|
+
throw new internal_server_exception_1.InternalServerException(response.message);
|
|
40
|
+
}
|
|
41
|
+
if (response.status === 400) {
|
|
42
|
+
throw new bad_request_exception_1.BadRequestException(response.message);
|
|
43
|
+
}
|
|
44
|
+
if (response.status === 404) {
|
|
45
|
+
throw new not_found_exception_1.NotFoundException(response.message);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
buildUrl(ids) {
|
|
49
|
+
const publicPrefix = this.shouldAddPublicPrefix() ? 'public/' : '';
|
|
50
|
+
let query = `${publicPrefix}${this.model}/${this.version}/?seed=${this.seed}`;
|
|
51
|
+
for (const id of ids) {
|
|
52
|
+
query += `&id=${id}`;
|
|
53
|
+
}
|
|
54
|
+
return query;
|
|
55
|
+
}
|
|
56
|
+
shouldAddPublicPrefix() {
|
|
57
|
+
return this.isPublic && this.apiKey === undefined;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.DomainClient = DomainClient;
|
|
61
61
|
//# sourceMappingURL=domain-client.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class BadRequestException extends Error {
|
|
2
|
-
}
|
|
1
|
+
export declare class BadRequestException extends Error {
|
|
2
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BadRequestException = void 0;
|
|
4
|
-
class BadRequestException extends Error {
|
|
5
|
-
}
|
|
6
|
-
exports.BadRequestException = BadRequestException;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BadRequestException = void 0;
|
|
4
|
+
class BadRequestException extends Error {
|
|
5
|
+
}
|
|
6
|
+
exports.BadRequestException = BadRequestException;
|
|
7
7
|
//# sourceMappingURL=bad-request-exception.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class ClientException extends Error {
|
|
2
|
-
}
|
|
1
|
+
export declare class ClientException extends Error {
|
|
2
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClientException = void 0;
|
|
4
|
-
class ClientException extends Error {
|
|
5
|
-
}
|
|
6
|
-
exports.ClientException = ClientException;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientException = void 0;
|
|
4
|
+
class ClientException extends Error {
|
|
5
|
+
}
|
|
6
|
+
exports.ClientException = ClientException;
|
|
7
7
|
//# sourceMappingURL=client-exception.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class InternalServerException extends Error {
|
|
2
|
-
}
|
|
1
|
+
export declare class InternalServerException extends Error {
|
|
2
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InternalServerException = void 0;
|
|
4
|
-
class InternalServerException extends Error {
|
|
5
|
-
}
|
|
6
|
-
exports.InternalServerException = InternalServerException;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalServerException = void 0;
|
|
4
|
+
class InternalServerException extends Error {
|
|
5
|
+
}
|
|
6
|
+
exports.InternalServerException = InternalServerException;
|
|
7
7
|
//# sourceMappingURL=internal-server-exception.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class NotFoundException extends Error {
|
|
2
|
-
}
|
|
1
|
+
export declare class NotFoundException extends Error {
|
|
2
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotFoundException = void 0;
|
|
4
|
-
class NotFoundException extends Error {
|
|
5
|
-
}
|
|
6
|
-
exports.NotFoundException = NotFoundException;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotFoundException = void 0;
|
|
4
|
+
class NotFoundException extends Error {
|
|
5
|
+
}
|
|
6
|
+
exports.NotFoundException = NotFoundException;
|
|
7
7
|
//# sourceMappingURL=not-found-exception.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class PropertyNotAvailableException extends Error {
|
|
2
|
-
}
|
|
1
|
+
export declare class PropertyNotAvailableException extends Error {
|
|
2
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PropertyNotAvailableException = void 0;
|
|
4
|
-
class PropertyNotAvailableException extends Error {
|
|
5
|
-
}
|
|
6
|
-
exports.PropertyNotAvailableException = PropertyNotAvailableException;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyNotAvailableException = void 0;
|
|
4
|
+
class PropertyNotAvailableException extends Error {
|
|
5
|
+
}
|
|
6
|
+
exports.PropertyNotAvailableException = PropertyNotAvailableException;
|
|
7
7
|
//# sourceMappingURL=property-not-available-exception.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IClassFactory } from "../i-class-factory";
|
|
2
|
-
import { CallableReturnType, Model } from "../types";
|
|
3
|
-
export declare class DateFactory implements IClassFactory {
|
|
4
|
-
create(data: Model, parameters: string[]): CallableReturnType;
|
|
5
|
-
}
|
|
1
|
+
import { IClassFactory } from "../i-class-factory";
|
|
2
|
+
import { CallableReturnType, Model } from "../types";
|
|
3
|
+
export declare class DateFactory implements IClassFactory {
|
|
4
|
+
create(data: Model, parameters: string[]): CallableReturnType;
|
|
5
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DateFactory = void 0;
|
|
4
|
-
class DateFactory {
|
|
5
|
-
create(data, parameters) {
|
|
6
|
-
return new Date(parameters[0]);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
exports.DateFactory = DateFactory;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateFactory = void 0;
|
|
4
|
+
class DateFactory {
|
|
5
|
+
create(data, parameters) {
|
|
6
|
+
return new Date(parameters[0]);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.DateFactory = DateFactory;
|
|
10
10
|
//# sourceMappingURL=DateFactory.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IClassFactory } from "../i-class-factory";
|
|
2
|
-
import { CallableReturnType, Model } from "../types";
|
|
3
|
-
import { PortalMap } from "../types/portal-map";
|
|
4
|
-
export declare class InternalLinkFactory implements IClassFactory {
|
|
5
|
-
private portalMap;
|
|
6
|
-
constructor(portalMap: PortalMap);
|
|
7
|
-
create(link: Model): CallableReturnType;
|
|
8
|
-
private getPortalBaseUrl;
|
|
9
|
-
}
|
|
1
|
+
import { IClassFactory } from "../i-class-factory";
|
|
2
|
+
import { CallableReturnType, Model } from "../types";
|
|
3
|
+
import { PortalMap } from "../types/portal-map";
|
|
4
|
+
export declare class InternalLinkFactory implements IClassFactory {
|
|
5
|
+
private portalMap;
|
|
6
|
+
constructor(portalMap: PortalMap);
|
|
7
|
+
create(link: Model): CallableReturnType;
|
|
8
|
+
private getPortalBaseUrl;
|
|
9
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InternalLinkFactory = void 0;
|
|
4
|
-
class InternalLinkFactory {
|
|
5
|
-
constructor(portalMap) {
|
|
6
|
-
this.portalMap = portalMap;
|
|
7
|
-
}
|
|
8
|
-
create(link) {
|
|
9
|
-
const portalBaseUrl = this.getPortalBaseUrl(link.getPortalType());
|
|
10
|
-
const path = link['getUrl']();
|
|
11
|
-
link['getUrl'] = () => portalBaseUrl + path;
|
|
12
|
-
return link;
|
|
13
|
-
}
|
|
14
|
-
getPortalBaseUrl(portalType) {
|
|
15
|
-
const url = this.portalMap.get(portalType);
|
|
16
|
-
return url || '';
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.InternalLinkFactory = InternalLinkFactory;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalLinkFactory = void 0;
|
|
4
|
+
class InternalLinkFactory {
|
|
5
|
+
constructor(portalMap) {
|
|
6
|
+
this.portalMap = portalMap;
|
|
7
|
+
}
|
|
8
|
+
create(link) {
|
|
9
|
+
const portalBaseUrl = this.getPortalBaseUrl(link.getPortalType());
|
|
10
|
+
const path = link['getUrl']();
|
|
11
|
+
link['getUrl'] = () => portalBaseUrl + path;
|
|
12
|
+
return link;
|
|
13
|
+
}
|
|
14
|
+
getPortalBaseUrl(portalType) {
|
|
15
|
+
const url = this.portalMap.get(portalType);
|
|
16
|
+
return url || '';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.InternalLinkFactory = InternalLinkFactory;
|
|
20
20
|
//# sourceMappingURL=InternalLinkFactory.js.map
|
package/src/i-api-response.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IModelDescription } from "./i-model-description";
|
|
2
|
-
export interface IApiResponse {
|
|
3
|
-
status: number;
|
|
4
|
-
data: Record<number, IModelDescription>;
|
|
5
|
-
message: string;
|
|
6
|
-
}
|
|
1
|
+
import { IModelDescription } from "./i-model-description";
|
|
2
|
+
export interface IApiResponse {
|
|
3
|
+
status: number;
|
|
4
|
+
data: Record<number, IModelDescription>;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
package/src/i-api-response.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=i-api-response.js.map
|
package/src/i-class-factory.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallableReturnType, Model } from "./types";
|
|
2
|
-
export interface IClassFactory {
|
|
3
|
-
create(data: Model, parameters?: any[]): CallableReturnType;
|
|
4
|
-
}
|
|
1
|
+
import { CallableReturnType, Model } from "./types";
|
|
2
|
+
export interface IClassFactory {
|
|
3
|
+
create(data: Model, parameters?: any[]): CallableReturnType;
|
|
4
|
+
}
|
package/src/i-class-factory.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=i-class-factory.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AcceptedType } from "./types";
|
|
2
|
-
export interface IModelDescription {
|
|
3
|
-
class: string;
|
|
4
|
-
func: Record<string, AcceptedType | IModelDescription>;
|
|
5
|
-
parameters?: any[];
|
|
6
|
-
}
|
|
7
|
-
export declare function isModelDescription(arg: any): arg is IModelDescription;
|
|
1
|
+
import { AcceptedType } from "./types";
|
|
2
|
+
export interface IModelDescription {
|
|
3
|
+
class: string;
|
|
4
|
+
func: Record<string, AcceptedType | IModelDescription>;
|
|
5
|
+
parameters?: any[];
|
|
6
|
+
}
|
|
7
|
+
export declare function isModelDescription(arg: any): arg is IModelDescription;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isModelDescription = void 0;
|
|
4
|
-
// eslint-disable-next-line
|
|
5
|
-
function isModelDescription(arg) {
|
|
6
|
-
// eslint-disable-next-line
|
|
7
|
-
return arg && arg.class && (arg.func || arg.parameters);
|
|
8
|
-
}
|
|
9
|
-
exports.isModelDescription = isModelDescription;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isModelDescription = void 0;
|
|
4
|
+
// eslint-disable-next-line
|
|
5
|
+
function isModelDescription(arg) {
|
|
6
|
+
// eslint-disable-next-line
|
|
7
|
+
return arg && arg.class && (arg.func || arg.parameters);
|
|
8
|
+
}
|
|
9
|
+
exports.isModelDescription = isModelDescription;
|
|
10
10
|
//# sourceMappingURL=i-model-description.js.map
|