@mikemo-coposit/am-accounting-shared 0.0.12 → 0.0.13
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/index.js +67 -50
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +24 -24
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +8 -8
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +24 -24
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +8 -8
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +156 -156
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +448 -448
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +36 -36
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +16 -16
- package/dist/cjs/schemas/report/index.d.ts +2 -0
- package/dist/cjs/schemas/report/index.d.ts.map +1 -1
- package/dist/cjs/schemas/report/project-ledger.rest.schema.d.ts +34 -0
- package/dist/cjs/schemas/report/project-ledger.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/report/unknown-receipt-ledger.schema.d.ts +30 -0
- package/dist/cjs/schemas/report/unknown-receipt-ledger.schema.d.ts.map +1 -0
- package/dist/cjs/utils/mask-string.util.d.ts +9 -0
- package/dist/cjs/utils/mask-string.util.d.ts.map +1 -1
- package/dist/cjs/utils/payment-credential-generate.util.d.ts +21 -0
- package/dist/cjs/utils/payment-credential-generate.util.d.ts.map +1 -1
- package/dist/cjs/utils/property.util.d.ts +13 -1
- package/dist/cjs/utils/property.util.d.ts.map +1 -1
- package/dist/esm/index.mjs +42 -31
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +24 -24
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +8 -8
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +24 -24
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +8 -8
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +156 -156
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +448 -448
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +36 -36
- package/dist/esm/schemas/property/property.rest.schema.d.ts +16 -16
- package/dist/esm/schemas/report/index.d.ts +2 -0
- package/dist/esm/schemas/report/index.d.ts.map +1 -1
- package/dist/esm/schemas/report/project-ledger.rest.schema.d.ts +34 -0
- package/dist/esm/schemas/report/project-ledger.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/report/unknown-receipt-ledger.schema.d.ts +30 -0
- package/dist/esm/schemas/report/unknown-receipt-ledger.schema.d.ts.map +1 -0
- package/dist/esm/utils/mask-string.util.d.ts +9 -0
- package/dist/esm/utils/mask-string.util.d.ts.map +1 -1
- package/dist/esm/utils/payment-credential-generate.util.d.ts +21 -0
- package/dist/esm/utils/payment-credential-generate.util.d.ts.map +1 -1
- package/dist/esm/utils/property.util.d.ts +13 -1
- package/dist/esm/utils/property.util.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2699,6 +2699,7 @@ var __webpack_exports__ = {};
|
|
|
2699
2699
|
MtaTransactionType: ()=>MtaTransactionType,
|
|
2700
2700
|
payoutTransactionRestResSchema: ()=>payoutTransactionRestResSchema,
|
|
2701
2701
|
stringToDateSchema: ()=>stringToDateSchema,
|
|
2702
|
+
unknownReceiptLedgerRestReqSchema: ()=>unknownReceiptLedgerRestReqSchema,
|
|
2702
2703
|
paginatedResSchema: ()=>paginatedResSchema,
|
|
2703
2704
|
isTransactionCancelable: ()=>isTransactionCancelable,
|
|
2704
2705
|
ReportDataRangeType: ()=>report_data_range_type_constant_ReportDataRangeType,
|
|
@@ -2850,6 +2851,7 @@ var __webpack_exports__ = {};
|
|
|
2850
2851
|
mtaListItemRestResSchema: ()=>mtaListItemRestResSchema,
|
|
2851
2852
|
MtaTransactionPaymentMethod: ()=>mta_payment_method_constant_MtaTransactionPaymentMethod,
|
|
2852
2853
|
cmaReconciledTransactionRestResSchema: ()=>cmaReconciledTransactionRestResSchema,
|
|
2854
|
+
projectLedgerRestReqSchema: ()=>projectLedgerRestReqSchema,
|
|
2853
2855
|
MtaTransactionStatusToDisplayTextMapper: ()=>MtaTransactionStatusToDisplayTextMapper,
|
|
2854
2856
|
payoutRestResBaseSchema: ()=>payoutRestResBaseSchema,
|
|
2855
2857
|
updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema: ()=>updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema,
|
|
@@ -5306,12 +5308,19 @@ var __webpack_exports__ = {};
|
|
|
5306
5308
|
accountId: external_zod_namespaceObject.z.string().uuid(),
|
|
5307
5309
|
accountType: external_zod_namespaceObject.z.nativeEnum(account_type_constant_AccountType)
|
|
5308
5310
|
}));
|
|
5311
|
+
const projectLedgerRestReqSchema = commonReportRestReqSchema.and(external_zod_namespaceObject.z.object({
|
|
5312
|
+
propertyIds: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string().uuid()).min(1),
|
|
5313
|
+
reportGroupType: external_zod_namespaceObject.z.nativeEnum(report_group_type_constant_ReportGroupType)
|
|
5314
|
+
}));
|
|
5309
5315
|
const receiptListReportRestReqSchema = commonReportRestReqSchema.and(external_zod_namespaceObject.z.object({
|
|
5310
5316
|
accountId: external_zod_namespaceObject.z.string().uuid(),
|
|
5311
5317
|
accountType: external_zod_namespaceObject.z.nativeEnum(account_type_constant_AccountType)
|
|
5312
5318
|
}));
|
|
5313
5319
|
const reconciledItemsListReportRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
|
|
5314
5320
|
const trustTrialBalanceReportRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
|
|
5321
|
+
const unknownReceiptLedgerRestReqSchema = commonReportRestReqSchema.and(external_zod_namespaceObject.z.object({
|
|
5322
|
+
mtaId: external_zod_namespaceObject.z.string().uuid()
|
|
5323
|
+
}));
|
|
5315
5324
|
const unreconciledItemsListReportRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
|
|
5316
5325
|
function bind(fn, thisArg) {
|
|
5317
5326
|
return function() {
|
|
@@ -5644,7 +5653,7 @@ var __webpack_exports__ = {};
|
|
|
5644
5653
|
asap,
|
|
5645
5654
|
isIterable
|
|
5646
5655
|
};
|
|
5647
|
-
function
|
|
5656
|
+
function AxiosError(message, code, config, request, response) {
|
|
5648
5657
|
Error.call(this);
|
|
5649
5658
|
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
5650
5659
|
else this.stack = new Error().stack;
|
|
@@ -5658,7 +5667,7 @@ var __webpack_exports__ = {};
|
|
|
5658
5667
|
this.status = response.status ? response.status : null;
|
|
5659
5668
|
}
|
|
5660
5669
|
}
|
|
5661
|
-
utils.inherits(
|
|
5670
|
+
utils.inherits(AxiosError, Error, {
|
|
5662
5671
|
toJSON: function() {
|
|
5663
5672
|
return {
|
|
5664
5673
|
message: this.message,
|
|
@@ -5675,7 +5684,7 @@ var __webpack_exports__ = {};
|
|
|
5675
5684
|
};
|
|
5676
5685
|
}
|
|
5677
5686
|
});
|
|
5678
|
-
const AxiosError_prototype =
|
|
5687
|
+
const AxiosError_prototype = AxiosError.prototype;
|
|
5679
5688
|
const AxiosError_descriptors = {};
|
|
5680
5689
|
[
|
|
5681
5690
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -5695,22 +5704,22 @@ var __webpack_exports__ = {};
|
|
|
5695
5704
|
value: code
|
|
5696
5705
|
};
|
|
5697
5706
|
});
|
|
5698
|
-
Object.defineProperties(
|
|
5707
|
+
Object.defineProperties(AxiosError, AxiosError_descriptors);
|
|
5699
5708
|
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
5700
5709
|
value: true
|
|
5701
5710
|
});
|
|
5702
|
-
|
|
5711
|
+
AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
5703
5712
|
const axiosError = Object.create(AxiosError_prototype);
|
|
5704
5713
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
5705
5714
|
return obj !== Error.prototype;
|
|
5706
5715
|
}, (prop)=>'isAxiosError' !== prop);
|
|
5707
|
-
|
|
5716
|
+
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
5708
5717
|
axiosError.cause = error;
|
|
5709
5718
|
axiosError.name = error.name;
|
|
5710
5719
|
customProps && Object.assign(axiosError, customProps);
|
|
5711
5720
|
return axiosError;
|
|
5712
5721
|
};
|
|
5713
|
-
const
|
|
5722
|
+
const core_AxiosError = AxiosError;
|
|
5714
5723
|
var form_data = __webpack_require__("./node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.js");
|
|
5715
5724
|
const classes_FormData = form_data;
|
|
5716
5725
|
function isVisitable(thing) {
|
|
@@ -5753,7 +5762,7 @@ var __webpack_exports__ = {};
|
|
|
5753
5762
|
if (null === value) return '';
|
|
5754
5763
|
if (utils.isDate(value)) return value.toISOString();
|
|
5755
5764
|
if (utils.isBoolean(value)) return value.toString();
|
|
5756
|
-
if (!useBlob && utils.isBlob(value)) throw new
|
|
5765
|
+
if (!useBlob && utils.isBlob(value)) throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
5757
5766
|
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
5758
5767
|
value
|
|
5759
5768
|
]) : Buffer.from(value);
|
|
@@ -6050,7 +6059,7 @@ var __webpack_exports__ = {};
|
|
|
6050
6059
|
return JSON.parse(data);
|
|
6051
6060
|
} catch (e) {
|
|
6052
6061
|
if (strictJSONParsing) {
|
|
6053
|
-
if ('SyntaxError' === e.name) throw
|
|
6062
|
+
if ('SyntaxError' === e.name) throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
6054
6063
|
throw e;
|
|
6055
6064
|
}
|
|
6056
6065
|
}
|
|
@@ -6347,19 +6356,19 @@ var __webpack_exports__ = {};
|
|
|
6347
6356
|
return !!(value && value.__CANCEL__);
|
|
6348
6357
|
}
|
|
6349
6358
|
function CanceledError(message, config, request) {
|
|
6350
|
-
|
|
6359
|
+
core_AxiosError.call(this, null == message ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
|
|
6351
6360
|
this.name = 'CanceledError';
|
|
6352
6361
|
}
|
|
6353
|
-
utils.inherits(CanceledError,
|
|
6362
|
+
utils.inherits(CanceledError, core_AxiosError, {
|
|
6354
6363
|
__CANCEL__: true
|
|
6355
6364
|
});
|
|
6356
6365
|
const cancel_CanceledError = CanceledError;
|
|
6357
6366
|
function settle(resolve, reject, response) {
|
|
6358
6367
|
const validateStatus = response.config.validateStatus;
|
|
6359
6368
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
6360
|
-
else reject(new
|
|
6361
|
-
|
|
6362
|
-
|
|
6369
|
+
else reject(new core_AxiosError('Request failed with status code ' + response.status, [
|
|
6370
|
+
core_AxiosError.ERR_BAD_REQUEST,
|
|
6371
|
+
core_AxiosError.ERR_BAD_RESPONSE
|
|
6363
6372
|
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
6364
6373
|
}
|
|
6365
6374
|
function isAbsoluteURL(url) {
|
|
@@ -6392,13 +6401,13 @@ var __webpack_exports__ = {};
|
|
|
6392
6401
|
if ('data' === protocol) {
|
|
6393
6402
|
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
|
6394
6403
|
const match = DATA_URL_PATTERN.exec(uri);
|
|
6395
|
-
if (!match) throw new
|
|
6404
|
+
if (!match) throw new core_AxiosError('Invalid URL', core_AxiosError.ERR_INVALID_URL);
|
|
6396
6405
|
const mime = match[1];
|
|
6397
6406
|
const isBase64 = match[2];
|
|
6398
6407
|
const body = match[3];
|
|
6399
6408
|
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');
|
|
6400
6409
|
if (asBlob) {
|
|
6401
|
-
if (!_Blob) throw new
|
|
6410
|
+
if (!_Blob) throw new core_AxiosError('Blob is not supported', core_AxiosError.ERR_NOT_SUPPORT);
|
|
6402
6411
|
return new _Blob([
|
|
6403
6412
|
buffer
|
|
6404
6413
|
], {
|
|
@@ -6407,7 +6416,7 @@ var __webpack_exports__ = {};
|
|
|
6407
6416
|
}
|
|
6408
6417
|
return buffer;
|
|
6409
6418
|
}
|
|
6410
|
-
throw new
|
|
6419
|
+
throw new core_AxiosError('Unsupported protocol ' + protocol, core_AxiosError.ERR_NOT_SUPPORT);
|
|
6411
6420
|
}
|
|
6412
6421
|
var external_stream_ = __webpack_require__("stream");
|
|
6413
6422
|
const kInternals = Symbol('internals');
|
|
@@ -6593,7 +6602,7 @@ var __webpack_exports__ = {};
|
|
|
6593
6602
|
}
|
|
6594
6603
|
}
|
|
6595
6604
|
const helpers_ZlibHeaderTransformStream = ZlibHeaderTransformStream;
|
|
6596
|
-
const
|
|
6605
|
+
const callbackify_callbackify = (fn, reducer)=>utils.isAsyncFn(fn) ? function(...args) {
|
|
6597
6606
|
const cb = args.pop();
|
|
6598
6607
|
fn.apply(this, args).then((value)=>{
|
|
6599
6608
|
try {
|
|
@@ -6603,7 +6612,7 @@ var __webpack_exports__ = {};
|
|
|
6603
6612
|
}
|
|
6604
6613
|
}, cb);
|
|
6605
6614
|
} : fn;
|
|
6606
|
-
const
|
|
6615
|
+
const callbackify = callbackify_callbackify;
|
|
6607
6616
|
function speedometer(samplesCount, min) {
|
|
6608
6617
|
samplesCount = samplesCount || 10;
|
|
6609
6618
|
const bytes = new Array(samplesCount);
|
|
@@ -6785,7 +6794,7 @@ var __webpack_exports__ = {};
|
|
|
6785
6794
|
let rejected = false;
|
|
6786
6795
|
let req;
|
|
6787
6796
|
if (lookup) {
|
|
6788
|
-
const _lookup =
|
|
6797
|
+
const _lookup = callbackify(lookup, (value)=>utils.isArray(value) ? value : [
|
|
6789
6798
|
value
|
|
6790
6799
|
]);
|
|
6791
6800
|
lookup = (hostname, opt, cb)=>{
|
|
@@ -6835,7 +6844,7 @@ var __webpack_exports__ = {};
|
|
|
6835
6844
|
Blob: config.env && config.env.Blob
|
|
6836
6845
|
});
|
|
6837
6846
|
} catch (err) {
|
|
6838
|
-
throw
|
|
6847
|
+
throw core_AxiosError.from(err, core_AxiosError.ERR_BAD_REQUEST, config);
|
|
6839
6848
|
}
|
|
6840
6849
|
if ('text' === responseType) {
|
|
6841
6850
|
convertedData = convertedData.toString(responseEncoding);
|
|
@@ -6849,7 +6858,7 @@ var __webpack_exports__ = {};
|
|
|
6849
6858
|
config
|
|
6850
6859
|
});
|
|
6851
6860
|
}
|
|
6852
|
-
if (-1 === supportedProtocols.indexOf(protocol)) return reject(new
|
|
6861
|
+
if (-1 === supportedProtocols.indexOf(protocol)) return reject(new core_AxiosError('Unsupported protocol ' + protocol, core_AxiosError.ERR_BAD_REQUEST, config));
|
|
6853
6862
|
const headers = AxiosHeaders.from(config.headers).normalize();
|
|
6854
6863
|
headers.set('User-Agent', 'axios/' + VERSION, false);
|
|
6855
6864
|
const { onUploadProgress, onDownloadProgress } = config;
|
|
@@ -6878,11 +6887,11 @@ var __webpack_exports__ = {};
|
|
|
6878
6887
|
if (Buffer.isBuffer(data)) ;
|
|
6879
6888
|
else if (utils.isArrayBuffer(data)) data = Buffer.from(new Uint8Array(data));
|
|
6880
6889
|
else {
|
|
6881
|
-
if (!utils.isString(data)) return reject(new
|
|
6890
|
+
if (!utils.isString(data)) return reject(new core_AxiosError('Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', core_AxiosError.ERR_BAD_REQUEST, config));
|
|
6882
6891
|
data = Buffer.from(data, 'utf-8');
|
|
6883
6892
|
}
|
|
6884
6893
|
headers.setContentLength(data.length, false);
|
|
6885
|
-
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) return reject(new
|
|
6894
|
+
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) return reject(new core_AxiosError('Request body larger than maxBodyLength limit', core_AxiosError.ERR_BAD_REQUEST, config));
|
|
6886
6895
|
}
|
|
6887
6896
|
const contentLength = utils.toFiniteNumber(headers.getContentLength());
|
|
6888
6897
|
if (utils.isArray(maxRate)) {
|
|
@@ -7019,18 +7028,18 @@ var __webpack_exports__ = {};
|
|
|
7019
7028
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
7020
7029
|
rejected = true;
|
|
7021
7030
|
responseStream.destroy();
|
|
7022
|
-
reject(new
|
|
7031
|
+
reject(new core_AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded', core_AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
|
|
7023
7032
|
}
|
|
7024
7033
|
});
|
|
7025
7034
|
responseStream.on('aborted', function() {
|
|
7026
7035
|
if (rejected) return;
|
|
7027
|
-
const err = new
|
|
7036
|
+
const err = new core_AxiosError('stream has been aborted', core_AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
|
|
7028
7037
|
responseStream.destroy(err);
|
|
7029
7038
|
reject(err);
|
|
7030
7039
|
});
|
|
7031
7040
|
responseStream.on('error', function(err) {
|
|
7032
7041
|
if (req.destroyed) return;
|
|
7033
|
-
reject(
|
|
7042
|
+
reject(core_AxiosError.from(err, null, config, lastRequest));
|
|
7034
7043
|
});
|
|
7035
7044
|
responseStream.on('end', function() {
|
|
7036
7045
|
try {
|
|
@@ -7041,7 +7050,7 @@ var __webpack_exports__ = {};
|
|
|
7041
7050
|
}
|
|
7042
7051
|
response.data = responseData;
|
|
7043
7052
|
} catch (err) {
|
|
7044
|
-
return reject(
|
|
7053
|
+
return reject(core_AxiosError.from(err, null, config, response.request, response));
|
|
7045
7054
|
}
|
|
7046
7055
|
settle(resolve, reject, response);
|
|
7047
7056
|
});
|
|
@@ -7058,20 +7067,20 @@ var __webpack_exports__ = {};
|
|
|
7058
7067
|
req.destroy(err);
|
|
7059
7068
|
});
|
|
7060
7069
|
req.on('error', function(err) {
|
|
7061
|
-
reject(
|
|
7070
|
+
reject(core_AxiosError.from(err, null, config, req));
|
|
7062
7071
|
});
|
|
7063
7072
|
req.on('socket', function(socket) {
|
|
7064
7073
|
socket.setKeepAlive(true, 60000);
|
|
7065
7074
|
});
|
|
7066
7075
|
if (config.timeout) {
|
|
7067
7076
|
const timeout = parseInt(config.timeout, 10);
|
|
7068
|
-
if (Number.isNaN(timeout)) return void reject(new
|
|
7077
|
+
if (Number.isNaN(timeout)) return void reject(new core_AxiosError('error trying to parse `config.timeout` to int', core_AxiosError.ERR_BAD_OPTION_VALUE, config, req));
|
|
7069
7078
|
req.setTimeout(timeout, function() {
|
|
7070
7079
|
if (isDone) return;
|
|
7071
7080
|
let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
7072
7081
|
const transitional = config.transitional || defaults_transitional;
|
|
7073
7082
|
if (config.timeoutErrorMessage) timeoutErrorMessage = config.timeoutErrorMessage;
|
|
7074
|
-
reject(new
|
|
7083
|
+
reject(new core_AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED, config, req));
|
|
7075
7084
|
abort();
|
|
7076
7085
|
});
|
|
7077
7086
|
}
|
|
@@ -7265,18 +7274,18 @@ var __webpack_exports__ = {};
|
|
|
7265
7274
|
};
|
|
7266
7275
|
request.onabort = function() {
|
|
7267
7276
|
if (!request) return;
|
|
7268
|
-
reject(new
|
|
7277
|
+
reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
|
|
7269
7278
|
request = null;
|
|
7270
7279
|
};
|
|
7271
7280
|
request.onerror = function() {
|
|
7272
|
-
reject(new
|
|
7281
|
+
reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
|
|
7273
7282
|
request = null;
|
|
7274
7283
|
};
|
|
7275
7284
|
request.ontimeout = function() {
|
|
7276
7285
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
7277
7286
|
const transitional = _config.transitional || defaults_transitional;
|
|
7278
7287
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
7279
|
-
reject(new
|
|
7288
|
+
reject(new core_AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED, config, request));
|
|
7280
7289
|
request = null;
|
|
7281
7290
|
};
|
|
7282
7291
|
void 0 === requestData && requestHeaders.setContentType(null);
|
|
@@ -7305,11 +7314,11 @@ var __webpack_exports__ = {};
|
|
|
7305
7314
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
7306
7315
|
}
|
|
7307
7316
|
const protocol = parseProtocol(_config.url);
|
|
7308
|
-
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new
|
|
7317
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
|
|
7309
7318
|
request.send(requestData || null);
|
|
7310
7319
|
});
|
|
7311
7320
|
};
|
|
7312
|
-
const
|
|
7321
|
+
const composeSignals = (signals, timeout)=>{
|
|
7313
7322
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
7314
7323
|
if (timeout || length) {
|
|
7315
7324
|
let controller = new AbortController();
|
|
@@ -7319,12 +7328,12 @@ var __webpack_exports__ = {};
|
|
|
7319
7328
|
aborted = true;
|
|
7320
7329
|
unsubscribe();
|
|
7321
7330
|
const err = reason instanceof Error ? reason : this.reason;
|
|
7322
|
-
controller.abort(err instanceof
|
|
7331
|
+
controller.abort(err instanceof core_AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err));
|
|
7323
7332
|
}
|
|
7324
7333
|
};
|
|
7325
7334
|
let timer = timeout && setTimeout(()=>{
|
|
7326
7335
|
timer = null;
|
|
7327
|
-
onabort(new
|
|
7336
|
+
onabort(new core_AxiosError(`timeout ${timeout} of ms exceeded`, core_AxiosError.ETIMEDOUT));
|
|
7328
7337
|
}, timeout);
|
|
7329
7338
|
const unsubscribe = ()=>{
|
|
7330
7339
|
if (signals) {
|
|
@@ -7342,7 +7351,7 @@ var __webpack_exports__ = {};
|
|
|
7342
7351
|
return signal;
|
|
7343
7352
|
}
|
|
7344
7353
|
};
|
|
7345
|
-
const
|
|
7354
|
+
const helpers_composeSignals = composeSignals;
|
|
7346
7355
|
const streamChunk = function*(chunk, chunkSize) {
|
|
7347
7356
|
let len = chunk.byteLength;
|
|
7348
7357
|
if (!chunkSize || len < chunkSize) return void (yield chunk);
|
|
@@ -7444,7 +7453,7 @@ var __webpack_exports__ = {};
|
|
|
7444
7453
|
'stream'
|
|
7445
7454
|
].forEach((type)=>{
|
|
7446
7455
|
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
7447
|
-
throw new
|
|
7456
|
+
throw new core_AxiosError(`Response type '${type}' is not supported`, core_AxiosError.ERR_NOT_SUPPORT, config);
|
|
7448
7457
|
});
|
|
7449
7458
|
});
|
|
7450
7459
|
})(new Response);
|
|
@@ -7469,7 +7478,7 @@ var __webpack_exports__ = {};
|
|
|
7469
7478
|
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
7470
7479
|
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
7471
7480
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
7472
|
-
let composedSignal =
|
|
7481
|
+
let composedSignal = helpers_composeSignals([
|
|
7473
7482
|
signal,
|
|
7474
7483
|
cancelToken && cancelToken.toAbortSignal()
|
|
7475
7484
|
], timeout);
|
|
@@ -7536,10 +7545,10 @@ var __webpack_exports__ = {};
|
|
|
7536
7545
|
});
|
|
7537
7546
|
} catch (err) {
|
|
7538
7547
|
unsubscribe && unsubscribe();
|
|
7539
|
-
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new
|
|
7548
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request), {
|
|
7540
7549
|
cause: err.cause || err
|
|
7541
7550
|
});
|
|
7542
|
-
throw
|
|
7551
|
+
throw core_AxiosError.from(err, err && err.code, config, request);
|
|
7543
7552
|
}
|
|
7544
7553
|
});
|
|
7545
7554
|
const knownAdapters = {
|
|
@@ -7576,7 +7585,7 @@ var __webpack_exports__ = {};
|
|
|
7576
7585
|
adapter = nameOrAdapter;
|
|
7577
7586
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
7578
7587
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
7579
|
-
if (void 0 === adapter) throw new
|
|
7588
|
+
if (void 0 === adapter) throw new core_AxiosError(`Unknown adapter '${id}'`);
|
|
7580
7589
|
}
|
|
7581
7590
|
if (adapter) break;
|
|
7582
7591
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -7584,7 +7593,7 @@ var __webpack_exports__ = {};
|
|
|
7584
7593
|
if (!adapter) {
|
|
7585
7594
|
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
7586
7595
|
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
7587
|
-
throw new
|
|
7596
|
+
throw new core_AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
7588
7597
|
}
|
|
7589
7598
|
return adapter;
|
|
7590
7599
|
},
|
|
@@ -7639,7 +7648,7 @@ var __webpack_exports__ = {};
|
|
|
7639
7648
|
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
7640
7649
|
}
|
|
7641
7650
|
return (value, opt, opts)=>{
|
|
7642
|
-
if (false === validator) throw new
|
|
7651
|
+
if (false === validator) throw new core_AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), core_AxiosError.ERR_DEPRECATED);
|
|
7643
7652
|
if (version && !deprecatedWarnings[opt]) {
|
|
7644
7653
|
deprecatedWarnings[opt] = true;
|
|
7645
7654
|
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
@@ -7654,7 +7663,7 @@ var __webpack_exports__ = {};
|
|
|
7654
7663
|
};
|
|
7655
7664
|
};
|
|
7656
7665
|
function assertOptions(options, schema, allowUnknown) {
|
|
7657
|
-
if ('object' != typeof options) throw new
|
|
7666
|
+
if ('object' != typeof options) throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
7658
7667
|
const keys = Object.keys(options);
|
|
7659
7668
|
let i = keys.length;
|
|
7660
7669
|
while(i-- > 0){
|
|
@@ -7663,10 +7672,10 @@ var __webpack_exports__ = {};
|
|
|
7663
7672
|
if (validator) {
|
|
7664
7673
|
const value = options[opt];
|
|
7665
7674
|
const result = void 0 === value || validator(value, opt, options);
|
|
7666
|
-
if (true !== result) throw new
|
|
7675
|
+
if (true !== result) throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
7667
7676
|
continue;
|
|
7668
7677
|
}
|
|
7669
|
-
if (true !== allowUnknown) throw new
|
|
7678
|
+
if (true !== allowUnknown) throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
|
|
7670
7679
|
}
|
|
7671
7680
|
}
|
|
7672
7681
|
const helpers_validator = {
|
|
@@ -7994,7 +8003,7 @@ var __webpack_exports__ = {};
|
|
|
7994
8003
|
axios.isCancel = isCancel;
|
|
7995
8004
|
axios.VERSION = VERSION;
|
|
7996
8005
|
axios.toFormData = helpers_toFormData;
|
|
7997
|
-
axios.AxiosError =
|
|
8006
|
+
axios.AxiosError = core_AxiosError;
|
|
7998
8007
|
axios.Cancel = axios.CanceledError;
|
|
7999
8008
|
axios.all = function(promises) {
|
|
8000
8009
|
return Promise.all(promises);
|
|
@@ -8093,6 +8102,10 @@ var __webpack_exports__ = {};
|
|
|
8093
8102
|
lotDetail,
|
|
8094
8103
|
project?.name
|
|
8095
8104
|
];
|
|
8105
|
+
if ('report' === target) names = [
|
|
8106
|
+
lotDetail,
|
|
8107
|
+
property.propertyAddress
|
|
8108
|
+
];
|
|
8096
8109
|
names = names.filter(Boolean);
|
|
8097
8110
|
return names.length > 0 ? names.join(' ') : 'Nill';
|
|
8098
8111
|
};
|
|
@@ -8299,6 +8312,7 @@ exports.payoutTransactionRestResSchema = __webpack_exports__.payoutTransactionRe
|
|
|
8299
8312
|
exports.payoutTransactionSearchRestReqSchema = __webpack_exports__.payoutTransactionSearchRestReqSchema;
|
|
8300
8313
|
exports.payoutUpdateRestReqSchema = __webpack_exports__.payoutUpdateRestReqSchema;
|
|
8301
8314
|
exports.projectEntitySchema = __webpack_exports__.projectEntitySchema;
|
|
8315
|
+
exports.projectLedgerRestReqSchema = __webpack_exports__.projectLedgerRestReqSchema;
|
|
8302
8316
|
exports.projectMtaAllocationEntitySchema = __webpack_exports__.projectMtaAllocationEntitySchema;
|
|
8303
8317
|
exports.projectMtaAllocationRestResSchema = __webpack_exports__.projectMtaAllocationRestResSchema;
|
|
8304
8318
|
exports.projectNestedEntitySchema = __webpack_exports__.projectNestedEntitySchema;
|
|
@@ -8331,6 +8345,7 @@ exports.unknownPayoutProvisionDataEntitySchema = __webpack_exports__.unknownPayo
|
|
|
8331
8345
|
exports.unknownPayoutRestResSchema = __webpack_exports__.unknownPayoutRestResSchema;
|
|
8332
8346
|
exports.unknownPayoutSourceDetailEntitySchema = __webpack_exports__.unknownPayoutSourceDetailEntitySchema;
|
|
8333
8347
|
exports.unknownPayoutTargetDetailEntitySchema = __webpack_exports__.unknownPayoutTargetDetailEntitySchema;
|
|
8348
|
+
exports.unknownReceiptLedgerRestReqSchema = __webpack_exports__.unknownReceiptLedgerRestReqSchema;
|
|
8334
8349
|
exports.unreconciledItemsListReportRestReqSchema = __webpack_exports__.unreconciledItemsListReportRestReqSchema;
|
|
8335
8350
|
exports.updateCmaAccountPeriodReconciledToRestReqSchema = __webpack_exports__.updateCmaAccountPeriodReconciledToRestReqSchema;
|
|
8336
8351
|
exports.updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema = __webpack_exports__.updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema;
|
|
@@ -8549,6 +8564,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
8549
8564
|
"payoutTransactionSearchRestReqSchema",
|
|
8550
8565
|
"payoutUpdateRestReqSchema",
|
|
8551
8566
|
"projectEntitySchema",
|
|
8567
|
+
"projectLedgerRestReqSchema",
|
|
8552
8568
|
"projectMtaAllocationEntitySchema",
|
|
8553
8569
|
"projectMtaAllocationRestResSchema",
|
|
8554
8570
|
"projectNestedEntitySchema",
|
|
@@ -8581,6 +8597,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
8581
8597
|
"unknownPayoutRestResSchema",
|
|
8582
8598
|
"unknownPayoutSourceDetailEntitySchema",
|
|
8583
8599
|
"unknownPayoutTargetDetailEntitySchema",
|
|
8600
|
+
"unknownReceiptLedgerRestReqSchema",
|
|
8584
8601
|
"unreconciledItemsListReportRestReqSchema",
|
|
8585
8602
|
"updateCmaAccountPeriodReconciledToRestReqSchema",
|
|
8586
8603
|
"updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema",
|