UNPKG

@dodi-smart/nuki-graphql-api

Version:
56 lines 4.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NukiClient = void 0; const NodeHttpRequest_1 = require("./core/NodeHttpRequest"); const AccountService_1 = require("./services/AccountService"); const AccountSubscriptionService_1 = require("./services/AccountSubscriptionService"); const AccountUserService_1 = require("./services/AccountUserService"); const AddressService_1 = require("./services/AddressService"); const AddressReservationService_1 = require("./services/AddressReservationService"); const AddressTokenService_1 = require("./services/AddressTokenService"); const AdvancedApiService_1 = require("./services/AdvancedApiService"); const ApiKeyService_1 = require("./services/ApiKeyService"); const CompanyService_1 = require("./services/CompanyService"); const NotificationService_1 = require("./services/NotificationService"); const OAuth2Service_1 = require("./services/OAuth2Service"); const OpenerService_1 = require("./services/OpenerService"); const ServiceService_1 = require("./services/ServiceService"); const SmartlockService_1 = require("./services/SmartlockService"); const SmartlockAuthService_1 = require("./services/SmartlockAuthService"); const SmartlockLogService_1 = require("./services/SmartlockLogService"); const SubscriptionService_1 = require("./services/SubscriptionService"); class NukiClient { constructor(config, HttpRequest = NodeHttpRequest_1.NodeHttpRequest) { var _a, _b, _c, _d; this.request = new HttpRequest({ BASE: (_a = config === null || config === void 0 ? void 0 : config.BASE) !== null && _a !== void 0 ? _a : 'https://api.nuki.io', VERSION: (_b = config === null || config === void 0 ? void 0 : config.VERSION) !== null && _b !== void 0 ? _b : '2.69.0', WITH_CREDENTIALS: (_c = config === null || config === void 0 ? void 0 : config.WITH_CREDENTIALS) !== null && _c !== void 0 ? _c : false, CREDENTIALS: (_d = config === null || config === void 0 ? void 0 : config.CREDENTIALS) !== null && _d !== void 0 ? _d : 'include', TOKEN: config === null || config === void 0 ? void 0 : config.TOKEN, USERNAME: config === null || config === void 0 ? void 0 : config.USERNAME, PASSWORD: config === null || config === void 0 ? void 0 : config.PASSWORD, HEADERS: config === null || config === void 0 ? void 0 : config.HEADERS, ENCODE_PATH: config === null || config === void 0 ? void 0 : config.ENCODE_PATH, }); this.account = new AccountService_1.AccountService(this.request); this.accountSubscription = new AccountSubscriptionService_1.AccountSubscriptionService(this.request); this.accountUser = new AccountUserService_1.AccountUserService(this.request); this.address = new AddressService_1.AddressService(this.request); this.addressReservation = new AddressReservationService_1.AddressReservationService(this.request); this.addressToken = new AddressTokenService_1.AddressTokenService(this.request); this.advancedApi = new AdvancedApiService_1.AdvancedApiService(this.request); this.apiKey = new ApiKeyService_1.ApiKeyService(this.request); this.company = new CompanyService_1.CompanyService(this.request); this.notification = new NotificationService_1.NotificationService(this.request); this.oAuth2 = new OAuth2Service_1.OAuth2Service(this.request); this.opener = new OpenerService_1.OpenerService(this.request); this.service = new ServiceService_1.ServiceService(this.request); this.smartlock = new SmartlockService_1.SmartlockService(this.request); this.smartlockAuth = new SmartlockAuthService_1.SmartlockAuthService(this.request); this.smartlockLog = new SmartlockLogService_1.SmartlockLogService(this.request); this.subscription = new SubscriptionService_1.SubscriptionService(this.request); } } exports.NukiClient = NukiClient; //# sourceMappingURL=NukiClient.js.map