@carbonorm/carbonnode 1.1.1 → 1.1.2
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/package.json +1 -1
- package/dist/index.umd.js +0 -759
- package/dist/index.umd.js.map +0 -1
package/package.json
CHANGED
package/dist/index.umd.js
DELETED
|
@@ -1,759 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('axios'), require('qs'), require('react-toastify')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'axios', 'qs', 'react-toastify'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@carbonorm/carbonnode"] = {}, global.axios, global.qs, global["react-toastify"]));
|
|
5
|
-
})(this, (function (exports, axios, Qs, reactToastify) { 'use strict';
|
|
6
|
-
|
|
7
|
-
var C6Constants = {
|
|
8
|
-
// try to 1=1 match the Rest abstract class
|
|
9
|
-
ADDDATE: 'ADDDATE',
|
|
10
|
-
ADDTIME: 'ADDTIME',
|
|
11
|
-
AS: 'AS',
|
|
12
|
-
ASC: 'ASC',
|
|
13
|
-
BETWEEN: 'BETWEEN',
|
|
14
|
-
CONCAT: 'CONCAT',
|
|
15
|
-
CONVERT_TZ: 'CONVERT_TZ',
|
|
16
|
-
COUNT: 'COUNT',
|
|
17
|
-
COUNT_ALL: 'COUNT_ALL',
|
|
18
|
-
CURRENT_DATE: 'CURRENT_DATE',
|
|
19
|
-
CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP',
|
|
20
|
-
DAY: 'DAY',
|
|
21
|
-
DAY_HOUR: 'DAY_HOUR',
|
|
22
|
-
DAY_MICROSECOND: 'DAY_MICROSECOND',
|
|
23
|
-
DAY_MINUTE: 'DAY_MINUTE',
|
|
24
|
-
DAY_SECOND: 'DAY_SECOND',
|
|
25
|
-
DAYNAME: 'DAYNAME',
|
|
26
|
-
DAYOFMONTH: 'DAYOFMONTH',
|
|
27
|
-
DAYOFWEEK: 'DAYOFWEEK',
|
|
28
|
-
DAYOFYEAR: 'DAYOFYEAR',
|
|
29
|
-
DATE: 'DATE',
|
|
30
|
-
DATE_ADD: 'DATE_ADD',
|
|
31
|
-
DATEDIFF: 'DATEDIFF',
|
|
32
|
-
DATE_SUB: 'DATE_SUB',
|
|
33
|
-
DATE_FORMAT: 'DATE_FORMAT',
|
|
34
|
-
DESC: 'DESC',
|
|
35
|
-
DISTINCT: 'DISTINCT',
|
|
36
|
-
EXTRACT: 'EXTRACT',
|
|
37
|
-
EQUAL: '=',
|
|
38
|
-
EQUAL_NULL_SAFE: '<=>',
|
|
39
|
-
FALSE: 'FALSE',
|
|
40
|
-
FULL_OUTER: 'FULL_OUTER',
|
|
41
|
-
FROM_DAYS: 'FROM_DAYS',
|
|
42
|
-
FROM_UNIXTIME: 'FROM_UNIXTIME',
|
|
43
|
-
GET_FORMAT: 'GET_FORMAT',
|
|
44
|
-
GREATER_THAN: '>',
|
|
45
|
-
GROUP_BY: 'GROUP_BY',
|
|
46
|
-
GROUP_CONCAT: 'GROUP_CONCAT',
|
|
47
|
-
GREATER_THAN_OR_EQUAL_TO: '>=',
|
|
48
|
-
HAVING: 'HAVING',
|
|
49
|
-
HEX: 'HEX',
|
|
50
|
-
HOUR: 'HOUR',
|
|
51
|
-
HOUR_MICROSECOND: 'HOUR_MICROSECOND',
|
|
52
|
-
HOUR_SECOND: 'HOUR_SECOND',
|
|
53
|
-
HOUR_MINUTE: 'HOUR_MINUTE',
|
|
54
|
-
IN: 'IN',
|
|
55
|
-
IS: 'IS',
|
|
56
|
-
IS_NOT: 'IS_NOT',
|
|
57
|
-
INNER: 'INNER',
|
|
58
|
-
INTERVAL: 'INTERVAL',
|
|
59
|
-
JOIN: 'JOIN',
|
|
60
|
-
LEFT: 'LEFT',
|
|
61
|
-
LEFT_OUTER: 'LEFT_OUTER',
|
|
62
|
-
LESS_THAN: '<',
|
|
63
|
-
LESS_THAN_OR_EQUAL_TO: '<=',
|
|
64
|
-
LIKE: 'LIKE',
|
|
65
|
-
LIMIT: 'LIMIT',
|
|
66
|
-
LOCALTIME: 'LOCALTIME',
|
|
67
|
-
LOCALTIMESTAMP: 'LOCALTIMESTAMP',
|
|
68
|
-
MAKEDATE: 'MAKEDATE',
|
|
69
|
-
MAKETIME: 'MAKETIME',
|
|
70
|
-
MONTHNAME: 'MONTHNAME',
|
|
71
|
-
MICROSECOND: 'MICROSECOND',
|
|
72
|
-
MINUTE: 'MINUTE',
|
|
73
|
-
MINUTE_MICROSECOND: 'MINUTE_MICROSECOND',
|
|
74
|
-
MINUTE_SECOND: 'MINUTE_SECOND',
|
|
75
|
-
MIN: 'MIN',
|
|
76
|
-
MAX: 'MAX',
|
|
77
|
-
MONTH: 'MONTH',
|
|
78
|
-
NOT_LIKE: 'NOT_LIKE',
|
|
79
|
-
NOT_EQUAL: '<>',
|
|
80
|
-
NOT_IN: 'NOT_IN',
|
|
81
|
-
NOW: 'NOW',
|
|
82
|
-
NULL: 'NULL',
|
|
83
|
-
ORDER: 'ORDER',
|
|
84
|
-
PAGE: 'PAGE',
|
|
85
|
-
PAGINATION: 'PAGINATION',
|
|
86
|
-
RIGHT_OUTER: 'RIGHT_OUTER',
|
|
87
|
-
SECOND: 'SECOND',
|
|
88
|
-
SECOND_MICROSECOND: 'SECOND_MICROSECOND',
|
|
89
|
-
SELECT: 'SELECT',
|
|
90
|
-
STR_TO_DATE: 'STR_TO_DATE',
|
|
91
|
-
SUBDATE: 'SUBDATE',
|
|
92
|
-
SUBTIME: 'SUBTIME',
|
|
93
|
-
SUM: 'SUM',
|
|
94
|
-
SYSDATE: 'SYSDATE',
|
|
95
|
-
TIME: 'TIME',
|
|
96
|
-
TIME_FORMAT: 'TIME_FORMAT',
|
|
97
|
-
TIME_TO_SEC: 'TIME_TO_SEC',
|
|
98
|
-
TIMEDIFF: 'TIMEDIFF',
|
|
99
|
-
TIMESTAMP: 'TIMESTAMP',
|
|
100
|
-
TIMESTAMPADD: 'TIMESTAMPADD',
|
|
101
|
-
TIMESTAMPDIFF: 'TIMESTAMPDIFF',
|
|
102
|
-
TO_DAYS: 'TO_DAYS',
|
|
103
|
-
TO_SECONDS: 'TO_SECONDS',
|
|
104
|
-
TRANSACTION_TIMESTAMP: 'TRANSACTION_TIMESTAMP',
|
|
105
|
-
TRUE: 'TRUE',
|
|
106
|
-
UNIX_TIMESTAMP: 'UNIX_TIMESTAMP',
|
|
107
|
-
UNKNOWN: 'UNKNOWN',
|
|
108
|
-
UPDATE: 'UPDATE',
|
|
109
|
-
UNHEX: 'UNHEX',
|
|
110
|
-
UTC_DATE: 'UNHEX',
|
|
111
|
-
UTC_TIME: 'UNHEX',
|
|
112
|
-
UTC_TIMESTAMP: 'UNHEX',
|
|
113
|
-
WHERE: 'WHERE',
|
|
114
|
-
WEEKDAY: 'WEEKDAY',
|
|
115
|
-
WEEKOFYEAR: 'WEEKOFYEAR',
|
|
116
|
-
YEARWEEK: 'YEARWEEK',
|
|
117
|
-
// carbon identifiers
|
|
118
|
-
DEPENDANT_ON_ENTITY: 'DEPENDANT_ON_ENTITY',
|
|
119
|
-
// PHP validation
|
|
120
|
-
OPTIONS: 'OPTIONS',
|
|
121
|
-
GET: 'GET',
|
|
122
|
-
POST: 'POST',
|
|
123
|
-
PUT: 'PUT',
|
|
124
|
-
REPLACE: 'REPLACE INTO',
|
|
125
|
-
DELETE: 'DELETE',
|
|
126
|
-
REST_REQUEST_PREPROCESS_CALLBACKS: 'PREPROCESS',
|
|
127
|
-
PREPROCESS: 'PREPROCESS',
|
|
128
|
-
REST_REQUEST_FINNISH_CALLBACKS: 'FINISH',
|
|
129
|
-
FINISH: 'FINISH',
|
|
130
|
-
VALIDATE_C6_ENTITY_ID_REGEX: '#^([a-fA-F0-9]{20,35})$#',
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
// @link https://www.npmjs.com/package/axios-cache-adapter
|
|
134
|
-
//import axiosInterceptors from "api/hoc/axiosInterceptors";
|
|
135
|
-
// noinspection SpellCheckingInspection
|
|
136
|
-
var axiosInstance = (axios.create({
|
|
137
|
-
// `baseURL` will be prepended to `url` unless `url` is absolute.
|
|
138
|
-
// It can be convenient to set `baseURL` for an instance of axios to pass relative URLs
|
|
139
|
-
// to methods of that instance.
|
|
140
|
-
baseURL: '',
|
|
141
|
-
/**
|
|
142
|
-
* These headers are important to use here at dig.
|
|
143
|
-
* XMLHttpRequest - is a standard header all jquery ajax requests send by default. This allows our php side to return
|
|
144
|
-
* nothing while running the get_header() and get_footer() functions with (bool) DropVariables::$ajax;
|
|
145
|
-
*
|
|
146
|
-
* application/json - is for the error catcher in php; this header will cause a JSON response instead of the default HTML
|
|
147
|
-
*/
|
|
148
|
-
headers: {
|
|
149
|
-
crossDomain: true,
|
|
150
|
-
'Access-Control-Allow-Credentials': true,
|
|
151
|
-
'X-Requested-With': 'XMLHttpRequest',
|
|
152
|
-
'Content-Type': 'application/json',
|
|
153
|
-
},
|
|
154
|
-
// `paramsSerializer` is an optional function in charge of serializing `params`
|
|
155
|
-
// (e.g. https://www.npmjs.com/package/qs, http://api.jquery.com/jquery.param/)
|
|
156
|
-
paramsSerializer: function (params) {
|
|
157
|
-
// Nested get params [][][,,,] do not serialize correctly without Qs
|
|
158
|
-
return Qs.stringify(params, { arrayFormat: 'indices', indices: true, skipNulls: false, strictNullHandling: true });
|
|
159
|
-
},
|
|
160
|
-
// `data` is the data to be sent as the request body
|
|
161
|
-
// Only applicable for request methods 'PUT', 'POST', and 'PATCH'
|
|
162
|
-
// When no `transformRequest` is set, must be of one of the following types:
|
|
163
|
-
// - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
|
|
164
|
-
// - Browser only: FormData, File, Blob
|
|
165
|
-
// - Node only: Stream, Buffer
|
|
166
|
-
// data should be default to empty for get request to serialize correctly
|
|
167
|
-
data: {},
|
|
168
|
-
// `timeout` specifies the number of milliseconds before the request times out.
|
|
169
|
-
// If the request takes longer than `timeout`, the request will be aborted.
|
|
170
|
-
// Default is 1000, this will fail for DIG
|
|
171
|
-
timeout: 120000,
|
|
172
|
-
// `withCredentials` indicates weather cross-site Access-Control requests
|
|
173
|
-
// should be made using credentials
|
|
174
|
-
withCredentials: true,
|
|
175
|
-
// `adapter` allows custom handling of requests which makes testing easier.
|
|
176
|
-
// Return a promise and supply a valid response (see lib/adapters/README.md).
|
|
177
|
-
// adapter: cache.adapter,
|
|
178
|
-
// `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
|
|
179
|
-
// This will set an `Authorization` header, overwriting any existing
|
|
180
|
-
// `Authorization` custom headers you have set using `headers`.
|
|
181
|
-
/*
|
|
182
|
-
auth: {
|
|
183
|
-
username: 'janedoe',
|
|
184
|
-
password: 's00pers3cret'
|
|
185
|
-
},
|
|
186
|
-
*/
|
|
187
|
-
// `responseType` indicates the type of data that the server will respond with
|
|
188
|
-
// options are 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream'
|
|
189
|
-
// responseType: 'json', // default
|
|
190
|
-
// `responseEncoding` indicates encoding to use for decoding responses
|
|
191
|
-
// Note: Ignored for `responseType` of 'stream' or client-side requests
|
|
192
|
-
// `xsrfCookieName` is the name of the cookie to use as a value for xsrf token
|
|
193
|
-
//xsrfCookieName: 'XSRF-TOKEN', // default
|
|
194
|
-
// `xsrfHeaderName` is the name of the http header that carries the xsrf token value
|
|
195
|
-
//xsrfHeaderName: 'X-XSRF-TOKEN', // default
|
|
196
|
-
// `onUploadProgress` allows handling of progress events for uploads
|
|
197
|
-
onUploadProgress: function () {
|
|
198
|
-
// Do whatever you want with the native progress event
|
|
199
|
-
},
|
|
200
|
-
// `onDownloadProgress` allows handling of progress events for downloads
|
|
201
|
-
onDownloadProgress: function () {
|
|
202
|
-
// Do whatever you want with the native progress event
|
|
203
|
-
},
|
|
204
|
-
// `maxContentLength` defines the max size of the http response content in bytes allowed
|
|
205
|
-
/*maxContentLength: 2000,*/
|
|
206
|
-
// `validateStatus` defines whether to resolve or reject the promise for a given
|
|
207
|
-
// HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
|
|
208
|
-
// or `undefined`), the promise will be resolved; otherwise, the promise will be
|
|
209
|
-
// rejected.
|
|
210
|
-
/* validateStatus: function (status) {
|
|
211
|
-
return status >= 200 && status < 300;
|
|
212
|
-
},*/
|
|
213
|
-
// `maxRedirects` defines the maximum number of redirects to follow in node.js.
|
|
214
|
-
// If set to 0, no redirects will be followed.
|
|
215
|
-
maxRedirects: 2,
|
|
216
|
-
// `socketPath` defines a UNIX Socket to be used in node.js.
|
|
217
|
-
// e.g. '/var/run/docker.sock' to send requests to the docker daemon.
|
|
218
|
-
// Only either `socketPath` or `proxy` can be specified.
|
|
219
|
-
// If both are specified, `socketPath` is used.
|
|
220
|
-
socketPath: null, // default
|
|
221
|
-
// `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
|
|
222
|
-
// and https requests, respectively, in node.js. This allows options to be added like
|
|
223
|
-
// `keepAlive` that are not enabled by default.
|
|
224
|
-
/*
|
|
225
|
-
httpAgent: new http.Agent({ keepAlive: true }),
|
|
226
|
-
httpsAgent: new https.Agent({ keepAlive: true }),
|
|
227
|
-
*/
|
|
228
|
-
}));
|
|
229
|
-
|
|
230
|
-
/******************************************************************************
|
|
231
|
-
Copyright (c) Microsoft Corporation.
|
|
232
|
-
|
|
233
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
234
|
-
purpose with or without fee is hereby granted.
|
|
235
|
-
|
|
236
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
237
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
238
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
239
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
240
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
241
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
242
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
243
|
-
***************************************************************************** */
|
|
244
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
var __assign = function() {
|
|
248
|
-
__assign = Object.assign || function __assign(t) {
|
|
249
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
250
|
-
s = arguments[i];
|
|
251
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
252
|
-
}
|
|
253
|
-
return t;
|
|
254
|
-
};
|
|
255
|
-
return __assign.apply(this, arguments);
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
259
|
-
var e = new Error(message);
|
|
260
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
function convertForRequestBody (restfulObject, tableName, C6, regexErrorHandler) {
|
|
264
|
-
if (regexErrorHandler === void 0) { regexErrorHandler = alert; }
|
|
265
|
-
var payload = {};
|
|
266
|
-
var tableNames = Array.isArray(tableName) ? tableName : [tableName];
|
|
267
|
-
tableNames.forEach(function (table) {
|
|
268
|
-
if (!(table in C6)) {
|
|
269
|
-
console.error("Table name (".concat(table, ") is not found in the C6 object."), C6);
|
|
270
|
-
throw new Error("Table name (".concat(table, ") is not found in the C6 object."));
|
|
271
|
-
}
|
|
272
|
-
if (undefined === C6[table]) {
|
|
273
|
-
console.log("Table name (".concat(table, ") exists but is undefined in the C6 object. This is unexpected."));
|
|
274
|
-
throw new Error("Table name (".concat(table, ") exists but is undefined in the C6 object. This is unexpected."));
|
|
275
|
-
}
|
|
276
|
-
Object.keys(restfulObject).forEach(function (value) {
|
|
277
|
-
var _a;
|
|
278
|
-
var shortReference = value.toUpperCase();
|
|
279
|
-
switch (value) {
|
|
280
|
-
case C6Constants.GET:
|
|
281
|
-
case C6Constants.POST:
|
|
282
|
-
case C6Constants.UPDATE:
|
|
283
|
-
case C6Constants.REPLACE:
|
|
284
|
-
case C6Constants.DELETE:
|
|
285
|
-
case C6Constants.WHERE:
|
|
286
|
-
case C6Constants.JOIN:
|
|
287
|
-
case C6Constants.PAGINATION:
|
|
288
|
-
if (Array.isArray(restfulObject[value])) {
|
|
289
|
-
payload[value] = restfulObject[value].sort();
|
|
290
|
-
}
|
|
291
|
-
else if (typeof restfulObject[value] === 'object' && restfulObject[value] !== null) {
|
|
292
|
-
payload[value] = Object.keys(restfulObject[value])
|
|
293
|
-
.sort()
|
|
294
|
-
.reduce(function (acc, key) {
|
|
295
|
-
var _a;
|
|
296
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[key] = restfulObject[value][key], _a)));
|
|
297
|
-
}, {});
|
|
298
|
-
}
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
if (shortReference in C6[table]) {
|
|
302
|
-
var longName_1 = C6[table][shortReference];
|
|
303
|
-
payload[longName_1] = restfulObject[value];
|
|
304
|
-
var regexValidations_1 = C6[table].REGEX_VALIDATION[longName_1];
|
|
305
|
-
if (regexValidations_1 instanceof RegExp) {
|
|
306
|
-
if (false === regexValidations_1.test(restfulObject[value])) {
|
|
307
|
-
regexErrorHandler('Failed to match regex (' + regexValidations_1 + ') for column (' + longName_1 + ')');
|
|
308
|
-
throw Error('Failed to match regex (' + regexValidations_1 + ') for column (' + longName_1 + ')');
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
else if (typeof regexValidations_1 === 'object' && regexValidations_1 !== null) {
|
|
312
|
-
(_a = Object.keys(regexValidations_1)) === null || _a === void 0 ? void 0 : _a.forEach(function (errorMessage) {
|
|
313
|
-
var regex = regexValidations_1[errorMessage];
|
|
314
|
-
if (false === regex.test(restfulObject[value])) {
|
|
315
|
-
var devErrorMessage = 'Failed to match regex (' + regex + ') for column (' + longName_1 + ')';
|
|
316
|
-
regexErrorHandler(errorMessage !== null && errorMessage !== void 0 ? errorMessage : devErrorMessage);
|
|
317
|
-
throw Error(devErrorMessage);
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
return true;
|
|
324
|
-
});
|
|
325
|
-
return Object.keys(payload)
|
|
326
|
-
.sort()
|
|
327
|
-
.reduce(function (acc, key) {
|
|
328
|
-
var _a;
|
|
329
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[key] = payload[key], _a)));
|
|
330
|
-
}, {});
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
var isLocal = process.env.NODE_ENV === 'development';
|
|
334
|
-
|
|
335
|
-
var isTest = process.env.JEST_WORKER_ID !== undefined || process.env.NODE_ENV === 'test';
|
|
336
|
-
|
|
337
|
-
var isVerbose = process.env.REACT_APP_VERBOSE === 'true';
|
|
338
|
-
|
|
339
|
-
var toastOptions = {
|
|
340
|
-
position: "bottom-left",
|
|
341
|
-
autoClose: 10000,
|
|
342
|
-
hideProgressBar: false,
|
|
343
|
-
closeOnClick: true,
|
|
344
|
-
pauseOnHover: true,
|
|
345
|
-
draggable: true,
|
|
346
|
-
theme: "dark",
|
|
347
|
-
};
|
|
348
|
-
var toastOptionsDevs = {
|
|
349
|
-
position: "bottom-right",
|
|
350
|
-
autoClose: 3000,
|
|
351
|
-
hideProgressBar: false,
|
|
352
|
-
closeOnClick: true,
|
|
353
|
-
pauseOnHover: true,
|
|
354
|
-
draggable: true,
|
|
355
|
-
theme: "dark",
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
// When we capture DropExceptions and display them as a custom page, this will change.
|
|
359
|
-
function TestRestfulResponse(response, success, error) {
|
|
360
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
361
|
-
if (undefined === ((_a = response.data) === null || _a === void 0 ? void 0 : _a['ERROR TYPE'])
|
|
362
|
-
&& (undefined !== ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.rest)
|
|
363
|
-
|| undefined !== ((_c = response.data) === null || _c === void 0 ? void 0 : _c.created)
|
|
364
|
-
|| undefined !== ((_d = response.data) === null || _d === void 0 ? void 0 : _d.updated)
|
|
365
|
-
|| undefined !== ((_e = response.data) === null || _e === void 0 ? void 0 : _e.deleted))) {
|
|
366
|
-
var successReturn = 'function' === typeof success ? success === null || success === void 0 ? void 0 : success(response) : success;
|
|
367
|
-
if (typeof successReturn === 'string') {
|
|
368
|
-
reactToastify.toast.success(successReturn, toastOptions);
|
|
369
|
-
}
|
|
370
|
-
// this could end up with bad results for deleting id's === 0
|
|
371
|
-
return (_h = (_g = (_f = response.data.created) !== null && _f !== void 0 ? _f : response.data.updated) !== null && _g !== void 0 ? _g : response.data.deleted) !== null && _h !== void 0 ? _h : true;
|
|
372
|
-
}
|
|
373
|
-
var errorReturn = 'function' === typeof error ? error === null || error === void 0 ? void 0 : error(response) : error;
|
|
374
|
-
if (typeof errorReturn === 'string') {
|
|
375
|
-
reactToastify.toast.error(errorReturn, toastOptions);
|
|
376
|
-
}
|
|
377
|
-
return false;
|
|
378
|
-
}
|
|
379
|
-
function removeInvalidKeys(request, c6Tables) {
|
|
380
|
-
var intersection = {};
|
|
381
|
-
var restfulObjectKeys = [];
|
|
382
|
-
var tableList = Object.values(c6Tables);
|
|
383
|
-
tableList.forEach(function (table) { return Object.values(table.COLUMNS).forEach(function (column) {
|
|
384
|
-
if (false === restfulObjectKeys.includes(column)) {
|
|
385
|
-
restfulObjectKeys.push(column);
|
|
386
|
-
}
|
|
387
|
-
}); });
|
|
388
|
-
Object.keys(request).forEach(function (key) {
|
|
389
|
-
if (restfulObjectKeys.includes(key)) {
|
|
390
|
-
intersection[key] = request[key];
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
isTest || console.log('intersection', intersection);
|
|
394
|
-
return intersection;
|
|
395
|
-
}
|
|
396
|
-
// do not remove entries from this array. It is used to track the progress of API requests.
|
|
397
|
-
// position in array is important. Do not sort. To not add to begging.
|
|
398
|
-
var apiRequestCache = [];
|
|
399
|
-
var userCustomClearCache = [];
|
|
400
|
-
function checkAllRequestsComplete() {
|
|
401
|
-
var stillRunning = apiRequestCache.filter(function (cache) { return undefined === cache.response; });
|
|
402
|
-
if (stillRunning.length !== 0) {
|
|
403
|
-
if (document === null || document === undefined) {
|
|
404
|
-
throw new Error('document is undefined while waiting for API requests to complete (' + JSON.stringify(apiRequestCache) + ')');
|
|
405
|
-
}
|
|
406
|
-
// when requests return emtpy sets in full renders, it may not be possible to track their progress.
|
|
407
|
-
console.warn('stillRunning...', stillRunning);
|
|
408
|
-
return stillRunning.map(function (cache) { return cache.requestArgumentsSerialized; });
|
|
409
|
-
}
|
|
410
|
-
return true;
|
|
411
|
-
}
|
|
412
|
-
function checkCache(cacheResult, requestMethod, tableName, request) {
|
|
413
|
-
var _a, _b, _c;
|
|
414
|
-
if (undefined === (cacheResult === null || cacheResult === void 0 ? void 0 : cacheResult.response)) {
|
|
415
|
-
console.groupCollapsed('%c API: The request on (' + tableName + ') is in cache and the response is undefined. The request has not finished. Returning the request Promise!', 'color: #0c0');
|
|
416
|
-
console.log('%c ' + requestMethod + ' ' + tableName, 'color: #0c0');
|
|
417
|
-
console.log('%c Request Data (note you may see the success and/or error prompt):', 'color: #0c0', request);
|
|
418
|
-
console.groupEnd();
|
|
419
|
-
return cacheResult.request;
|
|
420
|
-
}
|
|
421
|
-
if (true === (cacheResult === null || cacheResult === void 0 ? void 0 : cacheResult.final)) {
|
|
422
|
-
if (false === isTest || true === isVerbose) {
|
|
423
|
-
console.groupCollapsed('%c API: rest api cache has reached the final result. Returning undefined!', 'color: #cc0');
|
|
424
|
-
console.log('%c ' + requestMethod + ' ' + tableName, 'color: #cc0');
|
|
425
|
-
console.log('%c Request Data (note you may see the success and/or error prompt):', 'color: #cc0', request);
|
|
426
|
-
console.log('%c Response Data:', 'color: #cc0', ((_b = (_a = cacheResult === null || cacheResult === void 0 ? void 0 : cacheResult.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.rest) || ((_c = cacheResult === null || cacheResult === void 0 ? void 0 : cacheResult.response) === null || _c === void 0 ? void 0 : _c.data) || (cacheResult === null || cacheResult === void 0 ? void 0 : cacheResult.response));
|
|
427
|
-
console.groupEnd();
|
|
428
|
-
}
|
|
429
|
-
return undefined;
|
|
430
|
-
}
|
|
431
|
-
return false;
|
|
432
|
-
}
|
|
433
|
-
function sortAndSerializeQueryObject(tables, query) {
|
|
434
|
-
var orderedQuery = Object.keys(query).sort().reduce(function (obj, key) {
|
|
435
|
-
obj[key] = query[key];
|
|
436
|
-
return obj;
|
|
437
|
-
}, {});
|
|
438
|
-
return tables + ' ' + JSON.stringify(orderedQuery);
|
|
439
|
-
}
|
|
440
|
-
function clearCache(props) {
|
|
441
|
-
if (false === (props === null || props === void 0 ? void 0 : props.ignoreWarning)) {
|
|
442
|
-
console.warn('The rest api clearCache should only be used with extreme care! Avoid using this in favor of using `cacheResults : boolean`.');
|
|
443
|
-
}
|
|
444
|
-
userCustomClearCache.map(function (f) { return 'function' === typeof f && f(); });
|
|
445
|
-
userCustomClearCache = apiRequestCache = [];
|
|
446
|
-
}
|
|
447
|
-
/**
|
|
448
|
-
* the first argument ....
|
|
449
|
-
*
|
|
450
|
-
* Our api returns a zero argument function iff the method is get and the previous request reached the predefined limit.
|
|
451
|
-
* This function can be aliased as GetNextPageOfResults(). If the end is reached undefined will be returned.
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
* For POST, PUT, and DELETE requests one can expect the primary key of the new or modified index, or a boolean success
|
|
455
|
-
* indication if no primary key exists.
|
|
456
|
-
**/
|
|
457
|
-
var POST = 'POST';
|
|
458
|
-
var PUT = 'PUT';
|
|
459
|
-
var GET = 'GET';
|
|
460
|
-
var DELETE = 'DELETE';
|
|
461
|
-
function isPromise(x) {
|
|
462
|
-
return Object(x).constructor === Promise;
|
|
463
|
-
}
|
|
464
|
-
function extendedTypeHints() {
|
|
465
|
-
return function (argv) { return restApi(argv); };
|
|
466
|
-
}
|
|
467
|
-
function restApi(_a) {
|
|
468
|
-
var C6 = _a.C6, _b = _a.axios, axios = _b === void 0 ? axiosInstance : _b, _c = _a.restURL, restURL = _c === void 0 ? '/rest/' : _c, tableName = _a.tableName, _d = _a.requestMethod, requestMethod = _d === void 0 ? GET : _d, _e = _a.queryCallback, queryCallback = _e === void 0 ? {} : _e, responseCallback = _a.responseCallback, _f = _a.skipPrimaryCheck, skipPrimaryCheck = _f === void 0 ? false : _f, _g = _a.clearCache, clearCache = _g === void 0 ? undefined : _g;
|
|
469
|
-
var fullTableList = Array.isArray(tableName) ? tableName : [tableName];
|
|
470
|
-
var operatingTable = fullTableList[0];
|
|
471
|
-
var tables = fullTableList.join(',');
|
|
472
|
-
switch (requestMethod) {
|
|
473
|
-
case GET:
|
|
474
|
-
case POST:
|
|
475
|
-
case PUT:
|
|
476
|
-
case DELETE:
|
|
477
|
-
break;
|
|
478
|
-
default:
|
|
479
|
-
throw Error('Bad request method passed to getApi');
|
|
480
|
-
}
|
|
481
|
-
if (null !== clearCache || undefined !== clearCache) {
|
|
482
|
-
userCustomClearCache[tables + requestMethod] = clearCache;
|
|
483
|
-
}
|
|
484
|
-
return function (request) {
|
|
485
|
-
if (request === void 0) { request = {}; }
|
|
486
|
-
// an undefined query would indicate queryCallback returned undefined,
|
|
487
|
-
// thus the request shouldn't fire as is in custom cache
|
|
488
|
-
var query;
|
|
489
|
-
if ('function' === typeof queryCallback) {
|
|
490
|
-
query = queryCallback(request); // obj or obj[]
|
|
491
|
-
}
|
|
492
|
-
else {
|
|
493
|
-
query = queryCallback;
|
|
494
|
-
}
|
|
495
|
-
if (undefined === query || null === query) {
|
|
496
|
-
if (request.debug && isLocal) {
|
|
497
|
-
reactToastify.toast.warning("DEV: queryCallback returned undefined, signaling in Custom Cache. (returning null)", toastOptionsDevs);
|
|
498
|
-
}
|
|
499
|
-
console.groupCollapsed('%c API: (' + requestMethod + ') Request Query for (' + operatingTable + ') undefined, returning null (will not fire ajax)!', 'color: #c00');
|
|
500
|
-
console.log('%c Returning (undefined|null) for a query would indicate a custom cache hit (outside API.tsx), thus the request should not fire.', 'color: #c00');
|
|
501
|
-
console.trace();
|
|
502
|
-
console.groupEnd();
|
|
503
|
-
return null;
|
|
504
|
-
}
|
|
505
|
-
if (C6.GET === requestMethod) {
|
|
506
|
-
if (undefined === query[C6.PAGINATION]) {
|
|
507
|
-
query[C6.PAGINATION] = {};
|
|
508
|
-
}
|
|
509
|
-
query[C6.PAGINATION][C6.PAGE] = query[C6.PAGINATION][C6.PAGE] || 1;
|
|
510
|
-
query[C6.PAGINATION][C6.LIMIT] = query[C6.PAGINATION][C6.LIMIT] || 100;
|
|
511
|
-
}
|
|
512
|
-
// this could return itself with a new page number, or undefined if the end is reached
|
|
513
|
-
function apiRequest() {
|
|
514
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
515
|
-
(_a = request.cacheResults) !== null && _a !== void 0 ? _a : (request.cacheResults = C6.GET === requestMethod);
|
|
516
|
-
if (C6.GET === requestMethod
|
|
517
|
-
&& undefined !== ((_b = query === null || query === void 0 ? void 0 : query[C6.PAGINATION]) === null || _b === void 0 ? void 0 : _b[C6.PAGE])
|
|
518
|
-
&& 1 !== query[C6.PAGINATION][C6.PAGE]) {
|
|
519
|
-
console.groupCollapsed('Request on table (' + tableName + ') is firing for page (' + query[C6.PAGINATION][C6.PAGE] + '), please wait!');
|
|
520
|
-
console.log('Request Data (note you may see the success and/or error prompt):', request);
|
|
521
|
-
console.trace();
|
|
522
|
-
console.groupEnd();
|
|
523
|
-
}
|
|
524
|
-
// The problem with creating cache keys with a stringified object is the order of keys matters and it's possible for the same query to be stringified differently.
|
|
525
|
-
// Here we ensure the key order will be identical between two of the same requests. https://stackoverflow.com/questions/5467129/sort-javascript-object-by-key
|
|
526
|
-
// literally impossible for query to be undefined or null here but the editor is too busy licking windows to understand that
|
|
527
|
-
var querySerialized = sortAndSerializeQueryObject(tables, query !== null && query !== void 0 ? query : {});
|
|
528
|
-
var cacheResult = apiRequestCache.find(function (cache) { return cache.requestArgumentsSerialized === querySerialized; });
|
|
529
|
-
var cachingConfirmed = false;
|
|
530
|
-
// determine if we need to paginate.
|
|
531
|
-
if (requestMethod === C6.GET) {
|
|
532
|
-
if (undefined === (query === null || query === void 0 ? void 0 : query[C6.PAGINATION])) {
|
|
533
|
-
if (undefined === query || null === query) {
|
|
534
|
-
query = {};
|
|
535
|
-
}
|
|
536
|
-
query[C6.PAGINATION] = {};
|
|
537
|
-
}
|
|
538
|
-
query[C6.PAGINATION][C6.PAGE] = query[C6.PAGINATION][C6.PAGE] || 1;
|
|
539
|
-
query[C6.PAGINATION][C6.LIMIT] = query[C6.PAGINATION][C6.LIMIT] || 100;
|
|
540
|
-
// this will evaluate true most the time
|
|
541
|
-
if (true === request.cacheResults) {
|
|
542
|
-
// just find the next, non-fetched, page and return a function to request it
|
|
543
|
-
if (undefined !== cacheResult) {
|
|
544
|
-
do {
|
|
545
|
-
var cacheCheck = checkCache(cacheResult, requestMethod, tableName, request);
|
|
546
|
-
if (false !== cacheCheck) {
|
|
547
|
-
return cacheCheck;
|
|
548
|
-
}
|
|
549
|
-
// this line incrementing page is why we return recursively
|
|
550
|
-
++query[C6.PAGINATION][C6.PAGE];
|
|
551
|
-
// this json stringify is to capture the new page number
|
|
552
|
-
querySerialized = sortAndSerializeQueryObject(tables, query !== null && query !== void 0 ? query : {});
|
|
553
|
-
cacheResult = apiRequestCache.find(function (cache) { return cache.requestArgumentsSerialized === querySerialized; });
|
|
554
|
-
} while (undefined !== cacheResult);
|
|
555
|
-
if (request.debug && isLocal) {
|
|
556
|
-
reactToastify.toast.warning("DEVS: Request in cache. (" + apiRequestCache.findIndex(function (cache) { return cache.requestArgumentsSerialized === querySerialized; }) + "). Returning function to request page (" + query[C6.PAGINATION][C6.PAGE] + ")", toastOptionsDevs);
|
|
557
|
-
}
|
|
558
|
-
// @ts-ignore - this is an incorrect warning on TS, it's well typed
|
|
559
|
-
return apiRequest;
|
|
560
|
-
}
|
|
561
|
-
cachingConfirmed = true;
|
|
562
|
-
}
|
|
563
|
-
else {
|
|
564
|
-
if (request.debug && isLocal) {
|
|
565
|
-
reactToastify.toast.info("DEVS: Ignore cache was set to true.", toastOptionsDevs);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
if (request.debug && isLocal) {
|
|
569
|
-
reactToastify.toast.success("DEVS: Request not in cache." + (requestMethod === C6.GET ? "Page (" + query[C6.PAGINATION][C6.PAGE] + ")." : '') + " Logging cache 2 console.", toastOptionsDevs);
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
else if (request.cacheResults) { // if we are not getting, we are updating, deleting, or inserting
|
|
573
|
-
if (cacheResult) {
|
|
574
|
-
var cacheCheck = checkCache(cacheResult, requestMethod, tableName, request);
|
|
575
|
-
if (false !== cacheCheck) {
|
|
576
|
-
return cacheCheck;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
cachingConfirmed = true;
|
|
580
|
-
// push to cache so we do not repeat the request
|
|
581
|
-
}
|
|
582
|
-
var addBackPK;
|
|
583
|
-
var apiResponse;
|
|
584
|
-
var returnGetNextPageFunction = false;
|
|
585
|
-
var restRequestUri = restURL + operatingTable + '/';
|
|
586
|
-
var needsConditionOrPrimaryCheck = (PUT === requestMethod || DELETE === requestMethod)
|
|
587
|
-
&& false === skipPrimaryCheck;
|
|
588
|
-
var TABLES = C6.TABLES;
|
|
589
|
-
// todo - aggregate primary key check with condition check
|
|
590
|
-
// check if PK exists in query, clone so pop does not affect the real data
|
|
591
|
-
var primaryKey = (_f = (_e = (_d = structuredClone((_c = TABLES[operatingTable]) === null || _c === void 0 ? void 0 : _c.PRIMARY)) === null || _d === void 0 ? void 0 : _d.pop()) === null || _e === void 0 ? void 0 : _e.split('.')) === null || _f === void 0 ? void 0 : _f.pop();
|
|
592
|
-
if (needsConditionOrPrimaryCheck) {
|
|
593
|
-
if (undefined === primaryKey) {
|
|
594
|
-
if (null === query
|
|
595
|
-
|| undefined === query
|
|
596
|
-
|| undefined === (query === null || query === void 0 ? void 0 : query[C6.WHERE])
|
|
597
|
-
|| (true === Array.isArray(query[C6.WHERE])
|
|
598
|
-
|| query[C6.WHERE].length === 0)
|
|
599
|
-
|| (Object.keys(query === null || query === void 0 ? void 0 : query[C6.WHERE]).length === 0)) {
|
|
600
|
-
console.error(query);
|
|
601
|
-
throw Error('Failed to parse primary key information(' + JSON.stringify(query) + JSON.stringify(primaryKey) + ')' + JSON.stringify((_g = TABLES[operatingTable]) === null || _g === void 0 ? void 0 : _g.PRIMARY) + ' for table (' + operatingTable + ').');
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
if (undefined === query
|
|
606
|
-
|| null === query
|
|
607
|
-
|| false === primaryKey in query) {
|
|
608
|
-
if (true === request.debug && isLocal) {
|
|
609
|
-
reactToastify.toast.error('DEVS: The primary key (' + primaryKey + ') was not provided!!');
|
|
610
|
-
}
|
|
611
|
-
throw Error('You must provide the primary key (' + primaryKey + ') for table (' + operatingTable + '). Request (' + JSON.stringify(request, undefined, 4) + ') Query (' + JSON.stringify(query) + ')');
|
|
612
|
-
}
|
|
613
|
-
if (undefined === (query === null || query === void 0 ? void 0 : query[primaryKey])
|
|
614
|
-
|| null === (query === null || query === void 0 ? void 0 : query[primaryKey])) {
|
|
615
|
-
reactToastify.toast.error('The primary key (' + primaryKey + ') provided is undefined or null explicitly!!');
|
|
616
|
-
throw Error('The primary key (' + primaryKey + ') provided in the request was exactly equal to undefined.');
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
// todo - remove
|
|
621
|
-
if (undefined !== query
|
|
622
|
-
&& null !== query
|
|
623
|
-
&& undefined !== primaryKey
|
|
624
|
-
&& primaryKey in query) {
|
|
625
|
-
restRequestUri += query[primaryKey] + '/';
|
|
626
|
-
var removedPkValue_1 = query[primaryKey];
|
|
627
|
-
addBackPK = function () {
|
|
628
|
-
query !== null && query !== void 0 ? query : (query = {});
|
|
629
|
-
query[primaryKey] = removedPkValue_1;
|
|
630
|
-
};
|
|
631
|
-
delete query[primaryKey];
|
|
632
|
-
}
|
|
633
|
-
try {
|
|
634
|
-
console.groupCollapsed('%c API: (' + requestMethod + ') Request Query for (' + operatingTable + ') is about to fire, will return with promise!', 'color: #A020F0');
|
|
635
|
-
console.log(request);
|
|
636
|
-
console.log('%c If this is the first request for this datatype; thus the value being set is currently undefined, please remember to update the state to null.', 'color: #A020F0');
|
|
637
|
-
console.log('%c Remember undefined indicated the request has not fired, null indicates the request is firing, an empty array would signal no data was returned for the sql stmt.', 'color: #A020F0');
|
|
638
|
-
console.trace();
|
|
639
|
-
console.groupEnd();
|
|
640
|
-
var axiosActiveRequest = axios[requestMethod.toLowerCase()](restRequestUri, (function () {
|
|
641
|
-
// we had removed the value from the request to add to the URI.
|
|
642
|
-
addBackPK === null || addBackPK === void 0 ? void 0 : addBackPK(); // adding back so post-processing methods work
|
|
643
|
-
if (requestMethod === GET) {
|
|
644
|
-
return {
|
|
645
|
-
params: query
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
else if (requestMethod === POST) {
|
|
649
|
-
if (undefined !== (request === null || request === void 0 ? void 0 : request.dataInsertMultipleRows)) {
|
|
650
|
-
return request.dataInsertMultipleRows.map(function (data) {
|
|
651
|
-
return convertForRequestBody(data, fullTableList, C6, function (message) { return reactToastify.toast.error(message, toastOptions); });
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
return convertForRequestBody(query, fullTableList, C6, function (message) { return reactToastify.toast.error(message, toastOptions); });
|
|
655
|
-
}
|
|
656
|
-
else if (requestMethod === PUT) {
|
|
657
|
-
return convertForRequestBody(query, fullTableList, C6, function (message) { return reactToastify.toast.error(message, toastOptions); });
|
|
658
|
-
}
|
|
659
|
-
else if (requestMethod === DELETE) {
|
|
660
|
-
return {
|
|
661
|
-
data: convertForRequestBody(query, fullTableList, C6, function (message) { return reactToastify.toast.error(message, toastOptions); })
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
else {
|
|
665
|
-
throw new Error('The request method (' + requestMethod + ') was not recognized.');
|
|
666
|
-
}
|
|
667
|
-
})());
|
|
668
|
-
if (cachingConfirmed) {
|
|
669
|
-
// push to cache so we do not repeat the request
|
|
670
|
-
apiRequestCache.push({
|
|
671
|
-
requestArgumentsSerialized: querySerialized,
|
|
672
|
-
request: axiosActiveRequest
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
// https://rapidapi.com/guides/axios-async-await
|
|
676
|
-
return axiosActiveRequest.then(function (response) {
|
|
677
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
678
|
-
if (typeof response.data === 'string') {
|
|
679
|
-
if (isTest) {
|
|
680
|
-
console.trace();
|
|
681
|
-
throw new Error('The response data was a string this typically indicated html was sent. Make sure all cookies (' + JSON.stringify(response.config.headers) + ') needed are present! (' + response.data + ')');
|
|
682
|
-
}
|
|
683
|
-
return Promise.reject(response);
|
|
684
|
-
}
|
|
685
|
-
apiResponse = TestRestfulResponse(response, request === null || request === void 0 ? void 0 : request.success, (_a = request === null || request === void 0 ? void 0 : request.error) !== null && _a !== void 0 ? _a : "An unexpected API error occurred!");
|
|
686
|
-
if (false !== apiResponse) {
|
|
687
|
-
responseCallback(response, request, apiResponse);
|
|
688
|
-
if (C6.GET === requestMethod) {
|
|
689
|
-
var responseData = response.data;
|
|
690
|
-
// @ts-ignore
|
|
691
|
-
returnGetNextPageFunction = 1 !== ((_b = query === null || query === void 0 ? void 0 : query[C6.PAGINATION]) === null || _b === void 0 ? void 0 : _b[C6.LIMIT]) &&
|
|
692
|
-
((_c = query === null || query === void 0 ? void 0 : query[C6.PAGINATION]) === null || _c === void 0 ? void 0 : _c[C6.LIMIT]) === responseData.rest.length;
|
|
693
|
-
if (false === isTest || true === isVerbose) {
|
|
694
|
-
console.groupCollapsed('%c API: Response returned length (' + ((_d = responseData.rest) === null || _d === void 0 ? void 0 : _d.length) + ') of possible (' + ((_e = query === null || query === void 0 ? void 0 : query[C6.PAGINATION]) === null || _e === void 0 ? void 0 : _e[C6.LIMIT]) + ') limit!', 'color: #0c0');
|
|
695
|
-
console.log('%c ' + requestMethod + ' ' + tableName, 'color: #0c0');
|
|
696
|
-
console.log('%c Request Data (note you may see the success and/or error prompt):', 'color: #0c0', request);
|
|
697
|
-
console.log('%c Response Data:', 'color: #0c0', responseData.rest);
|
|
698
|
-
console.log('%c Will return get next page function:' + (1 !== ((_f = query === null || query === void 0 ? void 0 : query[C6.PAGINATION]) === null || _f === void 0 ? void 0 : _f[C6.LIMIT]) ? '' : ' (Will not return with explicit limit 1 set)'), 'color: #0c0', true === returnGetNextPageFunction);
|
|
699
|
-
console.trace();
|
|
700
|
-
console.groupEnd();
|
|
701
|
-
}
|
|
702
|
-
if (false === returnGetNextPageFunction
|
|
703
|
-
&& true === request.debug
|
|
704
|
-
&& isLocal) {
|
|
705
|
-
reactToastify.toast.success("DEVS: Response returned length (" + ((_g = responseData.rest) === null || _g === void 0 ? void 0 : _g.length) + ") less than limit (" + ((_h = query === null || query === void 0 ? void 0 : query[C6.PAGINATION]) === null || _h === void 0 ? void 0 : _h[C6.LIMIT]) + ").", toastOptionsDevs);
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
if (cachingConfirmed) {
|
|
710
|
-
var cacheIndex = apiRequestCache.findIndex(function (cache) { return cache.requestArgumentsSerialized === querySerialized; });
|
|
711
|
-
apiRequestCache[cacheIndex].final = false === returnGetNextPageFunction;
|
|
712
|
-
// only cache get method requests
|
|
713
|
-
apiRequestCache[cacheIndex].response = response;
|
|
714
|
-
}
|
|
715
|
-
if (request.debug && isLocal) {
|
|
716
|
-
reactToastify.toast.success("DEVS: (" + requestMethod + ") request complete.", toastOptionsDevs);
|
|
717
|
-
}
|
|
718
|
-
return response;
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
|
-
catch (error) {
|
|
722
|
-
if (isTest) {
|
|
723
|
-
throw new Error(JSON.stringify(error));
|
|
724
|
-
}
|
|
725
|
-
console.groupCollapsed('%c API: An error occurred in the try catch block. returning null!', 'color: #ff0000');
|
|
726
|
-
console.log('%c ' + requestMethod + ' ' + tableName, 'color: #A020F0');
|
|
727
|
-
console.warn(error);
|
|
728
|
-
console.trace();
|
|
729
|
-
console.groupEnd();
|
|
730
|
-
TestRestfulResponse(error, request === null || request === void 0 ? void 0 : request.success, (request === null || request === void 0 ? void 0 : request.error) || "An restful API error occurred!");
|
|
731
|
-
return null;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
return apiRequest();
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
exports.C6Constants = C6Constants;
|
|
739
|
-
exports.DELETE = DELETE;
|
|
740
|
-
exports.GET = GET;
|
|
741
|
-
exports.POST = POST;
|
|
742
|
-
exports.PUT = PUT;
|
|
743
|
-
exports.TestRestfulResponse = TestRestfulResponse;
|
|
744
|
-
exports.axiosInstance = axiosInstance;
|
|
745
|
-
exports.checkAllRequestsComplete = checkAllRequestsComplete;
|
|
746
|
-
exports.clearCache = clearCache;
|
|
747
|
-
exports.convertForRequestBody = convertForRequestBody;
|
|
748
|
-
exports.extendedTypeHints = extendedTypeHints;
|
|
749
|
-
exports.isLocal = isLocal;
|
|
750
|
-
exports.isPromise = isPromise;
|
|
751
|
-
exports.isTest = isTest;
|
|
752
|
-
exports.isVerbose = isVerbose;
|
|
753
|
-
exports.removeInvalidKeys = removeInvalidKeys;
|
|
754
|
-
exports.restRequest = restApi;
|
|
755
|
-
exports.toastOptions = toastOptions;
|
|
756
|
-
exports.toastOptionsDevs = toastOptionsDevs;
|
|
757
|
-
|
|
758
|
-
}));
|
|
759
|
-
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/api/C6Constants.ts","../src/api/axiosInstance.ts","../node_modules/tslib/tslib.es6.js","../src/api/convertForRequestBody.ts","../src/variables/isLocal.ts","../src/variables/isTest.ts","../src/variables/isVerbose.ts","../src/variables/toastOptions.ts","../src/api/restRequest.ts"],"sourcesContent":[null,null,"/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,null,null,null,null,null],"names":["toast"],"mappings":";;;;;;AACa,QAAA,WAAW,GAAG;;IAGvB,IAAA,OAAO,EAAE,SAAS;IAClB,IAAA,OAAO,EAAE,SAAS;IAClB,IAAA,EAAE,EAAE,IAAI;IACR,IAAA,GAAG,EAAE,KAAK;IAEV,IAAA,OAAO,EAAE,SAAS;IAElB,IAAA,MAAM,EAAE,QAAQ;IAChB,IAAA,UAAU,EAAE,YAAY;IACxB,IAAA,KAAK,EAAE,OAAO;IACd,IAAA,SAAS,EAAE,WAAW;IACtB,IAAA,YAAY,EAAE,cAAc;IAC5B,IAAA,iBAAiB,EAAE,mBAAmB;IAEtC,IAAA,GAAG,EAAE,KAAK;IACV,IAAA,QAAQ,EAAE,UAAU;IACpB,IAAA,eAAe,EAAE,iBAAiB;IAClC,IAAA,UAAU,EAAE,YAAY;IACxB,IAAA,UAAU,EAAE,YAAY;IACxB,IAAA,OAAO,EAAE,SAAS;IAClB,IAAA,UAAU,EAAE,YAAY;IACxB,IAAA,SAAS,EAAE,WAAW;IACtB,IAAA,SAAS,EAAE,WAAW;IACtB,IAAA,IAAI,EAAE,MAAM;IACZ,IAAA,QAAQ,EAAE,UAAU;IACpB,IAAA,QAAQ,EAAE,UAAU;IACpB,IAAA,QAAQ,EAAE,UAAU;IACpB,IAAA,WAAW,EAAE,aAAa;IAC1B,IAAA,IAAI,EAAE,MAAM;IACZ,IAAA,Q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