@mikemo-coposit/am-accounting-shared 0.0.20 → 1.0.0
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 +82 -49
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts +78 -65
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +144 -120
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +78 -65
- package/dist/cjs/schemas/cma-account-period/cma-account-period.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +150 -125
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +6 -5
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/customer/customer-sync.grpc.schema.d.ts +12 -0
- package/dist/cjs/schemas/customer/customer-sync.grpc.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/{property → customer}/customer.entity.schema.d.ts +4 -3
- package/dist/cjs/schemas/{property → customer}/customer.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/customer/index.d.ts +3 -0
- package/dist/cjs/schemas/customer/index.d.ts.map +1 -0
- package/dist/cjs/schemas/index.d.ts +1 -0
- package/dist/cjs/schemas/index.d.ts.map +1 -1
- 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 +152 -120
- 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 +76 -60
- 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-search.rest.schema.d.ts +28 -28
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +4 -3
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +9 -5
- 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 +462 -375
- 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 +1883 -1533
- 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 +213 -174
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/cjs/schemas/project/project.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/property/index.d.ts +1 -1
- package/dist/cjs/schemas/property/index.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property-sync.grpc.schema.d.ts +23 -0
- package/dist/cjs/schemas/property/property-sync.grpc.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/property/property.entity.schema.d.ts +4 -3
- package/dist/cjs/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +152 -123
- 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 +63 -36
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts +78 -65
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +144 -120
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +78 -65
- package/dist/esm/schemas/cma-account-period/cma-account-period.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +150 -125
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +6 -5
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/customer/customer-sync.grpc.schema.d.ts +12 -0
- package/dist/esm/schemas/customer/customer-sync.grpc.schema.d.ts.map +1 -0
- package/dist/esm/schemas/{property → customer}/customer.entity.schema.d.ts +4 -3
- package/dist/esm/schemas/{property → customer}/customer.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/customer/index.d.ts +3 -0
- package/dist/esm/schemas/customer/index.d.ts.map +1 -0
- package/dist/esm/schemas/index.d.ts +1 -0
- package/dist/esm/schemas/index.d.ts.map +1 -1
- 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 +152 -120
- 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 +76 -60
- 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-search.rest.schema.d.ts +28 -28
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +4 -3
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +9 -5
- 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 +462 -375
- 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 +1883 -1533
- 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 +213 -174
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/esm/schemas/project/project.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/property/index.d.ts +1 -1
- package/dist/esm/schemas/property/index.d.ts.map +1 -1
- package/dist/esm/schemas/property/property-sync.grpc.schema.d.ts +23 -0
- package/dist/esm/schemas/property/property-sync.grpc.schema.d.ts.map +1 -0
- package/dist/esm/schemas/property/property.entity.schema.d.ts +4 -3
- package/dist/esm/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.rest.schema.d.ts +152 -123
- package/dist/esm/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/package.json +10 -20
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "0.0
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.0.0";
|
|
2
2
|
//# sourceMappingURL=package-version.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-version.constant.d.ts","sourceRoot":"","sources":["../../../../packages/constants/common/package-version.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"package-version.constant.d.ts","sourceRoot":"","sources":["../../../../packages/constants/common/package-version.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,UAAU,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -2720,7 +2720,7 @@ var __webpack_exports__ = {};
|
|
|
2720
2720
|
CmaTransactionPaymentMethod: ()=>cma_payment_method_constant_CmaTransactionPaymentMethod,
|
|
2721
2721
|
balanceRestResSchema: ()=>balanceRestResSchema,
|
|
2722
2722
|
bigIntFilterSchema: ()=>bigIntFilterSchema,
|
|
2723
|
-
PACKAGE_VERSION: ()=>"0.0
|
|
2723
|
+
PACKAGE_VERSION: ()=>"1.0.0",
|
|
2724
2724
|
stateCodeSchema: ()=>stateCodeSchema,
|
|
2725
2725
|
queryModeSchema: ()=>queryModeSchema,
|
|
2726
2726
|
settlementPayoutTargetDetailEntitySchema: ()=>settlementPayoutTargetDetailEntitySchema,
|
|
@@ -2742,6 +2742,7 @@ var __webpack_exports__ = {};
|
|
|
2742
2742
|
dollarsToCentsSchema: ()=>dollarsToCentsSchema,
|
|
2743
2743
|
updateMtaTransactionRestReqSchema: ()=>updateMtaTransactionRestReqSchema,
|
|
2744
2744
|
cancelPayoutPaymentRestReqSchema: ()=>cancelPayoutPaymentRestReqSchema,
|
|
2745
|
+
customerSyncFromAmmozeGrpcReqSchema: ()=>customerSyncFromAmmozeGrpcReqSchema,
|
|
2745
2746
|
payoutUpdateRestReqSchema: ()=>payoutUpdateRestReqSchema,
|
|
2746
2747
|
CmaPayoutTransactionType: ()=>CmaPayoutTransactionType,
|
|
2747
2748
|
maskString: ()=>maskString,
|
|
@@ -2853,6 +2854,7 @@ var __webpack_exports__ = {};
|
|
|
2853
2854
|
createUnknownPayoutRestReqSchema: ()=>createUnknownPayoutRestReqSchema,
|
|
2854
2855
|
markCmaTransactionAsClearedRestReqSchema: ()=>markCmaTransactionAsClearedRestReqSchema,
|
|
2855
2856
|
createSettlementPayoutRestReqSchema: ()=>createSettlementPayoutRestReqSchema,
|
|
2857
|
+
propertySyncFromAmmozeGrpcReqSchema: ()=>propertySyncFromAmmozeGrpcReqSchema,
|
|
2856
2858
|
DEFAULT_PAGE_SIZE: ()=>500,
|
|
2857
2859
|
InputJsonValueSchema: ()=>InputJsonValueSchema,
|
|
2858
2860
|
MtaPayoutTransactionType: ()=>MtaPayoutTransactionType,
|
|
@@ -3839,14 +3841,15 @@ var __webpack_exports__ = {};
|
|
|
3839
3841
|
});
|
|
3840
3842
|
const customerEntitySchema = external_zod_namespaceObject.z.object({
|
|
3841
3843
|
id: external_zod_namespaceObject.z.uuid(),
|
|
3842
|
-
fullName: external_zod_namespaceObject.z.string().
|
|
3843
|
-
mobile: external_zod_namespaceObject.z.string().
|
|
3844
|
-
email: external_zod_namespaceObject.z.string(),
|
|
3844
|
+
fullName: external_zod_namespaceObject.z.string().nullish(),
|
|
3845
|
+
mobile: external_zod_namespaceObject.z.string().nullish(),
|
|
3846
|
+
email: external_zod_namespaceObject.z.string().nullish(),
|
|
3845
3847
|
status: external_zod_namespaceObject.z.string(),
|
|
3846
3848
|
isArchived: external_zod_namespaceObject.z.boolean(),
|
|
3847
3849
|
createdAt: external_zod_namespaceObject.z.coerce.date(),
|
|
3848
3850
|
syncedAt: external_zod_namespaceObject.z.coerce.date(),
|
|
3849
|
-
updatedAt: external_zod_namespaceObject.z.coerce.date()
|
|
3851
|
+
updatedAt: external_zod_namespaceObject.z.coerce.date(),
|
|
3852
|
+
source: external_zod_namespaceObject.z.string().nullish()
|
|
3850
3853
|
});
|
|
3851
3854
|
const propertyEntitySchema = external_zod_namespaceObject.z.object({
|
|
3852
3855
|
id: external_zod_namespaceObject.z.uuid(),
|
|
@@ -4612,6 +4615,9 @@ var __webpack_exports__ = {};
|
|
|
4612
4615
|
total: external_zod_namespaceObject.z.coerce.number()
|
|
4613
4616
|
})
|
|
4614
4617
|
});
|
|
4618
|
+
const customerSyncFromAmmozeGrpcReqSchema = customerEntitySchema.omit({
|
|
4619
|
+
syncedAt: true
|
|
4620
|
+
});
|
|
4615
4621
|
const createMenuRestReqSchema = external_zod_namespaceObject.z.object({
|
|
4616
4622
|
parentId: external_zod_namespaceObject.z.string().optional(),
|
|
4617
4623
|
label: external_zod_namespaceObject.z.string(),
|
|
@@ -4838,6 +4844,9 @@ var __webpack_exports__ = {};
|
|
|
4838
4844
|
get reconciledTransactions () {
|
|
4839
4845
|
return external_zod_namespaceObject.z.array(mtaReconciledTransactionRestResSchema).nullish();
|
|
4840
4846
|
},
|
|
4847
|
+
get payout () {
|
|
4848
|
+
return payoutEntitySchema.nullish();
|
|
4849
|
+
},
|
|
4841
4850
|
isUnknown: external_zod_namespaceObject.z.boolean().optional(),
|
|
4842
4851
|
isReceipt: external_zod_namespaceObject.z.boolean().optional(),
|
|
4843
4852
|
isPayment: external_zod_namespaceObject.z.boolean().optional(),
|
|
@@ -5515,6 +5524,26 @@ var __webpack_exports__ = {};
|
|
|
5515
5524
|
mta: external_zod_namespaceObject.z.lazy(()=>balanceRestResSchema),
|
|
5516
5525
|
cma: external_zod_namespaceObject.z.lazy(()=>balanceRestResSchema)
|
|
5517
5526
|
});
|
|
5527
|
+
const propertySyncFromAmmozeGrpcReqSchema = external_zod_namespaceObject.z.object({
|
|
5528
|
+
id: external_zod_namespaceObject.z.uuid(),
|
|
5529
|
+
customerId: external_zod_namespaceObject.z.uuid(),
|
|
5530
|
+
projectId: external_zod_namespaceObject.z.uuid(),
|
|
5531
|
+
buyerName: external_zod_namespaceObject.z.string().nullish(),
|
|
5532
|
+
lotDetail: external_zod_namespaceObject.z.string().nullish(),
|
|
5533
|
+
propertyAddress: external_zod_namespaceObject.z.string(),
|
|
5534
|
+
stage: external_zod_namespaceObject.z.string(),
|
|
5535
|
+
mtaId: external_zod_namespaceObject.z.uuid(),
|
|
5536
|
+
status: external_zod_namespaceObject.z.string(),
|
|
5537
|
+
isArchived: external_zod_namespaceObject.z.boolean(),
|
|
5538
|
+
initialDepositStatus: external_zod_namespaceObject.z.string().nullish(),
|
|
5539
|
+
copositSaleStatus: external_zod_namespaceObject.z.string().nullish(),
|
|
5540
|
+
syncSource: external_zod_namespaceObject.z.string(),
|
|
5541
|
+
totalDepositAmountCents: external_zod_namespaceObject.z.coerce.bigint().nullish(),
|
|
5542
|
+
totalSaleAmountCents: external_zod_namespaceObject.z.coerce.bigint().nullish(),
|
|
5543
|
+
totalWeeklyTerms: external_zod_namespaceObject.z.number().nullish(),
|
|
5544
|
+
weeklyDepositAmountCents: external_zod_namespaceObject.z.coerce.bigint().nullish(),
|
|
5545
|
+
updatedAt: external_zod_namespaceObject.z.coerce.date()
|
|
5546
|
+
});
|
|
5518
5547
|
const commonReportRestReqSchema = external_zod_namespaceObject.z.object({
|
|
5519
5548
|
reportDataRangeType: external_zod_namespaceObject.z["enum"](report_data_range_type_constant_ReportDataRangeType),
|
|
5520
5549
|
endDate: stringToEndOfDaySchema.nullish().pipe(external_zod_namespaceObject.z.date()),
|
|
@@ -5910,7 +5939,7 @@ var __webpack_exports__ = {};
|
|
|
5910
5939
|
asap,
|
|
5911
5940
|
isIterable
|
|
5912
5941
|
};
|
|
5913
|
-
function
|
|
5942
|
+
function AxiosError_AxiosError(message, code, config, request, response) {
|
|
5914
5943
|
Error.call(this);
|
|
5915
5944
|
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
5916
5945
|
else this.stack = new Error().stack;
|
|
@@ -5924,7 +5953,7 @@ var __webpack_exports__ = {};
|
|
|
5924
5953
|
this.status = response.status ? response.status : null;
|
|
5925
5954
|
}
|
|
5926
5955
|
}
|
|
5927
|
-
utils.inherits(
|
|
5956
|
+
utils.inherits(AxiosError_AxiosError, Error, {
|
|
5928
5957
|
toJSON: function() {
|
|
5929
5958
|
return {
|
|
5930
5959
|
message: this.message,
|
|
@@ -5941,7 +5970,7 @@ var __webpack_exports__ = {};
|
|
|
5941
5970
|
};
|
|
5942
5971
|
}
|
|
5943
5972
|
});
|
|
5944
|
-
const AxiosError_prototype =
|
|
5973
|
+
const AxiosError_prototype = AxiosError_AxiosError.prototype;
|
|
5945
5974
|
const AxiosError_descriptors = {};
|
|
5946
5975
|
[
|
|
5947
5976
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -5961,22 +5990,22 @@ var __webpack_exports__ = {};
|
|
|
5961
5990
|
value: code
|
|
5962
5991
|
};
|
|
5963
5992
|
});
|
|
5964
|
-
Object.defineProperties(
|
|
5993
|
+
Object.defineProperties(AxiosError_AxiosError, AxiosError_descriptors);
|
|
5965
5994
|
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
5966
5995
|
value: true
|
|
5967
5996
|
});
|
|
5968
|
-
|
|
5997
|
+
AxiosError_AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
5969
5998
|
const axiosError = Object.create(AxiosError_prototype);
|
|
5970
5999
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
5971
6000
|
return obj !== Error.prototype;
|
|
5972
6001
|
}, (prop)=>'isAxiosError' !== prop);
|
|
5973
|
-
|
|
6002
|
+
AxiosError_AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
5974
6003
|
axiosError.cause = error;
|
|
5975
6004
|
axiosError.name = error.name;
|
|
5976
6005
|
customProps && Object.assign(axiosError, customProps);
|
|
5977
6006
|
return axiosError;
|
|
5978
6007
|
};
|
|
5979
|
-
const
|
|
6008
|
+
const AxiosError = AxiosError_AxiosError;
|
|
5980
6009
|
var form_data = __webpack_require__("./node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.js");
|
|
5981
6010
|
const classes_FormData = form_data;
|
|
5982
6011
|
function isVisitable(thing) {
|
|
@@ -6019,7 +6048,7 @@ var __webpack_exports__ = {};
|
|
|
6019
6048
|
if (null === value) return '';
|
|
6020
6049
|
if (utils.isDate(value)) return value.toISOString();
|
|
6021
6050
|
if (utils.isBoolean(value)) return value.toString();
|
|
6022
|
-
if (!useBlob && utils.isBlob(value)) throw new
|
|
6051
|
+
if (!useBlob && utils.isBlob(value)) throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
6023
6052
|
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
6024
6053
|
value
|
|
6025
6054
|
]) : Buffer.from(value);
|
|
@@ -6316,7 +6345,7 @@ var __webpack_exports__ = {};
|
|
|
6316
6345
|
return JSON.parse(data);
|
|
6317
6346
|
} catch (e) {
|
|
6318
6347
|
if (strictJSONParsing) {
|
|
6319
|
-
if ('SyntaxError' === e.name) throw
|
|
6348
|
+
if ('SyntaxError' === e.name) throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
6320
6349
|
throw e;
|
|
6321
6350
|
}
|
|
6322
6351
|
}
|
|
@@ -6613,19 +6642,19 @@ var __webpack_exports__ = {};
|
|
|
6613
6642
|
return !!(value && value.__CANCEL__);
|
|
6614
6643
|
}
|
|
6615
6644
|
function CanceledError(message, config, request) {
|
|
6616
|
-
|
|
6645
|
+
AxiosError.call(this, null == message ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
|
|
6617
6646
|
this.name = 'CanceledError';
|
|
6618
6647
|
}
|
|
6619
|
-
utils.inherits(CanceledError,
|
|
6648
|
+
utils.inherits(CanceledError, AxiosError, {
|
|
6620
6649
|
__CANCEL__: true
|
|
6621
6650
|
});
|
|
6622
6651
|
const cancel_CanceledError = CanceledError;
|
|
6623
6652
|
function settle(resolve, reject, response) {
|
|
6624
6653
|
const validateStatus = response.config.validateStatus;
|
|
6625
6654
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
6626
|
-
else reject(new
|
|
6627
|
-
|
|
6628
|
-
|
|
6655
|
+
else reject(new AxiosError('Request failed with status code ' + response.status, [
|
|
6656
|
+
AxiosError.ERR_BAD_REQUEST,
|
|
6657
|
+
AxiosError.ERR_BAD_RESPONSE
|
|
6629
6658
|
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
6630
6659
|
}
|
|
6631
6660
|
function isAbsoluteURL(url) {
|
|
@@ -6657,13 +6686,13 @@ var __webpack_exports__ = {};
|
|
|
6657
6686
|
if ('data' === protocol) {
|
|
6658
6687
|
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
|
6659
6688
|
const match = DATA_URL_PATTERN.exec(uri);
|
|
6660
|
-
if (!match) throw new
|
|
6689
|
+
if (!match) throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);
|
|
6661
6690
|
const mime = match[1];
|
|
6662
6691
|
const isBase64 = match[2];
|
|
6663
6692
|
const body = match[3];
|
|
6664
6693
|
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');
|
|
6665
6694
|
if (asBlob) {
|
|
6666
|
-
if (!_Blob) throw new
|
|
6695
|
+
if (!_Blob) throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);
|
|
6667
6696
|
return new _Blob([
|
|
6668
6697
|
buffer
|
|
6669
6698
|
], {
|
|
@@ -6672,7 +6701,7 @@ var __webpack_exports__ = {};
|
|
|
6672
6701
|
}
|
|
6673
6702
|
return buffer;
|
|
6674
6703
|
}
|
|
6675
|
-
throw new
|
|
6704
|
+
throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
6676
6705
|
}
|
|
6677
6706
|
var external_stream_ = __webpack_require__("stream");
|
|
6678
6707
|
const kInternals = Symbol('internals');
|
|
@@ -7100,7 +7129,7 @@ var __webpack_exports__ = {};
|
|
|
7100
7129
|
Blob: config.env && config.env.Blob
|
|
7101
7130
|
});
|
|
7102
7131
|
} catch (err) {
|
|
7103
|
-
throw
|
|
7132
|
+
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
|
|
7104
7133
|
}
|
|
7105
7134
|
if ('text' === responseType) {
|
|
7106
7135
|
convertedData = convertedData.toString(responseEncoding);
|
|
@@ -7114,7 +7143,7 @@ var __webpack_exports__ = {};
|
|
|
7114
7143
|
config
|
|
7115
7144
|
});
|
|
7116
7145
|
}
|
|
7117
|
-
if (-1 === supportedProtocols.indexOf(protocol)) return reject(new
|
|
7146
|
+
if (-1 === supportedProtocols.indexOf(protocol)) return reject(new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_BAD_REQUEST, config));
|
|
7118
7147
|
const headers = AxiosHeaders.from(config.headers).normalize();
|
|
7119
7148
|
headers.set('User-Agent', "axios/1.11.0", false);
|
|
7120
7149
|
const { onUploadProgress, onDownloadProgress } = config;
|
|
@@ -7143,11 +7172,11 @@ var __webpack_exports__ = {};
|
|
|
7143
7172
|
if (Buffer.isBuffer(data)) ;
|
|
7144
7173
|
else if (utils.isArrayBuffer(data)) data = Buffer.from(new Uint8Array(data));
|
|
7145
7174
|
else {
|
|
7146
|
-
if (!utils.isString(data)) return reject(new
|
|
7175
|
+
if (!utils.isString(data)) return reject(new AxiosError('Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', AxiosError.ERR_BAD_REQUEST, config));
|
|
7147
7176
|
data = Buffer.from(data, 'utf-8');
|
|
7148
7177
|
}
|
|
7149
7178
|
headers.setContentLength(data.length, false);
|
|
7150
|
-
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) return reject(new
|
|
7179
|
+
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) return reject(new AxiosError('Request body larger than maxBodyLength limit', AxiosError.ERR_BAD_REQUEST, config));
|
|
7151
7180
|
}
|
|
7152
7181
|
const contentLength = utils.toFiniteNumber(headers.getContentLength());
|
|
7153
7182
|
if (utils.isArray(maxRate)) {
|
|
@@ -7284,18 +7313,18 @@ var __webpack_exports__ = {};
|
|
|
7284
7313
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
7285
7314
|
rejected = true;
|
|
7286
7315
|
responseStream.destroy();
|
|
7287
|
-
reject(new
|
|
7316
|
+
reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded', AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
|
|
7288
7317
|
}
|
|
7289
7318
|
});
|
|
7290
7319
|
responseStream.on('aborted', function() {
|
|
7291
7320
|
if (rejected) return;
|
|
7292
|
-
const err = new
|
|
7321
|
+
const err = new AxiosError('stream has been aborted', AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
|
|
7293
7322
|
responseStream.destroy(err);
|
|
7294
7323
|
reject(err);
|
|
7295
7324
|
});
|
|
7296
7325
|
responseStream.on('error', function(err) {
|
|
7297
7326
|
if (req.destroyed) return;
|
|
7298
|
-
reject(
|
|
7327
|
+
reject(AxiosError.from(err, null, config, lastRequest));
|
|
7299
7328
|
});
|
|
7300
7329
|
responseStream.on('end', function() {
|
|
7301
7330
|
try {
|
|
@@ -7306,7 +7335,7 @@ var __webpack_exports__ = {};
|
|
|
7306
7335
|
}
|
|
7307
7336
|
response.data = responseData;
|
|
7308
7337
|
} catch (err) {
|
|
7309
|
-
return reject(
|
|
7338
|
+
return reject(AxiosError.from(err, null, config, response.request, response));
|
|
7310
7339
|
}
|
|
7311
7340
|
settle(resolve, reject, response);
|
|
7312
7341
|
});
|
|
@@ -7323,20 +7352,20 @@ var __webpack_exports__ = {};
|
|
|
7323
7352
|
req.destroy(err);
|
|
7324
7353
|
});
|
|
7325
7354
|
req.on('error', function(err) {
|
|
7326
|
-
reject(
|
|
7355
|
+
reject(AxiosError.from(err, null, config, req));
|
|
7327
7356
|
});
|
|
7328
7357
|
req.on('socket', function(socket) {
|
|
7329
7358
|
socket.setKeepAlive(true, 60000);
|
|
7330
7359
|
});
|
|
7331
7360
|
if (config.timeout) {
|
|
7332
7361
|
const timeout = parseInt(config.timeout, 10);
|
|
7333
|
-
if (Number.isNaN(timeout)) return void reject(new
|
|
7362
|
+
if (Number.isNaN(timeout)) return void reject(new AxiosError('error trying to parse `config.timeout` to int', AxiosError.ERR_BAD_OPTION_VALUE, config, req));
|
|
7334
7363
|
req.setTimeout(timeout, function() {
|
|
7335
7364
|
if (isDone) return;
|
|
7336
7365
|
let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
7337
7366
|
const transitional = config.transitional || defaults_transitional;
|
|
7338
7367
|
if (config.timeoutErrorMessage) timeoutErrorMessage = config.timeoutErrorMessage;
|
|
7339
|
-
reject(new
|
|
7368
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req));
|
|
7340
7369
|
abort();
|
|
7341
7370
|
});
|
|
7342
7371
|
}
|
|
@@ -7530,18 +7559,18 @@ var __webpack_exports__ = {};
|
|
|
7530
7559
|
};
|
|
7531
7560
|
request.onabort = function() {
|
|
7532
7561
|
if (!request) return;
|
|
7533
|
-
reject(new
|
|
7562
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
7534
7563
|
request = null;
|
|
7535
7564
|
};
|
|
7536
7565
|
request.onerror = function() {
|
|
7537
|
-
reject(new
|
|
7566
|
+
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
|
|
7538
7567
|
request = null;
|
|
7539
7568
|
};
|
|
7540
7569
|
request.ontimeout = function() {
|
|
7541
7570
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
7542
7571
|
const transitional = _config.transitional || defaults_transitional;
|
|
7543
7572
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
7544
|
-
reject(new
|
|
7573
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
7545
7574
|
request = null;
|
|
7546
7575
|
};
|
|
7547
7576
|
void 0 === requestData && requestHeaders.setContentType(null);
|
|
@@ -7570,7 +7599,7 @@ var __webpack_exports__ = {};
|
|
|
7570
7599
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
7571
7600
|
}
|
|
7572
7601
|
const protocol = parseProtocol(_config.url);
|
|
7573
|
-
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new
|
|
7602
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
7574
7603
|
request.send(requestData || null);
|
|
7575
7604
|
});
|
|
7576
7605
|
};
|
|
@@ -7584,12 +7613,12 @@ var __webpack_exports__ = {};
|
|
|
7584
7613
|
aborted = true;
|
|
7585
7614
|
unsubscribe();
|
|
7586
7615
|
const err = reason instanceof Error ? reason : this.reason;
|
|
7587
|
-
controller.abort(err instanceof
|
|
7616
|
+
controller.abort(err instanceof AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err));
|
|
7588
7617
|
}
|
|
7589
7618
|
};
|
|
7590
7619
|
let timer = timeout && setTimeout(()=>{
|
|
7591
7620
|
timer = null;
|
|
7592
|
-
onabort(new
|
|
7621
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
7593
7622
|
}, timeout);
|
|
7594
7623
|
const unsubscribe = ()=>{
|
|
7595
7624
|
if (signals) {
|
|
@@ -7709,7 +7738,7 @@ var __webpack_exports__ = {};
|
|
|
7709
7738
|
'stream'
|
|
7710
7739
|
].forEach((type)=>{
|
|
7711
7740
|
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
7712
|
-
throw new
|
|
7741
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
7713
7742
|
});
|
|
7714
7743
|
});
|
|
7715
7744
|
})(new Response);
|
|
@@ -7801,10 +7830,10 @@ var __webpack_exports__ = {};
|
|
|
7801
7830
|
});
|
|
7802
7831
|
} catch (err) {
|
|
7803
7832
|
unsubscribe && unsubscribe();
|
|
7804
|
-
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new
|
|
7833
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
7805
7834
|
cause: err.cause || err
|
|
7806
7835
|
});
|
|
7807
|
-
throw
|
|
7836
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
7808
7837
|
}
|
|
7809
7838
|
});
|
|
7810
7839
|
const knownAdapters = {
|
|
@@ -7841,7 +7870,7 @@ var __webpack_exports__ = {};
|
|
|
7841
7870
|
adapter = nameOrAdapter;
|
|
7842
7871
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
7843
7872
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
7844
|
-
if (void 0 === adapter) throw new
|
|
7873
|
+
if (void 0 === adapter) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
7845
7874
|
}
|
|
7846
7875
|
if (adapter) break;
|
|
7847
7876
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -7849,7 +7878,7 @@ var __webpack_exports__ = {};
|
|
|
7849
7878
|
if (!adapter) {
|
|
7850
7879
|
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
7851
7880
|
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
7852
|
-
throw new
|
|
7881
|
+
throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
7853
7882
|
}
|
|
7854
7883
|
return adapter;
|
|
7855
7884
|
},
|
|
@@ -7904,7 +7933,7 @@ var __webpack_exports__ = {};
|
|
|
7904
7933
|
return "[Axios v1.11.0] Transitional option '" + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
7905
7934
|
}
|
|
7906
7935
|
return (value, opt, opts)=>{
|
|
7907
|
-
if (false === validator) throw new
|
|
7936
|
+
if (false === validator) throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
|
|
7908
7937
|
if (version && !deprecatedWarnings[opt]) {
|
|
7909
7938
|
deprecatedWarnings[opt] = true;
|
|
7910
7939
|
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
@@ -7919,7 +7948,7 @@ var __webpack_exports__ = {};
|
|
|
7919
7948
|
};
|
|
7920
7949
|
};
|
|
7921
7950
|
function assertOptions(options, schema, allowUnknown) {
|
|
7922
|
-
if ('object' != typeof options) throw new
|
|
7951
|
+
if ('object' != typeof options) throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
7923
7952
|
const keys = Object.keys(options);
|
|
7924
7953
|
let i = keys.length;
|
|
7925
7954
|
while(i-- > 0){
|
|
@@ -7928,10 +7957,10 @@ var __webpack_exports__ = {};
|
|
|
7928
7957
|
if (validator) {
|
|
7929
7958
|
const value = options[opt];
|
|
7930
7959
|
const result = void 0 === value || validator(value, opt, options);
|
|
7931
|
-
if (true !== result) throw new
|
|
7960
|
+
if (true !== result) throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
7932
7961
|
continue;
|
|
7933
7962
|
}
|
|
7934
|
-
if (true !== allowUnknown) throw new
|
|
7963
|
+
if (true !== allowUnknown) throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
7935
7964
|
}
|
|
7936
7965
|
}
|
|
7937
7966
|
const helpers_validator = {
|
|
@@ -8259,7 +8288,7 @@ var __webpack_exports__ = {};
|
|
|
8259
8288
|
axios.isCancel = isCancel;
|
|
8260
8289
|
axios.VERSION = "1.11.0";
|
|
8261
8290
|
axios.toFormData = helpers_toFormData;
|
|
8262
|
-
axios.AxiosError =
|
|
8291
|
+
axios.AxiosError = AxiosError;
|
|
8263
8292
|
axios.Cancel = axios.CanceledError;
|
|
8264
8293
|
axios.all = function(promises) {
|
|
8265
8294
|
return Promise.all(promises);
|
|
@@ -8545,6 +8574,7 @@ exports.createSettlementPayoutTargetAccountSchema = __webpack_exports__.createSe
|
|
|
8545
8574
|
exports.createUnknownPayoutRestReqSchema = __webpack_exports__.createUnknownPayoutRestReqSchema;
|
|
8546
8575
|
exports.customerEntitySchema = __webpack_exports__.customerEntitySchema;
|
|
8547
8576
|
exports.customerLedgerRestReqSchema = __webpack_exports__.customerLedgerRestReqSchema;
|
|
8577
|
+
exports.customerSyncFromAmmozeGrpcReqSchema = __webpack_exports__.customerSyncFromAmmozeGrpcReqSchema;
|
|
8548
8578
|
exports.dateTimeFilterBaseSchema = __webpack_exports__.dateTimeFilterBaseSchema;
|
|
8549
8579
|
exports.dateTimeFilterSchema = __webpack_exports__.dateTimeFilterSchema;
|
|
8550
8580
|
exports.developerEntitySchema = __webpack_exports__.developerEntitySchema;
|
|
@@ -8647,6 +8677,7 @@ exports.propertyNestedEntitySchema = __webpack_exports__.propertyNestedEntitySch
|
|
|
8647
8677
|
exports.propertyRestResBaseSchema = __webpack_exports__.propertyRestResBaseSchema;
|
|
8648
8678
|
exports.propertyRestResSchema = __webpack_exports__.propertyRestResSchema;
|
|
8649
8679
|
exports.propertySearchRestReqSchema = __webpack_exports__.propertySearchRestReqSchema;
|
|
8680
|
+
exports.propertySyncFromAmmozeGrpcReqSchema = __webpack_exports__.propertySyncFromAmmozeGrpcReqSchema;
|
|
8650
8681
|
exports.queryModeSchema = __webpack_exports__.queryModeSchema;
|
|
8651
8682
|
exports.receiptListReportRestReqSchema = __webpack_exports__.receiptListReportRestReqSchema;
|
|
8652
8683
|
exports.reconcileCmaTransactionRestReqSchema = __webpack_exports__.reconcileCmaTransactionRestReqSchema;
|
|
@@ -8825,6 +8856,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
8825
8856
|
"createUnknownPayoutRestReqSchema",
|
|
8826
8857
|
"customerEntitySchema",
|
|
8827
8858
|
"customerLedgerRestReqSchema",
|
|
8859
|
+
"customerSyncFromAmmozeGrpcReqSchema",
|
|
8828
8860
|
"dateTimeFilterBaseSchema",
|
|
8829
8861
|
"dateTimeFilterSchema",
|
|
8830
8862
|
"developerEntitySchema",
|
|
@@ -8927,6 +8959,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
8927
8959
|
"propertyRestResBaseSchema",
|
|
8928
8960
|
"propertyRestResSchema",
|
|
8929
8961
|
"propertySearchRestReqSchema",
|
|
8962
|
+
"propertySyncFromAmmozeGrpcReqSchema",
|
|
8930
8963
|
"queryModeSchema",
|
|
8931
8964
|
"receiptListReportRestReqSchema",
|
|
8932
8965
|
"reconcileCmaTransactionRestReqSchema",
|