@firedesktop/react-base 2.1.25 → 3.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/LICENSE +162 -0
- package/README.md +174 -94
- package/dist/components/AppIcon.d.ts +20 -20
- package/dist/components/AppIcon.js +53 -64
- package/dist/components/AppIcon.js.map +1 -1
- package/dist/components/AppInput.d.ts +20 -20
- package/dist/components/AppInput.js +7 -18
- package/dist/components/AppInput.js.map +1 -1
- package/dist/components/AppPagination.d.ts +11 -11
- package/dist/components/AppPagination.js +63 -74
- package/dist/components/AppPagination.js.map +1 -1
- package/dist/components/Spin.d.ts +6 -6
- package/dist/components/Spin.js +21 -17
- package/dist/components/Spin.js.map +1 -1
- package/dist/components/Toaster/Toaster.d.ts +7 -7
- package/dist/components/Toaster/Toaster.js +41 -29
- package/dist/components/Toaster/Toaster.js.map +1 -1
- package/dist/components/Toaster/Types.d.ts +6 -6
- package/dist/components/Toaster/Types.js +1 -1
- package/dist/components/index.d.ts +7 -7
- package/dist/components/index.js +7 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/utils/CurrencyUtiles.d.ts +4 -4
- package/dist/utils/CurrencyUtiles.js +35 -30
- package/dist/utils/CurrencyUtiles.js.map +1 -1
- package/dist/utils/DateUtils.d.ts +7 -7
- package/dist/utils/DateUtils.js +111 -100
- package/dist/utils/DateUtils.js.map +1 -1
- package/dist/utils/FileUtils.d.ts +5 -5
- package/dist/utils/FileUtils.js +73 -73
- package/dist/utils/FileUtils.js.map +1 -1
- package/dist/utils/Logger.d.ts +13 -0
- package/dist/utils/Logger.js +44 -0
- package/dist/utils/Logger.js.map +1 -0
- package/dist/utils/RegExValidation.d.ts +4 -4
- package/dist/utils/RegExValidation.js +19 -19
- package/dist/utils/UrlUtils.d.ts +4 -4
- package/dist/utils/UrlUtils.js +15 -15
- package/dist/utils/UrlUtils.js.map +1 -1
- package/dist/utils/configuration/ConfigurationLoader.d.ts +6 -6
- package/dist/utils/configuration/ConfigurationLoader.js +76 -75
- package/dist/utils/configuration/ConfigurationLoader.js.map +1 -1
- package/dist/utils/configuration/ConfigurationManager.d.ts +5 -5
- package/dist/utils/configuration/ConfigurationManager.js +96 -89
- package/dist/utils/configuration/ConfigurationManager.js.map +1 -1
- package/dist/utils/configuration/ConfigurationReturner.d.ts +9 -9
- package/dist/utils/configuration/ConfigurationReturner.js +70 -69
- package/dist/utils/configuration/ConfigurationReturner.js.map +1 -1
- package/dist/utils/configuration/index.d.ts +4 -4
- package/dist/utils/configuration/index.js +4 -4
- package/dist/utils/fetch/Types.d.ts +10 -10
- package/dist/utils/fetch/Types.js +1 -1
- package/dist/utils/fetch/fetchWrapper.d.ts +14 -14
- package/dist/utils/fetch/fetchWrapper.js +268 -233
- package/dist/utils/fetch/fetchWrapper.js.map +1 -1
- package/dist/utils/fetch/index.d.ts +3 -3
- package/dist/utils/fetch/index.js +3 -3
- package/dist/utils/index.d.ts +10 -9
- package/dist/utils/index.js +10 -9
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/labels/LanguageLoader.d.ts +7 -7
- package/dist/utils/labels/LanguageLoader.js +130 -100
- package/dist/utils/labels/LanguageLoader.js.map +1 -1
- package/dist/utils/labels/LanguageManager.d.ts +6 -6
- package/dist/utils/labels/LanguageManager.js +118 -110
- package/dist/utils/labels/LanguageManager.js.map +1 -1
- package/dist/utils/labels/LanguageReturner.d.ts +10 -10
- package/dist/utils/labels/LanguageReturner.js +70 -69
- package/dist/utils/labels/LanguageReturner.js.map +1 -1
- package/dist/utils/labels/index.d.ts +4 -4
- package/dist/utils/labels/index.js +4 -4
- package/docs/APP_ICON.md +82 -0
- package/docs/APP_INPUT.md +81 -0
- package/docs/APP_PAGINATION.md +61 -0
- package/docs/CONFIGURATION.md +105 -0
- package/docs/FETCH_WRAPPER.md +163 -0
- package/docs/LABELS.md +148 -0
- package/docs/LOGGER.md +112 -0
- package/docs/SECURITY_AUDIT_2026-02-05.md +468 -0
- package/docs/SPIN.md +45 -0
- package/docs/TOASTER.md +75 -0
- package/docs/UTILITIES.md +177 -0
- package/package.json +28 -38
- package/src/App.css +0 -12
- package/src/lib/components/AppIcon.tsx +0 -784
- package/src/lib/components/AppInput.tsx +0 -66
- package/src/lib/components/AppPagination.tsx +0 -124
- package/src/lib/components/Spin.tsx +0 -31
- package/src/lib/components/Toaster/Toaster.tsx +0 -50
- package/src/lib/components/Toaster/Types.ts +0 -11
- package/src/lib/components/index.ts +0 -8
- package/src/lib/index.ts +0 -15
- package/src/lib/styles/base.css +0 -392
- package/src/lib/styles/syncfusion_bootstrap4.css +0 -10
- package/src/lib/styles/toaster.css +0 -50
- package/src/lib/utils/CurrencyUtiles.ts +0 -48
- package/src/lib/utils/DateUtils.ts +0 -135
- package/src/lib/utils/FileUtils.ts +0 -40
- package/src/lib/utils/RegExValidation.ts +0 -49
- package/src/lib/utils/UrlUtils.ts +0 -17
- package/src/lib/utils/configuration/ConfigurationLoader.tsx +0 -43
- package/src/lib/utils/configuration/ConfigurationManager.ts +0 -38
- package/src/lib/utils/configuration/ConfigurationReturner.tsx +0 -39
- package/src/lib/utils/configuration/index.ts +0 -9
- package/src/lib/utils/fetch/Types.ts +0 -11
- package/src/lib/utils/fetch/fetchWrapper.ts +0 -174
- package/src/lib/utils/fetch/index.ts +0 -4
- package/src/lib/utils/index.ts +0 -11
- package/src/lib/utils/labels/LanguageLoader.tsx +0 -69
- package/src/lib/utils/labels/LanguageManager.ts +0 -61
- package/src/lib/utils/labels/LanguageReturner.tsx +0 -41
- package/src/lib/utils/labels/index.ts +0 -9
|
@@ -1,70 +1,71 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
-
return g =
|
|
13
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
-
function step(op) {
|
|
15
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
-
switch (op[0]) {
|
|
20
|
-
case 0: case 1: t = op; break;
|
|
21
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
-
default:
|
|
25
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
-
if (t[2]) _.ops.pop();
|
|
30
|
-
_.trys.pop(); continue;
|
|
31
|
-
}
|
|
32
|
-
op = body.call(thisArg, _);
|
|
33
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
|
-
import React, { useEffect } from 'react';
|
|
39
|
-
import
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_a.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
|
+
import React, { useEffect } from 'react';
|
|
39
|
+
import Logger from '../Logger';
|
|
40
|
+
import ConfigurationManager from './ConfigurationManager';
|
|
41
|
+
export default function ConfigurationReturner(_a) {
|
|
42
|
+
var configuration = _a.configuration, onConfigurationLoad = _a.onConfigurationLoad, path = _a.path;
|
|
43
|
+
var loadConfiguration = ConfigurationManager().loadConfiguration;
|
|
44
|
+
var fullPath = "".concat(path, "/config.json");
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
function justAsync() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
48
|
+
return __generator(this, function (_a) {
|
|
49
|
+
switch (_a.label) {
|
|
50
|
+
case 0:
|
|
51
|
+
if (!(!configuration || !configuration.loaded)) return [3, 2];
|
|
52
|
+
Logger.debug("Loading Configuration for this Path: ".concat(path, " in this fullpath: ").concat(fullPath));
|
|
53
|
+
return [4, loadConfiguration(fullPath).then(function (response) {
|
|
54
|
+
Logger.debug("Loaded Configuration for this Path: ".concat(path, " in this fullpath: ").concat(fullPath), response);
|
|
55
|
+
onConfigurationLoad(response);
|
|
56
|
+
}).catch(function (err) {
|
|
57
|
+
Logger.error("Problem loading the Path: ".concat(path, " Configuration in this fullpath: ").concat(fullPath));
|
|
58
|
+
})];
|
|
59
|
+
case 1:
|
|
60
|
+
_a.sent();
|
|
61
|
+
_a.label = 2;
|
|
62
|
+
case 2: return [2];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
justAsync();
|
|
68
|
+
}, []);
|
|
69
|
+
return (_jsx(React.Fragment, {}));
|
|
70
|
+
}
|
|
70
71
|
//# sourceMappingURL=ConfigurationReturner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationReturner.js","sourceRoot":"","sources":["../../../src/lib/utils/configuration/ConfigurationReturner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAW1D,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAA2E;QAAzE,aAAa,mBAAA,EAAE,mBAAmB,yBAAA,EAAE,IAAI,UAAA;IAC5E,IAAA,iBAAiB,GAAK,oBAAoB,EAAE,kBAA3B,CAA4B;IAErD,IAAM,QAAQ,GAAG,UAAG,IAAI,iBAAc,CAAC;IAEvC,SAAS,CAAC;QACN,SAAe,SAAS;;;;;iCAChB,CAAA,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,MAAM,CAAA,EAAvC,cAAuC;4BACvC,
|
|
1
|
+
{"version":3,"file":"ConfigurationReturner.js","sourceRoot":"","sources":["../../../src/lib/utils/configuration/ConfigurationReturner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAW1D,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAA2E;QAAzE,aAAa,mBAAA,EAAE,mBAAmB,yBAAA,EAAE,IAAI,UAAA;IAC5E,IAAA,iBAAiB,GAAK,oBAAoB,EAAE,kBAA3B,CAA4B;IAErD,IAAM,QAAQ,GAAG,UAAG,IAAI,iBAAc,CAAC;IAEvC,SAAS,CAAC;QACN,SAAe,SAAS;;;;;iCAChB,CAAA,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,MAAM,CAAA,EAAvC,cAAuC;4BACvC,MAAM,CAAC,KAAK,CAAC,+CAAwC,IAAI,gCAAsB,QAAQ,CAAE,CAAC,CAAC;4BAC3F,WAAM,iBAAiB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAC,QAAa;oCACjD,MAAM,CAAC,KAAK,CAAC,8CAAuC,IAAI,gCAAsB,QAAQ,CAAE,EAAE,QAAQ,CAAC,CAAC;oCACpG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;gCAClC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAC,GAAQ;oCACd,MAAM,CAAC,KAAK,CAAC,oCAA6B,IAAI,8CAAoC,QAAQ,CAAE,CAAC,CAAC;gCAClG,CAAC,CAAC,EAAA;;4BALF,SAKE,CAAC;;;;;;SAEV;QACD,SAAS,EAAE,CAAC;IAEhB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,KAAC,KAAK,CAAC,QAAQ,KACE,CACpB,CAAC;AACN,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ConfigurationManager from './ConfigurationManager';
|
|
2
|
-
import ConfigurationLoader from './ConfigurationLoader';
|
|
3
|
-
import ConfigurationReturner from './ConfigurationReturner';
|
|
4
|
-
export { ConfigurationLoader, ConfigurationManager, ConfigurationReturner };
|
|
1
|
+
import ConfigurationManager from './ConfigurationManager';
|
|
2
|
+
import ConfigurationLoader from './ConfigurationLoader';
|
|
3
|
+
import ConfigurationReturner from './ConfigurationReturner';
|
|
4
|
+
export { ConfigurationLoader, ConfigurationManager, ConfigurationReturner };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ConfigurationManager from './ConfigurationManager';
|
|
2
|
-
import ConfigurationLoader from './ConfigurationLoader';
|
|
3
|
-
import ConfigurationReturner from './ConfigurationReturner';
|
|
4
|
-
export { ConfigurationLoader, ConfigurationManager, ConfigurationReturner };
|
|
1
|
+
import ConfigurationManager from './ConfigurationManager';
|
|
2
|
+
import ConfigurationLoader from './ConfigurationLoader';
|
|
3
|
+
import ConfigurationReturner from './ConfigurationReturner';
|
|
4
|
+
export { ConfigurationLoader, ConfigurationManager, ConfigurationReturner };
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface ILabels {
|
|
2
|
-
errorBadRequest: string;
|
|
3
|
-
errorGeneric: string;
|
|
4
|
-
errorServerNotAvailable: string;
|
|
5
|
-
errorSessionExpired: string;
|
|
6
|
-
}
|
|
7
|
-
export type AdditionalParamsType = {
|
|
8
|
-
name: string;
|
|
9
|
-
value: string | number;
|
|
10
|
-
};
|
|
1
|
+
export interface ILabels {
|
|
2
|
+
errorBadRequest: string;
|
|
3
|
+
errorGeneric: string;
|
|
4
|
+
errorServerNotAvailable: string;
|
|
5
|
+
errorSessionExpired: string;
|
|
6
|
+
}
|
|
7
|
+
export type AdditionalParamsType = {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string | number;
|
|
10
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=Types.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as Types from './Types';
|
|
2
|
-
declare class FetchWrapper {
|
|
3
|
-
apiVersion?: string;
|
|
4
|
-
labels?: Types.ILabels;
|
|
5
|
-
status_401?: () => Promise<void>;
|
|
6
|
-
status_403?: () => Promise<void>;
|
|
7
|
-
constructor(apiVersion?: string, labels?: Types.ILabels, status_401?: () => Promise<void>, status_403?: () => Promise<void>);
|
|
8
|
-
get: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
9
|
-
post: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
10
|
-
put: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
11
|
-
delete: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
12
|
-
generic: (method: string, url: string, applicationName: string | undefined, token: string | undefined, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, version?: string, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
13
|
-
}
|
|
14
|
-
export default FetchWrapper;
|
|
1
|
+
import * as Types from './Types';
|
|
2
|
+
declare class FetchWrapper {
|
|
3
|
+
apiVersion?: string;
|
|
4
|
+
labels?: Types.ILabels;
|
|
5
|
+
status_401?: () => Promise<void>;
|
|
6
|
+
status_403?: () => Promise<void>;
|
|
7
|
+
constructor(apiVersion?: string, labels?: Types.ILabels, status_401?: () => Promise<void>, status_403?: () => Promise<void>);
|
|
8
|
+
get: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
9
|
+
post: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
10
|
+
put: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
11
|
+
delete: (url: string, applicationName?: string, token?: string, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
12
|
+
generic: (method: string, url: string, applicationName: string | undefined, token: string | undefined, onGenericServerError?: (status: number, error?: any) => void, params?: Blob | any, isFile?: boolean, isBlobInReturn?: boolean, version?: string, additionalParams?: Types.AdditionalParamsType[], timeoutInMilli?: number) => Promise<any>;
|
|
13
|
+
}
|
|
14
|
+
export default FetchWrapper;
|