@fluxo-dev/api-client-base 0.0.12 → 0.0.14

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.
@@ -1,16 +1,35 @@
1
- import require$$1, { TextEncoder } from 'util';
2
- import stream, { Readable } from 'stream';
3
- import require$$1$1 from 'path';
4
- import require$$3 from 'http';
5
- import require$$4 from 'https';
6
- import require$$0$1 from 'url';
7
- import require$$6 from 'fs';
8
- import require$$4$1 from 'assert';
9
- import require$$0$3 from 'tty';
10
- import require$$0$2 from 'os';
11
- import zlib from 'zlib';
12
- import EventEmitter from 'events';
13
- import { store as store$4, userLogin, userLogout, autoLoginSucceded, openSearchPanel, closeSearchPanel, setUserIdle, unsetUserIdle, openNavbar, closeNavbar, setAppMenu, setRouteRules, setConfiguration, setSysFeatures, setJitAppsFeatures, setUserPermissions, AuthenticationType, setFluxoClientConfiguration } from '@fluxo-dev/state';
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var require$$1 = require('util');
6
+ var stream = require('stream');
7
+ var require$$1$1 = require('path');
8
+ var require$$3 = require('http');
9
+ var require$$4 = require('https');
10
+ var require$$0$1 = require('url');
11
+ var require$$6 = require('fs');
12
+ var require$$4$1 = require('assert');
13
+ var require$$0$3 = require('tty');
14
+ var require$$0$2 = require('os');
15
+ var zlib = require('zlib');
16
+ var EventEmitter = require('events');
17
+ var state$1 = require('@fluxo-dev/state');
18
+
19
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
+
21
+ var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
22
+ var stream__default = /*#__PURE__*/_interopDefaultLegacy(stream);
23
+ var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
24
+ var require$$3__default = /*#__PURE__*/_interopDefaultLegacy(require$$3);
25
+ var require$$4__default = /*#__PURE__*/_interopDefaultLegacy(require$$4);
26
+ var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
27
+ var require$$6__default = /*#__PURE__*/_interopDefaultLegacy(require$$6);
28
+ var require$$4__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$4$1);
29
+ var require$$0__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$0$3);
30
+ var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$2);
31
+ var zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib);
32
+ var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
14
33
 
15
34
  /******************************************************************************
16
35
  Copyright (c) Microsoft Corporation.
@@ -2475,8 +2494,8 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
2475
2494
  return axiosError;
2476
2495
  };
2477
2496
 
2478
- var Stream$2 = stream.Stream;
2479
- var util$2 = require$$1;
2497
+ var Stream$2 = stream__default["default"].Stream;
2498
+ var util$2 = require$$1__default["default"];
2480
2499
 
2481
2500
  var delayed_stream = DelayedStream$1;
2482
2501
  function DelayedStream$1() {
@@ -2583,8 +2602,8 @@ DelayedStream$1.prototype._checkIfMaxDataSizeExceeded = function() {
2583
2602
  this.emit('error', new Error(message));
2584
2603
  };
2585
2604
 
2586
- var util$1 = require$$1;
2587
- var Stream$1 = stream.Stream;
2605
+ var util$1 = require$$1__default["default"];
2606
+ var Stream$1 = stream__default["default"].Stream;
2588
2607
  var DelayedStream = delayed_stream;
2589
2608
 
2590
2609
  var combined_stream = CombinedStream$1;
@@ -13525,7 +13544,7 @@ var mimeDb = require$$0;
13525
13544
  */
13526
13545
 
13527
13546
  var db = mimeDb;
13528
- var extname = require$$1$1.extname;
13547
+ var extname = require$$1__default$1["default"].extname;
13529
13548
 
13530
13549
  /**
13531
13550
  * Module variables.
@@ -14095,13 +14114,13 @@ var populate$1 = function(dst, src) {
14095
14114
  };
14096
14115
 
14097
14116
  var CombinedStream = combined_stream;
14098
- var util = require$$1;
14099
- var path = require$$1$1;
14100
- var http$1 = require$$3;
14101
- var https$1 = require$$4;
14102
- var parseUrl$1 = require$$0$1.parse;
14103
- var fs = require$$6;
14104
- var Stream = stream.Stream;
14117
+ var util = require$$1__default["default"];
14118
+ var path = require$$1__default$1["default"];
14119
+ var http$1 = require$$3__default["default"];
14120
+ var https$1 = require$$4__default["default"];
14121
+ var parseUrl$1 = require$$0__default["default"].parse;
14122
+ var fs = require$$6__default["default"];
14123
+ var Stream = stream__default["default"].Stream;
14105
14124
  var mime = mimeTypes;
14106
14125
  var asynckit = asynckit$1;
14107
14126
  var populate = populate$1;
@@ -14995,7 +15014,7 @@ var transitionalDefaults = {
14995
15014
  clarifyTimeoutError: false
14996
15015
  };
14997
15016
 
14998
- var URLSearchParams = require$$0$1.URLSearchParams;
15017
+ var URLSearchParams = require$$0__default["default"].URLSearchParams;
14999
15018
 
15000
15019
  var platform$1 = {
15001
15020
  isNode: true,
@@ -15772,7 +15791,7 @@ function buildFullPath(baseURL, requestedURL) {
15772
15791
  return requestedURL;
15773
15792
  }
15774
15793
 
15775
- var parseUrl = require$$0$1.parse;
15794
+ var parseUrl = require$$0__default["default"].parse;
15776
15795
 
15777
15796
  var DEFAULT_PORTS = {
15778
15797
  ftp: 21,
@@ -16604,7 +16623,7 @@ var hasFlag$1 = (flag, argv) => {
16604
16623
  return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
16605
16624
  };
16606
16625
 
16607
- const os = require$$0$2;
16626
+ const os = require$$0__default$1["default"];
16608
16627
  const hasFlag = hasFlag$1;
16609
16628
 
16610
16629
  const env = process.env;
@@ -16740,8 +16759,8 @@ var supportsColor_1 = {
16740
16759
  */
16741
16760
 
16742
16761
  (function (module, exports) {
16743
- const tty = require$$0$3;
16744
- const util = require$$1;
16762
+ const tty = require$$0__default$2["default"];
16763
+ const util = require$$1__default["default"];
16745
16764
 
16746
16765
  /**
16747
16766
  * This is the Node.js implementation of `debug()`.
@@ -17028,12 +17047,12 @@ var debug_1 = function () {
17028
17047
  debug$1.apply(null, arguments);
17029
17048
  };
17030
17049
 
17031
- var url = require$$0$1;
17050
+ var url = require$$0__default["default"];
17032
17051
  var URL$1 = url.URL;
17033
- var http = require$$3;
17034
- var https = require$$4;
17035
- var Writable = stream.Writable;
17036
- var assert = require$$4$1;
17052
+ var http = require$$3__default["default"];
17053
+ var https = require$$4__default["default"];
17054
+ var Writable = stream__default["default"].Writable;
17055
+ var assert = require$$4__default$1["default"];
17037
17056
  var debug = debug_1;
17038
17057
 
17039
17058
  // Create handlers that pass events from native requests
@@ -17803,7 +17822,7 @@ function speedometer(samplesCount, min) {
17803
17822
 
17804
17823
  const kInternals = Symbol('internals');
17805
17824
 
17806
- class AxiosTransformStream extends stream.Transform{
17825
+ class AxiosTransformStream extends stream__default["default"].Transform{
17807
17826
  constructor(options) {
17808
17827
  options = utils$1.toFlatObject(options, {
17809
17828
  maxRate: 0,
@@ -18004,7 +18023,7 @@ var readBlob$1 = readBlob;
18004
18023
 
18005
18024
  const BOUNDARY_ALPHABET = utils$1.ALPHABET.ALPHA_DIGIT + '-_';
18006
18025
 
18007
- const textEncoder = new TextEncoder();
18026
+ const textEncoder = new require$$1.TextEncoder();
18008
18027
 
18009
18028
  const CRLF = '\r\n';
18010
18029
  const CRLF_BYTES = textEncoder.encode(CRLF);
@@ -18097,7 +18116,7 @@ const formDataToStream = (form, headersHandler, options) => {
18097
18116
 
18098
18117
  headersHandler && headersHandler(computedHeaders);
18099
18118
 
18100
- return Readable.from((async function *() {
18119
+ return stream.Readable.from((async function *() {
18101
18120
  for(const part of parts) {
18102
18121
  yield boundaryBytes;
18103
18122
  yield* part.encode();
@@ -18109,7 +18128,7 @@ const formDataToStream = (form, headersHandler, options) => {
18109
18128
 
18110
18129
  var formDataToStream$1 = formDataToStream;
18111
18130
 
18112
- class ZlibHeaderTransformStream extends stream.Transform {
18131
+ class ZlibHeaderTransformStream extends stream__default["default"].Transform {
18113
18132
  __transform(chunk, encoding, callback) {
18114
18133
  this.push(chunk);
18115
18134
  callback();
@@ -18150,16 +18169,16 @@ const callbackify = (fn, reducer) => {
18150
18169
  var callbackify$1 = callbackify;
18151
18170
 
18152
18171
  const zlibOptions = {
18153
- flush: zlib.constants.Z_SYNC_FLUSH,
18154
- finishFlush: zlib.constants.Z_SYNC_FLUSH
18172
+ flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
18173
+ finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
18155
18174
  };
18156
18175
 
18157
18176
  const brotliOptions = {
18158
- flush: zlib.constants.BROTLI_OPERATION_FLUSH,
18159
- finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
18177
+ flush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH,
18178
+ finishFlush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH
18160
18179
  };
18161
18180
 
18162
- const isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress);
18181
+ const isBrotliSupported = utils$1.isFunction(zlib__default["default"].createBrotliDecompress);
18163
18182
 
18164
18183
  const {http: httpFollow, https: httpsFollow} = followRedirects;
18165
18184
 
@@ -18303,7 +18322,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18303
18322
  }
18304
18323
 
18305
18324
  // temporary internal emitter until the AxiosRequest class will be implemented
18306
- const emitter = new EventEmitter();
18325
+ const emitter = new EventEmitter__default["default"]();
18307
18326
 
18308
18327
  const onFinished = () => {
18309
18328
  if (config.cancelToken) {
@@ -18370,7 +18389,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18370
18389
  convertedData = utils$1.stripBOM(convertedData);
18371
18390
  }
18372
18391
  } else if (responseType === 'stream') {
18373
- convertedData = stream.Readable.from(convertedData);
18392
+ convertedData = stream__default["default"].Readable.from(convertedData);
18374
18393
  }
18375
18394
 
18376
18395
  return settle(resolve, reject, {
@@ -18420,7 +18439,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18420
18439
 
18421
18440
  if (!headers.hasContentLength()) {
18422
18441
  try {
18423
- const knownLength = await require$$1.promisify(data.getLength).call(data);
18442
+ const knownLength = await require$$1__default["default"].promisify(data.getLength).call(data);
18424
18443
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
18425
18444
  /*eslint no-empty:0*/
18426
18445
  } catch (e) {
@@ -18429,7 +18448,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18429
18448
  } else if (utils$1.isBlob(data)) {
18430
18449
  data.size && headers.setContentType(data.type || 'application/octet-stream');
18431
18450
  headers.setContentLength(data.size || 0);
18432
- data = stream.Readable.from(readBlob$1(data));
18451
+ data = stream__default["default"].Readable.from(readBlob$1(data));
18433
18452
  } else if (data && !utils$1.isStream(data)) {
18434
18453
  if (Buffer.isBuffer(data)) ; else if (utils$1.isArrayBuffer(data)) {
18435
18454
  data = Buffer.from(new Uint8Array(data));
@@ -18466,10 +18485,10 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18466
18485
 
18467
18486
  if (data && (onUploadProgress || maxUploadRate)) {
18468
18487
  if (!utils$1.isStream(data)) {
18469
- data = stream.Readable.from(data, {objectMode: false});
18488
+ data = stream__default["default"].Readable.from(data, {objectMode: false});
18470
18489
  }
18471
18490
 
18472
- data = stream.pipeline([data, new AxiosTransformStream$1({
18491
+ data = stream__default["default"].pipeline([data, new AxiosTransformStream$1({
18473
18492
  length: contentLength,
18474
18493
  maxRate: utils$1.toFiniteNumber(maxUploadRate)
18475
18494
  })], utils$1.noop);
@@ -18547,7 +18566,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18547
18566
  if (config.transport) {
18548
18567
  transport = config.transport;
18549
18568
  } else if (config.maxRedirects === 0) {
18550
- transport = isHttpsRequest ? require$$4 : require$$3;
18569
+ transport = isHttpsRequest ? require$$4__default["default"] : require$$3__default["default"];
18551
18570
  } else {
18552
18571
  if (config.maxRedirects) {
18553
18572
  options.maxRedirects = config.maxRedirects;
@@ -18613,7 +18632,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18613
18632
  case 'compress':
18614
18633
  case 'x-compress':
18615
18634
  // add the unzipper to the body stream processing pipeline
18616
- streams.push(zlib.createUnzip(zlibOptions));
18635
+ streams.push(zlib__default["default"].createUnzip(zlibOptions));
18617
18636
 
18618
18637
  // remove the content-encoding in order to not confuse downstream operations
18619
18638
  delete res.headers['content-encoding'];
@@ -18622,22 +18641,22 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
18622
18641
  streams.push(new ZlibHeaderTransformStream$1());
18623
18642
 
18624
18643
  // add the unzipper to the body stream processing pipeline
18625
- streams.push(zlib.createUnzip(zlibOptions));
18644
+ streams.push(zlib__default["default"].createUnzip(zlibOptions));
18626
18645
 
18627
18646
  // remove the content-encoding in order to not confuse downstream operations
18628
18647
  delete res.headers['content-encoding'];
18629
18648
  break;
18630
18649
  case 'br':
18631
18650
  if (isBrotliSupported) {
18632
- streams.push(zlib.createBrotliDecompress(brotliOptions));
18651
+ streams.push(zlib__default["default"].createBrotliDecompress(brotliOptions));
18633
18652
  delete res.headers['content-encoding'];
18634
18653
  }
18635
18654
  }
18636
18655
  }
18637
18656
 
18638
- responseStream = streams.length > 1 ? stream.pipeline(streams, utils$1.noop) : streams[0];
18657
+ responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0];
18639
18658
 
18640
- const offListeners = stream.finished(responseStream, () => {
18659
+ const offListeners = stream__default["default"].finished(responseStream, () => {
18641
18660
  offListeners();
18642
18661
  onFinished();
18643
18662
  });
@@ -19990,7 +20009,7 @@ class HttpClient {
19990
20009
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19991
20010
  // @ts-ignore
19992
20011
  this._axiosInstance.interceptors.request.use(config => __awaiter(this, void 0, void 0, function* () {
19993
- const state = store$4.getState();
20012
+ const state = state$1.store.getState();
19994
20013
  if (state.user.loggedIn) {
19995
20014
  return Object.assign(Object.assign({}, config), {
19996
20015
  headers: Object.assign(Object.assign({}, config.headers), {
@@ -20024,49 +20043,49 @@ function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCha
20024
20043
 
20025
20044
  class FluxoStateDispatcher {
20026
20045
  static dispatchUserLogin(data) {
20027
- store$4.dispatch(userLogin(data));
20046
+ state$1.store.dispatch(state$1.userLogin(data));
20028
20047
  }
20029
20048
  static dispatchUserLogout() {
20030
- store$4.dispatch(userLogout());
20049
+ state$1.store.dispatch(state$1.userLogout());
20031
20050
  }
20032
20051
  static dispatchAutoLoginSucceded(userInfo) {
20033
- store$4.dispatch(autoLoginSucceded(userInfo));
20052
+ state$1.store.dispatch(state$1.autoLoginSucceded(userInfo));
20034
20053
  }
20035
20054
  static dispatchOpenSearchPanel() {
20036
- store$4.dispatch(openSearchPanel({}));
20055
+ state$1.store.dispatch(state$1.openSearchPanel({}));
20037
20056
  }
20038
20057
  static dispatchCloseSearchPanel() {
20039
- store$4.dispatch(closeSearchPanel({}));
20058
+ state$1.store.dispatch(state$1.closeSearchPanel({}));
20040
20059
  }
20041
20060
  static dispatchSetUserIdle() {
20042
- store$4.dispatch(setUserIdle({}));
20061
+ state$1.store.dispatch(state$1.setUserIdle({}));
20043
20062
  }
20044
20063
  static dispatchUnsetUserIdle() {
20045
- store$4.dispatch(unsetUserIdle({}));
20064
+ state$1.store.dispatch(state$1.unsetUserIdle({}));
20046
20065
  }
20047
20066
  static dispatchOpenNavbar() {
20048
- store$4.dispatch(openNavbar({}));
20067
+ state$1.store.dispatch(state$1.openNavbar({}));
20049
20068
  }
20050
20069
  static dispatchCloseNavbar() {
20051
- store$4.dispatch(closeNavbar({}));
20070
+ state$1.store.dispatch(state$1.closeNavbar({}));
20052
20071
  }
20053
20072
  static dispatchSetAppMenu(items) {
20054
- store$4.dispatch(setAppMenu(items));
20073
+ state$1.store.dispatch(state$1.setAppMenu(items));
20055
20074
  }
20056
20075
  static dispatchSetRouteRules(rules) {
20057
- store$4.dispatch(setRouteRules(rules));
20076
+ state$1.store.dispatch(state$1.setRouteRules(rules));
20058
20077
  }
20059
20078
  static dispatchSetConfiguration(items) {
20060
- store$4.dispatch(setConfiguration(items));
20079
+ state$1.store.dispatch(state$1.setConfiguration(items));
20061
20080
  }
20062
20081
  static dispatchSetSysFeatures(items) {
20063
- store$4.dispatch(setSysFeatures(items));
20082
+ state$1.store.dispatch(state$1.setSysFeatures(items));
20064
20083
  }
20065
20084
  static dispatchSetJitAppsFeatures(items) {
20066
- store$4.dispatch(setJitAppsFeatures(items));
20085
+ state$1.store.dispatch(state$1.setJitAppsFeatures(items));
20067
20086
  }
20068
20087
  static dispatchSetUserPermissions(items) {
20069
- store$4.dispatch(setUserPermissions(items));
20088
+ state$1.store.dispatch(state$1.setUserPermissions(items));
20070
20089
  }
20071
20090
  }
20072
20091
 
@@ -20441,7 +20460,7 @@ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
20441
20460
  class UserService {
20442
20461
  constructor() {}
20443
20462
  currentUserHasPermissions(requiredPermissions, strategy = 'all') {
20444
- const userPermissions = store$4.getState().user.userPermissions;
20463
+ const userPermissions = state$1.store.getState().user.userPermissions;
20445
20464
  if (!userPermissions) {
20446
20465
  return false;
20447
20466
  }
@@ -20739,17 +20758,17 @@ class AppService {
20739
20758
  }
20740
20759
  }
20741
20760
 
20742
- var AppType;
20761
+ exports.AppType = void 0;
20743
20762
  (function (AppType) {
20744
20763
  AppType[AppType["Frontend"] = 0] = "Frontend";
20745
20764
  AppType[AppType["Backend"] = 1] = "Backend";
20746
- })(AppType || (AppType = {}));
20765
+ })(exports.AppType || (exports.AppType = {}));
20747
20766
 
20748
- var AppState;
20767
+ exports.AppState = void 0;
20749
20768
  (function (AppState) {
20750
20769
  AppState[AppState["Active"] = 0] = "Active";
20751
20770
  AppState[AppState["Inactive"] = 1] = "Inactive";
20752
- })(AppState || (AppState = {}));
20771
+ })(exports.AppState || (exports.AppState = {}));
20753
20772
 
20754
20773
  var classof = classofRaw$1;
20755
20774
 
@@ -20925,28 +20944,28 @@ class ReportingService {
20925
20944
  }
20926
20945
  }
20927
20946
 
20928
- var PrinterType;
20947
+ exports.PrinterType = void 0;
20929
20948
  (function (PrinterType) {
20930
20949
  PrinterType[PrinterType["Managed"] = 0] = "Managed";
20931
20950
  PrinterType[PrinterType["Unmanaged"] = 1] = "Unmanaged";
20932
- })(PrinterType || (PrinterType = {}));
20951
+ })(exports.PrinterType || (exports.PrinterType = {}));
20933
20952
 
20934
- var PrintServerType;
20953
+ exports.PrintServerType = void 0;
20935
20954
  (function (PrintServerType) {
20936
20955
  PrintServerType[PrintServerType["Direct"] = 0] = "Direct";
20937
20956
  PrintServerType[PrintServerType["Remote"] = 1] = "Remote";
20938
- })(PrintServerType || (PrintServerType = {}));
20957
+ })(exports.PrintServerType || (exports.PrintServerType = {}));
20939
20958
 
20940
- var PrinterManufacturer;
20959
+ exports.PrinterManufacturer = void 0;
20941
20960
  (function (PrinterManufacturer) {
20942
20961
  PrinterManufacturer[PrinterManufacturer["Zebra"] = 0] = "Zebra";
20943
- })(PrinterManufacturer || (PrinterManufacturer = {}));
20962
+ })(exports.PrinterManufacturer || (exports.PrinterManufacturer = {}));
20944
20963
 
20945
- var PrintServerManagedType;
20964
+ exports.PrintServerManagedType = void 0;
20946
20965
  (function (PrintServerManagedType) {
20947
20966
  PrintServerManagedType[PrintServerManagedType["Ipp"] = 0] = "Ipp";
20948
20967
  PrintServerManagedType[PrintServerManagedType["Windows"] = 1] = "Windows";
20949
- })(PrintServerManagedType || (PrintServerManagedType = {}));
20968
+ })(exports.PrintServerManagedType || (exports.PrintServerManagedType = {}));
20950
20969
 
20951
20970
  class PrintingService {
20952
20971
  GetPrintServerList() {
@@ -20969,13 +20988,13 @@ class PrintingService {
20969
20988
  }
20970
20989
  }
20971
20990
 
20972
- var WorkflowActionInputType;
20991
+ exports.WorkflowActionInputType = void 0;
20973
20992
  (function (WorkflowActionInputType) {
20974
20993
  WorkflowActionInputType[WorkflowActionInputType["none"] = 0] = "none";
20975
20994
  WorkflowActionInputType[WorkflowActionInputType["manual"] = 1] = "manual";
20976
20995
  WorkflowActionInputType[WorkflowActionInputType["dynamic"] = 2] = "dynamic";
20977
20996
  WorkflowActionInputType[WorkflowActionInputType["expression"] = 3] = "expression";
20978
- })(WorkflowActionInputType || (WorkflowActionInputType = {}));
20997
+ })(exports.WorkflowActionInputType || (exports.WorkflowActionInputType = {}));
20979
20998
 
20980
20999
  class WorkflowService {
20981
21000
  getActionsDefinition() {
@@ -21024,11 +21043,11 @@ class FluxoClientBase {
21024
21043
  this._config = config;
21025
21044
  console.info('-*-*-*- FluxoClient setup started -*-*-*-');
21026
21045
  this._authenticationType = config.authenticationType;
21027
- if (this._authenticationType === AuthenticationType.ApiKey && !config.apiKey) {
21046
+ if (this._authenticationType === state$1.AuthenticationType.ApiKey && !config.apiKey) {
21028
21047
  throw new Error('ApiKey is required in ApiKey Authentication mode.');
21029
21048
  }
21030
21049
  console.info('1) Set authentication type: ' + this._authenticationType);
21031
- const apiKeyOrToken = config.authenticationType === AuthenticationType.ApiKey ? config.apiKey : this.getBearerToken();
21050
+ const apiKeyOrToken = config.authenticationType === state$1.AuthenticationType.ApiKey ? config.apiKey : this.getBearerToken();
21032
21051
  console.info('2) Initialize HTTPClient setup');
21033
21052
  HttpClient.Init(this._authenticationType, config.fluxoInstanceUrl, apiKeyOrToken);
21034
21053
  console.info('3) HTTPClient initialized');
@@ -21047,7 +21066,7 @@ class FluxoClientBase {
21047
21066
  this._printingService = new PrintingService();
21048
21067
  this._workflowService = new WorkflowService();
21049
21068
  console.info('7) Sub services initialized');
21050
- if (setState) store$4.dispatch(setFluxoClientConfiguration(config));
21069
+ if (setState) state$1.store.dispatch(state$1.setFluxoClientConfiguration(config));
21051
21070
  console.info('-*-*-*- FluxoClient setup finished -*-*-*-');
21052
21071
  });
21053
21072
  }
@@ -21098,12 +21117,12 @@ class FluxoClientSys {
21098
21117
  FluxoClientSys._initialized = false;
21099
21118
  FluxoClientSys._instance = null;
21100
21119
 
21101
- var AppMenuContextType;
21120
+ exports.AppMenuContextType = void 0;
21102
21121
  (function (AppMenuContextType) {
21103
21122
  AppMenuContextType[AppMenuContextType["Default"] = 0] = "Default";
21104
21123
  AppMenuContextType[AppMenuContextType["DomainRole"] = 1] = "DomainRole";
21105
21124
  AppMenuContextType[AppMenuContextType["User"] = 2] = "User";
21106
- })(AppMenuContextType || (AppMenuContextType = {}));
21125
+ })(exports.AppMenuContextType || (exports.AppMenuContextType = {}));
21107
21126
 
21108
21127
  class ServerFilterHelper {
21109
21128
  static getFilterString(filter, globalSearchQuery, globalSearchQueryFields, globalQueryOperator = 'or') {
@@ -21123,4 +21142,23 @@ class ServerFilterHelper {
21123
21142
  }
21124
21143
  }
21125
21144
 
21126
- export { ApiKeyService, AppMenuContextType, AppService, AppServiceService, AppState, AppType, BaseCommonService, DocumentationService, DomainRoleService, DynamicConfigurationService, EmbeddedModule, FluxoClientBase, FluxoClientSys, FluxoStateDispatcher, HttpClient, IntellisenseService, PermissionService, PrintServerManagedType, PrintServerType, PrinterManufacturer, PrinterType, PrintingService, ReportingService, RouteRuleService, ServerFilterHelper, UserService, WorkflowActionInputType, WorkflowService };
21145
+ exports.ApiKeyService = ApiKeyService;
21146
+ exports.AppService = AppService;
21147
+ exports.AppServiceService = AppServiceService;
21148
+ exports.BaseCommonService = BaseCommonService;
21149
+ exports.DocumentationService = DocumentationService;
21150
+ exports.DomainRoleService = DomainRoleService;
21151
+ exports.DynamicConfigurationService = DynamicConfigurationService;
21152
+ exports.EmbeddedModule = EmbeddedModule;
21153
+ exports.FluxoClientBase = FluxoClientBase;
21154
+ exports.FluxoClientSys = FluxoClientSys;
21155
+ exports.FluxoStateDispatcher = FluxoStateDispatcher;
21156
+ exports.HttpClient = HttpClient;
21157
+ exports.IntellisenseService = IntellisenseService;
21158
+ exports.PermissionService = PermissionService;
21159
+ exports.PrintingService = PrintingService;
21160
+ exports.ReportingService = ReportingService;
21161
+ exports.RouteRuleService = RouteRuleService;
21162
+ exports.ServerFilterHelper = ServerFilterHelper;
21163
+ exports.UserService = UserService;
21164
+ exports.WorkflowService = WorkflowService;
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@fluxo-dev/api-client-base",
3
- "version": "0.0.12",
4
- "type": "module",
3
+ "version": "0.0.14",
4
+ "type": "commonjs",
5
5
  "peerDependencies": {
6
- "@fluxo-dev/state": "0.0.10"
6
+ "@fluxo-dev/state": "0.0.13"
7
7
  },
8
- "module": "./index.esm.js",
9
- "main": "./index.esm.js"
8
+ "main": "./index.cjs.js"
10
9
  }
File without changes