@financeable/aggregation 0.2.1 → 0.2.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/FUNCTIONS.md +1 -3
- package/README.md +5 -15
- package/docs/sdks/applications/README.md +2 -6
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/customerattributes.d.ts +5 -36
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +6 -41
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/customeridtype.d.ts +28 -0
- package/models/components/customeridtype.d.ts.map +1 -0
- package/models/components/customeridtype.js +60 -0
- package/models/components/customeridtype.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +4 -4
- package/src/models/components/customerattributes.ts +13 -53
- package/src/models/components/customeridtype.ts +33 -0
- package/src/models/components/index.ts +1 -0
package/FUNCTIONS.md
CHANGED
package/README.md
CHANGED
|
@@ -1049,9 +1049,7 @@ async function run() {
|
|
|
1049
1049
|
firstName: "John",
|
|
1050
1050
|
lastName: "Smith",
|
|
1051
1051
|
dateOfBirth: "01-01-1990",
|
|
1052
|
-
idExpiryDate: "
|
|
1053
|
-
idType: "licence",
|
|
1054
|
-
idNumber: "12345678",
|
|
1052
|
+
idExpiryDate: "<value>",
|
|
1055
1053
|
},
|
|
1056
1054
|
relationships: {
|
|
1057
1055
|
addresses: {
|
|
@@ -1229,9 +1227,7 @@ async function run() {
|
|
|
1229
1227
|
firstName: "John",
|
|
1230
1228
|
lastName: "Smith",
|
|
1231
1229
|
dateOfBirth: "01-01-1990",
|
|
1232
|
-
idExpiryDate: "
|
|
1233
|
-
idType: "licence",
|
|
1234
|
-
idNumber: "12345678",
|
|
1230
|
+
idExpiryDate: "<value>",
|
|
1235
1231
|
},
|
|
1236
1232
|
relationships: {
|
|
1237
1233
|
addresses: {
|
|
@@ -1387,9 +1383,7 @@ async function run() {
|
|
|
1387
1383
|
firstName: "John",
|
|
1388
1384
|
lastName: "Smith",
|
|
1389
1385
|
dateOfBirth: "01-01-1990",
|
|
1390
|
-
idExpiryDate: "
|
|
1391
|
-
idType: "licence",
|
|
1392
|
-
idNumber: "12345678",
|
|
1386
|
+
idExpiryDate: "<value>",
|
|
1393
1387
|
},
|
|
1394
1388
|
relationships: {
|
|
1395
1389
|
addresses: {
|
|
@@ -1541,9 +1535,7 @@ async function run() {
|
|
|
1541
1535
|
firstName: "John",
|
|
1542
1536
|
lastName: "Smith",
|
|
1543
1537
|
dateOfBirth: "01-01-1990",
|
|
1544
|
-
idExpiryDate: "
|
|
1545
|
-
idType: "licence",
|
|
1546
|
-
idNumber: "12345678",
|
|
1538
|
+
idExpiryDate: "<value>",
|
|
1547
1539
|
},
|
|
1548
1540
|
relationships: {
|
|
1549
1541
|
addresses: {
|
|
@@ -1718,9 +1710,7 @@ async function run() {
|
|
|
1718
1710
|
firstName: "John",
|
|
1719
1711
|
lastName: "Smith",
|
|
1720
1712
|
dateOfBirth: "01-01-1990",
|
|
1721
|
-
idExpiryDate: "
|
|
1722
|
-
idType: "licence",
|
|
1723
|
-
idNumber: "12345678",
|
|
1713
|
+
idExpiryDate: "<value>",
|
|
1724
1714
|
},
|
|
1725
1715
|
relationships: {
|
|
1726
1716
|
addresses: {
|
|
@@ -56,9 +56,7 @@ async function run() {
|
|
|
56
56
|
firstName: "John",
|
|
57
57
|
lastName: "Smith",
|
|
58
58
|
dateOfBirth: "01-01-1990",
|
|
59
|
-
idExpiryDate: "
|
|
60
|
-
idType: "licence",
|
|
61
|
-
idNumber: "12345678",
|
|
59
|
+
idExpiryDate: "<value>",
|
|
62
60
|
},
|
|
63
61
|
relationships: {
|
|
64
62
|
addresses: {
|
|
@@ -197,9 +195,7 @@ async function run() {
|
|
|
197
195
|
firstName: "John",
|
|
198
196
|
lastName: "Smith",
|
|
199
197
|
dateOfBirth: "01-01-1990",
|
|
200
|
-
idExpiryDate: "
|
|
201
|
-
idType: "licence",
|
|
202
|
-
idNumber: "12345678",
|
|
198
|
+
idExpiryDate: "<value>",
|
|
203
199
|
},
|
|
204
200
|
relationships: {
|
|
205
201
|
addresses: {
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -25,9 +25,9 @@ export type SDKOptions = {
|
|
|
25
25
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
26
26
|
export declare const SDK_METADATA: {
|
|
27
27
|
readonly language: "typescript";
|
|
28
|
-
readonly openapiDocVersion: "0.
|
|
29
|
-
readonly sdkVersion: "0.2.
|
|
30
|
-
readonly genVersion: "2.512.
|
|
31
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.2.
|
|
28
|
+
readonly openapiDocVersion: "1.0.0";
|
|
29
|
+
readonly sdkVersion: "0.2.5";
|
|
30
|
+
readonly genVersion: "2.512.4";
|
|
31
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.5 2.512.4 1.0.0 @financeable/aggregation";
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -27,9 +27,9 @@ function serverURLFromOptions(options) {
|
|
|
27
27
|
}
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
|
-
openapiDocVersion: "0.
|
|
31
|
-
sdkVersion: "0.2.
|
|
32
|
-
genVersion: "2.512.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
30
|
+
openapiDocVersion: "1.0.0",
|
|
31
|
+
sdkVersion: "0.2.5",
|
|
32
|
+
genVersion: "2.512.4",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.2.5 2.512.4 1.0.0 @financeable/aggregation",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { CustomerIDType } from "./customeridtype.js";
|
|
5
5
|
import { CustomerTitle } from "./customertitle.js";
|
|
6
|
-
/**
|
|
7
|
-
* Type of ID, either drivers' license or passport
|
|
8
|
-
*/
|
|
9
|
-
export declare const IDType: {
|
|
10
|
-
readonly Licence: "licence";
|
|
11
|
-
readonly Passport: "passport";
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Type of ID, either drivers' license or passport
|
|
15
|
-
*/
|
|
16
|
-
export type IDType = ClosedEnum<typeof IDType>;
|
|
17
6
|
/**
|
|
18
7
|
* A customer of the proposed financing
|
|
19
8
|
*/
|
|
@@ -45,33 +34,13 @@ export type CustomerAttributes = {
|
|
|
45
34
|
/**
|
|
46
35
|
* Type of ID, either drivers' license or passport
|
|
47
36
|
*/
|
|
48
|
-
idType?:
|
|
37
|
+
idType?: CustomerIDType | undefined;
|
|
49
38
|
/**
|
|
50
39
|
* Number of the ID
|
|
51
40
|
*/
|
|
52
41
|
idNumber?: string | undefined;
|
|
53
42
|
};
|
|
54
43
|
/** @internal */
|
|
55
|
-
export declare const IDType$inboundSchema: z.ZodNativeEnum<typeof IDType>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const IDType$outboundSchema: z.ZodNativeEnum<typeof IDType>;
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
export declare namespace IDType$ {
|
|
63
|
-
/** @deprecated use `IDType$inboundSchema` instead. */
|
|
64
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
65
|
-
readonly Licence: "licence";
|
|
66
|
-
readonly Passport: "passport";
|
|
67
|
-
}>;
|
|
68
|
-
/** @deprecated use `IDType$outboundSchema` instead. */
|
|
69
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
70
|
-
readonly Licence: "licence";
|
|
71
|
-
readonly Passport: "passport";
|
|
72
|
-
}>;
|
|
73
|
-
}
|
|
74
|
-
/** @internal */
|
|
75
44
|
export declare const CustomerAttributes$inboundSchema: z.ZodType<CustomerAttributes, z.ZodTypeDef, unknown>;
|
|
76
45
|
/** @internal */
|
|
77
46
|
export type CustomerAttributes$Outbound = {
|
|
@@ -80,9 +49,9 @@ export type CustomerAttributes$Outbound = {
|
|
|
80
49
|
middleNames?: string | undefined;
|
|
81
50
|
lastName: string;
|
|
82
51
|
dateOfBirth: string;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
52
|
+
idExpiryDate: string;
|
|
53
|
+
idType?: string | undefined;
|
|
54
|
+
idNumber?: string | undefined;
|
|
86
55
|
};
|
|
87
56
|
/** @internal */
|
|
88
57
|
export declare const CustomerAttributes$outboundSchema: z.ZodType<CustomerAttributes$Outbound, z.ZodTypeDef, CustomerAttributes>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/customerattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"customerattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/customerattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAUlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -36,36 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CustomerAttributes$ = exports.CustomerAttributes$outboundSchema = exports.CustomerAttributes$inboundSchema =
|
|
39
|
+
exports.CustomerAttributes$ = exports.CustomerAttributes$outboundSchema = exports.CustomerAttributes$inboundSchema = void 0;
|
|
40
40
|
exports.customerAttributesToJSON = customerAttributesToJSON;
|
|
41
41
|
exports.customerAttributesFromJSON = customerAttributesFromJSON;
|
|
42
42
|
const z = __importStar(require("zod"));
|
|
43
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const customeridtype_js_1 = require("./customeridtype.js");
|
|
45
45
|
const customertitle_js_1 = require("./customertitle.js");
|
|
46
|
-
/**
|
|
47
|
-
* Type of ID, either drivers' license or passport
|
|
48
|
-
*/
|
|
49
|
-
exports.IDType = {
|
|
50
|
-
Licence: "licence",
|
|
51
|
-
Passport: "passport",
|
|
52
|
-
};
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.IDType$inboundSchema = z
|
|
55
|
-
.nativeEnum(exports.IDType);
|
|
56
|
-
/** @internal */
|
|
57
|
-
exports.IDType$outboundSchema = exports.IDType$inboundSchema;
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
var IDType$;
|
|
63
|
-
(function (IDType$) {
|
|
64
|
-
/** @deprecated use `IDType$inboundSchema` instead. */
|
|
65
|
-
IDType$.inboundSchema = exports.IDType$inboundSchema;
|
|
66
|
-
/** @deprecated use `IDType$outboundSchema` instead. */
|
|
67
|
-
IDType$.outboundSchema = exports.IDType$outboundSchema;
|
|
68
|
-
})(IDType$ || (exports.IDType$ = IDType$ = {}));
|
|
69
46
|
/** @internal */
|
|
70
47
|
exports.CustomerAttributes$inboundSchema = z.object({
|
|
71
48
|
title: customertitle_js_1.CustomerTitle$inboundSchema,
|
|
@@ -73,15 +50,9 @@ exports.CustomerAttributes$inboundSchema = z.object({
|
|
|
73
50
|
middleNames: z.string().optional(),
|
|
74
51
|
lastName: z.string(),
|
|
75
52
|
dateOfBirth: z.string(),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}).transform((v) => {
|
|
80
|
-
return (0, primitives_js_1.remap)(v, {
|
|
81
|
-
"IDExpiryDate": "idExpiryDate",
|
|
82
|
-
"IDType": "idType",
|
|
83
|
-
"IDNumber": "idNumber",
|
|
84
|
-
});
|
|
53
|
+
idExpiryDate: z.string(),
|
|
54
|
+
idType: customeridtype_js_1.CustomerIDType$inboundSchema.optional(),
|
|
55
|
+
idNumber: z.string().optional(),
|
|
85
56
|
});
|
|
86
57
|
/** @internal */
|
|
87
58
|
exports.CustomerAttributes$outboundSchema = z.object({
|
|
@@ -91,14 +62,8 @@ exports.CustomerAttributes$outboundSchema = z.object({
|
|
|
91
62
|
lastName: z.string(),
|
|
92
63
|
dateOfBirth: z.string(),
|
|
93
64
|
idExpiryDate: z.string(),
|
|
94
|
-
idType:
|
|
65
|
+
idType: customeridtype_js_1.CustomerIDType$outboundSchema.optional(),
|
|
95
66
|
idNumber: z.string().optional(),
|
|
96
|
-
}).transform((v) => {
|
|
97
|
-
return (0, primitives_js_1.remap)(v, {
|
|
98
|
-
idExpiryDate: "IDExpiryDate",
|
|
99
|
-
idType: "IDType",
|
|
100
|
-
idNumber: "IDNumber",
|
|
101
|
-
});
|
|
102
67
|
});
|
|
103
68
|
/**
|
|
104
69
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerattributes.js","sourceRoot":"","sources":["../../src/models/components/customerattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"customerattributes.js","sourceRoot":"","sources":["../../src/models/components/customerattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHH,4DAMC;AAED,gEAQC;AA9HD,uCAAyB;AACzB,qDAAiD;AAGjD,2DAI6B;AAC7B,yDAI4B;AAwC5B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,8CAA2B;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAcH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,+CAA4B;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,iDAA6B,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const CustomerIDType: {
|
|
4
|
+
readonly Passport: "passport";
|
|
5
|
+
readonly Licence: "licence";
|
|
6
|
+
};
|
|
7
|
+
export type CustomerIDType = ClosedEnum<typeof CustomerIDType>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const CustomerIDType$inboundSchema: z.ZodNativeEnum<typeof CustomerIDType>;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const CustomerIDType$outboundSchema: z.ZodNativeEnum<typeof CustomerIDType>;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace CustomerIDType$ {
|
|
17
|
+
/** @deprecated use `CustomerIDType$inboundSchema` instead. */
|
|
18
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
19
|
+
readonly Passport: "passport";
|
|
20
|
+
readonly Licence: "licence";
|
|
21
|
+
}>;
|
|
22
|
+
/** @deprecated use `CustomerIDType$outboundSchema` instead. */
|
|
23
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
24
|
+
readonly Passport: "passport";
|
|
25
|
+
readonly Licence: "licence";
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=customeridtype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customeridtype.d.ts","sourceRoot":"","sources":["../../src/models/components/customeridtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,cAAc,CACS,CAAC;AAEjC,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CACzD,OAAO,cAAc,CACS,CAAC;AAEjC;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa;;;MAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc;;;MAAgC,CAAC;CAC7D"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CustomerIDType$ = exports.CustomerIDType$outboundSchema = exports.CustomerIDType$inboundSchema = exports.CustomerIDType = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
exports.CustomerIDType = {
|
|
42
|
+
Passport: "passport",
|
|
43
|
+
Licence: "licence",
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.CustomerIDType$inboundSchema = z.nativeEnum(exports.CustomerIDType);
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.CustomerIDType$outboundSchema = exports.CustomerIDType$inboundSchema;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
var CustomerIDType$;
|
|
54
|
+
(function (CustomerIDType$) {
|
|
55
|
+
/** @deprecated use `CustomerIDType$inboundSchema` instead. */
|
|
56
|
+
CustomerIDType$.inboundSchema = exports.CustomerIDType$inboundSchema;
|
|
57
|
+
/** @deprecated use `CustomerIDType$outboundSchema` instead. */
|
|
58
|
+
CustomerIDType$.outboundSchema = exports.CustomerIDType$outboundSchema;
|
|
59
|
+
})(CustomerIDType$ || (exports.CustomerIDType$ = CustomerIDType$ = {}));
|
|
60
|
+
//# sourceMappingURL=customeridtype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customeridtype.js","sourceRoot":"","sources":["../../src/models/components/customeridtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAGX,gBAAgB;AACH,QAAA,4BAA4B,GAErC,CAAC,CAAC,UAAU,CAAC,sBAAc,CAAC,CAAC;AAEjC,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,oCAA4B,CAAC;AAEjC;;;GAGG;AACH,IAAiB,eAAe,CAK/B;AALD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAC9D,CAAC,EALgB,eAAe,+BAAf,eAAe,QAK/B"}
|
|
@@ -7,6 +7,7 @@ export * from "./applicationstatus.js";
|
|
|
7
7
|
export * from "./applicationtype.js";
|
|
8
8
|
export * from "./assetattributes.js";
|
|
9
9
|
export * from "./customerattributes.js";
|
|
10
|
+
export * from "./customeridtype.js";
|
|
10
11
|
export * from "./customertitle.js";
|
|
11
12
|
export * from "./errorsource.js";
|
|
12
13
|
export * from "./forbiddenerror.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./applicationstatus.js"), exports);
|
|
|
26
26
|
__exportStar(require("./applicationtype.js"), exports);
|
|
27
27
|
__exportStar(require("./assetattributes.js"), exports);
|
|
28
28
|
__exportStar(require("./customerattributes.js"), exports);
|
|
29
|
+
__exportStar(require("./customeridtype.js"), exports);
|
|
29
30
|
__exportStar(require("./customertitle.js"), exports);
|
|
30
31
|
__exportStar(require("./errorsource.js"), exports);
|
|
31
32
|
__exportStar(require("./forbiddenerror.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,yDAAuC;AACvC,qDAAmC;AACnC,6DAA2C;AAC3C,mEAAiD;AACjD,yEAAuD;AACvD,yDAAuC;AACvC,uDAAqC;AACrC,uDAAqC;AACrC,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,sDAAoC;AACpC,qDAAmC;AACnC,6CAA2B;AAC3B,6DAA2C;AAC3C,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,yDAAuC;AACvC,qDAAmC;AACnC,6DAA2C;AAC3C,mEAAiD;AACjD,yEAAuD;AACvD,yDAAuC;AACvC,uDAAqC;AACrC,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,sDAAoC;AACpC,qDAAmC;AACnC,6CAA2B;AAC3B,6DAA2C;AAC3C,0DAAwC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -51,9 +51,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
51
51
|
|
|
52
52
|
export const SDK_METADATA = {
|
|
53
53
|
language: "typescript",
|
|
54
|
-
openapiDocVersion: "0.
|
|
55
|
-
sdkVersion: "0.2.
|
|
56
|
-
genVersion: "2.512.
|
|
54
|
+
openapiDocVersion: "1.0.0",
|
|
55
|
+
sdkVersion: "0.2.5",
|
|
56
|
+
genVersion: "2.512.4",
|
|
57
57
|
userAgent:
|
|
58
|
-
"speakeasy-sdk/typescript 0.2.
|
|
58
|
+
"speakeasy-sdk/typescript 0.2.5 2.512.4 1.0.0 @financeable/aggregation",
|
|
59
59
|
} as const;
|
|
@@ -3,29 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CustomerIDType,
|
|
11
|
+
CustomerIDType$inboundSchema,
|
|
12
|
+
CustomerIDType$outboundSchema,
|
|
13
|
+
} from "./customeridtype.js";
|
|
11
14
|
import {
|
|
12
15
|
CustomerTitle,
|
|
13
16
|
CustomerTitle$inboundSchema,
|
|
14
17
|
CustomerTitle$outboundSchema,
|
|
15
18
|
} from "./customertitle.js";
|
|
16
19
|
|
|
17
|
-
/**
|
|
18
|
-
* Type of ID, either drivers' license or passport
|
|
19
|
-
*/
|
|
20
|
-
export const IDType = {
|
|
21
|
-
Licence: "licence",
|
|
22
|
-
Passport: "passport",
|
|
23
|
-
} as const;
|
|
24
|
-
/**
|
|
25
|
-
* Type of ID, either drivers' license or passport
|
|
26
|
-
*/
|
|
27
|
-
export type IDType = ClosedEnum<typeof IDType>;
|
|
28
|
-
|
|
29
20
|
/**
|
|
30
21
|
* A customer of the proposed financing
|
|
31
22
|
*/
|
|
@@ -57,32 +48,13 @@ export type CustomerAttributes = {
|
|
|
57
48
|
/**
|
|
58
49
|
* Type of ID, either drivers' license or passport
|
|
59
50
|
*/
|
|
60
|
-
idType?:
|
|
51
|
+
idType?: CustomerIDType | undefined;
|
|
61
52
|
/**
|
|
62
53
|
* Number of the ID
|
|
63
54
|
*/
|
|
64
55
|
idNumber?: string | undefined;
|
|
65
56
|
};
|
|
66
57
|
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const IDType$inboundSchema: z.ZodNativeEnum<typeof IDType> = z
|
|
69
|
-
.nativeEnum(IDType);
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const IDType$outboundSchema: z.ZodNativeEnum<typeof IDType> =
|
|
73
|
-
IDType$inboundSchema;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace IDType$ {
|
|
80
|
-
/** @deprecated use `IDType$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = IDType$inboundSchema;
|
|
82
|
-
/** @deprecated use `IDType$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema = IDType$outboundSchema;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
58
|
/** @internal */
|
|
87
59
|
export const CustomerAttributes$inboundSchema: z.ZodType<
|
|
88
60
|
CustomerAttributes,
|
|
@@ -94,15 +66,9 @@ export const CustomerAttributes$inboundSchema: z.ZodType<
|
|
|
94
66
|
middleNames: z.string().optional(),
|
|
95
67
|
lastName: z.string(),
|
|
96
68
|
dateOfBirth: z.string(),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}).transform((v) => {
|
|
101
|
-
return remap$(v, {
|
|
102
|
-
"IDExpiryDate": "idExpiryDate",
|
|
103
|
-
"IDType": "idType",
|
|
104
|
-
"IDNumber": "idNumber",
|
|
105
|
-
});
|
|
69
|
+
idExpiryDate: z.string(),
|
|
70
|
+
idType: CustomerIDType$inboundSchema.optional(),
|
|
71
|
+
idNumber: z.string().optional(),
|
|
106
72
|
});
|
|
107
73
|
|
|
108
74
|
/** @internal */
|
|
@@ -112,9 +78,9 @@ export type CustomerAttributes$Outbound = {
|
|
|
112
78
|
middleNames?: string | undefined;
|
|
113
79
|
lastName: string;
|
|
114
80
|
dateOfBirth: string;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
81
|
+
idExpiryDate: string;
|
|
82
|
+
idType?: string | undefined;
|
|
83
|
+
idNumber?: string | undefined;
|
|
118
84
|
};
|
|
119
85
|
|
|
120
86
|
/** @internal */
|
|
@@ -129,14 +95,8 @@ export const CustomerAttributes$outboundSchema: z.ZodType<
|
|
|
129
95
|
lastName: z.string(),
|
|
130
96
|
dateOfBirth: z.string(),
|
|
131
97
|
idExpiryDate: z.string(),
|
|
132
|
-
idType:
|
|
98
|
+
idType: CustomerIDType$outboundSchema.optional(),
|
|
133
99
|
idNumber: z.string().optional(),
|
|
134
|
-
}).transform((v) => {
|
|
135
|
-
return remap$(v, {
|
|
136
|
-
idExpiryDate: "IDExpiryDate",
|
|
137
|
-
idType: "IDType",
|
|
138
|
-
idNumber: "IDNumber",
|
|
139
|
-
});
|
|
140
100
|
});
|
|
141
101
|
|
|
142
102
|
/**
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const CustomerIDType = {
|
|
9
|
+
Passport: "passport",
|
|
10
|
+
Licence: "licence",
|
|
11
|
+
} as const;
|
|
12
|
+
export type CustomerIDType = ClosedEnum<typeof CustomerIDType>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const CustomerIDType$inboundSchema: z.ZodNativeEnum<
|
|
16
|
+
typeof CustomerIDType
|
|
17
|
+
> = z.nativeEnum(CustomerIDType);
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const CustomerIDType$outboundSchema: z.ZodNativeEnum<
|
|
21
|
+
typeof CustomerIDType
|
|
22
|
+
> = CustomerIDType$inboundSchema;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export namespace CustomerIDType$ {
|
|
29
|
+
/** @deprecated use `CustomerIDType$inboundSchema` instead. */
|
|
30
|
+
export const inboundSchema = CustomerIDType$inboundSchema;
|
|
31
|
+
/** @deprecated use `CustomerIDType$outboundSchema` instead. */
|
|
32
|
+
export const outboundSchema = CustomerIDType$outboundSchema;
|
|
33
|
+
}
|
|
@@ -11,6 +11,7 @@ export * from "./applicationstatus.js";
|
|
|
11
11
|
export * from "./applicationtype.js";
|
|
12
12
|
export * from "./assetattributes.js";
|
|
13
13
|
export * from "./customerattributes.js";
|
|
14
|
+
export * from "./customeridtype.js";
|
|
14
15
|
export * from "./customertitle.js";
|
|
15
16
|
export * from "./errorsource.js";
|
|
16
17
|
export * from "./forbiddenerror.js";
|