@mikemo-coposit/am-accounting-shared 0.0.18 → 0.0.20
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/index.js +127 -63
- package/dist/cjs/schemas/cma/cma-search.rest.schemal.d.ts +202 -1
- package/dist/cjs/schemas/cma/cma-search.rest.schemal.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +203 -2
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/pagination-req.schema.d.ts +1 -1
- package/dist/cjs/schemas/common/search/pagination-req.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/index.d.ts +1 -0
- package/dist/cjs/schemas/mta-transaction/index.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +301 -103
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/update-mta-transaction.rest.schema.d.ts +8 -0
- package/dist/cjs/schemas/mta-transaction/update-mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/project/index.d.ts +1 -0
- package/dist/cjs/schemas/project/index.d.ts.map +1 -1
- package/dist/cjs/schemas/project/project-search.rest.schema.d.ts +205 -0
- package/dist/cjs/schemas/project/project-search.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts +202 -1
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/cjs/utils/date.util.d.ts.map +1 -1
- package/dist/esm/constants/common/package-version.constant.d.ts +1 -1
- package/dist/esm/index.mjs +108 -50
- package/dist/esm/schemas/cma/cma-search.rest.schemal.d.ts +202 -1
- package/dist/esm/schemas/cma/cma-search.rest.schemal.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +203 -2
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/pagination-req.schema.d.ts +1 -1
- package/dist/esm/schemas/common/search/pagination-req.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/index.d.ts +1 -0
- package/dist/esm/schemas/mta-transaction/index.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +301 -103
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/update-mta-transaction.rest.schema.d.ts +8 -0
- package/dist/esm/schemas/mta-transaction/update-mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/project/index.d.ts +1 -0
- package/dist/esm/schemas/project/index.d.ts.map +1 -1
- package/dist/esm/schemas/project/project-search.rest.schema.d.ts +205 -0
- package/dist/esm/schemas/project/project-search.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts +202 -1
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/esm/utils/date.util.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -455,7 +455,7 @@ const simpleStringFilterSchema = z.strictObject({
|
|
|
455
455
|
mode: z.lazy(()=>queryModeSchema).optional()
|
|
456
456
|
});
|
|
457
457
|
const paginationReqSchema = z.object({
|
|
458
|
-
page: z.coerce.number().
|
|
458
|
+
page: z.coerce.number().pipe(z.int().positive()).optional(),
|
|
459
459
|
pageSize: z.coerce.number().pipe(z.int().positive()).optional()
|
|
460
460
|
});
|
|
461
461
|
const sortReqSchema = zod.record(zod.string(), zod.string().transform((val)=>{
|
|
@@ -484,6 +484,38 @@ const statusNullableFilterSchema = z.union([
|
|
|
484
484
|
if ('object' == typeof val && 0 === Object.keys(val).length) return;
|
|
485
485
|
return val;
|
|
486
486
|
}).nullish();
|
|
487
|
+
const projectSearchRestReqSchema = z.object({
|
|
488
|
+
id: z.union([
|
|
489
|
+
z.lazy(()=>stringFilterSchema),
|
|
490
|
+
z.string()
|
|
491
|
+
]).optional(),
|
|
492
|
+
name: z.union([
|
|
493
|
+
z.lazy(()=>stringFilterSchema),
|
|
494
|
+
z.string()
|
|
495
|
+
]).optional(),
|
|
496
|
+
developerId: z.union([
|
|
497
|
+
z.lazy(()=>stringFilterSchema),
|
|
498
|
+
z.string()
|
|
499
|
+
]).optional(),
|
|
500
|
+
mtaId: z.union([
|
|
501
|
+
z.lazy(()=>stringNullableFilterSchema),
|
|
502
|
+
z.string()
|
|
503
|
+
]).optional(),
|
|
504
|
+
state: z.union([
|
|
505
|
+
z.lazy(()=>stringFilterSchema),
|
|
506
|
+
z.string()
|
|
507
|
+
]).optional(),
|
|
508
|
+
type: z.union([
|
|
509
|
+
z.lazy(()=>stringFilterSchema),
|
|
510
|
+
z.string()
|
|
511
|
+
]).optional(),
|
|
512
|
+
status: z.union([
|
|
513
|
+
z.lazy(()=>stringFilterSchema),
|
|
514
|
+
z.string()
|
|
515
|
+
]).optional(),
|
|
516
|
+
...paginationReqSchema.shape,
|
|
517
|
+
sort: sortReqSchema.optional()
|
|
518
|
+
});
|
|
487
519
|
const propertySearchRestReqSchema = z.object({
|
|
488
520
|
id: z.union([
|
|
489
521
|
z.lazy(()=>stringFilterSchema),
|
|
@@ -521,6 +553,7 @@ const propertySearchRestReqSchema = z.object({
|
|
|
521
553
|
cmaBalanceCents: bigIntFilterSchema.optional(),
|
|
522
554
|
balanceCents: bigIntFilterSchema.optional(),
|
|
523
555
|
status: statusFilterSchema.optional(),
|
|
556
|
+
project: projectSearchRestReqSchema.optional(),
|
|
524
557
|
cmaId: z.union([
|
|
525
558
|
z.lazy(()=>stringNullableFilterSchema),
|
|
526
559
|
z.string()
|
|
@@ -1304,19 +1337,36 @@ const safeParseDateFromStr = (dateStr, options)=>{
|
|
|
1304
1337
|
dayjs: null,
|
|
1305
1338
|
reason: 'received empty string'
|
|
1306
1339
|
};
|
|
1307
|
-
if (isDayjs(dateStr))
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1340
|
+
if (isDayjs(dateStr)) {
|
|
1341
|
+
const parsedDate = dateStr;
|
|
1342
|
+
if (!parsedDate.isValid()) return {
|
|
1343
|
+
isValid: false,
|
|
1344
|
+
date: null,
|
|
1345
|
+
dayjs: null,
|
|
1346
|
+
reason: 'invalid dayjs object received'
|
|
1347
|
+
};
|
|
1348
|
+
return {
|
|
1349
|
+
isValid: true,
|
|
1350
|
+
date: dateStr.toDate(),
|
|
1351
|
+
dayjs: dateStr
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
if (dateStr instanceof Date) {
|
|
1355
|
+
const parsedDate = dayjs_0(dateStr);
|
|
1356
|
+
if (!parsedDate.isValid()) return {
|
|
1357
|
+
isValid: false,
|
|
1358
|
+
date: null,
|
|
1359
|
+
dayjs: null,
|
|
1360
|
+
reason: 'invalid date object received'
|
|
1361
|
+
};
|
|
1362
|
+
return {
|
|
1363
|
+
isValid: true,
|
|
1364
|
+
date: dateStr,
|
|
1365
|
+
dayjs: parsedDate
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1368
|
+
let parsedDate = dayjs_0('');
|
|
1369
|
+
parsedDate = dateStr.trim().endsWith('Z') ? dayjs_0(dateStr?.trim()).tz(timeZone) : dayjs_0(dateStr?.trim(), format, timeZone, strict);
|
|
1320
1370
|
if (!parsedDate.isValid()) return {
|
|
1321
1371
|
isValid: false,
|
|
1322
1372
|
date: null,
|
|
@@ -2088,7 +2138,11 @@ const mtaTransactionSearchRestReqSchema = z.object({
|
|
|
2088
2138
|
]).optional(),
|
|
2089
2139
|
creditAmountCents: bigIntFilterSchema.optional(),
|
|
2090
2140
|
debitAmountCents: bigIntFilterSchema.optional(),
|
|
2091
|
-
property: z.lazy(()=>propertySearchRestReqSchema
|
|
2141
|
+
property: z.lazy(()=>propertySearchRestReqSchema.omit({
|
|
2142
|
+
page: true,
|
|
2143
|
+
pageSize: true,
|
|
2144
|
+
sort: true
|
|
2145
|
+
})).optional().nullable(),
|
|
2092
2146
|
sort: z.lazy(()=>sortReqSchema).optional()
|
|
2093
2147
|
}).and(paginationReqSchema.optional());
|
|
2094
2148
|
const mtaTransactionStatusSummaryRestResSchema = z.object({
|
|
@@ -2100,6 +2154,10 @@ const reconcileMtaTransactionRestReqSchema = z.object({
|
|
|
2100
2154
|
reconciliationId: z.uuid(),
|
|
2101
2155
|
action: z["enum"](reconcile_transaction_action_constant_ReconcileTransactionAction)
|
|
2102
2156
|
});
|
|
2157
|
+
const updateMtaTransactionRestReqSchema = zod.object({
|
|
2158
|
+
bankRef: zod.string().optional(),
|
|
2159
|
+
description: zod.string().optional()
|
|
2160
|
+
});
|
|
2103
2161
|
const cancelPayoutPaymentRestReqSchema = z.object({
|
|
2104
2162
|
payoutId: z.uuid(),
|
|
2105
2163
|
payoutTransactionId: z.uuid(),
|
|
@@ -2963,7 +3021,7 @@ const utils = {
|
|
|
2963
3021
|
asap,
|
|
2964
3022
|
isIterable
|
|
2965
3023
|
};
|
|
2966
|
-
function
|
|
3024
|
+
function AxiosError(message, code, config, request, response) {
|
|
2967
3025
|
Error.call(this);
|
|
2968
3026
|
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
2969
3027
|
else this.stack = new Error().stack;
|
|
@@ -2977,7 +3035,7 @@ function AxiosError_AxiosError(message, code, config, request, response) {
|
|
|
2977
3035
|
this.status = response.status ? response.status : null;
|
|
2978
3036
|
}
|
|
2979
3037
|
}
|
|
2980
|
-
utils.inherits(
|
|
3038
|
+
utils.inherits(AxiosError, Error, {
|
|
2981
3039
|
toJSON: function() {
|
|
2982
3040
|
return {
|
|
2983
3041
|
message: this.message,
|
|
@@ -2994,7 +3052,7 @@ utils.inherits(AxiosError_AxiosError, Error, {
|
|
|
2994
3052
|
};
|
|
2995
3053
|
}
|
|
2996
3054
|
});
|
|
2997
|
-
const AxiosError_prototype =
|
|
3055
|
+
const AxiosError_prototype = AxiosError.prototype;
|
|
2998
3056
|
const AxiosError_descriptors = {};
|
|
2999
3057
|
[
|
|
3000
3058
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -3014,22 +3072,22 @@ const AxiosError_descriptors = {};
|
|
|
3014
3072
|
value: code
|
|
3015
3073
|
};
|
|
3016
3074
|
});
|
|
3017
|
-
Object.defineProperties(
|
|
3075
|
+
Object.defineProperties(AxiosError, AxiosError_descriptors);
|
|
3018
3076
|
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
3019
3077
|
value: true
|
|
3020
3078
|
});
|
|
3021
|
-
|
|
3079
|
+
AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
3022
3080
|
const axiosError = Object.create(AxiosError_prototype);
|
|
3023
3081
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
3024
3082
|
return obj !== Error.prototype;
|
|
3025
3083
|
}, (prop)=>'isAxiosError' !== prop);
|
|
3026
|
-
|
|
3084
|
+
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
3027
3085
|
axiosError.cause = error;
|
|
3028
3086
|
axiosError.name = error.name;
|
|
3029
3087
|
customProps && Object.assign(axiosError, customProps);
|
|
3030
3088
|
return axiosError;
|
|
3031
3089
|
};
|
|
3032
|
-
const
|
|
3090
|
+
const core_AxiosError = AxiosError;
|
|
3033
3091
|
const helpers_null = null;
|
|
3034
3092
|
function isVisitable(thing) {
|
|
3035
3093
|
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
@@ -3071,7 +3129,7 @@ function toFormData(obj, formData, options) {
|
|
|
3071
3129
|
if (null === value) return '';
|
|
3072
3130
|
if (utils.isDate(value)) return value.toISOString();
|
|
3073
3131
|
if (utils.isBoolean(value)) return value.toString();
|
|
3074
|
-
if (!useBlob && utils.isBlob(value)) throw new
|
|
3132
|
+
if (!useBlob && utils.isBlob(value)) throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
3075
3133
|
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
3076
3134
|
value
|
|
3077
3135
|
]) : Buffer.from(value);
|
|
@@ -3353,7 +3411,7 @@ const defaults = {
|
|
|
3353
3411
|
return JSON.parse(data);
|
|
3354
3412
|
} catch (e) {
|
|
3355
3413
|
if (strictJSONParsing) {
|
|
3356
|
-
if ('SyntaxError' === e.name) throw
|
|
3414
|
+
if ('SyntaxError' === e.name) throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
3357
3415
|
throw e;
|
|
3358
3416
|
}
|
|
3359
3417
|
}
|
|
@@ -3650,19 +3708,19 @@ function isCancel(value) {
|
|
|
3650
3708
|
return !!(value && value.__CANCEL__);
|
|
3651
3709
|
}
|
|
3652
3710
|
function CanceledError(message, config, request) {
|
|
3653
|
-
|
|
3711
|
+
core_AxiosError.call(this, null == message ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
|
|
3654
3712
|
this.name = 'CanceledError';
|
|
3655
3713
|
}
|
|
3656
|
-
utils.inherits(CanceledError,
|
|
3714
|
+
utils.inherits(CanceledError, core_AxiosError, {
|
|
3657
3715
|
__CANCEL__: true
|
|
3658
3716
|
});
|
|
3659
3717
|
const cancel_CanceledError = CanceledError;
|
|
3660
3718
|
function settle(resolve, reject, response) {
|
|
3661
3719
|
const validateStatus = response.config.validateStatus;
|
|
3662
3720
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
3663
|
-
else reject(new
|
|
3664
|
-
|
|
3665
|
-
|
|
3721
|
+
else reject(new core_AxiosError('Request failed with status code ' + response.status, [
|
|
3722
|
+
core_AxiosError.ERR_BAD_REQUEST,
|
|
3723
|
+
core_AxiosError.ERR_BAD_RESPONSE
|
|
3666
3724
|
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
3667
3725
|
}
|
|
3668
3726
|
function parseProtocol(url) {
|
|
@@ -3950,18 +4008,18 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3950
4008
|
};
|
|
3951
4009
|
request.onabort = function() {
|
|
3952
4010
|
if (!request) return;
|
|
3953
|
-
reject(new
|
|
4011
|
+
reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
|
|
3954
4012
|
request = null;
|
|
3955
4013
|
};
|
|
3956
4014
|
request.onerror = function() {
|
|
3957
|
-
reject(new
|
|
4015
|
+
reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
|
|
3958
4016
|
request = null;
|
|
3959
4017
|
};
|
|
3960
4018
|
request.ontimeout = function() {
|
|
3961
4019
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
3962
4020
|
const transitional = _config.transitional || defaults_transitional;
|
|
3963
4021
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3964
|
-
reject(new
|
|
4022
|
+
reject(new core_AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED, config, request));
|
|
3965
4023
|
request = null;
|
|
3966
4024
|
};
|
|
3967
4025
|
void 0 === requestData && requestHeaders.setContentType(null);
|
|
@@ -3990,11 +4048,11 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3990
4048
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
3991
4049
|
}
|
|
3992
4050
|
const protocol = parseProtocol(_config.url);
|
|
3993
|
-
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new
|
|
4051
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
|
|
3994
4052
|
request.send(requestData || null);
|
|
3995
4053
|
});
|
|
3996
4054
|
};
|
|
3997
|
-
const
|
|
4055
|
+
const composeSignals = (signals, timeout)=>{
|
|
3998
4056
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
3999
4057
|
if (timeout || length) {
|
|
4000
4058
|
let controller = new AbortController();
|
|
@@ -4004,12 +4062,12 @@ const composeSignals_composeSignals = (signals, timeout)=>{
|
|
|
4004
4062
|
aborted = true;
|
|
4005
4063
|
unsubscribe();
|
|
4006
4064
|
const err = reason instanceof Error ? reason : this.reason;
|
|
4007
|
-
controller.abort(err instanceof
|
|
4065
|
+
controller.abort(err instanceof core_AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err));
|
|
4008
4066
|
}
|
|
4009
4067
|
};
|
|
4010
4068
|
let timer = timeout && setTimeout(()=>{
|
|
4011
4069
|
timer = null;
|
|
4012
|
-
onabort(new
|
|
4070
|
+
onabort(new core_AxiosError(`timeout ${timeout} of ms exceeded`, core_AxiosError.ETIMEDOUT));
|
|
4013
4071
|
}, timeout);
|
|
4014
4072
|
const unsubscribe = ()=>{
|
|
4015
4073
|
if (signals) {
|
|
@@ -4027,7 +4085,7 @@ const composeSignals_composeSignals = (signals, timeout)=>{
|
|
|
4027
4085
|
return signal;
|
|
4028
4086
|
}
|
|
4029
4087
|
};
|
|
4030
|
-
const
|
|
4088
|
+
const helpers_composeSignals = composeSignals;
|
|
4031
4089
|
const streamChunk = function*(chunk, chunkSize) {
|
|
4032
4090
|
let len = chunk.byteLength;
|
|
4033
4091
|
if (!chunkSize || len < chunkSize) return void (yield chunk);
|
|
@@ -4129,7 +4187,7 @@ isFetchSupported && ((res)=>{
|
|
|
4129
4187
|
'stream'
|
|
4130
4188
|
].forEach((type)=>{
|
|
4131
4189
|
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
4132
|
-
throw new
|
|
4190
|
+
throw new core_AxiosError(`Response type '${type}' is not supported`, core_AxiosError.ERR_NOT_SUPPORT, config);
|
|
4133
4191
|
});
|
|
4134
4192
|
});
|
|
4135
4193
|
})(new Response);
|
|
@@ -4154,7 +4212,7 @@ const resolveBodyLength = async (headers, body)=>{
|
|
|
4154
4212
|
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
4155
4213
|
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
4156
4214
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
4157
|
-
let composedSignal =
|
|
4215
|
+
let composedSignal = helpers_composeSignals([
|
|
4158
4216
|
signal,
|
|
4159
4217
|
cancelToken && cancelToken.toAbortSignal()
|
|
4160
4218
|
], timeout);
|
|
@@ -4221,10 +4279,10 @@ const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
|
4221
4279
|
});
|
|
4222
4280
|
} catch (err) {
|
|
4223
4281
|
unsubscribe && unsubscribe();
|
|
4224
|
-
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new
|
|
4282
|
+
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), {
|
|
4225
4283
|
cause: err.cause || err
|
|
4226
4284
|
});
|
|
4227
|
-
throw
|
|
4285
|
+
throw core_AxiosError.from(err, err && err.code, config, request);
|
|
4228
4286
|
}
|
|
4229
4287
|
});
|
|
4230
4288
|
const knownAdapters = {
|
|
@@ -4261,7 +4319,7 @@ const adapters_adapters = {
|
|
|
4261
4319
|
adapter = nameOrAdapter;
|
|
4262
4320
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
4263
4321
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
4264
|
-
if (void 0 === adapter) throw new
|
|
4322
|
+
if (void 0 === adapter) throw new core_AxiosError(`Unknown adapter '${id}'`);
|
|
4265
4323
|
}
|
|
4266
4324
|
if (adapter) break;
|
|
4267
4325
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -4269,7 +4327,7 @@ const adapters_adapters = {
|
|
|
4269
4327
|
if (!adapter) {
|
|
4270
4328
|
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
4271
4329
|
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
4272
|
-
throw new
|
|
4330
|
+
throw new core_AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
4273
4331
|
}
|
|
4274
4332
|
return adapter;
|
|
4275
4333
|
},
|
|
@@ -4324,7 +4382,7 @@ validators.transitional = function(validator, version, message) {
|
|
|
4324
4382
|
return "[Axios v1.11.0] Transitional option '" + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
4325
4383
|
}
|
|
4326
4384
|
return (value, opt, opts)=>{
|
|
4327
|
-
if (false === validator) throw new
|
|
4385
|
+
if (false === validator) throw new core_AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), core_AxiosError.ERR_DEPRECATED);
|
|
4328
4386
|
if (version && !deprecatedWarnings[opt]) {
|
|
4329
4387
|
deprecatedWarnings[opt] = true;
|
|
4330
4388
|
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
@@ -4339,7 +4397,7 @@ validators.spelling = function(correctSpelling) {
|
|
|
4339
4397
|
};
|
|
4340
4398
|
};
|
|
4341
4399
|
function assertOptions(options, schema, allowUnknown) {
|
|
4342
|
-
if ('object' != typeof options) throw new
|
|
4400
|
+
if ('object' != typeof options) throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4343
4401
|
const keys = Object.keys(options);
|
|
4344
4402
|
let i = keys.length;
|
|
4345
4403
|
while(i-- > 0){
|
|
@@ -4348,10 +4406,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
4348
4406
|
if (validator) {
|
|
4349
4407
|
const value = options[opt];
|
|
4350
4408
|
const result = void 0 === value || validator(value, opt, options);
|
|
4351
|
-
if (true !== result) throw new
|
|
4409
|
+
if (true !== result) throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4352
4410
|
continue;
|
|
4353
4411
|
}
|
|
4354
|
-
if (true !== allowUnknown) throw new
|
|
4412
|
+
if (true !== allowUnknown) throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
|
|
4355
4413
|
}
|
|
4356
4414
|
}
|
|
4357
4415
|
const helpers_validator = {
|
|
@@ -4679,7 +4737,7 @@ axios.CancelToken = CancelToken;
|
|
|
4679
4737
|
axios.isCancel = isCancel;
|
|
4680
4738
|
axios.VERSION = "1.11.0";
|
|
4681
4739
|
axios.toFormData = helpers_toFormData;
|
|
4682
|
-
axios.AxiosError =
|
|
4740
|
+
axios.AxiosError = core_AxiosError;
|
|
4683
4741
|
axios.Cancel = axios.CanceledError;
|
|
4684
4742
|
axios.all = function(promises) {
|
|
4685
4743
|
return Promise.all(promises);
|
|
@@ -4833,5 +4891,5 @@ const getPropertyName = (property, options)=>{
|
|
|
4833
4891
|
};
|
|
4834
4892
|
var __webpack_exports__DEFAULT_PAGE = 1;
|
|
4835
4893
|
var __webpack_exports__DEFAULT_PAGE_SIZE = 500;
|
|
4836
|
-
var __webpack_exports__PACKAGE_VERSION = "0.0.
|
|
4837
|
-
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, 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, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqSchema, 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, 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 };
|
|
4894
|
+
var __webpack_exports__PACKAGE_VERSION = "0.0.20";
|
|
4895
|
+
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, 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, 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 };
|
|
@@ -244,7 +244,7 @@ export declare const cmaSearchRestReqSchema: z.ZodObject<{
|
|
|
244
244
|
}, z.core.$strip>>, z.ZodCoercedBigInt<string | number | bigint>]>>;
|
|
245
245
|
property: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
246
246
|
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<typeof import("../..").SortOrder>>>>;
|
|
247
|
-
page: z.ZodOptional<z.ZodPipe<z.
|
|
247
|
+
page: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<string | number>, z.ZodInt>>;
|
|
248
248
|
pageSize: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<string | number>, z.ZodInt>>;
|
|
249
249
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
|
|
250
250
|
equals: z.ZodOptional<z.ZodString>;
|
|
@@ -600,6 +600,207 @@ export declare const cmaSearchRestReqSchema: z.ZodObject<{
|
|
|
600
600
|
endsWith?: string | undefined;
|
|
601
601
|
} | undefined;
|
|
602
602
|
}>>>>;
|
|
603
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
604
|
+
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<typeof import("../..").SortOrder>>>>;
|
|
605
|
+
page: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<string | number>, z.ZodInt>>;
|
|
606
|
+
pageSize: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<string | number>, z.ZodInt>>;
|
|
607
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
|
|
608
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
609
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
610
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
611
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
612
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
613
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
614
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
615
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
616
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
617
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
618
|
+
mode: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
619
|
+
readonly DEFAULT: "default";
|
|
620
|
+
readonly INSENSITIVE: "insensitive";
|
|
621
|
+
}>>>;
|
|
622
|
+
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
623
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
624
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
626
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
627
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
628
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
629
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
630
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
631
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
632
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
633
|
+
}, z.core.$strict>>]>>;
|
|
634
|
+
}, z.core.$strict>>, z.ZodString]>>;
|
|
635
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
|
|
636
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
637
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
638
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
639
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
640
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
641
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
642
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
643
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
644
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
645
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
646
|
+
mode: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
647
|
+
readonly DEFAULT: "default";
|
|
648
|
+
readonly INSENSITIVE: "insensitive";
|
|
649
|
+
}>>>;
|
|
650
|
+
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
651
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
652
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
653
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
654
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
655
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
656
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
657
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
658
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
659
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
660
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
661
|
+
}, z.core.$strict>>]>>;
|
|
662
|
+
}, z.core.$strict>>, z.ZodString]>>;
|
|
663
|
+
developerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
|
|
664
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
665
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
666
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
667
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
668
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
669
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
670
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
671
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
672
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
673
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
674
|
+
mode: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
675
|
+
readonly DEFAULT: "default";
|
|
676
|
+
readonly INSENSITIVE: "insensitive";
|
|
677
|
+
}>>>;
|
|
678
|
+
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
679
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
680
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
681
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
682
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
683
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
684
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
685
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
686
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
687
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
688
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
689
|
+
}, z.core.$strict>>]>>;
|
|
690
|
+
}, z.core.$strict>>, z.ZodString]>>;
|
|
691
|
+
mtaId: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
692
|
+
equals: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
693
|
+
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodLazy<z.ZodObject<{
|
|
694
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
695
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
696
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
697
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
698
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
699
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
700
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
701
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
702
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
703
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
704
|
+
}, z.core.$strict>>]>>;
|
|
705
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
706
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
707
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
708
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
709
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
710
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
711
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
712
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
713
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
714
|
+
mode: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
715
|
+
readonly DEFAULT: "default";
|
|
716
|
+
readonly INSENSITIVE: "insensitive";
|
|
717
|
+
}>>>;
|
|
718
|
+
}, z.core.$strict>>>>, z.ZodString]>>;
|
|
719
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
|
|
720
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
721
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
722
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
723
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
724
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
725
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
726
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
727
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
728
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
729
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
730
|
+
mode: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
731
|
+
readonly DEFAULT: "default";
|
|
732
|
+
readonly INSENSITIVE: "insensitive";
|
|
733
|
+
}>>>;
|
|
734
|
+
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
735
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
736
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
737
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
738
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
739
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
740
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
741
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
742
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
743
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
744
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
745
|
+
}, z.core.$strict>>]>>;
|
|
746
|
+
}, z.core.$strict>>, z.ZodString]>>;
|
|
747
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
|
|
748
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
749
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
750
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
751
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
752
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
753
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
754
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
755
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
756
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
757
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
758
|
+
mode: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
759
|
+
readonly DEFAULT: "default";
|
|
760
|
+
readonly INSENSITIVE: "insensitive";
|
|
761
|
+
}>>>;
|
|
762
|
+
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
763
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
764
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
765
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
766
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
767
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
768
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
769
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
770
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
771
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
772
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
773
|
+
}, z.core.$strict>>]>>;
|
|
774
|
+
}, z.core.$strict>>, z.ZodString]>>;
|
|
775
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
|
|
776
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
777
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
778
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
779
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
780
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
781
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
782
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
783
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
784
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
785
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
786
|
+
mode: z.ZodOptional<z.ZodLazy<z.ZodEnum<{
|
|
787
|
+
readonly DEFAULT: "default";
|
|
788
|
+
readonly INSENSITIVE: "insensitive";
|
|
789
|
+
}>>>;
|
|
790
|
+
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
791
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
792
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
793
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
794
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
795
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
796
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
797
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
798
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
799
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
800
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
801
|
+
}, z.core.$strict>>]>>;
|
|
802
|
+
}, z.core.$strict>>, z.ZodString]>>;
|
|
803
|
+
}, z.core.$strip>>;
|
|
603
804
|
cmaId: z.ZodOptional<z.ZodUnion<readonly [z.ZodLazy<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
604
805
|
equals: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
806
|
not: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodLazy<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cma-search.rest.schemal.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/cma/cma-search.rest.schemal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"cma-search.rest.schemal.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/cma/cma-search.rest.schemal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|