UNPKG

1.64 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.DestinationType = exports.isDestination = exports.isDestinationNameAndJwt = exports.DestinationOrigin = void 0;
4/**
5 * @deprecated Since v1.0.1.
6 *
7 * Represents the origin of a destination in a multi-tenant setup on SAP Business Technology Platform.
8 *
9 * In a multi-tenant application on SAP Business Technology Platform, destinations can be defined both on provider account level ("PaaS tenant") as well as on the level of each subscriber account ("SaaS tenant").
10 */
11var DestinationOrigin;
12(function (DestinationOrigin) {
13 DestinationOrigin["Subscriber"] = "subscriber";
14 DestinationOrigin["Provider"] = "provider";
15})(DestinationOrigin = exports.DestinationOrigin || (exports.DestinationOrigin = {}));
16function isDestinationNameAndJwt(destination) {
17 return destination.destinationName !== undefined;
18}
19exports.isDestinationNameAndJwt = isDestinationNameAndJwt;
20function isDestination(destination) {
21 return destination.url !== undefined;
22}
23exports.isDestination = isDestination;
24/**
25 * The destinations endpoint distinguished between destinations maintained on service level (instance) and account level (subaccount).
26 * This enum is used as a switch in the [[fetchInstanceDestinations]], [[fetchSubaccountDestinations]] and [[destinationServiceCache]]
27 */
28var DestinationType;
29(function (DestinationType) {
30 DestinationType["Instance"] = "instance";
31 DestinationType["Subaccount"] = "subaccount";
32})(DestinationType = exports.DestinationType || (exports.DestinationType = {}));
33//# sourceMappingURL=destination-service-types.js.map
\No newline at end of file