@mikemo-coposit/am-accounting-shared 1.0.0 → 1.0.1-dev.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/dist/cjs/constants/common/package-version.constant.d.ts +1 -1
- package/dist/cjs/constants/common/package-version.constant.d.ts.map +1 -1
- package/dist/cjs/index.js +247 -147
- package/dist/esm/constants/common/package-version.constant.d.ts +1 -1
- package/dist/esm/constants/common/package-version.constant.d.ts.map +1 -1
- package/dist/esm/index.mjs +195 -145
- package/package.json +25 -22
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.0.1-dev.1";
|
|
2
2
|
//# sourceMappingURL=package-version.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-version.constant.d.ts","sourceRoot":"","sources":["../../../../packages/constants/common/package-version.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"package-version.constant.d.ts","sourceRoot":"","sources":["../../../../packages/constants/common/package-version.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,gBAAgB,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -2720,7 +2720,7 @@ var __webpack_exports__ = {};
|
|
|
2720
2720
|
CmaTransactionPaymentMethod: ()=>cma_payment_method_constant_CmaTransactionPaymentMethod,
|
|
2721
2721
|
balanceRestResSchema: ()=>balanceRestResSchema,
|
|
2722
2722
|
bigIntFilterSchema: ()=>bigIntFilterSchema,
|
|
2723
|
-
PACKAGE_VERSION: ()=>
|
|
2723
|
+
PACKAGE_VERSION: ()=>PACKAGE_VERSION,
|
|
2724
2724
|
stateCodeSchema: ()=>stateCodeSchema,
|
|
2725
2725
|
queryModeSchema: ()=>queryModeSchema,
|
|
2726
2726
|
settlementPayoutTargetDetailEntitySchema: ()=>settlementPayoutTargetDetailEntitySchema,
|
|
@@ -2800,7 +2800,7 @@ var __webpack_exports__ = {};
|
|
|
2800
2800
|
stringToStartOfDaySchema: ()=>stringToStartOfDaySchema,
|
|
2801
2801
|
payoutStatusSummaryRestResSchema: ()=>payoutStatusSummaryRestResSchema,
|
|
2802
2802
|
DEFAULT_DATE_FORMAT_WITH_TIME: ()=>DEFAULT_DATE_FORMAT_WITH_TIME,
|
|
2803
|
-
DEFAULT_PAGE: ()=>
|
|
2803
|
+
DEFAULT_PAGE: ()=>DEFAULT_PAGE,
|
|
2804
2804
|
DEFAULT_PAYOUT_SOURCE_DESCRIPTION: ()=>DEFAULT_PAYOUT_SOURCE_DESCRIPTION,
|
|
2805
2805
|
updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema: ()=>updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema,
|
|
2806
2806
|
cmaSearchRestReqSchema: ()=>cmaSearchRestReqSchema,
|
|
@@ -2855,7 +2855,7 @@ var __webpack_exports__ = {};
|
|
|
2855
2855
|
markCmaTransactionAsClearedRestReqSchema: ()=>markCmaTransactionAsClearedRestReqSchema,
|
|
2856
2856
|
createSettlementPayoutRestReqSchema: ()=>createSettlementPayoutRestReqSchema,
|
|
2857
2857
|
propertySyncFromAmmozeGrpcReqSchema: ()=>propertySyncFromAmmozeGrpcReqSchema,
|
|
2858
|
-
DEFAULT_PAGE_SIZE: ()=>
|
|
2858
|
+
DEFAULT_PAGE_SIZE: ()=>DEFAULT_PAGE_SIZE,
|
|
2859
2859
|
InputJsonValueSchema: ()=>InputJsonValueSchema,
|
|
2860
2860
|
MtaPayoutTransactionType: ()=>MtaPayoutTransactionType,
|
|
2861
2861
|
cmaTransactionRestResBaseSchema: ()=>cmaTransactionRestResBaseSchema,
|
|
@@ -2996,6 +2996,9 @@ var __webpack_exports__ = {};
|
|
|
2996
2996
|
SYNCED: 'synced',
|
|
2997
2997
|
FAILED: 'failed'
|
|
2998
2998
|
};
|
|
2999
|
+
const PACKAGE_VERSION = '1.0.1-dev.1';
|
|
3000
|
+
const DEFAULT_PAGE_SIZE = 500;
|
|
3001
|
+
const DEFAULT_PAGE = 1;
|
|
2999
3002
|
var payment_method_constant_PaymentMethod = /*#__PURE__*/ function(PaymentMethod) {
|
|
3000
3003
|
PaymentMethod["EFT"] = "EFT";
|
|
3001
3004
|
return PaymentMethod;
|
|
@@ -5708,14 +5711,14 @@ var __webpack_exports__ = {};
|
|
|
5708
5711
|
})();
|
|
5709
5712
|
const isContextDefined = (context)=>!isUndefined(context) && context !== _global;
|
|
5710
5713
|
function utils_merge() {
|
|
5711
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
5714
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
5712
5715
|
const result = {};
|
|
5713
5716
|
const assignValue = (val, key)=>{
|
|
5714
5717
|
const targetKey = caseless && findKey(result, key) || key;
|
|
5715
5718
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) result[targetKey] = utils_merge(result[targetKey], val);
|
|
5716
5719
|
else if (isPlainObject(val)) result[targetKey] = utils_merge({}, val);
|
|
5717
5720
|
else if (isArray(val)) result[targetKey] = val.slice();
|
|
5718
|
-
else result[targetKey] = val;
|
|
5721
|
+
else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
|
|
5719
5722
|
};
|
|
5720
5723
|
for(let i = 0, l = arguments.length; i < l; i++)arguments[i] && forEach(arguments[i], assignValue);
|
|
5721
5724
|
return result;
|
|
@@ -5999,9 +6002,14 @@ var __webpack_exports__ = {};
|
|
|
5999
6002
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
6000
6003
|
return obj !== Error.prototype;
|
|
6001
6004
|
}, (prop)=>'isAxiosError' !== prop);
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
axiosError
|
|
6005
|
+
const msg = error && error.message ? error.message : 'Error';
|
|
6006
|
+
const errCode = null == code && error ? error.code : code;
|
|
6007
|
+
AxiosError_AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
6008
|
+
if (error && null == axiosError.cause) Object.defineProperty(axiosError, 'cause', {
|
|
6009
|
+
value: error,
|
|
6010
|
+
configurable: true
|
|
6011
|
+
});
|
|
6012
|
+
axiosError.name = error && error.name || 'Error';
|
|
6005
6013
|
customProps && Object.assign(axiosError, customProps);
|
|
6006
6014
|
return axiosError;
|
|
6007
6015
|
};
|
|
@@ -6132,7 +6140,7 @@ var __webpack_exports__ = {};
|
|
|
6132
6140
|
};
|
|
6133
6141
|
const AxiosURLSearchParams = AxiosURLSearchParams_AxiosURLSearchParams;
|
|
6134
6142
|
function buildURL_encode(val) {
|
|
6135
|
-
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+')
|
|
6143
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
|
|
6136
6144
|
}
|
|
6137
6145
|
function buildURL(url, params, options) {
|
|
6138
6146
|
if (!params) return url;
|
|
@@ -6342,7 +6350,7 @@ var __webpack_exports__ = {};
|
|
|
6342
6350
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
6343
6351
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
6344
6352
|
try {
|
|
6345
|
-
return JSON.parse(data);
|
|
6353
|
+
return JSON.parse(data, this.parseReviver);
|
|
6346
6354
|
} catch (e) {
|
|
6347
6355
|
if (strictJSONParsing) {
|
|
6348
6356
|
if ('SyntaxError' === e.name) throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
@@ -6674,6 +6682,7 @@ var __webpack_exports__ = {};
|
|
|
6674
6682
|
var external_util_ = __webpack_require__("util");
|
|
6675
6683
|
var follow_redirects = __webpack_require__("./node_modules/.pnpm/follow-redirects@1.15.11/node_modules/follow-redirects/index.js");
|
|
6676
6684
|
const external_zlib_namespaceObject = require("zlib");
|
|
6685
|
+
const VERSION = "1.12.2";
|
|
6677
6686
|
function parseProtocol(url) {
|
|
6678
6687
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
6679
6688
|
return match && match[1] || '';
|
|
@@ -6995,6 +7004,48 @@ var __webpack_exports__ = {};
|
|
|
6995
7004
|
];
|
|
6996
7005
|
};
|
|
6997
7006
|
const asyncDecorator = (fn)=>(...args)=>utils.asap(()=>fn(...args));
|
|
7007
|
+
function estimateDataURLDecodedBytes(url) {
|
|
7008
|
+
if (!url || 'string' != typeof url) return 0;
|
|
7009
|
+
if (!url.startsWith('data:')) return 0;
|
|
7010
|
+
const comma = url.indexOf(',');
|
|
7011
|
+
if (comma < 0) return 0;
|
|
7012
|
+
const meta = url.slice(5, comma);
|
|
7013
|
+
const body = url.slice(comma + 1);
|
|
7014
|
+
const isBase64 = /;base64/i.test(meta);
|
|
7015
|
+
if (isBase64) {
|
|
7016
|
+
let effectiveLen = body.length;
|
|
7017
|
+
const len = body.length;
|
|
7018
|
+
for(let i = 0; i < len; i++)if (37 === body.charCodeAt(i) && i + 2 < len) {
|
|
7019
|
+
const a = body.charCodeAt(i + 1);
|
|
7020
|
+
const b = body.charCodeAt(i + 2);
|
|
7021
|
+
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
7022
|
+
if (isHex) {
|
|
7023
|
+
effectiveLen -= 2;
|
|
7024
|
+
i += 2;
|
|
7025
|
+
}
|
|
7026
|
+
}
|
|
7027
|
+
let pad = 0;
|
|
7028
|
+
let idx = len - 1;
|
|
7029
|
+
const tailIsPct3D = (j)=>j >= 2 && 37 === body.charCodeAt(j - 2) && 51 === body.charCodeAt(j - 1) && (68 === body.charCodeAt(j) || 100 === body.charCodeAt(j));
|
|
7030
|
+
if (idx >= 0) {
|
|
7031
|
+
if (61 === body.charCodeAt(idx)) {
|
|
7032
|
+
pad++;
|
|
7033
|
+
idx--;
|
|
7034
|
+
} else if (tailIsPct3D(idx)) {
|
|
7035
|
+
pad++;
|
|
7036
|
+
idx -= 3;
|
|
7037
|
+
}
|
|
7038
|
+
}
|
|
7039
|
+
if (1 === pad && idx >= 0) {
|
|
7040
|
+
if (61 === body.charCodeAt(idx)) pad++;
|
|
7041
|
+
else if (tailIsPct3D(idx)) pad++;
|
|
7042
|
+
}
|
|
7043
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
7044
|
+
const bytes = 3 * groups - (pad || 0);
|
|
7045
|
+
return bytes > 0 ? bytes : 0;
|
|
7046
|
+
}
|
|
7047
|
+
return Buffer.byteLength(body, 'utf8');
|
|
7048
|
+
}
|
|
6998
7049
|
const zlibOptions = {
|
|
6999
7050
|
flush: external_zlib_namespaceObject.constants.Z_SYNC_FLUSH,
|
|
7000
7051
|
finishFlush: external_zlib_namespaceObject.constants.Z_SYNC_FLUSH
|
|
@@ -7117,6 +7168,11 @@ var __webpack_exports__ = {};
|
|
|
7117
7168
|
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : void 0);
|
|
7118
7169
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
7119
7170
|
if ('data:' === protocol) {
|
|
7171
|
+
if (config.maxContentLength > -1) {
|
|
7172
|
+
const dataUrl = String(config.url || fullPath || '');
|
|
7173
|
+
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
7174
|
+
if (estimated > config.maxContentLength) return reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded', AxiosError.ERR_BAD_RESPONSE, config));
|
|
7175
|
+
}
|
|
7120
7176
|
let convertedData;
|
|
7121
7177
|
if ('GET' !== method) return settle(resolve, reject, {
|
|
7122
7178
|
status: 405,
|
|
@@ -7145,7 +7201,7 @@ var __webpack_exports__ = {};
|
|
|
7145
7201
|
}
|
|
7146
7202
|
if (-1 === supportedProtocols.indexOf(protocol)) return reject(new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_BAD_REQUEST, config));
|
|
7147
7203
|
const headers = AxiosHeaders.from(config.headers).normalize();
|
|
7148
|
-
headers.set('User-Agent',
|
|
7204
|
+
headers.set('User-Agent', 'axios/' + VERSION, false);
|
|
7149
7205
|
const { onUploadProgress, onDownloadProgress } = config;
|
|
7150
7206
|
const maxRate = config.maxRate;
|
|
7151
7207
|
let maxUploadRate;
|
|
@@ -7155,7 +7211,7 @@ var __webpack_exports__ = {};
|
|
|
7155
7211
|
data = helpers_formDataToStream(data, (formHeaders)=>{
|
|
7156
7212
|
headers.set(formHeaders);
|
|
7157
7213
|
}, {
|
|
7158
|
-
tag:
|
|
7214
|
+
tag: `axios-${VERSION}-boundary`,
|
|
7159
7215
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
7160
7216
|
});
|
|
7161
7217
|
} else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {
|
|
@@ -7491,15 +7547,17 @@ var __webpack_exports__ = {};
|
|
|
7491
7547
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
7492
7548
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
7493
7549
|
if (auth) headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
7494
|
-
let contentType;
|
|
7495
7550
|
if (utils.isFormData(data)) {
|
|
7496
7551
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
7497
|
-
else if (
|
|
7498
|
-
const
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
]
|
|
7552
|
+
else if (utils.isFunction(data.getHeaders)) {
|
|
7553
|
+
const formHeaders = data.getHeaders();
|
|
7554
|
+
const allowedHeaders = [
|
|
7555
|
+
'content-type',
|
|
7556
|
+
'content-length'
|
|
7557
|
+
];
|
|
7558
|
+
Object.entries(formHeaders).forEach(([key, val])=>{
|
|
7559
|
+
if (allowedHeaders.includes(key.toLowerCase())) headers.set(key, val);
|
|
7560
|
+
});
|
|
7503
7561
|
}
|
|
7504
7562
|
}
|
|
7505
7563
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -7562,8 +7620,11 @@ var __webpack_exports__ = {};
|
|
|
7562
7620
|
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
7563
7621
|
request = null;
|
|
7564
7622
|
};
|
|
7565
|
-
request.onerror = function() {
|
|
7566
|
-
|
|
7623
|
+
request.onerror = function(event) {
|
|
7624
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
7625
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
7626
|
+
err.event = event || null;
|
|
7627
|
+
reject(err);
|
|
7567
7628
|
request = null;
|
|
7568
7629
|
};
|
|
7569
7630
|
request.ontimeout = function() {
|
|
@@ -7702,9 +7763,13 @@ var __webpack_exports__ = {};
|
|
|
7702
7763
|
highWaterMark: 2
|
|
7703
7764
|
});
|
|
7704
7765
|
};
|
|
7705
|
-
const
|
|
7706
|
-
const
|
|
7707
|
-
const
|
|
7766
|
+
const DEFAULT_CHUNK_SIZE = 65536;
|
|
7767
|
+
const { isFunction: fetch_isFunction } = utils;
|
|
7768
|
+
const globalFetchAPI = (({ Request, Response })=>({
|
|
7769
|
+
Request,
|
|
7770
|
+
Response
|
|
7771
|
+
}))(utils.global);
|
|
7772
|
+
const { ReadableStream: fetch_ReadableStream, TextEncoder: fetch_TextEncoder } = utils.global;
|
|
7708
7773
|
const test = (fn, ...args)=>{
|
|
7709
7774
|
try {
|
|
7710
7775
|
return !!fn(...args);
|
|
@@ -7712,134 +7777,170 @@ var __webpack_exports__ = {};
|
|
|
7712
7777
|
return false;
|
|
7713
7778
|
}
|
|
7714
7779
|
};
|
|
7715
|
-
const
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
stream: supportsResponseStream && ((res)=>res.body)
|
|
7731
|
-
};
|
|
7732
|
-
isFetchSupported && ((res)=>{
|
|
7733
|
-
[
|
|
7734
|
-
'text',
|
|
7735
|
-
'arrayBuffer',
|
|
7736
|
-
'blob',
|
|
7737
|
-
'formData',
|
|
7738
|
-
'stream'
|
|
7739
|
-
].forEach((type)=>{
|
|
7740
|
-
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
7741
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
7742
|
-
});
|
|
7743
|
-
});
|
|
7744
|
-
})(new Response);
|
|
7745
|
-
const getBodyLength = async (body)=>{
|
|
7746
|
-
if (null == body) return 0;
|
|
7747
|
-
if (utils.isBlob(body)) return body.size;
|
|
7748
|
-
if (utils.isSpecCompliantForm(body)) {
|
|
7749
|
-
const _request = new Request(platform.origin, {
|
|
7780
|
+
const factory = (env)=>{
|
|
7781
|
+
env = utils.merge.call({
|
|
7782
|
+
skipUndefined: true
|
|
7783
|
+
}, globalFetchAPI, env);
|
|
7784
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
7785
|
+
const isFetchSupported = envFetch ? fetch_isFunction(envFetch) : 'function' == typeof fetch;
|
|
7786
|
+
const isRequestSupported = fetch_isFunction(Request);
|
|
7787
|
+
const isResponseSupported = fetch_isFunction(Response);
|
|
7788
|
+
if (!isFetchSupported) return false;
|
|
7789
|
+
const isReadableStreamSupported = isFetchSupported && fetch_isFunction(fetch_ReadableStream);
|
|
7790
|
+
const encodeText = isFetchSupported && ('function' == typeof fetch_TextEncoder ? ((encoder)=>(str)=>encoder.encode(str))(new fetch_TextEncoder()) : async (str)=>new Uint8Array(await new Request(str).arrayBuffer()));
|
|
7791
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(()=>{
|
|
7792
|
+
let duplexAccessed = false;
|
|
7793
|
+
const hasContentType = new Request(platform.origin, {
|
|
7794
|
+
body: new fetch_ReadableStream(),
|
|
7750
7795
|
method: 'POST',
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
if (utils.isString(body)) return (await encodeText(body)).byteLength;
|
|
7758
|
-
};
|
|
7759
|
-
const resolveBodyLength = async (headers, body)=>{
|
|
7760
|
-
const length = utils.toFiniteNumber(headers.getContentLength());
|
|
7761
|
-
return null == length ? getBodyLength(body) : length;
|
|
7762
|
-
};
|
|
7763
|
-
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
7764
|
-
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
7765
|
-
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
7766
|
-
let composedSignal = helpers_composeSignals([
|
|
7767
|
-
signal,
|
|
7768
|
-
cancelToken && cancelToken.toAbortSignal()
|
|
7769
|
-
], timeout);
|
|
7770
|
-
let request;
|
|
7771
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (()=>{
|
|
7772
|
-
composedSignal.unsubscribe();
|
|
7796
|
+
get duplex () {
|
|
7797
|
+
duplexAccessed = true;
|
|
7798
|
+
return 'half';
|
|
7799
|
+
}
|
|
7800
|
+
}).headers.has('Content-Type');
|
|
7801
|
+
return duplexAccessed && !hasContentType;
|
|
7773
7802
|
});
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7803
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(()=>utils.isReadableStream(new Response('').body));
|
|
7804
|
+
const resolvers = {
|
|
7805
|
+
stream: supportsResponseStream && ((res)=>res.body)
|
|
7806
|
+
};
|
|
7807
|
+
isFetchSupported && (()=>{
|
|
7808
|
+
[
|
|
7809
|
+
'text',
|
|
7810
|
+
'arrayBuffer',
|
|
7811
|
+
'blob',
|
|
7812
|
+
'formData',
|
|
7813
|
+
'stream'
|
|
7814
|
+
].forEach((type)=>{
|
|
7815
|
+
resolvers[type] || (resolvers[type] = (res, config)=>{
|
|
7816
|
+
let method = res && res[type];
|
|
7817
|
+
if (method) return method.call(res);
|
|
7818
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
7819
|
+
});
|
|
7820
|
+
});
|
|
7821
|
+
})();
|
|
7822
|
+
const getBodyLength = async (body)=>{
|
|
7823
|
+
if (null == body) return 0;
|
|
7824
|
+
if (utils.isBlob(body)) return body.size;
|
|
7825
|
+
if (utils.isSpecCompliantForm(body)) {
|
|
7826
|
+
const _request = new Request(platform.origin, {
|
|
7778
7827
|
method: 'POST',
|
|
7779
|
-
body
|
|
7780
|
-
duplex: "half"
|
|
7828
|
+
body
|
|
7781
7829
|
});
|
|
7782
|
-
|
|
7783
|
-
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) headers.setContentType(contentTypeHeader);
|
|
7784
|
-
if (_request.body) {
|
|
7785
|
-
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
7786
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
7787
|
-
}
|
|
7830
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
7788
7831
|
}
|
|
7789
|
-
if (
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7832
|
+
if (utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) return body.byteLength;
|
|
7833
|
+
if (utils.isURLSearchParams(body)) body += '';
|
|
7834
|
+
if (utils.isString(body)) return (await encodeText(body)).byteLength;
|
|
7835
|
+
};
|
|
7836
|
+
const resolveBodyLength = async (headers, body)=>{
|
|
7837
|
+
const length = utils.toFiniteNumber(headers.getContentLength());
|
|
7838
|
+
return null == length ? getBodyLength(body) : length;
|
|
7839
|
+
};
|
|
7840
|
+
return async (config)=>{
|
|
7841
|
+
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
7842
|
+
let _fetch = envFetch || fetch;
|
|
7843
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
7844
|
+
let composedSignal = helpers_composeSignals([
|
|
7845
|
+
signal,
|
|
7846
|
+
cancelToken && cancelToken.toAbortSignal()
|
|
7847
|
+
], timeout);
|
|
7848
|
+
let request = null;
|
|
7849
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (()=>{
|
|
7850
|
+
composedSignal.unsubscribe();
|
|
7799
7851
|
});
|
|
7800
|
-
let
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7852
|
+
let requestContentLength;
|
|
7853
|
+
try {
|
|
7854
|
+
if (onUploadProgress && supportsRequestStream && 'get' !== method && 'head' !== method && 0 !== (requestContentLength = await resolveBodyLength(headers, data))) {
|
|
7855
|
+
let _request = new Request(url, {
|
|
7856
|
+
method: 'POST',
|
|
7857
|
+
body: data,
|
|
7858
|
+
duplex: "half"
|
|
7859
|
+
});
|
|
7860
|
+
let contentTypeHeader;
|
|
7861
|
+
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) headers.setContentType(contentTypeHeader);
|
|
7862
|
+
if (_request.body) {
|
|
7863
|
+
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
7864
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
7865
|
+
}
|
|
7866
|
+
}
|
|
7867
|
+
if (!utils.isString(withCredentials)) withCredentials = withCredentials ? 'include' : 'omit';
|
|
7868
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
7869
|
+
const resolvedOptions = {
|
|
7870
|
+
...fetchOptions,
|
|
7871
|
+
signal: composedSignal,
|
|
7872
|
+
method: method.toUpperCase(),
|
|
7873
|
+
headers: headers.normalize().toJSON(),
|
|
7874
|
+
body: data,
|
|
7875
|
+
duplex: "half",
|
|
7876
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
7877
|
+
};
|
|
7878
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
7879
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
7880
|
+
const isStreamResponse = supportsResponseStream && ('stream' === responseType || 'response' === responseType);
|
|
7881
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
7882
|
+
const options = {};
|
|
7883
|
+
[
|
|
7884
|
+
'status',
|
|
7885
|
+
'statusText',
|
|
7886
|
+
'headers'
|
|
7887
|
+
].forEach((prop)=>{
|
|
7888
|
+
options[prop] = response[prop];
|
|
7889
|
+
});
|
|
7890
|
+
const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));
|
|
7891
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
7892
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, ()=>{
|
|
7893
|
+
flush && flush();
|
|
7894
|
+
unsubscribe && unsubscribe();
|
|
7895
|
+
}), options);
|
|
7896
|
+
}
|
|
7897
|
+
responseType = responseType || 'text';
|
|
7898
|
+
let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
|
|
7899
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
7900
|
+
return await new Promise((resolve, reject)=>{
|
|
7901
|
+
settle(resolve, reject, {
|
|
7902
|
+
data: responseData,
|
|
7903
|
+
headers: AxiosHeaders.from(response.headers),
|
|
7904
|
+
status: response.status,
|
|
7905
|
+
statusText: response.statusText,
|
|
7906
|
+
config,
|
|
7907
|
+
request
|
|
7908
|
+
});
|
|
7810
7909
|
});
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
unsubscribe && unsubscribe();
|
|
7816
|
-
}), options);
|
|
7817
|
-
}
|
|
7818
|
-
responseType = responseType || 'text';
|
|
7819
|
-
let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
|
|
7820
|
-
!isStreamResponse && unsubscribe && unsubscribe();
|
|
7821
|
-
return await new Promise((resolve, reject)=>{
|
|
7822
|
-
settle(resolve, reject, {
|
|
7823
|
-
data: responseData,
|
|
7824
|
-
headers: AxiosHeaders.from(response.headers),
|
|
7825
|
-
status: response.status,
|
|
7826
|
-
statusText: response.statusText,
|
|
7827
|
-
config,
|
|
7828
|
-
request
|
|
7910
|
+
} catch (err) {
|
|
7911
|
+
unsubscribe && unsubscribe();
|
|
7912
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
7913
|
+
cause: err.cause || err
|
|
7829
7914
|
});
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
}
|
|
7838
|
-
|
|
7915
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
7916
|
+
}
|
|
7917
|
+
};
|
|
7918
|
+
};
|
|
7919
|
+
const seedCache = new Map();
|
|
7920
|
+
const getFetch = (config)=>{
|
|
7921
|
+
let env = config ? config.env : {};
|
|
7922
|
+
const { fetch: fetch1, Request, Response } = env;
|
|
7923
|
+
const seeds = [
|
|
7924
|
+
Request,
|
|
7925
|
+
Response,
|
|
7926
|
+
fetch1
|
|
7927
|
+
];
|
|
7928
|
+
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
7929
|
+
while(i--){
|
|
7930
|
+
seed = seeds[i];
|
|
7931
|
+
target = map.get(seed);
|
|
7932
|
+
void 0 === target && map.set(seed, target = i ? new Map() : factory(env));
|
|
7933
|
+
map = target;
|
|
7934
|
+
}
|
|
7935
|
+
return target;
|
|
7936
|
+
};
|
|
7937
|
+
getFetch();
|
|
7839
7938
|
const knownAdapters = {
|
|
7840
7939
|
http: http,
|
|
7841
7940
|
xhr: xhr,
|
|
7842
|
-
fetch:
|
|
7941
|
+
fetch: {
|
|
7942
|
+
get: getFetch
|
|
7943
|
+
}
|
|
7843
7944
|
};
|
|
7844
7945
|
utils.forEach(knownAdapters, (fn, value)=>{
|
|
7845
7946
|
if (fn) {
|
|
@@ -7856,7 +7957,7 @@ var __webpack_exports__ = {};
|
|
|
7856
7957
|
const renderReason = (reason)=>`- ${reason}`;
|
|
7857
7958
|
const isResolvedHandle = (adapter)=>utils.isFunction(adapter) || null === adapter || false === adapter;
|
|
7858
7959
|
const adapters_adapters = {
|
|
7859
|
-
getAdapter: (adapters)=>{
|
|
7960
|
+
getAdapter: (adapters, config)=>{
|
|
7860
7961
|
adapters = utils.isArray(adapters) ? adapters : [
|
|
7861
7962
|
adapters
|
|
7862
7963
|
];
|
|
@@ -7872,7 +7973,7 @@ var __webpack_exports__ = {};
|
|
|
7872
7973
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
7873
7974
|
if (void 0 === adapter) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
7874
7975
|
}
|
|
7875
|
-
if (adapter) break;
|
|
7976
|
+
if (adapter && (utils.isFunction(adapter) || (adapter = adapter.get(config)))) break;
|
|
7876
7977
|
rejectedReasons[id || '#' + i] = adapter;
|
|
7877
7978
|
}
|
|
7878
7979
|
if (!adapter) {
|
|
@@ -7897,7 +7998,7 @@ var __webpack_exports__ = {};
|
|
|
7897
7998
|
'put',
|
|
7898
7999
|
'patch'
|
|
7899
8000
|
].indexOf(config.method)) config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
7900
|
-
const adapter = adapters_adapters.getAdapter(config.adapter || lib_defaults.adapter);
|
|
8001
|
+
const adapter = adapters_adapters.getAdapter(config.adapter || lib_defaults.adapter, config);
|
|
7901
8002
|
return adapter(config).then(function(response) {
|
|
7902
8003
|
throwIfCancellationRequested(config);
|
|
7903
8004
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -7930,7 +8031,7 @@ var __webpack_exports__ = {};
|
|
|
7930
8031
|
const deprecatedWarnings = {};
|
|
7931
8032
|
validators.transitional = function(validator, version, message) {
|
|
7932
8033
|
function formatMessage(opt, desc) {
|
|
7933
|
-
return
|
|
8034
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
7934
8035
|
}
|
|
7935
8036
|
return (value, opt, opts)=>{
|
|
7936
8037
|
if (false === validator) throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
|
|
@@ -8061,7 +8162,6 @@ var __webpack_exports__ = {};
|
|
|
8061
8162
|
}
|
|
8062
8163
|
len = requestInterceptorChain.length;
|
|
8063
8164
|
let newConfig = config;
|
|
8064
|
-
i = 0;
|
|
8065
8165
|
while(i < len){
|
|
8066
8166
|
const onFulfilled = requestInterceptorChain[i++];
|
|
8067
8167
|
const onRejected = requestInterceptorChain[i++];
|
|
@@ -8286,7 +8386,7 @@ var __webpack_exports__ = {};
|
|
|
8286
8386
|
axios.CanceledError = cancel_CanceledError;
|
|
8287
8387
|
axios.CancelToken = CancelToken;
|
|
8288
8388
|
axios.isCancel = isCancel;
|
|
8289
|
-
axios.VERSION =
|
|
8389
|
+
axios.VERSION = VERSION;
|
|
8290
8390
|
axios.toFormData = helpers_toFormData;
|
|
8291
8391
|
axios.AxiosError = AxiosError;
|
|
8292
8392
|
axios.Cancel = axios.CanceledError;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.0.
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.0.1-dev.1";
|
|
2
2
|
//# sourceMappingURL=package-version.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-version.constant.d.ts","sourceRoot":"","sources":["../../../../packages/constants/common/package-version.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"package-version.constant.d.ts","sourceRoot":"","sources":["../../../../packages/constants/common/package-version.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,gBAAgB,CAAC"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -118,6 +118,9 @@ const AccountingCommonSyncStatus = {
|
|
|
118
118
|
SYNCED: 'synced',
|
|
119
119
|
FAILED: 'failed'
|
|
120
120
|
};
|
|
121
|
+
const PACKAGE_VERSION = '1.0.1-dev.1';
|
|
122
|
+
const DEFAULT_PAGE_SIZE = 500;
|
|
123
|
+
const DEFAULT_PAGE = 1;
|
|
121
124
|
var payment_method_constant_PaymentMethod = /*#__PURE__*/ function(PaymentMethod) {
|
|
122
125
|
PaymentMethod["EFT"] = "EFT";
|
|
123
126
|
return PaymentMethod;
|
|
@@ -2817,14 +2820,14 @@ const _global = (()=>{
|
|
|
2817
2820
|
})();
|
|
2818
2821
|
const isContextDefined = (context)=>!isUndefined(context) && context !== _global;
|
|
2819
2822
|
function utils_merge() {
|
|
2820
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
2823
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
2821
2824
|
const result = {};
|
|
2822
2825
|
const assignValue = (val, key)=>{
|
|
2823
2826
|
const targetKey = caseless && findKey(result, key) || key;
|
|
2824
2827
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) result[targetKey] = utils_merge(result[targetKey], val);
|
|
2825
2828
|
else if (isPlainObject(val)) result[targetKey] = utils_merge({}, val);
|
|
2826
2829
|
else if (isArray(val)) result[targetKey] = val.slice();
|
|
2827
|
-
else result[targetKey] = val;
|
|
2830
|
+
else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
|
|
2828
2831
|
};
|
|
2829
2832
|
for(let i = 0, l = arguments.length; i < l; i++)arguments[i] && forEach(arguments[i], assignValue);
|
|
2830
2833
|
return result;
|
|
@@ -3108,9 +3111,14 @@ AxiosError_AxiosError.from = (error, code, config, request, response, customProp
|
|
|
3108
3111
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
3109
3112
|
return obj !== Error.prototype;
|
|
3110
3113
|
}, (prop)=>'isAxiosError' !== prop);
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
axiosError
|
|
3114
|
+
const msg = error && error.message ? error.message : 'Error';
|
|
3115
|
+
const errCode = null == code && error ? error.code : code;
|
|
3116
|
+
AxiosError_AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
3117
|
+
if (error && null == axiosError.cause) Object.defineProperty(axiosError, 'cause', {
|
|
3118
|
+
value: error,
|
|
3119
|
+
configurable: true
|
|
3120
|
+
});
|
|
3121
|
+
axiosError.name = error && error.name || 'Error';
|
|
3114
3122
|
customProps && Object.assign(axiosError, customProps);
|
|
3115
3123
|
return axiosError;
|
|
3116
3124
|
};
|
|
@@ -3240,7 +3248,7 @@ AxiosURLSearchParams_prototype.toString = function(encoder) {
|
|
|
3240
3248
|
};
|
|
3241
3249
|
const AxiosURLSearchParams = AxiosURLSearchParams_AxiosURLSearchParams;
|
|
3242
3250
|
function buildURL_encode(val) {
|
|
3243
|
-
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+')
|
|
3251
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
|
|
3244
3252
|
}
|
|
3245
3253
|
function buildURL(url, params, options) {
|
|
3246
3254
|
if (!params) return url;
|
|
@@ -3435,7 +3443,7 @@ const defaults = {
|
|
|
3435
3443
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
3436
3444
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
3437
3445
|
try {
|
|
3438
|
-
return JSON.parse(data);
|
|
3446
|
+
return JSON.parse(data, this.parseReviver);
|
|
3439
3447
|
} catch (e) {
|
|
3440
3448
|
if (strictJSONParsing) {
|
|
3441
3449
|
if ('SyntaxError' === e.name) throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
@@ -3967,15 +3975,17 @@ const resolveConfig = (config)=>{
|
|
|
3967
3975
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
3968
3976
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
3969
3977
|
if (auth) headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
3970
|
-
let contentType;
|
|
3971
3978
|
if (utils.isFormData(data)) {
|
|
3972
3979
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
3973
|
-
else if (
|
|
3974
|
-
const
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
]
|
|
3980
|
+
else if (utils.isFunction(data.getHeaders)) {
|
|
3981
|
+
const formHeaders = data.getHeaders();
|
|
3982
|
+
const allowedHeaders = [
|
|
3983
|
+
'content-type',
|
|
3984
|
+
'content-length'
|
|
3985
|
+
];
|
|
3986
|
+
Object.entries(formHeaders).forEach(([key, val])=>{
|
|
3987
|
+
if (allowedHeaders.includes(key.toLowerCase())) headers.set(key, val);
|
|
3988
|
+
});
|
|
3979
3989
|
}
|
|
3980
3990
|
}
|
|
3981
3991
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -4038,8 +4048,11 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
4038
4048
|
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
4039
4049
|
request = null;
|
|
4040
4050
|
};
|
|
4041
|
-
request.onerror = function() {
|
|
4042
|
-
|
|
4051
|
+
request.onerror = function(event) {
|
|
4052
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
4053
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
4054
|
+
err.event = event || null;
|
|
4055
|
+
reject(err);
|
|
4043
4056
|
request = null;
|
|
4044
4057
|
};
|
|
4045
4058
|
request.ontimeout = function() {
|
|
@@ -4178,9 +4191,13 @@ const trackStream = (stream, chunkSize, onProgress, onFinish)=>{
|
|
|
4178
4191
|
highWaterMark: 2
|
|
4179
4192
|
});
|
|
4180
4193
|
};
|
|
4181
|
-
const
|
|
4182
|
-
const
|
|
4183
|
-
const
|
|
4194
|
+
const DEFAULT_CHUNK_SIZE = 65536;
|
|
4195
|
+
const { isFunction: fetch_isFunction } = utils;
|
|
4196
|
+
const globalFetchAPI = (({ Request, Response })=>({
|
|
4197
|
+
Request,
|
|
4198
|
+
Response
|
|
4199
|
+
}))(utils.global);
|
|
4200
|
+
const { ReadableStream: fetch_ReadableStream, TextEncoder } = utils.global;
|
|
4184
4201
|
const test = (fn, ...args)=>{
|
|
4185
4202
|
try {
|
|
4186
4203
|
return !!fn(...args);
|
|
@@ -4188,134 +4205,170 @@ const test = (fn, ...args)=>{
|
|
|
4188
4205
|
return false;
|
|
4189
4206
|
}
|
|
4190
4207
|
};
|
|
4191
|
-
const
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
const
|
|
4205
|
-
|
|
4206
|
-
stream: supportsResponseStream && ((res)=>res.body)
|
|
4207
|
-
};
|
|
4208
|
-
isFetchSupported && ((res)=>{
|
|
4209
|
-
[
|
|
4210
|
-
'text',
|
|
4211
|
-
'arrayBuffer',
|
|
4212
|
-
'blob',
|
|
4213
|
-
'formData',
|
|
4214
|
-
'stream'
|
|
4215
|
-
].forEach((type)=>{
|
|
4216
|
-
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
4217
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
4218
|
-
});
|
|
4219
|
-
});
|
|
4220
|
-
})(new Response);
|
|
4221
|
-
const getBodyLength = async (body)=>{
|
|
4222
|
-
if (null == body) return 0;
|
|
4223
|
-
if (utils.isBlob(body)) return body.size;
|
|
4224
|
-
if (utils.isSpecCompliantForm(body)) {
|
|
4225
|
-
const _request = new Request(platform.origin, {
|
|
4208
|
+
const factory = (env)=>{
|
|
4209
|
+
env = utils.merge.call({
|
|
4210
|
+
skipUndefined: true
|
|
4211
|
+
}, globalFetchAPI, env);
|
|
4212
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
4213
|
+
const isFetchSupported = envFetch ? fetch_isFunction(envFetch) : 'function' == typeof fetch;
|
|
4214
|
+
const isRequestSupported = fetch_isFunction(Request);
|
|
4215
|
+
const isResponseSupported = fetch_isFunction(Response);
|
|
4216
|
+
if (!isFetchSupported) return false;
|
|
4217
|
+
const isReadableStreamSupported = isFetchSupported && fetch_isFunction(fetch_ReadableStream);
|
|
4218
|
+
const encodeText = isFetchSupported && ('function' == typeof TextEncoder ? ((encoder)=>(str)=>encoder.encode(str))(new TextEncoder()) : async (str)=>new Uint8Array(await new Request(str).arrayBuffer()));
|
|
4219
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(()=>{
|
|
4220
|
+
let duplexAccessed = false;
|
|
4221
|
+
const hasContentType = new Request(platform.origin, {
|
|
4222
|
+
body: new fetch_ReadableStream(),
|
|
4226
4223
|
method: 'POST',
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
if (utils.isString(body)) return (await encodeText(body)).byteLength;
|
|
4234
|
-
};
|
|
4235
|
-
const resolveBodyLength = async (headers, body)=>{
|
|
4236
|
-
const length = utils.toFiniteNumber(headers.getContentLength());
|
|
4237
|
-
return null == length ? getBodyLength(body) : length;
|
|
4238
|
-
};
|
|
4239
|
-
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
4240
|
-
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
4241
|
-
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
4242
|
-
let composedSignal = helpers_composeSignals([
|
|
4243
|
-
signal,
|
|
4244
|
-
cancelToken && cancelToken.toAbortSignal()
|
|
4245
|
-
], timeout);
|
|
4246
|
-
let request;
|
|
4247
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (()=>{
|
|
4248
|
-
composedSignal.unsubscribe();
|
|
4224
|
+
get duplex () {
|
|
4225
|
+
duplexAccessed = true;
|
|
4226
|
+
return 'half';
|
|
4227
|
+
}
|
|
4228
|
+
}).headers.has('Content-Type');
|
|
4229
|
+
return duplexAccessed && !hasContentType;
|
|
4249
4230
|
});
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4231
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(()=>utils.isReadableStream(new Response('').body));
|
|
4232
|
+
const resolvers = {
|
|
4233
|
+
stream: supportsResponseStream && ((res)=>res.body)
|
|
4234
|
+
};
|
|
4235
|
+
isFetchSupported && (()=>{
|
|
4236
|
+
[
|
|
4237
|
+
'text',
|
|
4238
|
+
'arrayBuffer',
|
|
4239
|
+
'blob',
|
|
4240
|
+
'formData',
|
|
4241
|
+
'stream'
|
|
4242
|
+
].forEach((type)=>{
|
|
4243
|
+
resolvers[type] || (resolvers[type] = (res, config)=>{
|
|
4244
|
+
let method = res && res[type];
|
|
4245
|
+
if (method) return method.call(res);
|
|
4246
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
4247
|
+
});
|
|
4248
|
+
});
|
|
4249
|
+
})();
|
|
4250
|
+
const getBodyLength = async (body)=>{
|
|
4251
|
+
if (null == body) return 0;
|
|
4252
|
+
if (utils.isBlob(body)) return body.size;
|
|
4253
|
+
if (utils.isSpecCompliantForm(body)) {
|
|
4254
|
+
const _request = new Request(platform.origin, {
|
|
4254
4255
|
method: 'POST',
|
|
4255
|
-
body
|
|
4256
|
-
duplex: "half"
|
|
4256
|
+
body
|
|
4257
4257
|
});
|
|
4258
|
-
|
|
4259
|
-
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) headers.setContentType(contentTypeHeader);
|
|
4260
|
-
if (_request.body) {
|
|
4261
|
-
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
4262
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
4263
|
-
}
|
|
4258
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
4264
4259
|
}
|
|
4265
|
-
if (
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4260
|
+
if (utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) return body.byteLength;
|
|
4261
|
+
if (utils.isURLSearchParams(body)) body += '';
|
|
4262
|
+
if (utils.isString(body)) return (await encodeText(body)).byteLength;
|
|
4263
|
+
};
|
|
4264
|
+
const resolveBodyLength = async (headers, body)=>{
|
|
4265
|
+
const length = utils.toFiniteNumber(headers.getContentLength());
|
|
4266
|
+
return null == length ? getBodyLength(body) : length;
|
|
4267
|
+
};
|
|
4268
|
+
return async (config)=>{
|
|
4269
|
+
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
4270
|
+
let _fetch = envFetch || fetch;
|
|
4271
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
4272
|
+
let composedSignal = helpers_composeSignals([
|
|
4273
|
+
signal,
|
|
4274
|
+
cancelToken && cancelToken.toAbortSignal()
|
|
4275
|
+
], timeout);
|
|
4276
|
+
let request = null;
|
|
4277
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (()=>{
|
|
4278
|
+
composedSignal.unsubscribe();
|
|
4275
4279
|
});
|
|
4276
|
-
let
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4280
|
+
let requestContentLength;
|
|
4281
|
+
try {
|
|
4282
|
+
if (onUploadProgress && supportsRequestStream && 'get' !== method && 'head' !== method && 0 !== (requestContentLength = await resolveBodyLength(headers, data))) {
|
|
4283
|
+
let _request = new Request(url, {
|
|
4284
|
+
method: 'POST',
|
|
4285
|
+
body: data,
|
|
4286
|
+
duplex: "half"
|
|
4287
|
+
});
|
|
4288
|
+
let contentTypeHeader;
|
|
4289
|
+
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) headers.setContentType(contentTypeHeader);
|
|
4290
|
+
if (_request.body) {
|
|
4291
|
+
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
4292
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
if (!utils.isString(withCredentials)) withCredentials = withCredentials ? 'include' : 'omit';
|
|
4296
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
4297
|
+
const resolvedOptions = {
|
|
4298
|
+
...fetchOptions,
|
|
4299
|
+
signal: composedSignal,
|
|
4300
|
+
method: method.toUpperCase(),
|
|
4301
|
+
headers: headers.normalize().toJSON(),
|
|
4302
|
+
body: data,
|
|
4303
|
+
duplex: "half",
|
|
4304
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
4305
|
+
};
|
|
4306
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
4307
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
4308
|
+
const isStreamResponse = supportsResponseStream && ('stream' === responseType || 'response' === responseType);
|
|
4309
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
4310
|
+
const options = {};
|
|
4311
|
+
[
|
|
4312
|
+
'status',
|
|
4313
|
+
'statusText',
|
|
4314
|
+
'headers'
|
|
4315
|
+
].forEach((prop)=>{
|
|
4316
|
+
options[prop] = response[prop];
|
|
4317
|
+
});
|
|
4318
|
+
const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));
|
|
4319
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
4320
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, ()=>{
|
|
4321
|
+
flush && flush();
|
|
4322
|
+
unsubscribe && unsubscribe();
|
|
4323
|
+
}), options);
|
|
4324
|
+
}
|
|
4325
|
+
responseType = responseType || 'text';
|
|
4326
|
+
let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
|
|
4327
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
4328
|
+
return await new Promise((resolve, reject)=>{
|
|
4329
|
+
settle(resolve, reject, {
|
|
4330
|
+
data: responseData,
|
|
4331
|
+
headers: AxiosHeaders.from(response.headers),
|
|
4332
|
+
status: response.status,
|
|
4333
|
+
statusText: response.statusText,
|
|
4334
|
+
config,
|
|
4335
|
+
request
|
|
4336
|
+
});
|
|
4286
4337
|
});
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
unsubscribe && unsubscribe();
|
|
4292
|
-
}), options);
|
|
4293
|
-
}
|
|
4294
|
-
responseType = responseType || 'text';
|
|
4295
|
-
let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
|
|
4296
|
-
!isStreamResponse && unsubscribe && unsubscribe();
|
|
4297
|
-
return await new Promise((resolve, reject)=>{
|
|
4298
|
-
settle(resolve, reject, {
|
|
4299
|
-
data: responseData,
|
|
4300
|
-
headers: AxiosHeaders.from(response.headers),
|
|
4301
|
-
status: response.status,
|
|
4302
|
-
statusText: response.statusText,
|
|
4303
|
-
config,
|
|
4304
|
-
request
|
|
4338
|
+
} catch (err) {
|
|
4339
|
+
unsubscribe && unsubscribe();
|
|
4340
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
4341
|
+
cause: err.cause || err
|
|
4305
4342
|
});
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4343
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
4344
|
+
}
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4347
|
+
const seedCache = new Map();
|
|
4348
|
+
const getFetch = (config)=>{
|
|
4349
|
+
let env = config ? config.env : {};
|
|
4350
|
+
const { fetch: fetch1, Request, Response } = env;
|
|
4351
|
+
const seeds = [
|
|
4352
|
+
Request,
|
|
4353
|
+
Response,
|
|
4354
|
+
fetch1
|
|
4355
|
+
];
|
|
4356
|
+
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
4357
|
+
while(i--){
|
|
4358
|
+
seed = seeds[i];
|
|
4359
|
+
target = map.get(seed);
|
|
4360
|
+
void 0 === target && map.set(seed, target = i ? new Map() : factory(env));
|
|
4361
|
+
map = target;
|
|
4313
4362
|
}
|
|
4314
|
-
|
|
4363
|
+
return target;
|
|
4364
|
+
};
|
|
4365
|
+
getFetch();
|
|
4315
4366
|
const knownAdapters = {
|
|
4316
4367
|
http: helpers_null,
|
|
4317
4368
|
xhr: xhr,
|
|
4318
|
-
fetch:
|
|
4369
|
+
fetch: {
|
|
4370
|
+
get: getFetch
|
|
4371
|
+
}
|
|
4319
4372
|
};
|
|
4320
4373
|
utils.forEach(knownAdapters, (fn, value)=>{
|
|
4321
4374
|
if (fn) {
|
|
@@ -4332,7 +4385,7 @@ utils.forEach(knownAdapters, (fn, value)=>{
|
|
|
4332
4385
|
const renderReason = (reason)=>`- ${reason}`;
|
|
4333
4386
|
const isResolvedHandle = (adapter)=>utils.isFunction(adapter) || null === adapter || false === adapter;
|
|
4334
4387
|
const adapters_adapters = {
|
|
4335
|
-
getAdapter: (adapters)=>{
|
|
4388
|
+
getAdapter: (adapters, config)=>{
|
|
4336
4389
|
adapters = utils.isArray(adapters) ? adapters : [
|
|
4337
4390
|
adapters
|
|
4338
4391
|
];
|
|
@@ -4348,7 +4401,7 @@ const adapters_adapters = {
|
|
|
4348
4401
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
4349
4402
|
if (void 0 === adapter) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
4350
4403
|
}
|
|
4351
|
-
if (adapter) break;
|
|
4404
|
+
if (adapter && (utils.isFunction(adapter) || (adapter = adapter.get(config)))) break;
|
|
4352
4405
|
rejectedReasons[id || '#' + i] = adapter;
|
|
4353
4406
|
}
|
|
4354
4407
|
if (!adapter) {
|
|
@@ -4373,7 +4426,7 @@ function dispatchRequest(config) {
|
|
|
4373
4426
|
'put',
|
|
4374
4427
|
'patch'
|
|
4375
4428
|
].indexOf(config.method)) config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
4376
|
-
const adapter = adapters_adapters.getAdapter(config.adapter || lib_defaults.adapter);
|
|
4429
|
+
const adapter = adapters_adapters.getAdapter(config.adapter || lib_defaults.adapter, config);
|
|
4377
4430
|
return adapter(config).then(function(response) {
|
|
4378
4431
|
throwIfCancellationRequested(config);
|
|
4379
4432
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -4390,6 +4443,7 @@ function dispatchRequest(config) {
|
|
|
4390
4443
|
return Promise.reject(reason);
|
|
4391
4444
|
});
|
|
4392
4445
|
}
|
|
4446
|
+
const VERSION = "1.12.2";
|
|
4393
4447
|
const validators = {};
|
|
4394
4448
|
[
|
|
4395
4449
|
'object',
|
|
@@ -4406,7 +4460,7 @@ const validators = {};
|
|
|
4406
4460
|
const deprecatedWarnings = {};
|
|
4407
4461
|
validators.transitional = function(validator, version, message) {
|
|
4408
4462
|
function formatMessage(opt, desc) {
|
|
4409
|
-
return
|
|
4463
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
4410
4464
|
}
|
|
4411
4465
|
return (value, opt, opts)=>{
|
|
4412
4466
|
if (false === validator) throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
|
|
@@ -4537,7 +4591,6 @@ class Axios_Axios {
|
|
|
4537
4591
|
}
|
|
4538
4592
|
len = requestInterceptorChain.length;
|
|
4539
4593
|
let newConfig = config;
|
|
4540
|
-
i = 0;
|
|
4541
4594
|
while(i < len){
|
|
4542
4595
|
const onFulfilled = requestInterceptorChain[i++];
|
|
4543
4596
|
const onRejected = requestInterceptorChain[i++];
|
|
@@ -4762,7 +4815,7 @@ axios.Axios = Axios;
|
|
|
4762
4815
|
axios.CanceledError = cancel_CanceledError;
|
|
4763
4816
|
axios.CancelToken = CancelToken;
|
|
4764
4817
|
axios.isCancel = isCancel;
|
|
4765
|
-
axios.VERSION =
|
|
4818
|
+
axios.VERSION = VERSION;
|
|
4766
4819
|
axios.toFormData = helpers_toFormData;
|
|
4767
4820
|
axios.AxiosError = AxiosError;
|
|
4768
4821
|
axios.Cancel = axios.CanceledError;
|
|
@@ -4916,7 +4969,4 @@ const getPropertyName = (property, options)=>{
|
|
|
4916
4969
|
names = names.filter(Boolean);
|
|
4917
4970
|
return names.length > 0 ? names.join(separator) : 'Nill';
|
|
4918
4971
|
};
|
|
4919
|
-
|
|
4920
|
-
var __webpack_exports__DEFAULT_PAGE_SIZE = 500;
|
|
4921
|
-
var __webpack_exports__PACKAGE_VERSION = "1.0.0";
|
|
4922
|
-
export { ASSIGN_UNKNOWN_TO_CUSTOMER, account_period_constant_AccountPeriodStatus as AccountPeriodStatus, account_type_constant_AccountType as AccountType, common_status_constant_AccountingCommonStatus as AccountingCommonStatus, AccountingCommonSyncStatus, AmmoZeptoBankAccounts, AmmoZeptoClient, CmaPayoutTransactionType, CmaReceiptTransactionType, CmaStatus, cma_input_type_constant_CmaTransactionCreateType as CmaTransactionCreateType, CmaTransactionCreateTypeToDisplayText, cma_input_type_constant_CmaTransactionInputType as CmaTransactionInputType, CmaTransactionInputTypeToDisplayText, cma_payment_method_constant_CmaTransactionPaymentMethod as CmaTransactionPaymentMethod, CmaTransactionStatus, CmaTransactionStatusToDisplayTextMapper, CmaTransactionType, CmaTransactionTypeToDisplayTextMapper, DATE_FORMATS, DEFAULT_DATE_FORMAT, DEFAULT_DATE_FORMAT_WITH_TIME, DEFAULT_DATE_TIME_ZONE, DEFAULT_PAYOUT_SOURCE_BANK_REF, DEFAULT_PAYOUT_SOURCE_DESCRIPTION, DEFAULT_PAYOUT_TARGET_BANK_REF, DEFAULT_PAYOUT_TARGET_DESCRIPTION, InputJsonValueSchema, JsonNullableFilterSchema, MenuStatus, MenuType, MtaCustomerTransactionType, MtaPayoutTransactionType, MtaReceiptTransactionType, mta_MtaStatus as MtaStatus, MtaTransactionExtendedStatus, MtaTransactionExtendedStatusToDisplayTextMapper, mta_input_type_constant_MtaTransactionInputType as MtaTransactionInputType, MtaTransactionInputTypeToDisplayText, mta_payment_method_constant_MtaTransactionPaymentMethod as MtaTransactionPaymentMethod, MtaTransactionStatus, MtaTransactionStatusToDisplayTextMapper, MtaTransactionType, MtaTransactionTypeToDisplayTextMapper, MtaUnknownTransactionType, payment_method_constant_PaymentMethod as PaymentMethod, PayoutBankFileStatus, payout_constant_PayoutSourceAccountType as PayoutSourceAccountType, PayoutStatus, payout_constant_PayoutTargetAccountType as PayoutTargetAccountType, PayoutType, ProjectApplyStatusRestRes, ProjectMtaAllocationStatus, PropertyInitialDepositStatus, PropertyInitialDepositStatusToDisplayTextMapper, property_status_constant_PropertyRestResStatus as PropertyRestResStatus, PropertyStage, PropertyStatusToDisplayTextMapper, QueryMode, reconcile_transaction_action_constant_ReconcileTransactionAction as ReconcileTransactionAction, reconciliation_constant_ReconciliationStatus as ReconciliationStatus, report_data_range_type_constant_ReportDataRangeType as ReportDataRangeType, report_group_type_constant_ReportGroupType as ReportGroupType, sort_order_constant_SortOrder as SortOrder, StringFilterBaseSchema, TRANSACTION_CANCEL, accountBsbFormattedSchema, accountBsbMaskedSchema, accountBsbValidationSchema, accountNumberMaskedSchema, accountNumberValidationSchema, allocateMtaToProjectRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, bankReconciliationSummaryRestReqSchema, bigIntFilterSchema, bigIntNullableFilterSchema, bigIntNullableObjectFilterSchema, bigIntObjectFilterSchema, bigIntSimpleFilterSchema, boolFilterBaseSchema, boolFilterSchema, cancelCmaTransactionRestReqSchema, cancelMtaTransactionRestReqSchema, cancelPayoutPaymentRestReqSchema, cancelPayoutRestReqSchema, centsToDollarsSchema, cmaAccountPeriodCloseRestReqSchema, cmaAccountPeriodClosingSummaryRestReqSchema, cmaAccountPeriodClosingSummaryRestResSchema, cmaAccountPeriodEntitySchema, cmaAccountPeriodRestResBaseSchema, cmaAccountPeriodRestResSchema, cmaClosedAccountPeriodRestResSchema, cmaEntitySchema, cmaReconciledTransactionEntitySchema, cmaReconciledTransactionRestResSchema, cmaReconciliationEntitySchema, cmaReconciliationRestResSchema, cmaRestResBaseSchema, cmaRestResSchema, cmaSearchRestReqSchema, cmaSettlementPayoutRestResSchema, cmaTransactionEntitySchema, cmaTransactionRestResBaseSchema, cmaTransactionRestResSchema, cmaTransactionSearchRestReqSchema, commonPayoutSourceDetailEntitySchema, commonPayoutTargetDetailEntitySchema, commonReportRestReqSchema, commonReportWithCmaSelectionRestReqSchema, commonUpdatePayoutRestReqSchema, commonUpdatePayoutTargetDetailRestReqSchema, confirmPayoutBankFileProcessedRestReqSchema, createCmaReconciliationRestReqSchema, createCmaRestReqSchema, createCmaTransactionRestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaToCmaPayoutRestReqSchema, createMtaTransactionRestReqSchema, createSettlementPayoutRestReqSchema, createSettlementPayoutSourceAccountSchema, createSettlementPayoutTargetAccountSchema, createUnknownPayoutRestReqSchema, customerEntitySchema, customerLedgerRestReqSchema, customerSyncFromAmmozeGrpcReqSchema, dateTimeFilterBaseSchema, dateTimeFilterSchema, developerEntitySchema, displayBankAccount, dollarsToCentsSchema, extendDayjs, formatBankBsb, formatCurrency, fromCentsToDollars, fromDollarsToCents, generateMtaPaymentMethodAccountConfigForZepto, generateMtaPaymentMethodFloatAccountConfigForZepto, getPropertyName, getTransactionAmountStr, getTransactionNumber, getTransactionStatus, intFilterSchema, intNullableFilterSchema, intNullableObjectFilterSchema, intObjectFilterSchema, intSimpleFilterSchema, isInterestTransaction, isPaymentTransaction, isReceiptTransaction, isTransactionAssignable, isTransactionCancelable, isUnknownReceiptAssignedToProperty, isUnknownReceiptPaidOut, isUnknownTransaction, markCmaTransactionAsClearedRestReqSchema, maskBankAccount, maskBankAccountNumber, maskBankBsb, maskString, menuRestResSchema, menuSchema, mtaAccountPeriodCloseRestReqSchema, mtaAccountPeriodClosingSummaryRestReqSchema, mtaAccountPeriodClosingSummaryRestResSchema, mtaAccountPeriodEntitySchema, mtaAccountPeriodRestResSchema, mtaClosedAccountPeriodRestResSchema, mtaEntitySchema, mtaListItemRestResSchema, mtaPaymentMethodAccountConfigSchema, mtaPaymentMethodEntitySchema, mtaPaymentMethodFloatAccountConfigSchema, mtaPaymentMethodRestResSchema, mtaReconciledTransactionEntitySchema, mtaReconciledTransactionRestResSchema, mtaReconciliationEntitySchema, mtaReconciliationRestResSchema, mtaRestResBaseSchema, mtaRestResSchema, mtaSettlementPayoutRestResSchema, mtaToCmaPayoutPaymentEntitySchema, mtaToCmaPayoutPaymentRestSchema, mtaToCmaPayoutProvisionDataEntitySchema, mtaToCmaPayoutProvisionDataRestSchema, mtaToCmaPayoutRestResSchema, mtaToCmaPayoutSourceDetailEntitySchema, mtaToCmaPayoutSourceDetailRestSchema, mtaToCmaPayoutTargetDetailEntitySchema, mtaToCmaPayoutTargetDetailRestSchema, mtaTransactionEntitySchema, mtaTransactionNestedSchema, mtaTransactionRestResBaseSchema, mtaTransactionRestResSchema, mtaTransactionSearchRestReqSchema, mtaTransactionStatusSummaryRestResSchema, paginatedResSchema, paginationReqSchema, parseToDate, parseToDayjs, paymentListReportRestReqSchema, paymentProviderEntitySchema, payoutBankFileDownloadHistoryEntitySchema, payoutBankFileEntitySchema, payoutBankFileRestResSchema, payoutEntitySchema, payoutProvisionDataEntitySchema, payoutRestResBaseSchema, payoutRestResSchema, payoutSearchRestReqSchema, payoutStatusSummaryRestResSchema, payoutTransactionEntitySchema, payoutTransactionRestResSchema, payoutTransactionSearchRestReqSchema, payoutUpdateRestReqSchema, projectEntitySchema, projectLedgerRestReqSchema, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectNestedEntitySchema, projectRestResSchema, projectSearchRestReqSchema, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqSchema, propertySyncFromAmmozeGrpcReqSchema, queryModeSchema, receiptListReportRestReqSchema, reconcileCmaTransactionRestReqSchema, reconcileMtaTransactionRestReqSchema, reconciledItemsListReportRestReqSchema, safeParseDateFromStr, settlementPayoutPaymentEntitySchema, settlementPayoutProvisionDataEntitySchema, settlementPayoutRestResSchema, settlementPayoutSourceDetailEntitySchema, settlementPayoutTargetDetailEntitySchema, simpleStringFilterSchema, sortReqSchema, stateCodeSchema, statusFilterSchema, statusNullableFilterSchema, stringFilterSchema, stringNullableFilterSchema, stringToBoolSchema, stringToDateSchema, stringToEndOfDaySchema, stringToStartOfDaySchema, trustTrialBalanceReportRestReqSchema, unknownPayoutPaymentEntitySchema, unknownPayoutProvisionDataEntitySchema, unknownPayoutRestResSchema, unknownPayoutSourceDetailEntitySchema, unknownPayoutTargetDetailEntitySchema, unknownReceiptLedgerRestReqSchema, unreconciledItemsListReportRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateCmaSettlementPayoutRestReqSchema, updateMenuRestReqSchema, updateMtaRestReqSchema, updateMtaSettlementPayoutRestReqSchema, updateMtaToCmaPayoutRestReqSchema, updateMtaTransactionRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateSettlementPayoutRestReqSchema, updateUnknownPayoutRestReqSchema, updateUnknownPayoutTargetDetailRestReqSchema, userEntitySchema, userRestResSchema, validateGetPropertyNameFormat, __webpack_exports__DEFAULT_PAGE as DEFAULT_PAGE, __webpack_exports__DEFAULT_PAGE_SIZE as DEFAULT_PAGE_SIZE, __webpack_exports__PACKAGE_VERSION as PACKAGE_VERSION };
|
|
4972
|
+
export { ASSIGN_UNKNOWN_TO_CUSTOMER, account_period_constant_AccountPeriodStatus as AccountPeriodStatus, account_type_constant_AccountType as AccountType, common_status_constant_AccountingCommonStatus as AccountingCommonStatus, AccountingCommonSyncStatus, AmmoZeptoBankAccounts, AmmoZeptoClient, CmaPayoutTransactionType, CmaReceiptTransactionType, CmaStatus, cma_input_type_constant_CmaTransactionCreateType as CmaTransactionCreateType, CmaTransactionCreateTypeToDisplayText, cma_input_type_constant_CmaTransactionInputType as CmaTransactionInputType, CmaTransactionInputTypeToDisplayText, cma_payment_method_constant_CmaTransactionPaymentMethod as CmaTransactionPaymentMethod, CmaTransactionStatus, CmaTransactionStatusToDisplayTextMapper, CmaTransactionType, CmaTransactionTypeToDisplayTextMapper, DATE_FORMATS, DEFAULT_DATE_FORMAT, DEFAULT_DATE_FORMAT_WITH_TIME, DEFAULT_DATE_TIME_ZONE, DEFAULT_PAGE, DEFAULT_PAGE_SIZE, DEFAULT_PAYOUT_SOURCE_BANK_REF, DEFAULT_PAYOUT_SOURCE_DESCRIPTION, DEFAULT_PAYOUT_TARGET_BANK_REF, DEFAULT_PAYOUT_TARGET_DESCRIPTION, InputJsonValueSchema, JsonNullableFilterSchema, MenuStatus, MenuType, MtaCustomerTransactionType, MtaPayoutTransactionType, MtaReceiptTransactionType, mta_MtaStatus as MtaStatus, MtaTransactionExtendedStatus, MtaTransactionExtendedStatusToDisplayTextMapper, mta_input_type_constant_MtaTransactionInputType as MtaTransactionInputType, MtaTransactionInputTypeToDisplayText, mta_payment_method_constant_MtaTransactionPaymentMethod as MtaTransactionPaymentMethod, MtaTransactionStatus, MtaTransactionStatusToDisplayTextMapper, MtaTransactionType, MtaTransactionTypeToDisplayTextMapper, MtaUnknownTransactionType, PACKAGE_VERSION, payment_method_constant_PaymentMethod as PaymentMethod, PayoutBankFileStatus, payout_constant_PayoutSourceAccountType as PayoutSourceAccountType, PayoutStatus, payout_constant_PayoutTargetAccountType as PayoutTargetAccountType, PayoutType, ProjectApplyStatusRestRes, ProjectMtaAllocationStatus, PropertyInitialDepositStatus, PropertyInitialDepositStatusToDisplayTextMapper, property_status_constant_PropertyRestResStatus as PropertyRestResStatus, PropertyStage, PropertyStatusToDisplayTextMapper, QueryMode, reconcile_transaction_action_constant_ReconcileTransactionAction as ReconcileTransactionAction, reconciliation_constant_ReconciliationStatus as ReconciliationStatus, report_data_range_type_constant_ReportDataRangeType as ReportDataRangeType, report_group_type_constant_ReportGroupType as ReportGroupType, sort_order_constant_SortOrder as SortOrder, StringFilterBaseSchema, TRANSACTION_CANCEL, accountBsbFormattedSchema, accountBsbMaskedSchema, accountBsbValidationSchema, accountNumberMaskedSchema, accountNumberValidationSchema, allocateMtaToProjectRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, bankReconciliationSummaryRestReqSchema, bigIntFilterSchema, bigIntNullableFilterSchema, bigIntNullableObjectFilterSchema, bigIntObjectFilterSchema, bigIntSimpleFilterSchema, boolFilterBaseSchema, boolFilterSchema, cancelCmaTransactionRestReqSchema, cancelMtaTransactionRestReqSchema, cancelPayoutPaymentRestReqSchema, cancelPayoutRestReqSchema, centsToDollarsSchema, cmaAccountPeriodCloseRestReqSchema, cmaAccountPeriodClosingSummaryRestReqSchema, cmaAccountPeriodClosingSummaryRestResSchema, cmaAccountPeriodEntitySchema, cmaAccountPeriodRestResBaseSchema, cmaAccountPeriodRestResSchema, cmaClosedAccountPeriodRestResSchema, cmaEntitySchema, cmaReconciledTransactionEntitySchema, cmaReconciledTransactionRestResSchema, cmaReconciliationEntitySchema, cmaReconciliationRestResSchema, cmaRestResBaseSchema, cmaRestResSchema, cmaSearchRestReqSchema, cmaSettlementPayoutRestResSchema, cmaTransactionEntitySchema, cmaTransactionRestResBaseSchema, cmaTransactionRestResSchema, cmaTransactionSearchRestReqSchema, commonPayoutSourceDetailEntitySchema, commonPayoutTargetDetailEntitySchema, commonReportRestReqSchema, commonReportWithCmaSelectionRestReqSchema, commonUpdatePayoutRestReqSchema, commonUpdatePayoutTargetDetailRestReqSchema, confirmPayoutBankFileProcessedRestReqSchema, createCmaReconciliationRestReqSchema, createCmaRestReqSchema, createCmaTransactionRestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaToCmaPayoutRestReqSchema, createMtaTransactionRestReqSchema, createSettlementPayoutRestReqSchema, createSettlementPayoutSourceAccountSchema, createSettlementPayoutTargetAccountSchema, createUnknownPayoutRestReqSchema, customerEntitySchema, customerLedgerRestReqSchema, customerSyncFromAmmozeGrpcReqSchema, dateTimeFilterBaseSchema, dateTimeFilterSchema, developerEntitySchema, displayBankAccount, dollarsToCentsSchema, extendDayjs, formatBankBsb, formatCurrency, fromCentsToDollars, fromDollarsToCents, generateMtaPaymentMethodAccountConfigForZepto, generateMtaPaymentMethodFloatAccountConfigForZepto, getPropertyName, getTransactionAmountStr, getTransactionNumber, getTransactionStatus, intFilterSchema, intNullableFilterSchema, intNullableObjectFilterSchema, intObjectFilterSchema, intSimpleFilterSchema, isInterestTransaction, isPaymentTransaction, isReceiptTransaction, isTransactionAssignable, isTransactionCancelable, isUnknownReceiptAssignedToProperty, isUnknownReceiptPaidOut, isUnknownTransaction, markCmaTransactionAsClearedRestReqSchema, maskBankAccount, maskBankAccountNumber, maskBankBsb, maskString, menuRestResSchema, menuSchema, mtaAccountPeriodCloseRestReqSchema, mtaAccountPeriodClosingSummaryRestReqSchema, mtaAccountPeriodClosingSummaryRestResSchema, mtaAccountPeriodEntitySchema, mtaAccountPeriodRestResSchema, mtaClosedAccountPeriodRestResSchema, mtaEntitySchema, mtaListItemRestResSchema, mtaPaymentMethodAccountConfigSchema, mtaPaymentMethodEntitySchema, mtaPaymentMethodFloatAccountConfigSchema, mtaPaymentMethodRestResSchema, mtaReconciledTransactionEntitySchema, mtaReconciledTransactionRestResSchema, mtaReconciliationEntitySchema, mtaReconciliationRestResSchema, mtaRestResBaseSchema, mtaRestResSchema, mtaSettlementPayoutRestResSchema, mtaToCmaPayoutPaymentEntitySchema, mtaToCmaPayoutPaymentRestSchema, mtaToCmaPayoutProvisionDataEntitySchema, mtaToCmaPayoutProvisionDataRestSchema, mtaToCmaPayoutRestResSchema, mtaToCmaPayoutSourceDetailEntitySchema, mtaToCmaPayoutSourceDetailRestSchema, mtaToCmaPayoutTargetDetailEntitySchema, mtaToCmaPayoutTargetDetailRestSchema, mtaTransactionEntitySchema, mtaTransactionNestedSchema, mtaTransactionRestResBaseSchema, mtaTransactionRestResSchema, mtaTransactionSearchRestReqSchema, mtaTransactionStatusSummaryRestResSchema, paginatedResSchema, paginationReqSchema, parseToDate, parseToDayjs, paymentListReportRestReqSchema, paymentProviderEntitySchema, payoutBankFileDownloadHistoryEntitySchema, payoutBankFileEntitySchema, payoutBankFileRestResSchema, payoutEntitySchema, payoutProvisionDataEntitySchema, payoutRestResBaseSchema, payoutRestResSchema, payoutSearchRestReqSchema, payoutStatusSummaryRestResSchema, payoutTransactionEntitySchema, payoutTransactionRestResSchema, payoutTransactionSearchRestReqSchema, payoutUpdateRestReqSchema, projectEntitySchema, projectLedgerRestReqSchema, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectNestedEntitySchema, projectRestResSchema, projectSearchRestReqSchema, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqSchema, propertySyncFromAmmozeGrpcReqSchema, queryModeSchema, receiptListReportRestReqSchema, reconcileCmaTransactionRestReqSchema, reconcileMtaTransactionRestReqSchema, reconciledItemsListReportRestReqSchema, safeParseDateFromStr, settlementPayoutPaymentEntitySchema, settlementPayoutProvisionDataEntitySchema, settlementPayoutRestResSchema, settlementPayoutSourceDetailEntitySchema, settlementPayoutTargetDetailEntitySchema, simpleStringFilterSchema, sortReqSchema, stateCodeSchema, statusFilterSchema, statusNullableFilterSchema, stringFilterSchema, stringNullableFilterSchema, stringToBoolSchema, stringToDateSchema, stringToEndOfDaySchema, stringToStartOfDaySchema, trustTrialBalanceReportRestReqSchema, unknownPayoutPaymentEntitySchema, unknownPayoutProvisionDataEntitySchema, unknownPayoutRestResSchema, unknownPayoutSourceDetailEntitySchema, unknownPayoutTargetDetailEntitySchema, unknownReceiptLedgerRestReqSchema, unreconciledItemsListReportRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateCmaSettlementPayoutRestReqSchema, updateMenuRestReqSchema, updateMtaRestReqSchema, updateMtaSettlementPayoutRestReqSchema, updateMtaToCmaPayoutRestReqSchema, updateMtaTransactionRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateSettlementPayoutRestReqSchema, updateUnknownPayoutRestReqSchema, updateUnknownPayoutTargetDetailRestReqSchema, userEntitySchema, userRestResSchema, validateGetPropertyNameFormat };
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikemo-coposit/am-accounting-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-dev.2",
|
|
4
|
+
"packageManager": "pnpm@10.18.0",
|
|
4
5
|
"description": "Shared packages for AM Accounting",
|
|
5
6
|
"author": "mike mo",
|
|
6
7
|
"license": "ISC",
|
|
@@ -13,39 +14,41 @@
|
|
|
13
14
|
"engines": {
|
|
14
15
|
"node": ">=20.0.0"
|
|
15
16
|
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"prebuild": "node generate-index-files.js",
|
|
19
|
+
"build": "pnpm run prebuild && rm -rf dist && rslib build",
|
|
20
|
+
"start:dev": "rslib build --watch",
|
|
21
|
+
"lint": "eslint \"packages/**/*.ts\" --fix",
|
|
22
|
+
"prepare": "husky",
|
|
23
|
+
"update-version": "node update-version.js",
|
|
24
|
+
"release": "release-it",
|
|
25
|
+
"release:patch": "release-it patch",
|
|
26
|
+
"release:dev": "release-it --preRelease=dev"
|
|
27
|
+
},
|
|
16
28
|
"peerDependencies": {
|
|
17
29
|
"@mikemo-coposit/am-zshared": "^3.0.9",
|
|
18
|
-
"zod": "^4
|
|
30
|
+
"zod": "^4"
|
|
19
31
|
},
|
|
20
32
|
"dependencies": {
|
|
21
|
-
"dayjs": "^1.11.
|
|
33
|
+
"dayjs": "^1.11.18",
|
|
22
34
|
"decimal.js": "^10.6.0"
|
|
23
35
|
},
|
|
24
36
|
"devDependencies": {
|
|
25
|
-
"@antfu/eslint-config": "^5.
|
|
26
|
-
"@commitlint/cli": "^
|
|
27
|
-
"@commitlint/config-conventional": "^
|
|
37
|
+
"@antfu/eslint-config": "^5.4.1",
|
|
38
|
+
"@commitlint/cli": "^20.1.0",
|
|
39
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
28
40
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
29
|
-
"@rslib/core": "^0.
|
|
41
|
+
"@rslib/core": "^0.15.0",
|
|
30
42
|
"@types/node": "^22.17.1",
|
|
31
|
-
"axios": "^1.
|
|
43
|
+
"axios": "^1.12.2",
|
|
32
44
|
"class-transformer": "^0.5.1",
|
|
33
|
-
"eslint-plugin-format": "^1.0.
|
|
45
|
+
"eslint-plugin-format": "^1.0.2",
|
|
34
46
|
"husky": "^9.1.7",
|
|
35
|
-
"lint-staged": "^16.
|
|
36
|
-
"release-it": "^19.0.
|
|
47
|
+
"lint-staged": "^16.2.3",
|
|
48
|
+
"release-it": "^19.0.5",
|
|
37
49
|
"release-it-pnpm": "^4.6.6",
|
|
38
50
|
"rxjs": "^7.8.2",
|
|
39
51
|
"tsconfig-paths": "^4.2.0",
|
|
40
|
-
"typescript": "^5.9.
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"prebuild": "node generate-index-files.js",
|
|
44
|
-
"build": "pnpm run prebuild && rm -rf dist && rslib build",
|
|
45
|
-
"start:dev": "rslib build --watch",
|
|
46
|
-
"lint": "eslint \"packages/**/*.ts\" --fix",
|
|
47
|
-
"update-version": "node update-version.js",
|
|
48
|
-
"release": "release-it",
|
|
49
|
-
"release:patch": "release-it patch"
|
|
52
|
+
"typescript": "^5.9.3"
|
|
50
53
|
}
|
|
51
|
-
}
|
|
54
|
+
}
|