@financeable/lenders 0.5.2 → 0.5.5
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/README.md +11 -7
- package/bin/mcp-server.js +39 -24
- package/bin/mcp-server.js.map +13 -13
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts +1 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +27 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +0 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +8 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +1 -2
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/shared.js +1 -1
- package/dist/commonjs/mcp-server/shared.js.map +1 -1
- package/dist/commonjs/models/components/assettypes.d.ts +18 -8
- package/dist/commonjs/models/components/assettypes.d.ts.map +1 -1
- package/dist/commonjs/models/components/assettypes.js +18 -8
- package/dist/commonjs/models/components/assettypes.js.map +1 -1
- package/dist/commonjs/models/components/consumerassettypes.d.ts +1 -1
- package/dist/commonjs/models/components/consumerassettypes.js +1 -1
- package/dist/commonjs/models/components/consumerassettypes.js.map +1 -1
- package/dist/commonjs/models/components/customerprofile.d.ts +2 -0
- package/dist/commonjs/models/components/customerprofile.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerprofile.js +2 -0
- package/dist/commonjs/models/components/customerprofile.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts +1 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +26 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +0 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +8 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +1 -2
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/shared.js +1 -1
- package/dist/esm/mcp-server/shared.js.map +1 -1
- package/dist/esm/models/components/assettypes.d.ts +18 -8
- package/dist/esm/models/components/assettypes.d.ts.map +1 -1
- package/dist/esm/models/components/assettypes.js +18 -8
- package/dist/esm/models/components/assettypes.js.map +1 -1
- package/dist/esm/models/components/consumerassettypes.d.ts +1 -1
- package/dist/esm/models/components/consumerassettypes.js +1 -1
- package/dist/esm/models/components/consumerassettypes.js.map +1 -1
- package/dist/esm/models/components/customerprofile.d.ts +2 -0
- package/dist/esm/models/components/customerprofile.d.ts.map +1 -1
- package/dist/esm/models/components/customerprofile.js +2 -0
- package/dist/esm/models/components/customerprofile.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +32 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/matchers.ts +3 -2
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +1 -2
- package/src/lib/url.ts +16 -14
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/shared.ts +2 -2
- package/src/models/components/assettypes.ts +18 -8
- package/src/models/components/consumerassettypes.ts +1 -1
- package/src/models/components/customerprofile.ts +4 -0
- package/.devcontainer/devcontainer.json +0 -45
- package/examples/package-lock.json +0 -620
- package/examples/package.json +0 -18
- package/tsconfig.json +0 -40
package/dist/esm/lib/url.js
CHANGED
|
@@ -5,7 +5,8 @@ const hasOwn = Object.prototype.hasOwnProperty;
|
|
|
5
5
|
export function pathToFunc(pathPattern, options) {
|
|
6
6
|
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
7
7
|
return function buildURLPath(params = {}) {
|
|
8
|
-
return pathPattern
|
|
8
|
+
return pathPattern
|
|
9
|
+
.replace(paramRE, function (_, placeholder) {
|
|
9
10
|
if (!hasOwn.call(params, placeholder)) {
|
|
10
11
|
throw new Error(`Parameter '${placeholder}' is required`);
|
|
11
12
|
}
|
|
@@ -16,7 +17,8 @@ export function pathToFunc(pathPattern, options) {
|
|
|
16
17
|
return options?.charEncoding === "percent"
|
|
17
18
|
? encodeURIComponent(`${value}`)
|
|
18
19
|
: `${value}`;
|
|
19
|
-
})
|
|
20
|
+
})
|
|
21
|
+
.replace(/^\/+/, "");
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=url.js.map
|
package/dist/esm/lib/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../src/lib/url.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,MAAM,UAAU,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,oCAAoC,CAAC;IAErD,OAAO,SAAS,YAAY,CAAC,SAAkC,EAAE;QAC/D,OAAO,WAAW,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../src/lib/url.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,MAAM,UAAU,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,oCAAoC,CAAC;IAErD,OAAO,SAAS,YAAY,CAAC,SAAkC,EAAE;QAC/D,OAAO,WAAW;aACf,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,WAAW;YACxC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,cAAc,WAAW,eAAe,CAAC,CAAC;YAC5D,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;YAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC3D,MAAM,IAAI,KAAK,CACb,cAAc,WAAW,8BAA8B,CACxD,CAAC;YACJ,CAAC;YAED,OAAO,OAAO,EAAE,YAAY,KAAK,SAAS;gBACxC,CAAC,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,CAAC;gBAChC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;QACjB,CAAC,CAAC;aACD,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -13,7 +13,7 @@ import { tool$createPersonalSubmission } from "./tools/createPersonalSubmission.
|
|
|
13
13
|
export function createMCPServer(deps) {
|
|
14
14
|
const server = new McpServer({
|
|
15
15
|
name: "FinanceableLenders",
|
|
16
|
-
version: "0.5.
|
|
16
|
+
version: "0.5.5",
|
|
17
17
|
});
|
|
18
18
|
const client = new FinanceableLendersCore({
|
|
19
19
|
serverURL: deps.serverURL,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/mcp-server/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAAkC;IAElC,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/mcp-server/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAAkC;IAElC,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,MAAM,MAAM,GAAkB,EAAE,CAAC;IAEjC,IAAI,CAAC;QACH,OAAO,IAAI,EAAE,CAAC;YACZ,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YAC5C,IAAI,KAAK,IAAI,IAAI;gBAAE,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC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,cAAc,EAAE,CAAC;QAC3C,OAAO,aAAa,CAAC,MAAM,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACnD,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrC,OAAO,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;SAAM,CAAC;QACN,KAAqB,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,iCAAiC,OAAO,KAAK,EAAE,CAAC,CAAC;IACnE,CAAC;AACH,CAAC"}
|
|
@@ -4,19 +4,18 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
4
4
|
* Asset types enumeration
|
|
5
5
|
*/
|
|
6
6
|
export declare const AssetTypes: {
|
|
7
|
-
readonly MotorVehicle: "Motor Vehicle";
|
|
8
|
-
readonly LuxuryVehicle: "Luxury Vehicle";
|
|
9
7
|
readonly MotorVehicleLessThan45Tonnes: "Motor Vehicle (<4.5 tonnes)";
|
|
10
8
|
readonly ClassicCar: "Classic car";
|
|
11
9
|
readonly ElectricMotorVehicleLessThan45Tonnes: "Electric Motor Vehicle (<4.5 tonnes)";
|
|
12
10
|
readonly CommercialSmallToMediumVehiclesLessThan12Tonnes: "Commercial (Small to Medium) Vehicles (<12 Tonnes)";
|
|
13
11
|
readonly CommercialHeavyVehiclesGreaterThan12Tonnes: "Commercial (Heavy) Vehicles (>12 Tonnes)";
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
12
|
+
readonly PrimeMover: "Prime Mover";
|
|
13
|
+
readonly TrailersCar: "Trailers (car)";
|
|
16
14
|
readonly TrailersTruck: "Trailers (truck)";
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
15
|
+
readonly Caravan: "Caravan";
|
|
16
|
+
readonly Motorbike: "Motorbike";
|
|
17
|
+
readonly MotorbikeOffRoad: "Motorbike (Off Road)";
|
|
18
|
+
readonly Atv: "ATV";
|
|
20
19
|
readonly AgriculturalAndLandscapingEquipmentWheeledOrTracked: "Agricultural & Landscaping Equipment (wheeled or tracked)";
|
|
21
20
|
readonly MiniBusesAndRouteBusesLessThan25Seats: "Mini Buses & Route Buses (<25 seats)";
|
|
22
21
|
readonly EarthMovingAndConstructionWheeledOrTracked: "Earth Moving & Construction (wheeled or tracked)";
|
|
@@ -33,9 +32,20 @@ export declare const AssetTypes: {
|
|
|
33
32
|
readonly Other: "Other";
|
|
34
33
|
readonly Solar: "Solar";
|
|
35
34
|
readonly TraileredBoats: "Trailered boats";
|
|
36
|
-
readonly
|
|
35
|
+
readonly JetskiPWC: "Jetski/PWC";
|
|
36
|
+
readonly JetskiPWCWithTrailer: "Jetski/PWC with Trailer";
|
|
37
37
|
readonly RideOnMowers: "Ride on mowers";
|
|
38
38
|
readonly GolfCarts: "Golf carts";
|
|
39
|
+
readonly Ssv: "SSV";
|
|
40
|
+
readonly OutboardMotor: "Outboard Motor";
|
|
41
|
+
readonly ControlBox: "Control Box";
|
|
42
|
+
readonly DieselEngine: "Diesel Engine";
|
|
43
|
+
readonly AluminiumBoats: "Aluminium Boats";
|
|
44
|
+
readonly SternDrive: "Stern Drive";
|
|
45
|
+
readonly ElectricBicycle: "Electric Bicycle";
|
|
46
|
+
readonly MBKBicycle: "MBK Bicycle";
|
|
47
|
+
readonly InboardMotors: "Inboard Motors";
|
|
48
|
+
readonly MarinePackage: "Marine Package";
|
|
39
49
|
};
|
|
40
50
|
/**
|
|
41
51
|
* Asset types enumeration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assettypes.d.ts","sourceRoot":"","sources":["../../../../src/models/components/assettypes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"assettypes.d.ts","sourceRoot":"","sources":["../../../../src/models/components/assettypes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAC1B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC"}
|
|
@@ -6,19 +6,18 @@ import * as z from "zod/v3";
|
|
|
6
6
|
* Asset types enumeration
|
|
7
7
|
*/
|
|
8
8
|
export const AssetTypes = {
|
|
9
|
-
MotorVehicle: "Motor Vehicle",
|
|
10
|
-
LuxuryVehicle: "Luxury Vehicle",
|
|
11
9
|
MotorVehicleLessThan45Tonnes: "Motor Vehicle (<4.5 tonnes)",
|
|
12
10
|
ClassicCar: "Classic car",
|
|
13
11
|
ElectricMotorVehicleLessThan45Tonnes: "Electric Motor Vehicle (<4.5 tonnes)",
|
|
14
12
|
CommercialSmallToMediumVehiclesLessThan12Tonnes: "Commercial (Small to Medium) Vehicles (<12 Tonnes)",
|
|
15
13
|
CommercialHeavyVehiclesGreaterThan12Tonnes: "Commercial (Heavy) Vehicles (>12 Tonnes)",
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
PrimeMover: "Prime Mover",
|
|
15
|
+
TrailersCar: "Trailers (car)",
|
|
18
16
|
TrailersTruck: "Trailers (truck)",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
Caravan: "Caravan",
|
|
18
|
+
Motorbike: "Motorbike",
|
|
19
|
+
MotorbikeOffRoad: "Motorbike (Off Road)",
|
|
20
|
+
Atv: "ATV",
|
|
22
21
|
AgriculturalAndLandscapingEquipmentWheeledOrTracked: "Agricultural & Landscaping Equipment (wheeled or tracked)",
|
|
23
22
|
MiniBusesAndRouteBusesLessThan25Seats: "Mini Buses & Route Buses (<25 seats)",
|
|
24
23
|
EarthMovingAndConstructionWheeledOrTracked: "Earth Moving & Construction (wheeled or tracked)",
|
|
@@ -35,9 +34,20 @@ export const AssetTypes = {
|
|
|
35
34
|
Other: "Other",
|
|
36
35
|
Solar: "Solar",
|
|
37
36
|
TraileredBoats: "Trailered boats",
|
|
38
|
-
|
|
37
|
+
JetskiPWC: "Jetski/PWC",
|
|
38
|
+
JetskiPWCWithTrailer: "Jetski/PWC with Trailer",
|
|
39
39
|
RideOnMowers: "Ride on mowers",
|
|
40
40
|
GolfCarts: "Golf carts",
|
|
41
|
+
Ssv: "SSV",
|
|
42
|
+
OutboardMotor: "Outboard Motor",
|
|
43
|
+
ControlBox: "Control Box",
|
|
44
|
+
DieselEngine: "Diesel Engine",
|
|
45
|
+
AluminiumBoats: "Aluminium Boats",
|
|
46
|
+
SternDrive: "Stern Drive",
|
|
47
|
+
ElectricBicycle: "Electric Bicycle",
|
|
48
|
+
MBKBicycle: "MBK Bicycle",
|
|
49
|
+
InboardMotors: "Inboard Motors",
|
|
50
|
+
MarinePackage: "Marine Package",
|
|
41
51
|
};
|
|
42
52
|
/** @internal */
|
|
43
53
|
export const AssetTypes$inboundSchema = z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assettypes.js","sourceRoot":"","sources":["../../../../src/models/components/assettypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,
|
|
1
|
+
{"version":3,"file":"assettypes.js","sourceRoot":"","sources":["../../../../src/models/components/assettypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK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ChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,UAAU,CAAC,CAAC;AAC1B,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GACpC,wBAAwB,CAAC"}
|
|
@@ -24,7 +24,7 @@ export declare const ConsumerAssetTypes: {
|
|
|
24
24
|
readonly OutboardMotor: "Outboard Motor";
|
|
25
25
|
readonly ControlBox: "Control Box";
|
|
26
26
|
readonly DieselEngine: "Diesel Engine";
|
|
27
|
-
readonly
|
|
27
|
+
readonly AluminiumBoats: "Aluminium Boats";
|
|
28
28
|
readonly SternDrive: "Stern Drive";
|
|
29
29
|
readonly ElectricBicycle: "Electric Bicycle";
|
|
30
30
|
readonly MBKBicycle: "MBK Bicycle";
|
|
@@ -26,7 +26,7 @@ export const ConsumerAssetTypes = {
|
|
|
26
26
|
OutboardMotor: "Outboard Motor",
|
|
27
27
|
ControlBox: "Control Box",
|
|
28
28
|
DieselEngine: "Diesel Engine",
|
|
29
|
-
|
|
29
|
+
AluminiumBoats: "Aluminium Boats",
|
|
30
30
|
SternDrive: "Stern Drive",
|
|
31
31
|
ElectricBicycle: "Electric Bicycle",
|
|
32
32
|
MBKBicycle: "MBK Bicycle",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerassettypes.js","sourceRoot":"","sources":["../../../../src/models/components/consumerassettypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,eAAe;IAC7B,oBAAoB,EAAE,wBAAwB;IAC9C,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,sBAAsB;IACxC,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,YAAY;IACvB,oBAAoB,EAAE,yBAAyB;IAC/C,SAAS,EAAE,YAAY;IACvB,GAAG,EAAE,KAAK;IACV,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,
|
|
1
|
+
{"version":3,"file":"consumerassettypes.js","sourceRoot":"","sources":["../../../../src/models/components/consumerassettypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,eAAe;IAC7B,oBAAoB,EAAE,wBAAwB;IAC9C,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,sBAAsB;IACxC,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,YAAY;IACvB,oBAAoB,EAAE,yBAAyB;IAC/C,SAAS,EAAE,YAAY;IACvB,GAAG,EAAE,KAAK;IACV,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,UAAU,EAAE,aAAa;IACzB,eAAe,EAAE,kBAAkB;IACnC,UAAU,EAAE,aAAa;IACzB,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;CACvB,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;AACrC,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,gCAAgC,CAAC"}
|
|
@@ -26,6 +26,7 @@ export type CustomerProfile = {
|
|
|
26
26
|
shareOfExpenses?: number | undefined;
|
|
27
27
|
rentAmount?: string | undefined;
|
|
28
28
|
landlordName?: string | undefined;
|
|
29
|
+
serviceabilitySurplus?: number | undefined;
|
|
29
30
|
};
|
|
30
31
|
/** @internal */
|
|
31
32
|
export declare const CustomerProfile$inboundSchema: z.ZodType<CustomerProfile, z.ZodTypeDef, unknown>;
|
|
@@ -40,6 +41,7 @@ export type CustomerProfile$Outbound = {
|
|
|
40
41
|
shareOfExpenses?: number | undefined;
|
|
41
42
|
rentAmount?: string | undefined;
|
|
42
43
|
landlordName?: string | undefined;
|
|
44
|
+
serviceabilitySurplus?: number | undefined;
|
|
43
45
|
};
|
|
44
46
|
/** @internal */
|
|
45
47
|
export declare const CustomerProfile$outboundSchema: z.ZodType<CustomerProfile$Outbound, z.ZodTypeDef, CustomerProfile>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerprofile.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customerprofile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EAGlB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"customerprofile.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customerprofile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EAGlB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAgBf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -18,6 +18,7 @@ export const CustomerProfile$inboundSchema = z.object({
|
|
|
18
18
|
shareOfExpenses: z.number().optional(),
|
|
19
19
|
rentAmount: z.string().optional(),
|
|
20
20
|
landlordName: z.string().optional(),
|
|
21
|
+
serviceabilitySurplus: z.number().optional(),
|
|
21
22
|
}).transform((v) => {
|
|
22
23
|
return remap$(v, {
|
|
23
24
|
"_id": "id",
|
|
@@ -34,6 +35,7 @@ export const CustomerProfile$outboundSchema = z.object({
|
|
|
34
35
|
shareOfExpenses: z.number().optional(),
|
|
35
36
|
rentAmount: z.string().optional(),
|
|
36
37
|
landlordName: z.string().optional(),
|
|
38
|
+
serviceabilitySurplus: z.number().optional(),
|
|
37
39
|
}).transform((v) => {
|
|
38
40
|
return remap$(v, {
|
|
39
41
|
id: "_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerprofile.js","sourceRoot":"","sources":["../../../../src/models/components/customerprofile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"customerprofile.js","sourceRoot":"","sources":["../../../../src/models/components/customerprofile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,2BAA2B,EAC3B,4BAA4B,GAC7B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AE;IACtD,kBAAkB,EAAE,iCAAiC,CAAC,QAAQ,EAAE;IAChE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AACD,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financeable/lenders",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"eslint": "^9.26.0",
|
|
39
39
|
"express": "^4.21.2",
|
|
40
40
|
"globals": "^15.14.0",
|
|
41
|
-
"tshy": "^
|
|
41
|
+
"tshy": "^3.3.2",
|
|
42
42
|
"typescript": "~5.8.3",
|
|
43
43
|
"typescript-eslint": "^8.26.0"
|
|
44
44
|
},
|
package/src/lib/config.ts
CHANGED
|
@@ -59,8 +59,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "0.1.0",
|
|
62
|
-
sdkVersion: "0.5.
|
|
63
|
-
genVersion: "2.
|
|
62
|
+
sdkVersion: "0.5.5",
|
|
63
|
+
genVersion: "2.879.11",
|
|
64
64
|
userAgent:
|
|
65
|
-
"speakeasy-sdk/typescript 0.5.
|
|
65
|
+
"speakeasy-sdk/typescript 0.5.5 2.879.11 0.1.0 @financeable/lenders",
|
|
66
66
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -479,6 +479,23 @@ export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
|
|
479
479
|
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
|
480
480
|
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
|
481
481
|
|
|
482
|
+
function isBlobLike(val: unknown): val is Blob {
|
|
483
|
+
if (val instanceof Blob) {
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
488
|
+
return false;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const tag = val[Symbol.toStringTag];
|
|
492
|
+
if (tag !== "Blob" && tag !== "File") {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return "stream" in val && typeof val.stream === "function";
|
|
497
|
+
}
|
|
498
|
+
|
|
482
499
|
export function appendForm(
|
|
483
500
|
fd: FormData,
|
|
484
501
|
key: string,
|
|
@@ -487,11 +504,22 @@ export function appendForm(
|
|
|
487
504
|
): void {
|
|
488
505
|
if (value == null) {
|
|
489
506
|
return;
|
|
490
|
-
} else if (value
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
507
|
+
} else if (isBlobLike(value)) {
|
|
508
|
+
if (fileName) {
|
|
509
|
+
fd.append(key, value as Blob, fileName);
|
|
510
|
+
} else {
|
|
511
|
+
fd.append(key, value as Blob);
|
|
512
|
+
}
|
|
494
513
|
} else {
|
|
495
514
|
fd.append(key, String(value));
|
|
496
515
|
}
|
|
497
516
|
}
|
|
517
|
+
|
|
518
|
+
export async function normalizeBlob(
|
|
519
|
+
value: Pick<Blob, "arrayBuffer" | "type">,
|
|
520
|
+
): Promise<Blob> {
|
|
521
|
+
if (value instanceof Blob) {
|
|
522
|
+
return value;
|
|
523
|
+
}
|
|
524
|
+
return new Blob([await value.arrayBuffer()], { type: value.type });
|
|
525
|
+
}
|
package/src/lib/files.ts
CHANGED
|
@@ -80,3 +80,25 @@ export function getContentTypeFromFileName(fileName: string): string | null {
|
|
|
80
80
|
|
|
81
81
|
return mimeTypes[ext] || null;
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Creates a Blob from file content with the given MIME type.
|
|
86
|
+
*
|
|
87
|
+
* Node.js Buffers are Uint8Array subclasses that may share a pooled
|
|
88
|
+
* ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
|
|
89
|
+
* such a Buffer directly to `new Blob([buf])` can include the entire
|
|
90
|
+
* underlying pool on some runtimes, producing a Blob with extra bytes
|
|
91
|
+
* that corrupts multipart uploads.
|
|
92
|
+
*
|
|
93
|
+
* Copying into a standalone Uint8Array ensures the Blob receives only the
|
|
94
|
+
* intended bytes regardless of runtime behaviour.
|
|
95
|
+
*/
|
|
96
|
+
export function bytesToBlob(
|
|
97
|
+
content: Uint8Array<ArrayBufferLike> | ArrayBuffer | Blob | string,
|
|
98
|
+
contentType: string,
|
|
99
|
+
): Blob {
|
|
100
|
+
if (content instanceof Uint8Array) {
|
|
101
|
+
return new Blob([new Uint8Array(content)], { type: contentType });
|
|
102
|
+
}
|
|
103
|
+
return new Blob([content as BlobPart], { type: contentType });
|
|
104
|
+
}
|
package/src/lib/matchers.ts
CHANGED
|
@@ -248,8 +248,9 @@ export function match<T, E>(
|
|
|
248
248
|
raw = body;
|
|
249
249
|
break;
|
|
250
250
|
default:
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
throw new Error(
|
|
252
|
+
`Unsupported response type: ${encoding satisfies never}`,
|
|
253
|
+
);
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
if (matcher.enc === "fail") {
|
package/src/lib/sdks.ts
CHANGED
|
@@ -127,13 +127,15 @@ export class ClientSDK {
|
|
|
127
127
|
if (!base) {
|
|
128
128
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
const baseURL = new URL(base);
|
|
131
|
+
let reqURL: URL;
|
|
133
132
|
if (path) {
|
|
134
|
-
|
|
135
|
-
reqURL
|
|
133
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
134
|
+
reqURL = new URL(path, baseURL);
|
|
135
|
+
} else {
|
|
136
|
+
reqURL = baseURL;
|
|
136
137
|
}
|
|
138
|
+
reqURL.hash = "";
|
|
137
139
|
|
|
138
140
|
let finalQuery = query || "";
|
|
139
141
|
|
package/src/lib/security.ts
CHANGED
|
@@ -195,8 +195,7 @@ export function resolveSecurity(
|
|
|
195
195
|
applyBearer(state, spec);
|
|
196
196
|
break;
|
|
197
197
|
default:
|
|
198
|
-
spec satisfies never;
|
|
199
|
-
throw SecurityError.unrecognizedType(type);
|
|
198
|
+
throw SecurityError.unrecognizedType((spec satisfies never, type));
|
|
200
199
|
}
|
|
201
200
|
});
|
|
202
201
|
|
package/src/lib/url.ts
CHANGED
|
@@ -13,21 +13,23 @@ export function pathToFunc(
|
|
|
13
13
|
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
|
-
return pathPattern
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
return pathPattern
|
|
17
|
+
.replace(paramRE, function (_, placeholder) {
|
|
18
|
+
if (!hasOwn.call(params, placeholder)) {
|
|
19
|
+
throw new Error(`Parameter '${placeholder}' is required`);
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const value = params[placeholder];
|
|
23
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Parameter '${placeholder}' must be a string or number`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return options?.charEncoding === "percent"
|
|
30
|
+
? encodeURIComponent(`${value}`)
|
|
31
|
+
: `${value}`;
|
|
32
|
+
})
|
|
33
|
+
.replace(/^\/+/, "");
|
|
32
34
|
};
|
|
33
35
|
}
|
package/src/mcp-server/server.ts
CHANGED
package/src/mcp-server/shared.ts
CHANGED
|
@@ -16,12 +16,12 @@ export async function consumeStream(
|
|
|
16
16
|
stream: ReadableStream<Uint8Array>,
|
|
17
17
|
): Promise<Uint8Array> {
|
|
18
18
|
const reader = stream.getReader();
|
|
19
|
-
const chunks:
|
|
19
|
+
const chunks: ArrayBuffer[] = [];
|
|
20
20
|
|
|
21
21
|
try {
|
|
22
22
|
while (true) {
|
|
23
23
|
const { done, value } = await reader.read();
|
|
24
|
-
if (value != null) chunks.push(value);
|
|
24
|
+
if (value != null) chunks.push(new Uint8Array(value).buffer);
|
|
25
25
|
if (done) break;
|
|
26
26
|
}
|
|
27
27
|
} finally {
|
|
@@ -9,8 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
* Asset types enumeration
|
|
10
10
|
*/
|
|
11
11
|
export const AssetTypes = {
|
|
12
|
-
MotorVehicle: "Motor Vehicle",
|
|
13
|
-
LuxuryVehicle: "Luxury Vehicle",
|
|
14
12
|
MotorVehicleLessThan45Tonnes: "Motor Vehicle (<4.5 tonnes)",
|
|
15
13
|
ClassicCar: "Classic car",
|
|
16
14
|
ElectricMotorVehicleLessThan45Tonnes: "Electric Motor Vehicle (<4.5 tonnes)",
|
|
@@ -18,12 +16,13 @@ export const AssetTypes = {
|
|
|
18
16
|
"Commercial (Small to Medium) Vehicles (<12 Tonnes)",
|
|
19
17
|
CommercialHeavyVehiclesGreaterThan12Tonnes:
|
|
20
18
|
"Commercial (Heavy) Vehicles (>12 Tonnes)",
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
PrimeMover: "Prime Mover",
|
|
20
|
+
TrailersCar: "Trailers (car)",
|
|
23
21
|
TrailersTruck: "Trailers (truck)",
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
Caravan: "Caravan",
|
|
23
|
+
Motorbike: "Motorbike",
|
|
24
|
+
MotorbikeOffRoad: "Motorbike (Off Road)",
|
|
25
|
+
Atv: "ATV",
|
|
27
26
|
AgriculturalAndLandscapingEquipmentWheeledOrTracked:
|
|
28
27
|
"Agricultural & Landscaping Equipment (wheeled or tracked)",
|
|
29
28
|
MiniBusesAndRouteBusesLessThan25Seats: "Mini Buses & Route Buses (<25 seats)",
|
|
@@ -43,9 +42,20 @@ export const AssetTypes = {
|
|
|
43
42
|
Other: "Other",
|
|
44
43
|
Solar: "Solar",
|
|
45
44
|
TraileredBoats: "Trailered boats",
|
|
46
|
-
|
|
45
|
+
JetskiPWC: "Jetski/PWC",
|
|
46
|
+
JetskiPWCWithTrailer: "Jetski/PWC with Trailer",
|
|
47
47
|
RideOnMowers: "Ride on mowers",
|
|
48
48
|
GolfCarts: "Golf carts",
|
|
49
|
+
Ssv: "SSV",
|
|
50
|
+
OutboardMotor: "Outboard Motor",
|
|
51
|
+
ControlBox: "Control Box",
|
|
52
|
+
DieselEngine: "Diesel Engine",
|
|
53
|
+
AluminiumBoats: "Aluminium Boats",
|
|
54
|
+
SternDrive: "Stern Drive",
|
|
55
|
+
ElectricBicycle: "Electric Bicycle",
|
|
56
|
+
MBKBicycle: "MBK Bicycle",
|
|
57
|
+
InboardMotors: "Inboard Motors",
|
|
58
|
+
MarinePackage: "Marine Package",
|
|
49
59
|
} as const;
|
|
50
60
|
/**
|
|
51
61
|
* Asset types enumeration
|
|
@@ -29,7 +29,7 @@ export const ConsumerAssetTypes = {
|
|
|
29
29
|
OutboardMotor: "Outboard Motor",
|
|
30
30
|
ControlBox: "Control Box",
|
|
31
31
|
DieselEngine: "Diesel Engine",
|
|
32
|
-
|
|
32
|
+
AluminiumBoats: "Aluminium Boats",
|
|
33
33
|
SternDrive: "Stern Drive",
|
|
34
34
|
ElectricBicycle: "Electric Bicycle",
|
|
35
35
|
MBKBicycle: "MBK Bicycle",
|
|
@@ -45,6 +45,7 @@ export type CustomerProfile = {
|
|
|
45
45
|
shareOfExpenses?: number | undefined;
|
|
46
46
|
rentAmount?: string | undefined;
|
|
47
47
|
landlordName?: string | undefined;
|
|
48
|
+
serviceabilitySurplus?: number | undefined;
|
|
48
49
|
};
|
|
49
50
|
|
|
50
51
|
/** @internal */
|
|
@@ -62,6 +63,7 @@ export const CustomerProfile$inboundSchema: z.ZodType<
|
|
|
62
63
|
shareOfExpenses: z.number().optional(),
|
|
63
64
|
rentAmount: z.string().optional(),
|
|
64
65
|
landlordName: z.string().optional(),
|
|
66
|
+
serviceabilitySurplus: z.number().optional(),
|
|
65
67
|
}).transform((v) => {
|
|
66
68
|
return remap$(v, {
|
|
67
69
|
"_id": "id",
|
|
@@ -78,6 +80,7 @@ export type CustomerProfile$Outbound = {
|
|
|
78
80
|
shareOfExpenses?: number | undefined;
|
|
79
81
|
rentAmount?: string | undefined;
|
|
80
82
|
landlordName?: string | undefined;
|
|
83
|
+
serviceabilitySurplus?: number | undefined;
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
/** @internal */
|
|
@@ -95,6 +98,7 @@ export const CustomerProfile$outboundSchema: z.ZodType<
|
|
|
95
98
|
shareOfExpenses: z.number().optional(),
|
|
96
99
|
rentAmount: z.string().optional(),
|
|
97
100
|
landlordName: z.string().optional(),
|
|
101
|
+
serviceabilitySurplus: z.number().optional(),
|
|
98
102
|
}).transform((v) => {
|
|
99
103
|
return remap$(v, {
|
|
100
104
|
id: "_id",
|