@kohost/api-client 1.0.0-beta.5 → 3.0.0-beta.4

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.
@@ -231,44 +231,6 @@ var require_LoginUser = __commonJS({
231
231
  }
232
232
  });
233
233
 
234
- // dist/useCases/LoginGateway.js
235
- var require_LoginGateway = __commonJS({
236
- "dist/useCases/LoginGateway.js"(exports2, module2) {
237
- module2.exports = function LoginGateway2(requestData, options = {}) {
238
- if (!requestData)
239
- requestData = {};
240
- const pathParams = null;
241
- const { data, query, headers } = requestData;
242
- let url = "/auth/gateway";
243
- if (pathParams && data) {
244
- for (const param of pathParams) {
245
- const paramName = param.replace(":", "");
246
- url = url.replace(param, data[paramName]);
247
- }
248
- }
249
- if (url.match(/:[a-zA-Z0-9]+/g)) {
250
- const missingParams = url.match(/:[a-zA-Z0-9]+/g);
251
- const missing = missingParams.map((param) => param.replace(":", ""));
252
- return Promise.reject(
253
- new Error("Missing parameters: " + missing.join(", "))
254
- );
255
- }
256
- const config = {
257
- method: "post",
258
- url,
259
- ...options
260
- };
261
- if (data)
262
- config.data = data;
263
- if (query)
264
- config.params = query;
265
- if (headers)
266
- config.headers = headers;
267
- return this._http.request(config);
268
- };
269
- }
270
- });
271
-
272
234
  // dist/useCases/RefreshToken.js
273
235
  var require_RefreshToken = __commonJS({
274
236
  "dist/useCases/RefreshToken.js"(exports2, module2) {
@@ -4722,7 +4684,6 @@ var AdminUpdateProperty = require_AdminUpdateProperty();
4722
4684
  var AdminDescribeProperty = require_AdminDescribeProperty();
4723
4685
  var AdminCreateProperty = require_AdminCreateProperty();
4724
4686
  var LoginUser = require_LoginUser();
4725
- var LoginGateway = require_LoginGateway();
4726
4687
  var RefreshToken = require_RefreshToken();
4727
4688
  var RequestLoginLink = require_RequestLoginLink();
4728
4689
  var DescribeSelf = require_DescribeSelf();
@@ -4968,7 +4929,6 @@ KohostApiClient.prototype.AdminUpdateProperty = AdminUpdateProperty;
4968
4929
  KohostApiClient.prototype.AdminDescribeProperty = AdminDescribeProperty;
4969
4930
  KohostApiClient.prototype.AdminCreateProperty = AdminCreateProperty;
4970
4931
  KohostApiClient.prototype.LoginUser = LoginUser;
4971
- KohostApiClient.prototype.LoginGateway = LoginGateway;
4972
4932
  KohostApiClient.prototype.RefreshToken = RefreshToken;
4973
4933
  KohostApiClient.prototype.RequestLoginLink = RequestLoginLink;
4974
4934
  KohostApiClient.prototype.DescribeSelf = DescribeSelf;
@@ -231,44 +231,6 @@ var require_LoginUser = __commonJS({
231
231
  }
232
232
  });
233
233
 
234
- // dist/useCases/LoginGateway.js
235
- var require_LoginGateway = __commonJS({
236
- "dist/useCases/LoginGateway.js"(exports, module) {
237
- module.exports = function LoginGateway(requestData, options = {}) {
238
- if (!requestData)
239
- requestData = {};
240
- const pathParams = null;
241
- const { data, query, headers } = requestData;
242
- let url = "/auth/gateway";
243
- if (pathParams && data) {
244
- for (const param of pathParams) {
245
- const paramName = param.replace(":", "");
246
- url = url.replace(param, data[paramName]);
247
- }
248
- }
249
- if (url.match(/:[a-zA-Z0-9]+/g)) {
250
- const missingParams = url.match(/:[a-zA-Z0-9]+/g);
251
- const missing = missingParams.map((param) => param.replace(":", ""));
252
- return Promise.reject(
253
- new Error("Missing parameters: " + missing.join(", "))
254
- );
255
- }
256
- const config = {
257
- method: "post",
258
- url,
259
- ...options
260
- };
261
- if (data)
262
- config.data = data;
263
- if (query)
264
- config.params = query;
265
- if (headers)
266
- config.headers = headers;
267
- return this._http.request(config);
268
- };
269
- }
270
- });
271
-
272
234
  // dist/useCases/RefreshToken.js
273
235
  var require_RefreshToken = __commonJS({
274
236
  "dist/useCases/RefreshToken.js"(exports, module) {
@@ -7059,7 +7021,6 @@ var require_Client = __commonJS({
7059
7021
  var AdminDescribeProperty = require_AdminDescribeProperty();
7060
7022
  var AdminCreateProperty = require_AdminCreateProperty();
7061
7023
  var LoginUser = require_LoginUser();
7062
- var LoginGateway = require_LoginGateway();
7063
7024
  var RefreshToken = require_RefreshToken();
7064
7025
  var RequestLoginLink = require_RequestLoginLink();
7065
7026
  var DescribeSelf = require_DescribeSelf();
@@ -7303,7 +7264,6 @@ var require_Client = __commonJS({
7303
7264
  KohostApiClient.prototype.AdminDescribeProperty = AdminDescribeProperty;
7304
7265
  KohostApiClient.prototype.AdminCreateProperty = AdminCreateProperty;
7305
7266
  KohostApiClient.prototype.LoginUser = LoginUser;
7306
- KohostApiClient.prototype.LoginGateway = LoginGateway;
7307
7267
  KohostApiClient.prototype.RefreshToken = RefreshToken;
7308
7268
  KohostApiClient.prototype.RequestLoginLink = RequestLoginLink;
7309
7269
  KohostApiClient.prototype.DescribeSelf = DescribeSelf;