@mikemo-coposit/am-accounting-shared 0.0.21 → 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 +250 -147
- package/dist/cjs/schemas/mta/create-mta.rest.schema.d.ts +1 -0
- package/dist/cjs/schemas/mta/create-mta.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +8 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +4 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +3 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +12 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +47 -0
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +5 -0
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +4 -0
- package/dist/cjs/schemas/property/property.rest.schema.d.ts.map +1 -1
- 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 +198 -145
- package/dist/esm/schemas/mta/create-mta.rest.schema.d.ts +1 -0
- package/dist/esm/schemas/mta/create-mta.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +8 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +4 -0
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +3 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +12 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +47 -0
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +5 -0
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.rest.schema.d.ts +4 -0
- package/dist/esm/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/package.json +15 -22
|
@@ -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;
|
|
@@ -1953,6 +1956,9 @@ const mtaTransactionRestResSchema = mtaTransactionRestResBaseSchema.extend({
|
|
|
1953
1956
|
get reconciledTransactions () {
|
|
1954
1957
|
return z.array(mtaReconciledTransactionRestResSchema).nullish();
|
|
1955
1958
|
},
|
|
1959
|
+
get payout () {
|
|
1960
|
+
return payoutEntitySchema.nullish();
|
|
1961
|
+
},
|
|
1956
1962
|
isUnknown: z.boolean().optional(),
|
|
1957
1963
|
isReceipt: z.boolean().optional(),
|
|
1958
1964
|
isPayment: z.boolean().optional(),
|
|
@@ -2814,14 +2820,14 @@ const _global = (()=>{
|
|
|
2814
2820
|
})();
|
|
2815
2821
|
const isContextDefined = (context)=>!isUndefined(context) && context !== _global;
|
|
2816
2822
|
function utils_merge() {
|
|
2817
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
2823
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
2818
2824
|
const result = {};
|
|
2819
2825
|
const assignValue = (val, key)=>{
|
|
2820
2826
|
const targetKey = caseless && findKey(result, key) || key;
|
|
2821
2827
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) result[targetKey] = utils_merge(result[targetKey], val);
|
|
2822
2828
|
else if (isPlainObject(val)) result[targetKey] = utils_merge({}, val);
|
|
2823
2829
|
else if (isArray(val)) result[targetKey] = val.slice();
|
|
2824
|
-
else result[targetKey] = val;
|
|
2830
|
+
else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
|
|
2825
2831
|
};
|
|
2826
2832
|
for(let i = 0, l = arguments.length; i < l; i++)arguments[i] && forEach(arguments[i], assignValue);
|
|
2827
2833
|
return result;
|
|
@@ -3105,9 +3111,14 @@ AxiosError_AxiosError.from = (error, code, config, request, response, customProp
|
|
|
3105
3111
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
3106
3112
|
return obj !== Error.prototype;
|
|
3107
3113
|
}, (prop)=>'isAxiosError' !== prop);
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
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';
|
|
3111
3122
|
customProps && Object.assign(axiosError, customProps);
|
|
3112
3123
|
return axiosError;
|
|
3113
3124
|
};
|
|
@@ -3237,7 +3248,7 @@ AxiosURLSearchParams_prototype.toString = function(encoder) {
|
|
|
3237
3248
|
};
|
|
3238
3249
|
const AxiosURLSearchParams = AxiosURLSearchParams_AxiosURLSearchParams;
|
|
3239
3250
|
function buildURL_encode(val) {
|
|
3240
|
-
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, '+');
|
|
3241
3252
|
}
|
|
3242
3253
|
function buildURL(url, params, options) {
|
|
3243
3254
|
if (!params) return url;
|
|
@@ -3432,7 +3443,7 @@ const defaults = {
|
|
|
3432
3443
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
3433
3444
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
3434
3445
|
try {
|
|
3435
|
-
return JSON.parse(data);
|
|
3446
|
+
return JSON.parse(data, this.parseReviver);
|
|
3436
3447
|
} catch (e) {
|
|
3437
3448
|
if (strictJSONParsing) {
|
|
3438
3449
|
if ('SyntaxError' === e.name) throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
@@ -3964,15 +3975,17 @@ const resolveConfig = (config)=>{
|
|
|
3964
3975
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
3965
3976
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
3966
3977
|
if (auth) headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
3967
|
-
let contentType;
|
|
3968
3978
|
if (utils.isFormData(data)) {
|
|
3969
3979
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
3970
|
-
else if (
|
|
3971
|
-
const
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
]
|
|
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
|
+
});
|
|
3976
3989
|
}
|
|
3977
3990
|
}
|
|
3978
3991
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -4035,8 +4048,11 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
4035
4048
|
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
4036
4049
|
request = null;
|
|
4037
4050
|
};
|
|
4038
|
-
request.onerror = function() {
|
|
4039
|
-
|
|
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);
|
|
4040
4056
|
request = null;
|
|
4041
4057
|
};
|
|
4042
4058
|
request.ontimeout = function() {
|
|
@@ -4175,9 +4191,13 @@ const trackStream = (stream, chunkSize, onProgress, onFinish)=>{
|
|
|
4175
4191
|
highWaterMark: 2
|
|
4176
4192
|
});
|
|
4177
4193
|
};
|
|
4178
|
-
const
|
|
4179
|
-
const
|
|
4180
|
-
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;
|
|
4181
4201
|
const test = (fn, ...args)=>{
|
|
4182
4202
|
try {
|
|
4183
4203
|
return !!fn(...args);
|
|
@@ -4185,134 +4205,170 @@ const test = (fn, ...args)=>{
|
|
|
4185
4205
|
return false;
|
|
4186
4206
|
}
|
|
4187
4207
|
};
|
|
4188
|
-
const
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
const
|
|
4202
|
-
|
|
4203
|
-
stream: supportsResponseStream && ((res)=>res.body)
|
|
4204
|
-
};
|
|
4205
|
-
isFetchSupported && ((res)=>{
|
|
4206
|
-
[
|
|
4207
|
-
'text',
|
|
4208
|
-
'arrayBuffer',
|
|
4209
|
-
'blob',
|
|
4210
|
-
'formData',
|
|
4211
|
-
'stream'
|
|
4212
|
-
].forEach((type)=>{
|
|
4213
|
-
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
4214
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
4215
|
-
});
|
|
4216
|
-
});
|
|
4217
|
-
})(new Response);
|
|
4218
|
-
const getBodyLength = async (body)=>{
|
|
4219
|
-
if (null == body) return 0;
|
|
4220
|
-
if (utils.isBlob(body)) return body.size;
|
|
4221
|
-
if (utils.isSpecCompliantForm(body)) {
|
|
4222
|
-
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(),
|
|
4223
4223
|
method: 'POST',
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
if (utils.isString(body)) return (await encodeText(body)).byteLength;
|
|
4231
|
-
};
|
|
4232
|
-
const resolveBodyLength = async (headers, body)=>{
|
|
4233
|
-
const length = utils.toFiniteNumber(headers.getContentLength());
|
|
4234
|
-
return null == length ? getBodyLength(body) : length;
|
|
4235
|
-
};
|
|
4236
|
-
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
4237
|
-
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
4238
|
-
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
4239
|
-
let composedSignal = helpers_composeSignals([
|
|
4240
|
-
signal,
|
|
4241
|
-
cancelToken && cancelToken.toAbortSignal()
|
|
4242
|
-
], timeout);
|
|
4243
|
-
let request;
|
|
4244
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (()=>{
|
|
4245
|
-
composedSignal.unsubscribe();
|
|
4224
|
+
get duplex () {
|
|
4225
|
+
duplexAccessed = true;
|
|
4226
|
+
return 'half';
|
|
4227
|
+
}
|
|
4228
|
+
}).headers.has('Content-Type');
|
|
4229
|
+
return duplexAccessed && !hasContentType;
|
|
4246
4230
|
});
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
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, {
|
|
4251
4255
|
method: 'POST',
|
|
4252
|
-
body
|
|
4253
|
-
duplex: "half"
|
|
4256
|
+
body
|
|
4254
4257
|
});
|
|
4255
|
-
|
|
4256
|
-
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) headers.setContentType(contentTypeHeader);
|
|
4257
|
-
if (_request.body) {
|
|
4258
|
-
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
4259
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
4260
|
-
}
|
|
4258
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
4261
4259
|
}
|
|
4262
|
-
if (
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
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();
|
|
4272
4279
|
});
|
|
4273
|
-
let
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
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
|
+
});
|
|
4283
4337
|
});
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
unsubscribe && unsubscribe();
|
|
4289
|
-
}), options);
|
|
4290
|
-
}
|
|
4291
|
-
responseType = responseType || 'text';
|
|
4292
|
-
let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
|
|
4293
|
-
!isStreamResponse && unsubscribe && unsubscribe();
|
|
4294
|
-
return await new Promise((resolve, reject)=>{
|
|
4295
|
-
settle(resolve, reject, {
|
|
4296
|
-
data: responseData,
|
|
4297
|
-
headers: AxiosHeaders.from(response.headers),
|
|
4298
|
-
status: response.status,
|
|
4299
|
-
statusText: response.statusText,
|
|
4300
|
-
config,
|
|
4301
|
-
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
|
|
4302
4342
|
});
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
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;
|
|
4310
4362
|
}
|
|
4311
|
-
|
|
4363
|
+
return target;
|
|
4364
|
+
};
|
|
4365
|
+
getFetch();
|
|
4312
4366
|
const knownAdapters = {
|
|
4313
4367
|
http: helpers_null,
|
|
4314
4368
|
xhr: xhr,
|
|
4315
|
-
fetch:
|
|
4369
|
+
fetch: {
|
|
4370
|
+
get: getFetch
|
|
4371
|
+
}
|
|
4316
4372
|
};
|
|
4317
4373
|
utils.forEach(knownAdapters, (fn, value)=>{
|
|
4318
4374
|
if (fn) {
|
|
@@ -4329,7 +4385,7 @@ utils.forEach(knownAdapters, (fn, value)=>{
|
|
|
4329
4385
|
const renderReason = (reason)=>`- ${reason}`;
|
|
4330
4386
|
const isResolvedHandle = (adapter)=>utils.isFunction(adapter) || null === adapter || false === adapter;
|
|
4331
4387
|
const adapters_adapters = {
|
|
4332
|
-
getAdapter: (adapters)=>{
|
|
4388
|
+
getAdapter: (adapters, config)=>{
|
|
4333
4389
|
adapters = utils.isArray(adapters) ? adapters : [
|
|
4334
4390
|
adapters
|
|
4335
4391
|
];
|
|
@@ -4345,7 +4401,7 @@ const adapters_adapters = {
|
|
|
4345
4401
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
4346
4402
|
if (void 0 === adapter) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
4347
4403
|
}
|
|
4348
|
-
if (adapter) break;
|
|
4404
|
+
if (adapter && (utils.isFunction(adapter) || (adapter = adapter.get(config)))) break;
|
|
4349
4405
|
rejectedReasons[id || '#' + i] = adapter;
|
|
4350
4406
|
}
|
|
4351
4407
|
if (!adapter) {
|
|
@@ -4370,7 +4426,7 @@ function dispatchRequest(config) {
|
|
|
4370
4426
|
'put',
|
|
4371
4427
|
'patch'
|
|
4372
4428
|
].indexOf(config.method)) config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
4373
|
-
const adapter = adapters_adapters.getAdapter(config.adapter || lib_defaults.adapter);
|
|
4429
|
+
const adapter = adapters_adapters.getAdapter(config.adapter || lib_defaults.adapter, config);
|
|
4374
4430
|
return adapter(config).then(function(response) {
|
|
4375
4431
|
throwIfCancellationRequested(config);
|
|
4376
4432
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -4387,6 +4443,7 @@ function dispatchRequest(config) {
|
|
|
4387
4443
|
return Promise.reject(reason);
|
|
4388
4444
|
});
|
|
4389
4445
|
}
|
|
4446
|
+
const VERSION = "1.12.2";
|
|
4390
4447
|
const validators = {};
|
|
4391
4448
|
[
|
|
4392
4449
|
'object',
|
|
@@ -4403,7 +4460,7 @@ const validators = {};
|
|
|
4403
4460
|
const deprecatedWarnings = {};
|
|
4404
4461
|
validators.transitional = function(validator, version, message) {
|
|
4405
4462
|
function formatMessage(opt, desc) {
|
|
4406
|
-
return
|
|
4463
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
4407
4464
|
}
|
|
4408
4465
|
return (value, opt, opts)=>{
|
|
4409
4466
|
if (false === validator) throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
|
|
@@ -4534,7 +4591,6 @@ class Axios_Axios {
|
|
|
4534
4591
|
}
|
|
4535
4592
|
len = requestInterceptorChain.length;
|
|
4536
4593
|
let newConfig = config;
|
|
4537
|
-
i = 0;
|
|
4538
4594
|
while(i < len){
|
|
4539
4595
|
const onFulfilled = requestInterceptorChain[i++];
|
|
4540
4596
|
const onRejected = requestInterceptorChain[i++];
|
|
@@ -4759,7 +4815,7 @@ axios.Axios = Axios;
|
|
|
4759
4815
|
axios.CanceledError = cancel_CanceledError;
|
|
4760
4816
|
axios.CancelToken = CancelToken;
|
|
4761
4817
|
axios.isCancel = isCancel;
|
|
4762
|
-
axios.VERSION =
|
|
4818
|
+
axios.VERSION = VERSION;
|
|
4763
4819
|
axios.toFormData = helpers_toFormData;
|
|
4764
4820
|
axios.AxiosError = AxiosError;
|
|
4765
4821
|
axios.Cancel = axios.CanceledError;
|
|
@@ -4913,7 +4969,4 @@ const getPropertyName = (property, options)=>{
|
|
|
4913
4969
|
names = names.filter(Boolean);
|
|
4914
4970
|
return names.length > 0 ? names.join(separator) : 'Nill';
|
|
4915
4971
|
};
|
|
4916
|
-
|
|
4917
|
-
var __webpack_exports__DEFAULT_PAGE_SIZE = 500;
|
|
4918
|
-
var __webpack_exports__PACKAGE_VERSION = "0.0.20";
|
|
4919
|
-
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 };
|
|
@@ -14,4 +14,5 @@ export declare const createMtaRestReqSchema: z.ZodObject<{
|
|
|
14
14
|
zeptoBankAccountId: z.ZodUUID;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export type CreateMtaRestReq = z.input<typeof createMtaRestReqSchema>;
|
|
17
|
+
export type CreateMtaReq = z.output<typeof createMtaRestReqSchema>;
|
|
17
18
|
//# sourceMappingURL=create-mta.rest.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mta.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta/create-mta.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAkBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-mta.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta/create-mta.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAkBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts
CHANGED
|
@@ -351,6 +351,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
351
351
|
amountStr?: string | null | undefined;
|
|
352
352
|
transactionNumber?: string | null | undefined;
|
|
353
353
|
isCancelable?: boolean | null | undefined;
|
|
354
|
+
payout?: z.output<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
354
355
|
}, {
|
|
355
356
|
id: string;
|
|
356
357
|
referenceId: string | null;
|
|
@@ -641,6 +642,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
641
642
|
} | null | undefined;
|
|
642
643
|
} & /*elided*/ any)[] | null | undefined;
|
|
643
644
|
reconciledTransactions?: z.input<typeof import("..").mtaReconciledTransactionRestResSchema>[] | null | undefined;
|
|
645
|
+
payout?: z.input<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
644
646
|
}, z.core.$ZodTypeInternals<{
|
|
645
647
|
id: string;
|
|
646
648
|
referenceId: string | null;
|
|
@@ -941,6 +943,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
941
943
|
amountStr?: string | null | undefined;
|
|
942
944
|
transactionNumber?: string | null | undefined;
|
|
943
945
|
isCancelable?: boolean | null | undefined;
|
|
946
|
+
payout?: z.output<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
944
947
|
}, {
|
|
945
948
|
id: string;
|
|
946
949
|
referenceId: string | null;
|
|
@@ -1231,6 +1234,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1231
1234
|
} | null | undefined;
|
|
1232
1235
|
} & /*elided*/ any)[] | null | undefined;
|
|
1233
1236
|
reconciledTransactions?: z.input<typeof import("..").mtaReconciledTransactionRestResSchema>[] | null | undefined;
|
|
1237
|
+
payout?: z.input<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
1234
1238
|
}>>>>>>;
|
|
1235
1239
|
unreconciledAmountCents: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodCoercedBigInt<unknown>, z.ZodCoercedNumber<unknown>]>, z.ZodTransform<number, number | bigint>>, z.ZodNumber>;
|
|
1236
1240
|
unreconciledTransactions: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodArray<z.ZodType<{
|
|
@@ -1533,6 +1537,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1533
1537
|
amountStr?: string | null | undefined;
|
|
1534
1538
|
transactionNumber?: string | null | undefined;
|
|
1535
1539
|
isCancelable?: boolean | null | undefined;
|
|
1540
|
+
payout?: z.output<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
1536
1541
|
}, {
|
|
1537
1542
|
id: string;
|
|
1538
1543
|
referenceId: string | null;
|
|
@@ -1823,6 +1828,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1823
1828
|
} | null | undefined;
|
|
1824
1829
|
} & /*elided*/ any)[] | null | undefined;
|
|
1825
1830
|
reconciledTransactions?: z.input<typeof import("..").mtaReconciledTransactionRestResSchema>[] | null | undefined;
|
|
1831
|
+
payout?: z.input<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
1826
1832
|
}, z.core.$ZodTypeInternals<{
|
|
1827
1833
|
id: string;
|
|
1828
1834
|
referenceId: string | null;
|
|
@@ -2123,6 +2129,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
2123
2129
|
amountStr?: string | null | undefined;
|
|
2124
2130
|
transactionNumber?: string | null | undefined;
|
|
2125
2131
|
isCancelable?: boolean | null | undefined;
|
|
2132
|
+
payout?: z.output<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
2126
2133
|
}, {
|
|
2127
2134
|
id: string;
|
|
2128
2135
|
referenceId: string | null;
|
|
@@ -2413,6 +2420,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
2413
2420
|
} | null | undefined;
|
|
2414
2421
|
} & /*elided*/ any)[] | null | undefined;
|
|
2415
2422
|
reconciledTransactions?: z.input<typeof import("..").mtaReconciledTransactionRestResSchema>[] | null | undefined;
|
|
2423
|
+
payout?: z.input<typeof import("..").payoutEntitySchema> | null | undefined;
|
|
2416
2424
|
}>>>>>>;
|
|
2417
2425
|
}, z.core.$strip>;
|
|
2418
2426
|
}, z.core.$strip>;
|
package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mta-account-period-closing-summary.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,2CAA2C;;;iBAGtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,eAAO,MAAM,2CAA2C
|
|
1
|
+
{"version":3,"file":"mta-account-period-closing-summary.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,2CAA2C;;;iBAGtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC"}
|