@mikemo-coposit/am-accounting-shared 0.0.16 → 0.0.17
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/index.d.ts +2 -0
- package/dist/cjs/constants/common/index.d.ts.map +1 -1
- package/dist/cjs/constants/common/package-version.constant.d.ts +2 -0
- package/dist/cjs/constants/common/package-version.constant.d.ts.map +1 -0
- package/dist/cjs/constants/common/pagination.constant.d.ts +3 -0
- package/dist/cjs/constants/common/pagination.constant.d.ts.map +1 -0
- package/dist/cjs/constants/property/index.d.ts +1 -0
- package/dist/cjs/constants/property/index.d.ts.map +1 -1
- package/dist/cjs/constants/property/property-initial-deposit-status.constant.d.ts +22 -0
- package/dist/cjs/constants/property/property-initial-deposit-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/property/property-status.constant.d.ts +14 -4
- package/dist/cjs/constants/property/property-status.constant.d.ts.map +1 -1
- package/dist/cjs/index.js +256 -168
- package/dist/cjs/schemas/cma/cma-search.rest.schemal.d.ts +153 -150
- package/dist/cjs/schemas/cma/cma-search.rest.schemal.d.ts.map +1 -1
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts +26 -0
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-close.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +48 -0
- 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 +26 -0
- 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 +50 -0
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +264 -232
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +2 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +1 -1
- package/dist/cjs/schemas/common/date/string-to-date.schema.d.ts +3 -1
- package/dist/cjs/schemas/common/date/string-to-date.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/index.d.ts +1 -0
- package/dist/cjs/schemas/common/search/index.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/number-filter.schema.d.ts +144 -35
- package/dist/cjs/schemas/common/search/number-filter.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/pagination-req.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/status-filter.schema.d.ts +155 -0
- package/dist/cjs/schemas/common/search/status-filter.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts +28 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +48 -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 +24 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +260 -191
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +2 -0
- 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 +2 -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.entity.schema.d.ts +4 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.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 +156 -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-provision-data.entity.schema.d.ts +4 -0
- package/dist/cjs/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout-update.rest.schema.d.ts +3 -3
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts +4 -0
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +621 -15
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts +4 -0
- package/dist/cjs/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts +4 -4
- package/dist/cjs/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +69 -1
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts +136 -113
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.entity.schema.d.ts +4 -0
- package/dist/cjs/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +52 -0
- package/dist/cjs/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/cjs/utils/property.util.d.ts +4 -2
- package/dist/cjs/utils/property.util.d.ts.map +1 -1
- package/dist/esm/constants/common/index.d.ts +2 -0
- package/dist/esm/constants/common/index.d.ts.map +1 -1
- package/dist/esm/constants/common/package-version.constant.d.ts +2 -0
- package/dist/esm/constants/common/package-version.constant.d.ts.map +1 -0
- package/dist/esm/constants/common/pagination.constant.d.ts +3 -0
- package/dist/esm/constants/common/pagination.constant.d.ts.map +1 -0
- package/dist/esm/constants/property/index.d.ts +1 -0
- package/dist/esm/constants/property/index.d.ts.map +1 -1
- package/dist/esm/constants/property/property-initial-deposit-status.constant.d.ts +22 -0
- package/dist/esm/constants/property/property-initial-deposit-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/property/property-status.constant.d.ts +14 -4
- package/dist/esm/constants/property/property-status.constant.d.ts.map +1 -1
- package/dist/esm/index.mjs +196 -150
- package/dist/esm/schemas/cma/cma-search.rest.schemal.d.ts +153 -150
- package/dist/esm/schemas/cma/cma-search.rest.schemal.d.ts.map +1 -1
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts +26 -0
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-close.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +48 -0
- 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 +26 -0
- 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 +50 -0
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +264 -232
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +2 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +1 -1
- package/dist/esm/schemas/common/date/string-to-date.schema.d.ts +3 -1
- package/dist/esm/schemas/common/date/string-to-date.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/index.d.ts +1 -0
- package/dist/esm/schemas/common/search/index.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/number-filter.schema.d.ts +144 -35
- package/dist/esm/schemas/common/search/number-filter.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/pagination-req.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/status-filter.schema.d.ts +155 -0
- package/dist/esm/schemas/common/search/status-filter.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts +28 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +48 -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 +24 -0
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +260 -191
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +2 -0
- 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 +2 -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.entity.schema.d.ts +4 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.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 +156 -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-provision-data.entity.schema.d.ts +4 -0
- package/dist/esm/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout-update.rest.schema.d.ts +3 -3
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts +4 -0
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +621 -15
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts +4 -0
- package/dist/esm/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts +4 -4
- package/dist/esm/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +69 -1
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts +136 -113
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.entity.schema.d.ts +4 -0
- package/dist/esm/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.rest.schema.d.ts +52 -0
- package/dist/esm/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/esm/utils/property.util.d.ts +4 -2
- package/dist/esm/utils/property.util.d.ts.map +1 -1
- package/package.json +17 -10
package/dist/esm/index.mjs
CHANGED
|
@@ -295,14 +295,42 @@ const ProjectApplyStatusRestRes = {
|
|
|
295
295
|
PENDING_TRUST_ACCOUNT: 'pending_trust_account',
|
|
296
296
|
...ProjectMtaAllocationStatus
|
|
297
297
|
};
|
|
298
|
-
const
|
|
299
|
-
|
|
298
|
+
const PropertyInitialDepositStatus = {
|
|
299
|
+
INIT: 'init',
|
|
300
|
+
PENDING_HOLDING_DEPOSIT: 'pending_holding_deposit',
|
|
301
|
+
PENDING_APPROVAL: 'pending_approval',
|
|
302
|
+
PENDING_SIGNING_DEPOSIT: 'pending_signing_deposit',
|
|
303
|
+
FULFILLED: 'fulfilled',
|
|
304
|
+
COMPLETED: 'completed'
|
|
305
|
+
};
|
|
306
|
+
const PropertyInitialDepositStatusToDisplayTextMapper = {
|
|
307
|
+
[PropertyInitialDepositStatus.INIT]: 'Init',
|
|
308
|
+
[PropertyInitialDepositStatus.PENDING_HOLDING_DEPOSIT]: 'Pending Holding Deposit',
|
|
309
|
+
[PropertyInitialDepositStatus.PENDING_APPROVAL]: 'Pending HD Approval',
|
|
310
|
+
[PropertyInitialDepositStatus.PENDING_SIGNING_DEPOSIT]: 'Pending Signing Deposit',
|
|
311
|
+
[PropertyInitialDepositStatus.FULFILLED]: 'Initial Deposit Fulfilled',
|
|
312
|
+
[PropertyInitialDepositStatus.COMPLETED]: 'Initial Deposit Completed'
|
|
300
313
|
};
|
|
314
|
+
var property_status_constant_PropertyRestResStatus = /*#__PURE__*/ function(PropertyRestResStatus) {
|
|
315
|
+
PropertyRestResStatus["ALL"] = "all";
|
|
316
|
+
PropertyRestResStatus["PENDING_PURCHASE_INFO"] = "pending_purchase_info";
|
|
317
|
+
PropertyRestResStatus["NEED_CMA"] = "need_cma";
|
|
318
|
+
PropertyRestResStatus["CMA_ASSIGNED"] = "cma_assigned";
|
|
319
|
+
PropertyRestResStatus["PENDING_CONTRACT"] = "pending_contract";
|
|
320
|
+
return PropertyRestResStatus;
|
|
321
|
+
}({});
|
|
301
322
|
const PropertyStage = {
|
|
302
323
|
INITIAL_DEPOSIT: 'initial_deposit',
|
|
303
324
|
STANDARD_SALE: 'standard_sale',
|
|
304
325
|
COPOSIT_SALE: 'coposit_sale'
|
|
305
326
|
};
|
|
327
|
+
const PropertyStatusToDisplayTextMapper = {
|
|
328
|
+
["all"]: 'All',
|
|
329
|
+
["pending_purchase_info"]: 'Pending Purchase Info',
|
|
330
|
+
["need_cma"]: 'Need CMA',
|
|
331
|
+
["cma_assigned"]: 'CMA Assigned',
|
|
332
|
+
["pending_contract"]: 'Pending Contract'
|
|
333
|
+
};
|
|
306
334
|
var report_data_range_type_constant_ReportDataRangeType = /*#__PURE__*/ function(ReportDataRangeType) {
|
|
307
335
|
ReportDataRangeType["SPECIFY_EXACT_DATES"] = "specify_exact_dates";
|
|
308
336
|
ReportDataRangeType["ENTIRE_HISTORY_TO_DATE"] = "entire_history_to_date";
|
|
@@ -314,75 +342,70 @@ var report_group_type_constant_ReportGroupType = /*#__PURE__*/ function(ReportGr
|
|
|
314
342
|
ReportGroupType["SEPARATE_REPORTS"] = "separate_reports";
|
|
315
343
|
return ReportGroupType;
|
|
316
344
|
}({});
|
|
345
|
+
const intSimpleFilterSchema = z.coerce.number().int();
|
|
317
346
|
const intFilterBaseSchema = z.object({
|
|
318
|
-
equals:
|
|
319
|
-
in:
|
|
320
|
-
notIn:
|
|
321
|
-
lt:
|
|
322
|
-
lte:
|
|
323
|
-
gt:
|
|
324
|
-
gte:
|
|
325
|
-
});
|
|
326
|
-
const
|
|
347
|
+
equals: intSimpleFilterSchema.optional(),
|
|
348
|
+
in: intSimpleFilterSchema.array().optional(),
|
|
349
|
+
notIn: intSimpleFilterSchema.array().optional(),
|
|
350
|
+
lt: intSimpleFilterSchema.optional(),
|
|
351
|
+
lte: intSimpleFilterSchema.optional(),
|
|
352
|
+
gt: intSimpleFilterSchema.optional(),
|
|
353
|
+
gte: intSimpleFilterSchema.optional()
|
|
354
|
+
});
|
|
355
|
+
const intNullableObjectFilterSchema = intFilterBaseSchema.extend({
|
|
356
|
+
equals: intSimpleFilterSchema.nullish(),
|
|
327
357
|
not: z.union([
|
|
328
|
-
|
|
358
|
+
intSimpleFilterSchema,
|
|
359
|
+
z["null"](),
|
|
329
360
|
z.lazy(()=>intFilterBaseSchema)
|
|
330
361
|
]).optional()
|
|
331
362
|
});
|
|
332
|
-
const
|
|
363
|
+
const intObjectFilterSchema = intFilterBaseSchema.extend({
|
|
333
364
|
not: z.union([
|
|
334
|
-
|
|
365
|
+
intSimpleFilterSchema,
|
|
335
366
|
z.lazy(()=>intFilterBaseSchema)
|
|
336
367
|
]).optional()
|
|
337
368
|
});
|
|
369
|
+
const intFilterSchema = z.union([
|
|
370
|
+
z.lazy(()=>intObjectFilterSchema),
|
|
371
|
+
intSimpleFilterSchema
|
|
372
|
+
]);
|
|
373
|
+
const intNullableFilterSchema = z.union([
|
|
374
|
+
z.lazy(()=>intNullableObjectFilterSchema),
|
|
375
|
+
intSimpleFilterSchema
|
|
376
|
+
]);
|
|
377
|
+
const bigIntSimpleFilterSchema = z.coerce.bigint();
|
|
338
378
|
const bigIntFilterBaseSchema = z.object({
|
|
339
|
-
equals:
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
z.coerce.number()
|
|
350
|
-
]).transform(BigInt).pipe(z.bigint()).array().optional(),
|
|
351
|
-
lt: z.union([
|
|
352
|
-
z.coerce.bigint(),
|
|
353
|
-
z.coerce.number()
|
|
354
|
-
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
355
|
-
lte: z.union([
|
|
356
|
-
z.coerce.bigint(),
|
|
357
|
-
z.coerce.number()
|
|
358
|
-
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
359
|
-
gt: z.union([
|
|
360
|
-
z.coerce.bigint(),
|
|
361
|
-
z.coerce.number()
|
|
362
|
-
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
363
|
-
gte: z.union([
|
|
364
|
-
z.coerce.bigint(),
|
|
365
|
-
z.coerce.number()
|
|
366
|
-
]).transform(BigInt).pipe(z.bigint()).optional()
|
|
367
|
-
});
|
|
368
|
-
const bigIntNullableFilterSchema = bigIntFilterBaseSchema.extend({
|
|
379
|
+
equals: bigIntSimpleFilterSchema.optional(),
|
|
380
|
+
in: bigIntSimpleFilterSchema.array().optional(),
|
|
381
|
+
notIn: bigIntSimpleFilterSchema.array().optional(),
|
|
382
|
+
lt: bigIntSimpleFilterSchema.optional(),
|
|
383
|
+
lte: bigIntSimpleFilterSchema.optional(),
|
|
384
|
+
gt: bigIntSimpleFilterSchema.optional(),
|
|
385
|
+
gte: bigIntSimpleFilterSchema.optional()
|
|
386
|
+
});
|
|
387
|
+
const bigIntNullableObjectFilterSchema = bigIntFilterBaseSchema.extend({
|
|
388
|
+
equals: bigIntSimpleFilterSchema.nullish(),
|
|
369
389
|
not: z.union([
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
z.coerce.number()
|
|
373
|
-
]).transform(BigInt).pipe(z.bigint()),
|
|
390
|
+
bigIntSimpleFilterSchema,
|
|
391
|
+
z["null"](),
|
|
374
392
|
z.lazy(()=>bigIntFilterBaseSchema)
|
|
375
393
|
]).optional()
|
|
376
394
|
});
|
|
377
|
-
const
|
|
395
|
+
const bigIntObjectFilterSchema = bigIntFilterBaseSchema.extend({
|
|
378
396
|
not: z.union([
|
|
379
|
-
|
|
380
|
-
z.coerce.bigint(),
|
|
381
|
-
z.coerce.number()
|
|
382
|
-
]).transform(BigInt).pipe(z.bigint()),
|
|
397
|
+
bigIntSimpleFilterSchema,
|
|
383
398
|
z.lazy(()=>bigIntFilterBaseSchema)
|
|
384
399
|
]).optional()
|
|
385
400
|
});
|
|
401
|
+
const bigIntFilterSchema = z.union([
|
|
402
|
+
z.lazy(()=>bigIntObjectFilterSchema),
|
|
403
|
+
bigIntSimpleFilterSchema
|
|
404
|
+
]);
|
|
405
|
+
const bigIntNullableFilterSchema = z.union([
|
|
406
|
+
z.lazy(()=>bigIntNullableObjectFilterSchema),
|
|
407
|
+
bigIntSimpleFilterSchema
|
|
408
|
+
]);
|
|
386
409
|
const QueryMode = {
|
|
387
410
|
DEFAULT: 'default',
|
|
388
411
|
INSENSITIVE: 'insensitive'
|
|
@@ -417,11 +440,50 @@ const stringFilterSchema = z.strictObject({
|
|
|
417
440
|
z.lazy(()=>StringFilterBaseSchema)
|
|
418
441
|
]).optional()
|
|
419
442
|
});
|
|
443
|
+
const stringNullableFilterSchema = z.strictObject({
|
|
444
|
+
...stringFilterSchema.shape,
|
|
445
|
+
equals: z.string().nullish(),
|
|
446
|
+
not: z.union([
|
|
447
|
+
z.string(),
|
|
448
|
+
z["null"](),
|
|
449
|
+
z.lazy(()=>StringFilterBaseSchema)
|
|
450
|
+
]).optional()
|
|
451
|
+
}).nullish();
|
|
420
452
|
const simpleStringFilterSchema = z.strictObject({
|
|
421
453
|
equals: z.string().optional(),
|
|
422
454
|
not: z.string().optional(),
|
|
423
455
|
mode: z.lazy(()=>queryModeSchema).optional()
|
|
424
456
|
});
|
|
457
|
+
const paginationReqSchema = z.object({
|
|
458
|
+
page: z.coerce.number().prefault(1).pipe(z.int().positive()).optional(),
|
|
459
|
+
pageSize: z.coerce.number().pipe(z.int().positive()).optional()
|
|
460
|
+
});
|
|
461
|
+
const sortReqSchema = zod.record(zod.string(), zod.string().transform((val)=>{
|
|
462
|
+
if ('ascend' === val) return sort_order_constant_SortOrder.ASC;
|
|
463
|
+
if ('descend' === val) return sort_order_constant_SortOrder.DESC;
|
|
464
|
+
return val;
|
|
465
|
+
}).pipe(zod["enum"](sort_order_constant_SortOrder)));
|
|
466
|
+
const statusFilterSchema = z.union([
|
|
467
|
+
z.lazy(()=>stringFilterSchema),
|
|
468
|
+
z.string()
|
|
469
|
+
]).transform((val)=>{
|
|
470
|
+
if (null === val) return;
|
|
471
|
+
if ('string' == typeof val && (val?.toLowerCase()?.trim() === 'all' || val?.trim() === '')) return;
|
|
472
|
+
if ('object' == typeof val && val?.equals?.toLowerCase()?.trim() === 'all') return;
|
|
473
|
+
if ('object' == typeof val && 0 === Object.keys(val).length) return;
|
|
474
|
+
return val;
|
|
475
|
+
}).optional();
|
|
476
|
+
const statusNullableFilterSchema = z.union([
|
|
477
|
+
z.lazy(()=>stringFilterSchema),
|
|
478
|
+
z["null"](),
|
|
479
|
+
z.string()
|
|
480
|
+
]).transform((val)=>{
|
|
481
|
+
if (null === val) return null;
|
|
482
|
+
if ('string' == typeof val && (val?.toLowerCase()?.trim() === 'all' || val?.trim() === '')) return;
|
|
483
|
+
if ('object' == typeof val && val?.equals?.toLowerCase()?.trim() === 'all') return;
|
|
484
|
+
if ('object' == typeof val && 0 === Object.keys(val).length) return;
|
|
485
|
+
return val;
|
|
486
|
+
}).nullish();
|
|
425
487
|
const propertySearchRestReqSchema = z.object({
|
|
426
488
|
id: z.union([
|
|
427
489
|
z.lazy(()=>stringFilterSchema),
|
|
@@ -455,22 +517,16 @@ const propertySearchRestReqSchema = z.object({
|
|
|
455
517
|
z.lazy(()=>stringFilterSchema),
|
|
456
518
|
z.string()
|
|
457
519
|
]).optional(),
|
|
458
|
-
mtaBalanceCents:
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
z.lazy(()=>
|
|
464
|
-
z.bigint()
|
|
465
|
-
]).optional(),
|
|
466
|
-
balanceCents: z.union([
|
|
467
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
468
|
-
z.bigint()
|
|
469
|
-
]).optional(),
|
|
470
|
-
status: z.union([
|
|
471
|
-
z.lazy(()=>stringFilterSchema),
|
|
520
|
+
mtaBalanceCents: bigIntFilterSchema.optional(),
|
|
521
|
+
cmaBalanceCents: bigIntFilterSchema.optional(),
|
|
522
|
+
balanceCents: bigIntFilterSchema.optional(),
|
|
523
|
+
status: statusFilterSchema.optional(),
|
|
524
|
+
cmaId: z.union([
|
|
525
|
+
z.lazy(()=>stringNullableFilterSchema),
|
|
472
526
|
z.string()
|
|
473
|
-
]).optional()
|
|
527
|
+
]).optional(),
|
|
528
|
+
...paginationReqSchema.shape,
|
|
529
|
+
sort: sortReqSchema.optional()
|
|
474
530
|
});
|
|
475
531
|
const cmaSearchRestReqSchema = z.object({
|
|
476
532
|
id: z.union([
|
|
@@ -505,10 +561,7 @@ const cmaSearchRestReqSchema = z.object({
|
|
|
505
561
|
z.lazy(()=>stringFilterSchema),
|
|
506
562
|
z.string()
|
|
507
563
|
]).optional(),
|
|
508
|
-
balanceCents:
|
|
509
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
510
|
-
z.bigint()
|
|
511
|
-
]).optional(),
|
|
564
|
+
balanceCents: bigIntFilterSchema.optional(),
|
|
512
565
|
property: z.lazy(()=>propertySearchRestReqSchema).optional()
|
|
513
566
|
});
|
|
514
567
|
const cmaEntitySchema = z.object({
|
|
@@ -890,6 +943,8 @@ const propertyEntitySchema = z.object({
|
|
|
890
943
|
stage: z.string(),
|
|
891
944
|
status: z.string(),
|
|
892
945
|
mtaId: z.string(),
|
|
946
|
+
cmaId: z.string().nullish(),
|
|
947
|
+
initialDepositStatus: z.string().nullish(),
|
|
893
948
|
isArchived: z.boolean(),
|
|
894
949
|
createdAt: z.coerce.date(),
|
|
895
950
|
syncedAt: z.coerce.date(),
|
|
@@ -979,11 +1034,11 @@ const commonPayoutSourceDetailEntitySchema = z.object({
|
|
|
979
1034
|
}).passthrough();
|
|
980
1035
|
const settlementPayoutSourceDetailEntitySchema = commonPayoutSourceDetailEntitySchema.extend({
|
|
981
1036
|
propertyId: z.uuid()
|
|
982
|
-
}).
|
|
1037
|
+
}).loose();
|
|
983
1038
|
const settlementPayoutTargetDetailEntitySchema = commonPayoutTargetDetailEntitySchema.extend({
|
|
984
1039
|
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER).prefault(payout_constant_PayoutTargetAccountType.OTHER),
|
|
985
1040
|
propertyId: z.uuid()
|
|
986
|
-
}).
|
|
1041
|
+
}).loose();
|
|
987
1042
|
const settlementPayoutPaymentEntitySchema = z.looseObject({
|
|
988
1043
|
sourceDetail: settlementPayoutSourceDetailEntitySchema,
|
|
989
1044
|
targetDetail: settlementPayoutTargetDetailEntitySchema,
|
|
@@ -1273,6 +1328,7 @@ const extendDayjs = (input)=>{
|
|
|
1273
1328
|
return date;
|
|
1274
1329
|
};
|
|
1275
1330
|
const stringToDateSchema = z.union([
|
|
1331
|
+
z.custom((data)=>dayjs_0.isDayjs(data)),
|
|
1276
1332
|
z.string(),
|
|
1277
1333
|
z.date(),
|
|
1278
1334
|
z.iso.datetime()
|
|
@@ -1428,10 +1484,6 @@ const dateTimeFilterSchema = z.strictObject({
|
|
|
1428
1484
|
z.lazy(()=>dateTimeFilterBaseSchema)
|
|
1429
1485
|
]).optional()
|
|
1430
1486
|
});
|
|
1431
|
-
const paginationReqSchema = z.object({
|
|
1432
|
-
page: z.coerce.number().prefault(1).pipe(z.int().positive()).optional(),
|
|
1433
|
-
pageSize: z.coerce.number().pipe(z.int().positive()).optional()
|
|
1434
|
-
});
|
|
1435
1487
|
const stringToBoolSchema = z.union([
|
|
1436
1488
|
z.boolean(),
|
|
1437
1489
|
z.string()
|
|
@@ -1486,10 +1538,7 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1486
1538
|
property: z.union([
|
|
1487
1539
|
z.lazy(()=>propertySearchRestReqSchema)
|
|
1488
1540
|
]).optional(),
|
|
1489
|
-
sequence:
|
|
1490
|
-
z.lazy(()=>intFilterSchema),
|
|
1491
|
-
z.number().int()
|
|
1492
|
-
]).optional(),
|
|
1541
|
+
sequence: intFilterSchema.optional(),
|
|
1493
1542
|
createType: z.union([
|
|
1494
1543
|
z.lazy(()=>stringFilterSchema),
|
|
1495
1544
|
z.string()
|
|
@@ -1510,6 +1559,10 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1510
1559
|
z.lazy(()=>dateTimeFilterSchema),
|
|
1511
1560
|
z.string()
|
|
1512
1561
|
]).optional(),
|
|
1562
|
+
createdAt: z.union([
|
|
1563
|
+
z.lazy(()=>dateTimeFilterSchema),
|
|
1564
|
+
z.string()
|
|
1565
|
+
]).optional(),
|
|
1513
1566
|
transactionType: z.union([
|
|
1514
1567
|
z.lazy(()=>stringFilterSchema),
|
|
1515
1568
|
z.string()
|
|
@@ -1522,22 +1575,14 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1522
1575
|
z.lazy(()=>boolFilterSchema),
|
|
1523
1576
|
z.boolean()
|
|
1524
1577
|
]).optional(),
|
|
1525
|
-
status:
|
|
1526
|
-
z.lazy(()=>stringFilterSchema),
|
|
1527
|
-
z.string()
|
|
1528
|
-
]).optional(),
|
|
1578
|
+
status: statusFilterSchema,
|
|
1529
1579
|
payoutId: z.union([
|
|
1530
1580
|
z.lazy(()=>stringFilterSchema),
|
|
1531
1581
|
z.string()
|
|
1532
1582
|
]).optional(),
|
|
1533
|
-
creditAmountCents:
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
]).optional(),
|
|
1537
|
-
debitAmountCents: z.union([
|
|
1538
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
1539
|
-
z.bigint()
|
|
1540
|
-
]).optional()
|
|
1583
|
+
creditAmountCents: bigIntFilterSchema.optional(),
|
|
1584
|
+
debitAmountCents: bigIntFilterSchema.optional(),
|
|
1585
|
+
sort: z.lazy(()=>sortReqSchema).optional()
|
|
1541
1586
|
}).and(paginationReqSchema.optional());
|
|
1542
1587
|
const createCmaTransactionRestReqSchema = z.object({
|
|
1543
1588
|
amount: z.number().positive().transform(fromDollarsToCents).pipe(z.bigint()),
|
|
@@ -1610,11 +1655,6 @@ const paginatedResSchema = z.object({
|
|
|
1610
1655
|
total: z.coerce.number()
|
|
1611
1656
|
})
|
|
1612
1657
|
});
|
|
1613
|
-
const sortReqSchema = zod.record(zod.string(), zod.string().transform((val)=>{
|
|
1614
|
-
if ('ascend' === val) return sort_order_constant_SortOrder.ASC;
|
|
1615
|
-
if ('descend' === val) return sort_order_constant_SortOrder.DESC;
|
|
1616
|
-
return val;
|
|
1617
|
-
}).pipe(zod["enum"](sort_order_constant_SortOrder)));
|
|
1618
1658
|
const createMenuRestReqSchema = z.object({
|
|
1619
1659
|
parentId: z.string().optional(),
|
|
1620
1660
|
label: z.string(),
|
|
@@ -1984,7 +2024,7 @@ const mtaTransactionSearchRestReqSchema = z.object({
|
|
|
1984
2024
|
z.lazy(()=>stringFilterSchema),
|
|
1985
2025
|
z.string()
|
|
1986
2026
|
]).optional(),
|
|
1987
|
-
sequence:
|
|
2027
|
+
sequence: intFilterSchema.optional(),
|
|
1988
2028
|
propertyId: z.union([
|
|
1989
2029
|
z.lazy(()=>stringFilterSchema),
|
|
1990
2030
|
z.string()
|
|
@@ -2021,22 +2061,13 @@ const mtaTransactionSearchRestReqSchema = z.object({
|
|
|
2021
2061
|
z.lazy(()=>stringFilterSchema),
|
|
2022
2062
|
z.string()
|
|
2023
2063
|
]).optional(),
|
|
2024
|
-
status:
|
|
2025
|
-
z.lazy(()=>simpleStringFilterSchema),
|
|
2026
|
-
z.string()
|
|
2027
|
-
]).optional(),
|
|
2064
|
+
status: statusFilterSchema.optional(),
|
|
2028
2065
|
payoutId: z.union([
|
|
2029
2066
|
z.lazy(()=>stringFilterSchema),
|
|
2030
2067
|
z.string()
|
|
2031
2068
|
]).optional(),
|
|
2032
|
-
creditAmountCents:
|
|
2033
|
-
|
|
2034
|
-
z.bigint()
|
|
2035
|
-
]).optional(),
|
|
2036
|
-
debitAmountCents: z.union([
|
|
2037
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
2038
|
-
z.bigint()
|
|
2039
|
-
]).optional(),
|
|
2069
|
+
creditAmountCents: bigIntFilterSchema.optional(),
|
|
2070
|
+
debitAmountCents: bigIntFilterSchema.optional(),
|
|
2040
2071
|
property: z.lazy(()=>propertySearchRestReqSchema).optional().nullable(),
|
|
2041
2072
|
sort: z.lazy(()=>sortReqSchema).optional()
|
|
2042
2073
|
}).and(paginationReqSchema.optional());
|
|
@@ -2912,7 +2943,7 @@ const utils = {
|
|
|
2912
2943
|
asap,
|
|
2913
2944
|
isIterable
|
|
2914
2945
|
};
|
|
2915
|
-
function
|
|
2946
|
+
function AxiosError_AxiosError(message, code, config, request, response) {
|
|
2916
2947
|
Error.call(this);
|
|
2917
2948
|
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
2918
2949
|
else this.stack = new Error().stack;
|
|
@@ -2926,7 +2957,7 @@ function AxiosError(message, code, config, request, response) {
|
|
|
2926
2957
|
this.status = response.status ? response.status : null;
|
|
2927
2958
|
}
|
|
2928
2959
|
}
|
|
2929
|
-
utils.inherits(
|
|
2960
|
+
utils.inherits(AxiosError_AxiosError, Error, {
|
|
2930
2961
|
toJSON: function() {
|
|
2931
2962
|
return {
|
|
2932
2963
|
message: this.message,
|
|
@@ -2943,7 +2974,7 @@ utils.inherits(AxiosError, Error, {
|
|
|
2943
2974
|
};
|
|
2944
2975
|
}
|
|
2945
2976
|
});
|
|
2946
|
-
const AxiosError_prototype =
|
|
2977
|
+
const AxiosError_prototype = AxiosError_AxiosError.prototype;
|
|
2947
2978
|
const AxiosError_descriptors = {};
|
|
2948
2979
|
[
|
|
2949
2980
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -2963,22 +2994,22 @@ const AxiosError_descriptors = {};
|
|
|
2963
2994
|
value: code
|
|
2964
2995
|
};
|
|
2965
2996
|
});
|
|
2966
|
-
Object.defineProperties(
|
|
2997
|
+
Object.defineProperties(AxiosError_AxiosError, AxiosError_descriptors);
|
|
2967
2998
|
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
2968
2999
|
value: true
|
|
2969
3000
|
});
|
|
2970
|
-
|
|
3001
|
+
AxiosError_AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
2971
3002
|
const axiosError = Object.create(AxiosError_prototype);
|
|
2972
3003
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
2973
3004
|
return obj !== Error.prototype;
|
|
2974
3005
|
}, (prop)=>'isAxiosError' !== prop);
|
|
2975
|
-
|
|
3006
|
+
AxiosError_AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
2976
3007
|
axiosError.cause = error;
|
|
2977
3008
|
axiosError.name = error.name;
|
|
2978
3009
|
customProps && Object.assign(axiosError, customProps);
|
|
2979
3010
|
return axiosError;
|
|
2980
3011
|
};
|
|
2981
|
-
const
|
|
3012
|
+
const AxiosError = AxiosError_AxiosError;
|
|
2982
3013
|
const helpers_null = null;
|
|
2983
3014
|
function isVisitable(thing) {
|
|
2984
3015
|
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
@@ -3020,7 +3051,7 @@ function toFormData(obj, formData, options) {
|
|
|
3020
3051
|
if (null === value) return '';
|
|
3021
3052
|
if (utils.isDate(value)) return value.toISOString();
|
|
3022
3053
|
if (utils.isBoolean(value)) return value.toString();
|
|
3023
|
-
if (!useBlob && utils.isBlob(value)) throw new
|
|
3054
|
+
if (!useBlob && utils.isBlob(value)) throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
3024
3055
|
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
3025
3056
|
value
|
|
3026
3057
|
]) : Buffer.from(value);
|
|
@@ -3302,7 +3333,7 @@ const defaults = {
|
|
|
3302
3333
|
return JSON.parse(data);
|
|
3303
3334
|
} catch (e) {
|
|
3304
3335
|
if (strictJSONParsing) {
|
|
3305
|
-
if ('SyntaxError' === e.name) throw
|
|
3336
|
+
if ('SyntaxError' === e.name) throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
3306
3337
|
throw e;
|
|
3307
3338
|
}
|
|
3308
3339
|
}
|
|
@@ -3599,19 +3630,19 @@ function isCancel(value) {
|
|
|
3599
3630
|
return !!(value && value.__CANCEL__);
|
|
3600
3631
|
}
|
|
3601
3632
|
function CanceledError(message, config, request) {
|
|
3602
|
-
|
|
3633
|
+
AxiosError.call(this, null == message ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
|
|
3603
3634
|
this.name = 'CanceledError';
|
|
3604
3635
|
}
|
|
3605
|
-
utils.inherits(CanceledError,
|
|
3636
|
+
utils.inherits(CanceledError, AxiosError, {
|
|
3606
3637
|
__CANCEL__: true
|
|
3607
3638
|
});
|
|
3608
3639
|
const cancel_CanceledError = CanceledError;
|
|
3609
3640
|
function settle(resolve, reject, response) {
|
|
3610
3641
|
const validateStatus = response.config.validateStatus;
|
|
3611
3642
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
3612
|
-
else reject(new
|
|
3613
|
-
|
|
3614
|
-
|
|
3643
|
+
else reject(new AxiosError('Request failed with status code ' + response.status, [
|
|
3644
|
+
AxiosError.ERR_BAD_REQUEST,
|
|
3645
|
+
AxiosError.ERR_BAD_RESPONSE
|
|
3615
3646
|
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
3616
3647
|
}
|
|
3617
3648
|
function parseProtocol(url) {
|
|
@@ -3899,18 +3930,18 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3899
3930
|
};
|
|
3900
3931
|
request.onabort = function() {
|
|
3901
3932
|
if (!request) return;
|
|
3902
|
-
reject(new
|
|
3933
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
3903
3934
|
request = null;
|
|
3904
3935
|
};
|
|
3905
3936
|
request.onerror = function() {
|
|
3906
|
-
reject(new
|
|
3937
|
+
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
|
|
3907
3938
|
request = null;
|
|
3908
3939
|
};
|
|
3909
3940
|
request.ontimeout = function() {
|
|
3910
3941
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
3911
3942
|
const transitional = _config.transitional || defaults_transitional;
|
|
3912
3943
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3913
|
-
reject(new
|
|
3944
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
3914
3945
|
request = null;
|
|
3915
3946
|
};
|
|
3916
3947
|
void 0 === requestData && requestHeaders.setContentType(null);
|
|
@@ -3939,11 +3970,11 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3939
3970
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
3940
3971
|
}
|
|
3941
3972
|
const protocol = parseProtocol(_config.url);
|
|
3942
|
-
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new
|
|
3973
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
3943
3974
|
request.send(requestData || null);
|
|
3944
3975
|
});
|
|
3945
3976
|
};
|
|
3946
|
-
const
|
|
3977
|
+
const composeSignals_composeSignals = (signals, timeout)=>{
|
|
3947
3978
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
3948
3979
|
if (timeout || length) {
|
|
3949
3980
|
let controller = new AbortController();
|
|
@@ -3953,12 +3984,12 @@ const composeSignals = (signals, timeout)=>{
|
|
|
3953
3984
|
aborted = true;
|
|
3954
3985
|
unsubscribe();
|
|
3955
3986
|
const err = reason instanceof Error ? reason : this.reason;
|
|
3956
|
-
controller.abort(err instanceof
|
|
3987
|
+
controller.abort(err instanceof AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err));
|
|
3957
3988
|
}
|
|
3958
3989
|
};
|
|
3959
3990
|
let timer = timeout && setTimeout(()=>{
|
|
3960
3991
|
timer = null;
|
|
3961
|
-
onabort(new
|
|
3992
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
3962
3993
|
}, timeout);
|
|
3963
3994
|
const unsubscribe = ()=>{
|
|
3964
3995
|
if (signals) {
|
|
@@ -3976,7 +4007,7 @@ const composeSignals = (signals, timeout)=>{
|
|
|
3976
4007
|
return signal;
|
|
3977
4008
|
}
|
|
3978
4009
|
};
|
|
3979
|
-
const
|
|
4010
|
+
const composeSignals = composeSignals_composeSignals;
|
|
3980
4011
|
const streamChunk = function*(chunk, chunkSize) {
|
|
3981
4012
|
let len = chunk.byteLength;
|
|
3982
4013
|
if (!chunkSize || len < chunkSize) return void (yield chunk);
|
|
@@ -4078,7 +4109,7 @@ isFetchSupported && ((res)=>{
|
|
|
4078
4109
|
'stream'
|
|
4079
4110
|
].forEach((type)=>{
|
|
4080
4111
|
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
4081
|
-
throw new
|
|
4112
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
4082
4113
|
});
|
|
4083
4114
|
});
|
|
4084
4115
|
})(new Response);
|
|
@@ -4103,7 +4134,7 @@ const resolveBodyLength = async (headers, body)=>{
|
|
|
4103
4134
|
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
4104
4135
|
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
4105
4136
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
4106
|
-
let composedSignal =
|
|
4137
|
+
let composedSignal = composeSignals([
|
|
4107
4138
|
signal,
|
|
4108
4139
|
cancelToken && cancelToken.toAbortSignal()
|
|
4109
4140
|
], timeout);
|
|
@@ -4170,10 +4201,10 @@ const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
|
4170
4201
|
});
|
|
4171
4202
|
} catch (err) {
|
|
4172
4203
|
unsubscribe && unsubscribe();
|
|
4173
|
-
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new
|
|
4204
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
4174
4205
|
cause: err.cause || err
|
|
4175
4206
|
});
|
|
4176
|
-
throw
|
|
4207
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
4177
4208
|
}
|
|
4178
4209
|
});
|
|
4179
4210
|
const knownAdapters = {
|
|
@@ -4210,7 +4241,7 @@ const adapters_adapters = {
|
|
|
4210
4241
|
adapter = nameOrAdapter;
|
|
4211
4242
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
4212
4243
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
4213
|
-
if (void 0 === adapter) throw new
|
|
4244
|
+
if (void 0 === adapter) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
4214
4245
|
}
|
|
4215
4246
|
if (adapter) break;
|
|
4216
4247
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -4218,7 +4249,7 @@ const adapters_adapters = {
|
|
|
4218
4249
|
if (!adapter) {
|
|
4219
4250
|
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
4220
4251
|
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
4221
|
-
throw new
|
|
4252
|
+
throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
4222
4253
|
}
|
|
4223
4254
|
return adapter;
|
|
4224
4255
|
},
|
|
@@ -4254,7 +4285,6 @@ function dispatchRequest(config) {
|
|
|
4254
4285
|
return Promise.reject(reason);
|
|
4255
4286
|
});
|
|
4256
4287
|
}
|
|
4257
|
-
const VERSION = "1.11.0";
|
|
4258
4288
|
const validators = {};
|
|
4259
4289
|
[
|
|
4260
4290
|
'object',
|
|
@@ -4271,10 +4301,10 @@ const validators = {};
|
|
|
4271
4301
|
const deprecatedWarnings = {};
|
|
4272
4302
|
validators.transitional = function(validator, version, message) {
|
|
4273
4303
|
function formatMessage(opt, desc) {
|
|
4274
|
-
return
|
|
4304
|
+
return "[Axios v1.11.0] Transitional option '" + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
4275
4305
|
}
|
|
4276
4306
|
return (value, opt, opts)=>{
|
|
4277
|
-
if (false === validator) throw new
|
|
4307
|
+
if (false === validator) throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
|
|
4278
4308
|
if (version && !deprecatedWarnings[opt]) {
|
|
4279
4309
|
deprecatedWarnings[opt] = true;
|
|
4280
4310
|
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
@@ -4289,7 +4319,7 @@ validators.spelling = function(correctSpelling) {
|
|
|
4289
4319
|
};
|
|
4290
4320
|
};
|
|
4291
4321
|
function assertOptions(options, schema, allowUnknown) {
|
|
4292
|
-
if ('object' != typeof options) throw new
|
|
4322
|
+
if ('object' != typeof options) throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4293
4323
|
const keys = Object.keys(options);
|
|
4294
4324
|
let i = keys.length;
|
|
4295
4325
|
while(i-- > 0){
|
|
@@ -4298,10 +4328,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
4298
4328
|
if (validator) {
|
|
4299
4329
|
const value = options[opt];
|
|
4300
4330
|
const result = void 0 === value || validator(value, opt, options);
|
|
4301
|
-
if (true !== result) throw new
|
|
4331
|
+
if (true !== result) throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4302
4332
|
continue;
|
|
4303
4333
|
}
|
|
4304
|
-
if (true !== allowUnknown) throw new
|
|
4334
|
+
if (true !== allowUnknown) throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
4305
4335
|
}
|
|
4306
4336
|
}
|
|
4307
4337
|
const helpers_validator = {
|
|
@@ -4627,9 +4657,9 @@ axios.Axios = Axios;
|
|
|
4627
4657
|
axios.CanceledError = cancel_CanceledError;
|
|
4628
4658
|
axios.CancelToken = CancelToken;
|
|
4629
4659
|
axios.isCancel = isCancel;
|
|
4630
|
-
axios.VERSION =
|
|
4660
|
+
axios.VERSION = "1.11.0";
|
|
4631
4661
|
axios.toFormData = helpers_toFormData;
|
|
4632
|
-
axios.AxiosError =
|
|
4662
|
+
axios.AxiosError = AxiosError;
|
|
4633
4663
|
axios.Cancel = axios.CanceledError;
|
|
4634
4664
|
axios.all = function(promises) {
|
|
4635
4665
|
return Promise.all(promises);
|
|
@@ -4711,6 +4741,8 @@ const getPropertyName = (property, options)=>{
|
|
|
4711
4741
|
} else lotDetail = `Lot ${lotDetail}`;
|
|
4712
4742
|
else lotDetail = 'Lot N/A';
|
|
4713
4743
|
const { target = 'payout' } = options || {};
|
|
4744
|
+
let separator = ' ';
|
|
4745
|
+
if (options?.separator) separator = options.separator;
|
|
4714
4746
|
let names = [];
|
|
4715
4747
|
if ('cma' === target || 'mta' === target) {
|
|
4716
4748
|
names = [
|
|
@@ -4732,7 +4764,21 @@ const getPropertyName = (property, options)=>{
|
|
|
4732
4764
|
lotDetail,
|
|
4733
4765
|
property.propertyAddress
|
|
4734
4766
|
];
|
|
4767
|
+
if ('ownership' === target) {
|
|
4768
|
+
if (!options?.separator) separator = ' - ';
|
|
4769
|
+
let first = project?.name;
|
|
4770
|
+
if (project?.name && project?.developer?.companyName) first = `${project?.name} (${project?.developer?.companyName})`;
|
|
4771
|
+
let second = lotDetail;
|
|
4772
|
+
if (lotDetail && buyerName) second = `${lotDetail} ${buyerName}`;
|
|
4773
|
+
names = [
|
|
4774
|
+
first,
|
|
4775
|
+
second
|
|
4776
|
+
];
|
|
4777
|
+
}
|
|
4735
4778
|
names = names.filter(Boolean);
|
|
4736
|
-
return names.length > 0 ? names.join(
|
|
4779
|
+
return names.length > 0 ? names.join(separator) : 'Nill';
|
|
4737
4780
|
};
|
|
4738
|
-
|
|
4781
|
+
var __webpack_exports__DEFAULT_PAGE = 1;
|
|
4782
|
+
var __webpack_exports__DEFAULT_PAGE_SIZE = 500;
|
|
4783
|
+
var __webpack_exports__PACKAGE_VERSION = "0.0.17";
|
|
4784
|
+
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, 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, __webpack_exports__DEFAULT_PAGE as DEFAULT_PAGE, __webpack_exports__DEFAULT_PAGE_SIZE as DEFAULT_PAGE_SIZE, __webpack_exports__PACKAGE_VERSION as PACKAGE_VERSION };
|