@financeable/aggregation 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/docs/sdks/applications/README.md +144 -0
- package/examples/package-lock.json +1 -1
- package/funcs/applicationsGet.d.ts +14 -0
- package/funcs/applicationsGet.d.ts.map +1 -0
- package/funcs/applicationsGet.js +122 -0
- package/funcs/applicationsGet.js.map +1 -0
- package/funcs/applicationsList.d.ts +14 -0
- package/funcs/applicationsList.d.ts.map +1 -0
- package/funcs/applicationsList.js +117 -0
- package/funcs/applicationsList.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/businessloanbusinessapplicationrelationships.d.ts +21 -21
- package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -1
- package/models/components/businessloanbusinessapplicationrelationships.js +24 -26
- package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.d.ts +15 -15
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.js +18 -18
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +36 -36
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +46 -44
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +3 -3
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +3 -3
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/customerattributes.d.ts +0 -22
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +0 -10
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/customerattributescreateitem.d.ts +112 -0
- package/models/components/customerattributescreateitem.d.ts.map +1 -0
- package/models/components/customerattributescreateitem.js +110 -0
- package/models/components/customerattributescreateitem.js.map +1 -0
- package/models/components/entityattributes.d.ts +129 -0
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +71 -1
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/entityattributesinput.d.ts +41 -0
- package/models/components/entityattributesinput.d.ts.map +1 -0
- package/models/components/entityattributesinput.js +81 -0
- package/models/components/entityattributesinput.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/paginationlinks.d.ts +47 -0
- package/models/components/paginationlinks.d.ts.map +1 -0
- package/models/components/paginationlinks.js +75 -0
- package/models/components/paginationlinks.js.map +1 -0
- package/models/components/paginationmeta.d.ts +47 -0
- package/models/components/paginationmeta.d.ts.map +1 -0
- package/models/components/paginationmeta.js +88 -0
- package/models/components/paginationmeta.js.map +1 -0
- package/models/components/personalloanpersonalapplicationrelationships.d.ts +3 -3
- package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
- package/models/components/personalloanpersonalapplicationrelationships.js +3 -3
- package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -1
- package/models/operations/createapplication.d.ts +218 -45
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +145 -45
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/getapplication.d.ts +703 -0
- package/models/operations/getapplication.d.ts.map +1 -0
- package/models/operations/getapplication.js +697 -0
- package/models/operations/getapplication.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listapplications.d.ts +141 -0
- package/models/operations/listapplications.d.ts.map +1 -0
- package/models/operations/listapplications.js +199 -0
- package/models/operations/listapplications.js.map +1 -0
- package/package.json +1 -1
- package/sdk/applications.d.ts +8 -0
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +14 -0
- package/sdk/applications.js.map +1 -1
- package/src/funcs/applicationsGet.ts +170 -0
- package/src/funcs/applicationsList.ts +164 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/businessloanbusinessapplicationrelationships.ts +52 -53
- package/src/models/components/commercialapplicationjsonapirelationships.ts +43 -67
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +114 -94
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +9 -9
- package/src/models/components/customerattributes.ts +0 -38
- package/src/models/components/customerattributescreateitem.ts +214 -0
- package/src/models/components/entityattributes.ts +134 -0
- package/src/models/components/entityattributesinput.ts +90 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/paginationlinks.ts +88 -0
- package/src/models/components/paginationmeta.ts +99 -0
- package/src/models/components/personalloanpersonalapplicationrelationships.ts +9 -9
- package/src/models/operations/createapplication.ts +289 -62
- package/src/models/operations/getapplication.ts +1378 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listapplications.ts +364 -0
- package/src/sdk/applications.ts +30 -0
|
@@ -80,7 +80,7 @@ export type CommercialApplicationJsonApiRelationshipsEntitiesData = {
|
|
|
80
80
|
id: string;
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
export type
|
|
83
|
+
export type Entities = {
|
|
84
84
|
data: Array<CommercialApplicationJsonApiRelationshipsEntitiesData>;
|
|
85
85
|
links?: { [k: string]: LinkObject } | undefined;
|
|
86
86
|
meta?: { [k: string]: any } | undefined;
|
|
@@ -95,7 +95,7 @@ export type CommercialApplicationJsonApiRelationships = {
|
|
|
95
95
|
| undefined;
|
|
96
96
|
customers?: CommercialApplicationJsonApiRelationshipsCustomers | undefined;
|
|
97
97
|
asset?: CommercialApplicationJsonApiRelationshipsAsset | undefined;
|
|
98
|
-
entities?:
|
|
98
|
+
entities?: Entities | undefined;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
/** @internal */
|
|
@@ -715,84 +715,66 @@ export function commercialApplicationJsonApiRelationshipsEntitiesDataFromJSON(
|
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
/** @internal */
|
|
718
|
-
export const
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
CommercialApplicationJsonApiRelationshipsEntitiesData$inboundSchema
|
|
727
|
-
),
|
|
718
|
+
export const Entities$inboundSchema: z.ZodType<
|
|
719
|
+
Entities,
|
|
720
|
+
z.ZodTypeDef,
|
|
721
|
+
unknown
|
|
722
|
+
> = z.object({
|
|
723
|
+
data: z.array(
|
|
724
|
+
z.lazy(() =>
|
|
725
|
+
CommercialApplicationJsonApiRelationshipsEntitiesData$inboundSchema
|
|
728
726
|
),
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
727
|
+
),
|
|
728
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
729
|
+
meta: z.record(z.any()).optional(),
|
|
730
|
+
});
|
|
732
731
|
|
|
733
732
|
/** @internal */
|
|
734
|
-
export type
|
|
733
|
+
export type Entities$Outbound = {
|
|
735
734
|
data: Array<CommercialApplicationJsonApiRelationshipsEntitiesData$Outbound>;
|
|
736
735
|
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
737
736
|
meta?: { [k: string]: any } | undefined;
|
|
738
737
|
};
|
|
739
738
|
|
|
740
739
|
/** @internal */
|
|
741
|
-
export const
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
CommercialApplicationJsonApiRelationshipsEntitiesData$outboundSchema
|
|
750
|
-
),
|
|
740
|
+
export const Entities$outboundSchema: z.ZodType<
|
|
741
|
+
Entities$Outbound,
|
|
742
|
+
z.ZodTypeDef,
|
|
743
|
+
Entities
|
|
744
|
+
> = z.object({
|
|
745
|
+
data: z.array(
|
|
746
|
+
z.lazy(() =>
|
|
747
|
+
CommercialApplicationJsonApiRelationshipsEntitiesData$outboundSchema
|
|
751
748
|
),
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
749
|
+
),
|
|
750
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
751
|
+
meta: z.record(z.any()).optional(),
|
|
752
|
+
});
|
|
755
753
|
|
|
756
754
|
/**
|
|
757
755
|
* @internal
|
|
758
756
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
759
757
|
*/
|
|
760
|
-
export namespace
|
|
761
|
-
/** @deprecated use `
|
|
762
|
-
export const inboundSchema =
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
/** @deprecated use `CommercialApplicationJsonApiRelationshipsEntities$Outbound` instead. */
|
|
768
|
-
export type Outbound =
|
|
769
|
-
CommercialApplicationJsonApiRelationshipsEntities$Outbound;
|
|
758
|
+
export namespace Entities$ {
|
|
759
|
+
/** @deprecated use `Entities$inboundSchema` instead. */
|
|
760
|
+
export const inboundSchema = Entities$inboundSchema;
|
|
761
|
+
/** @deprecated use `Entities$outboundSchema` instead. */
|
|
762
|
+
export const outboundSchema = Entities$outboundSchema;
|
|
763
|
+
/** @deprecated use `Entities$Outbound` instead. */
|
|
764
|
+
export type Outbound = Entities$Outbound;
|
|
770
765
|
}
|
|
771
766
|
|
|
772
|
-
export function
|
|
773
|
-
|
|
774
|
-
CommercialApplicationJsonApiRelationshipsEntities,
|
|
775
|
-
): string {
|
|
776
|
-
return JSON.stringify(
|
|
777
|
-
CommercialApplicationJsonApiRelationshipsEntities$outboundSchema.parse(
|
|
778
|
-
commercialApplicationJsonApiRelationshipsEntities,
|
|
779
|
-
),
|
|
780
|
-
);
|
|
767
|
+
export function entitiesToJSON(entities: Entities): string {
|
|
768
|
+
return JSON.stringify(Entities$outboundSchema.parse(entities));
|
|
781
769
|
}
|
|
782
770
|
|
|
783
|
-
export function
|
|
771
|
+
export function entitiesFromJSON(
|
|
784
772
|
jsonString: string,
|
|
785
|
-
): SafeParseResult<
|
|
786
|
-
CommercialApplicationJsonApiRelationshipsEntities,
|
|
787
|
-
SDKValidationError
|
|
788
|
-
> {
|
|
773
|
+
): SafeParseResult<Entities, SDKValidationError> {
|
|
789
774
|
return safeParse(
|
|
790
775
|
jsonString,
|
|
791
|
-
(x) =>
|
|
792
|
-
|
|
793
|
-
JSON.parse(x),
|
|
794
|
-
),
|
|
795
|
-
`Failed to parse 'CommercialApplicationJsonApiRelationshipsEntities' from JSON`,
|
|
776
|
+
(x) => Entities$inboundSchema.parse(JSON.parse(x)),
|
|
777
|
+
`Failed to parse 'Entities' from JSON`,
|
|
796
778
|
);
|
|
797
779
|
}
|
|
798
780
|
|
|
@@ -811,9 +793,7 @@ export const CommercialApplicationJsonApiRelationships$inboundSchema: z.ZodType<
|
|
|
811
793
|
asset: z.lazy(() =>
|
|
812
794
|
CommercialApplicationJsonApiRelationshipsAsset$inboundSchema
|
|
813
795
|
).optional(),
|
|
814
|
-
entities: z.lazy(() =>
|
|
815
|
-
CommercialApplicationJsonApiRelationshipsEntities$inboundSchema
|
|
816
|
-
).optional(),
|
|
796
|
+
entities: z.lazy(() => Entities$inboundSchema).optional(),
|
|
817
797
|
});
|
|
818
798
|
|
|
819
799
|
/** @internal */
|
|
@@ -825,9 +805,7 @@ export type CommercialApplicationJsonApiRelationships$Outbound = {
|
|
|
825
805
|
| CommercialApplicationJsonApiRelationshipsCustomers$Outbound
|
|
826
806
|
| undefined;
|
|
827
807
|
asset?: CommercialApplicationJsonApiRelationshipsAsset$Outbound | undefined;
|
|
828
|
-
entities?:
|
|
829
|
-
| CommercialApplicationJsonApiRelationshipsEntities$Outbound
|
|
830
|
-
| undefined;
|
|
808
|
+
entities?: Entities$Outbound | undefined;
|
|
831
809
|
};
|
|
832
810
|
|
|
833
811
|
/** @internal */
|
|
@@ -846,9 +824,7 @@ export const CommercialApplicationJsonApiRelationships$outboundSchema:
|
|
|
846
824
|
asset: z.lazy(() =>
|
|
847
825
|
CommercialApplicationJsonApiRelationshipsAsset$outboundSchema
|
|
848
826
|
).optional(),
|
|
849
|
-
entities: z.lazy(() =>
|
|
850
|
-
CommercialApplicationJsonApiRelationshipsEntities$outboundSchema
|
|
851
|
-
).optional(),
|
|
827
|
+
entities: z.lazy(() => Entities$outboundSchema).optional(),
|
|
852
828
|
});
|
|
853
829
|
|
|
854
830
|
/**
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
CustomerAssetAttributes$outboundSchema,
|
|
27
27
|
} from "./customerassetattributes.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
29
|
+
CustomerAttributesCreateItem,
|
|
30
|
+
CustomerAttributesCreateItem$inboundSchema,
|
|
31
|
+
CustomerAttributesCreateItem$Outbound,
|
|
32
|
+
CustomerAttributesCreateItem$outboundSchema,
|
|
33
|
+
} from "./customerattributescreateitem.js";
|
|
34
34
|
import {
|
|
35
35
|
CustomerLiabilityAttributes,
|
|
36
36
|
CustomerLiabilityAttributes$inboundSchema,
|
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
CustomerLiabilityAttributes$outboundSchema,
|
|
39
39
|
} from "./customerliabilityattributes.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} from "./
|
|
41
|
+
EntityAttributesInput,
|
|
42
|
+
EntityAttributesInput$inboundSchema,
|
|
43
|
+
EntityAttributesInput$Outbound,
|
|
44
|
+
EntityAttributesInput$outboundSchema,
|
|
45
|
+
} from "./entityattributesinput.js";
|
|
46
46
|
import {
|
|
47
47
|
LinkObject,
|
|
48
48
|
LinkObject$inboundSchema,
|
|
@@ -170,7 +170,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsData = {
|
|
|
170
170
|
/**
|
|
171
171
|
* A customer of the proposed financing
|
|
172
172
|
*/
|
|
173
|
-
attributes:
|
|
173
|
+
attributes: CustomerAttributesCreateItem;
|
|
174
174
|
relationships?: Relationships | undefined;
|
|
175
175
|
links?: { [k: string]: LinkObject } | undefined;
|
|
176
176
|
meta?: { [k: string]: any } | undefined;
|
|
@@ -212,25 +212,24 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
|
|
|
212
212
|
typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
|
|
213
213
|
>;
|
|
214
214
|
|
|
215
|
-
export type
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
};
|
|
215
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsDataInput = {
|
|
216
|
+
type: CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType;
|
|
217
|
+
attributes: EntityAttributesInput;
|
|
218
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
219
|
+
meta?: { [k: string]: any } | undefined;
|
|
220
|
+
};
|
|
222
221
|
|
|
223
|
-
export type
|
|
224
|
-
data: Array<
|
|
225
|
-
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
|
|
226
|
-
>;
|
|
222
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsEntities = {
|
|
223
|
+
data: Array<CommercialSecuredLoanCommercialApplicationRelationshipsDataInput>;
|
|
227
224
|
};
|
|
228
225
|
|
|
229
226
|
export type CommercialSecuredLoanCommercialApplicationRelationships = {
|
|
230
227
|
loanDetails?: LoanDetails | undefined;
|
|
231
228
|
customers?: Customers | undefined;
|
|
232
229
|
asset?: Asset | undefined;
|
|
233
|
-
entities?:
|
|
230
|
+
entities?:
|
|
231
|
+
| CommercialSecuredLoanCommercialApplicationRelationshipsEntities
|
|
232
|
+
| undefined;
|
|
234
233
|
};
|
|
235
234
|
|
|
236
235
|
/** @internal */
|
|
@@ -957,7 +956,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inbound
|
|
|
957
956
|
> = z.object({
|
|
958
957
|
type:
|
|
959
958
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema,
|
|
960
|
-
attributes:
|
|
959
|
+
attributes: CustomerAttributesCreateItem$inboundSchema,
|
|
961
960
|
relationships: z.lazy(() => Relationships$inboundSchema).optional(),
|
|
962
961
|
links: z.record(LinkObject$inboundSchema).optional(),
|
|
963
962
|
meta: z.record(z.any()).optional(),
|
|
@@ -967,7 +966,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inbound
|
|
|
967
966
|
export type CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound =
|
|
968
967
|
{
|
|
969
968
|
type: string;
|
|
970
|
-
attributes:
|
|
969
|
+
attributes: CustomerAttributesCreateItem$Outbound;
|
|
971
970
|
relationships?: Relationships$Outbound | undefined;
|
|
972
971
|
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
973
972
|
meta?: { [k: string]: any } | undefined;
|
|
@@ -982,7 +981,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$outboun
|
|
|
982
981
|
> = z.object({
|
|
983
982
|
type:
|
|
984
983
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema,
|
|
985
|
-
attributes:
|
|
984
|
+
attributes: CustomerAttributesCreateItem$outboundSchema,
|
|
986
985
|
relationships: z.lazy(() => Relationships$outboundSchema).optional(),
|
|
987
986
|
links: z.record(LinkObject$outboundSchema).optional(),
|
|
988
987
|
meta: z.record(z.any()).optional(),
|
|
@@ -1276,38 +1275,38 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsEntities
|
|
|
1276
1275
|
}
|
|
1277
1276
|
|
|
1278
1277
|
/** @internal */
|
|
1279
|
-
export const
|
|
1278
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$inboundSchema:
|
|
1280
1279
|
z.ZodType<
|
|
1281
|
-
|
|
1280
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput,
|
|
1282
1281
|
z.ZodTypeDef,
|
|
1283
1282
|
unknown
|
|
1284
1283
|
> = z.object({
|
|
1285
1284
|
type:
|
|
1286
1285
|
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema,
|
|
1287
|
-
attributes:
|
|
1286
|
+
attributes: EntityAttributesInput$inboundSchema,
|
|
1288
1287
|
links: z.record(LinkObject$inboundSchema).optional(),
|
|
1289
1288
|
meta: z.record(z.any()).optional(),
|
|
1290
1289
|
});
|
|
1291
1290
|
|
|
1292
1291
|
/** @internal */
|
|
1293
|
-
export type
|
|
1292
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$Outbound =
|
|
1294
1293
|
{
|
|
1295
1294
|
type: string;
|
|
1296
|
-
attributes:
|
|
1295
|
+
attributes: EntityAttributesInput$Outbound;
|
|
1297
1296
|
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
1298
1297
|
meta?: { [k: string]: any } | undefined;
|
|
1299
1298
|
};
|
|
1300
1299
|
|
|
1301
1300
|
/** @internal */
|
|
1302
|
-
export const
|
|
1301
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$outboundSchema:
|
|
1303
1302
|
z.ZodType<
|
|
1304
|
-
|
|
1303
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$Outbound,
|
|
1305
1304
|
z.ZodTypeDef,
|
|
1306
|
-
|
|
1305
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput
|
|
1307
1306
|
> = z.object({
|
|
1308
1307
|
type:
|
|
1309
1308
|
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema,
|
|
1310
|
-
attributes:
|
|
1309
|
+
attributes: EntityAttributesInput$outboundSchema,
|
|
1311
1310
|
links: z.record(LinkObject$outboundSchema).optional(),
|
|
1312
1311
|
meta: z.record(z.any()).optional(),
|
|
1313
1312
|
});
|
|
@@ -1316,102 +1315,117 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
|
|
|
1316
1315
|
* @internal
|
|
1317
1316
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1318
1317
|
*/
|
|
1319
|
-
export namespace
|
|
1320
|
-
/** @deprecated use `
|
|
1318
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$ {
|
|
1319
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$inboundSchema` instead. */
|
|
1321
1320
|
export const inboundSchema =
|
|
1322
|
-
|
|
1323
|
-
/** @deprecated use `
|
|
1321
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$inboundSchema;
|
|
1322
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$outboundSchema` instead. */
|
|
1324
1323
|
export const outboundSchema =
|
|
1325
|
-
|
|
1326
|
-
/** @deprecated use `
|
|
1324
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$outboundSchema;
|
|
1325
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$Outbound` instead. */
|
|
1327
1326
|
export type Outbound =
|
|
1328
|
-
|
|
1327
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$Outbound;
|
|
1329
1328
|
}
|
|
1330
1329
|
|
|
1331
|
-
export function
|
|
1332
|
-
|
|
1333
|
-
|
|
1330
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsDataInputToJSON(
|
|
1331
|
+
commercialSecuredLoanCommercialApplicationRelationshipsDataInput:
|
|
1332
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput,
|
|
1334
1333
|
): string {
|
|
1335
1334
|
return JSON.stringify(
|
|
1336
|
-
|
|
1337
|
-
.parse(
|
|
1338
|
-
commercialSecuredLoanCommercialApplicationRelationshipsEntitiesData,
|
|
1339
|
-
),
|
|
1335
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$outboundSchema
|
|
1336
|
+
.parse(commercialSecuredLoanCommercialApplicationRelationshipsDataInput),
|
|
1340
1337
|
);
|
|
1341
1338
|
}
|
|
1342
1339
|
|
|
1343
|
-
export function
|
|
1340
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsDataInputFromJSON(
|
|
1344
1341
|
jsonString: string,
|
|
1345
1342
|
): SafeParseResult<
|
|
1346
|
-
|
|
1343
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput,
|
|
1347
1344
|
SDKValidationError
|
|
1348
1345
|
> {
|
|
1349
1346
|
return safeParse(
|
|
1350
1347
|
jsonString,
|
|
1351
1348
|
(x) =>
|
|
1352
|
-
|
|
1349
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$inboundSchema
|
|
1353
1350
|
.parse(JSON.parse(x)),
|
|
1354
|
-
`Failed to parse '
|
|
1351
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsDataInput' from JSON`,
|
|
1355
1352
|
);
|
|
1356
1353
|
}
|
|
1357
1354
|
|
|
1358
1355
|
/** @internal */
|
|
1359
|
-
export const
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
z.
|
|
1366
|
-
|
|
1356
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsEntities$inboundSchema:
|
|
1357
|
+
z.ZodType<
|
|
1358
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities,
|
|
1359
|
+
z.ZodTypeDef,
|
|
1360
|
+
unknown
|
|
1361
|
+
> = z.object({
|
|
1362
|
+
data: z.array(
|
|
1363
|
+
z.lazy(() =>
|
|
1364
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$inboundSchema
|
|
1365
|
+
),
|
|
1367
1366
|
),
|
|
1368
|
-
)
|
|
1369
|
-
});
|
|
1367
|
+
});
|
|
1370
1368
|
|
|
1371
1369
|
/** @internal */
|
|
1372
|
-
export type
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1370
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsEntities$Outbound =
|
|
1371
|
+
{
|
|
1372
|
+
data: Array<
|
|
1373
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$Outbound
|
|
1374
|
+
>;
|
|
1375
|
+
};
|
|
1377
1376
|
|
|
1378
1377
|
/** @internal */
|
|
1379
|
-
export const
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
z.
|
|
1386
|
-
|
|
1378
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsEntities$outboundSchema:
|
|
1379
|
+
z.ZodType<
|
|
1380
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$Outbound,
|
|
1381
|
+
z.ZodTypeDef,
|
|
1382
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities
|
|
1383
|
+
> = z.object({
|
|
1384
|
+
data: z.array(
|
|
1385
|
+
z.lazy(() =>
|
|
1386
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$outboundSchema
|
|
1387
|
+
),
|
|
1387
1388
|
),
|
|
1388
|
-
)
|
|
1389
|
-
});
|
|
1389
|
+
});
|
|
1390
1390
|
|
|
1391
1391
|
/**
|
|
1392
1392
|
* @internal
|
|
1393
1393
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1394
1394
|
*/
|
|
1395
|
-
export namespace
|
|
1396
|
-
/** @deprecated use `
|
|
1397
|
-
export const inboundSchema =
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1395
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsEntities$ {
|
|
1396
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntities$inboundSchema` instead. */
|
|
1397
|
+
export const inboundSchema =
|
|
1398
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$inboundSchema;
|
|
1399
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntities$outboundSchema` instead. */
|
|
1400
|
+
export const outboundSchema =
|
|
1401
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$outboundSchema;
|
|
1402
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntities$Outbound` instead. */
|
|
1403
|
+
export type Outbound =
|
|
1404
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$Outbound;
|
|
1402
1405
|
}
|
|
1403
1406
|
|
|
1404
|
-
export function
|
|
1405
|
-
|
|
1407
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsEntitiesToJSON(
|
|
1408
|
+
commercialSecuredLoanCommercialApplicationRelationshipsEntities:
|
|
1409
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities,
|
|
1410
|
+
): string {
|
|
1411
|
+
return JSON.stringify(
|
|
1412
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$outboundSchema
|
|
1413
|
+
.parse(commercialSecuredLoanCommercialApplicationRelationshipsEntities),
|
|
1414
|
+
);
|
|
1406
1415
|
}
|
|
1407
1416
|
|
|
1408
|
-
export function
|
|
1417
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsEntitiesFromJSON(
|
|
1409
1418
|
jsonString: string,
|
|
1410
|
-
): SafeParseResult<
|
|
1419
|
+
): SafeParseResult<
|
|
1420
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities,
|
|
1421
|
+
SDKValidationError
|
|
1422
|
+
> {
|
|
1411
1423
|
return safeParse(
|
|
1412
1424
|
jsonString,
|
|
1413
|
-
(x) =>
|
|
1414
|
-
|
|
1425
|
+
(x) =>
|
|
1426
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$inboundSchema
|
|
1427
|
+
.parse(JSON.parse(x)),
|
|
1428
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsEntities' from JSON`,
|
|
1415
1429
|
);
|
|
1416
1430
|
}
|
|
1417
1431
|
|
|
@@ -1425,7 +1439,9 @@ export const CommercialSecuredLoanCommercialApplicationRelationships$inboundSche
|
|
|
1425
1439
|
loanDetails: z.lazy(() => LoanDetails$inboundSchema).optional(),
|
|
1426
1440
|
customers: z.lazy(() => Customers$inboundSchema).optional(),
|
|
1427
1441
|
asset: z.lazy(() => Asset$inboundSchema).optional(),
|
|
1428
|
-
entities: z.lazy(() =>
|
|
1442
|
+
entities: z.lazy(() =>
|
|
1443
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$inboundSchema
|
|
1444
|
+
).optional(),
|
|
1429
1445
|
});
|
|
1430
1446
|
|
|
1431
1447
|
/** @internal */
|
|
@@ -1433,7 +1449,9 @@ export type CommercialSecuredLoanCommercialApplicationRelationships$Outbound = {
|
|
|
1433
1449
|
loanDetails?: LoanDetails$Outbound | undefined;
|
|
1434
1450
|
customers?: Customers$Outbound | undefined;
|
|
1435
1451
|
asset?: Asset$Outbound | undefined;
|
|
1436
|
-
entities?:
|
|
1452
|
+
entities?:
|
|
1453
|
+
| CommercialSecuredLoanCommercialApplicationRelationshipsEntities$Outbound
|
|
1454
|
+
| undefined;
|
|
1437
1455
|
};
|
|
1438
1456
|
|
|
1439
1457
|
/** @internal */
|
|
@@ -1446,7 +1464,9 @@ export const CommercialSecuredLoanCommercialApplicationRelationships$outboundSch
|
|
|
1446
1464
|
loanDetails: z.lazy(() => LoanDetails$outboundSchema).optional(),
|
|
1447
1465
|
customers: z.lazy(() => Customers$outboundSchema).optional(),
|
|
1448
1466
|
asset: z.lazy(() => Asset$outboundSchema).optional(),
|
|
1449
|
-
entities: z.lazy(() =>
|
|
1467
|
+
entities: z.lazy(() =>
|
|
1468
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntities$outboundSchema
|
|
1469
|
+
).optional(),
|
|
1450
1470
|
});
|
|
1451
1471
|
|
|
1452
1472
|
/**
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
CustomerAssetAttributes$outboundSchema,
|
|
27
27
|
} from "./customerassetattributes.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
29
|
+
CustomerAttributesCreateItem,
|
|
30
|
+
CustomerAttributesCreateItem$inboundSchema,
|
|
31
|
+
CustomerAttributesCreateItem$Outbound,
|
|
32
|
+
CustomerAttributesCreateItem$outboundSchema,
|
|
33
|
+
} from "./customerattributescreateitem.js";
|
|
34
34
|
import {
|
|
35
35
|
CustomerLiabilityAttributes,
|
|
36
36
|
CustomerLiabilityAttributes$inboundSchema,
|
|
@@ -229,7 +229,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData = {
|
|
|
229
229
|
/**
|
|
230
230
|
* A customer of the proposed financing
|
|
231
231
|
*/
|
|
232
|
-
attributes:
|
|
232
|
+
attributes: CustomerAttributesCreateItem;
|
|
233
233
|
relationships?:
|
|
234
234
|
| ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships
|
|
235
235
|
| undefined;
|
|
@@ -1467,7 +1467,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$in
|
|
|
1467
1467
|
> = z.object({
|
|
1468
1468
|
type:
|
|
1469
1469
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema,
|
|
1470
|
-
attributes:
|
|
1470
|
+
attributes: CustomerAttributesCreateItem$inboundSchema,
|
|
1471
1471
|
relationships: z.lazy(() =>
|
|
1472
1472
|
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema
|
|
1473
1473
|
).optional(),
|
|
@@ -1479,7 +1479,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$in
|
|
|
1479
1479
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound =
|
|
1480
1480
|
{
|
|
1481
1481
|
type: string;
|
|
1482
|
-
attributes:
|
|
1482
|
+
attributes: CustomerAttributesCreateItem$Outbound;
|
|
1483
1483
|
relationships?:
|
|
1484
1484
|
| ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound
|
|
1485
1485
|
| undefined;
|
|
@@ -1496,7 +1496,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$ou
|
|
|
1496
1496
|
> = z.object({
|
|
1497
1497
|
type:
|
|
1498
1498
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema,
|
|
1499
|
-
attributes:
|
|
1499
|
+
attributes: CustomerAttributesCreateItem$outboundSchema,
|
|
1500
1500
|
relationships: z.lazy(() =>
|
|
1501
1501
|
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema
|
|
1502
1502
|
).optional(),
|
|
@@ -6,16 +6,6 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
AustralianStatesAndTerritories,
|
|
11
|
-
AustralianStatesAndTerritories$inboundSchema,
|
|
12
|
-
AustralianStatesAndTerritories$outboundSchema,
|
|
13
|
-
} from "./australianstatesandterritories.js";
|
|
14
|
-
import {
|
|
15
|
-
CustomerIDType,
|
|
16
|
-
CustomerIDType$inboundSchema,
|
|
17
|
-
CustomerIDType$outboundSchema,
|
|
18
|
-
} from "./customeridtype.js";
|
|
19
9
|
import {
|
|
20
10
|
CustomerTitle,
|
|
21
11
|
CustomerTitle$inboundSchema,
|
|
@@ -68,22 +58,6 @@ export type CustomerAttributes = {
|
|
|
68
58
|
* Date of birth in format YYYY-MM-DD
|
|
69
59
|
*/
|
|
70
60
|
dateOfBirth?: string | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Date of expiry of the ID in format YYYY-MM-DD
|
|
73
|
-
*/
|
|
74
|
-
idExpiryDate?: string | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Type of ID, either drivers' license or passport
|
|
77
|
-
*/
|
|
78
|
-
idType?: CustomerIDType | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* THe state in which the ID was issued, currently limited to AUS states.
|
|
81
|
-
*/
|
|
82
|
-
idState?: AustralianStatesAndTerritories | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Number of the ID - license number for driver's licence or passport code.
|
|
85
|
-
*/
|
|
86
|
-
idNumber?: string | undefined;
|
|
87
61
|
/**
|
|
88
62
|
* For driver's licence only - the card number
|
|
89
63
|
*/
|
|
@@ -118,10 +92,6 @@ export const CustomerAttributes$inboundSchema: z.ZodType<
|
|
|
118
92
|
middleNames: z.string().optional(),
|
|
119
93
|
lastName: z.string().optional(),
|
|
120
94
|
dateOfBirth: z.string().optional(),
|
|
121
|
-
idExpiryDate: z.string().optional(),
|
|
122
|
-
idType: CustomerIDType$inboundSchema.optional(),
|
|
123
|
-
idState: AustralianStatesAndTerritories$inboundSchema.optional(),
|
|
124
|
-
idNumber: z.string().optional(),
|
|
125
95
|
cardNumber: z.string().optional(),
|
|
126
96
|
emailAddresses: z.array(z.string()).optional(),
|
|
127
97
|
phoneNumbers: z.array(z.string()).optional(),
|
|
@@ -140,10 +110,6 @@ export type CustomerAttributes$Outbound = {
|
|
|
140
110
|
middleNames?: string | undefined;
|
|
141
111
|
lastName?: string | undefined;
|
|
142
112
|
dateOfBirth?: string | undefined;
|
|
143
|
-
idExpiryDate?: string | undefined;
|
|
144
|
-
idType?: string | undefined;
|
|
145
|
-
idState?: string | undefined;
|
|
146
|
-
idNumber?: string | undefined;
|
|
147
113
|
cardNumber?: string | undefined;
|
|
148
114
|
emailAddresses?: Array<string> | undefined;
|
|
149
115
|
phoneNumbers?: Array<string> | undefined;
|
|
@@ -166,10 +132,6 @@ export const CustomerAttributes$outboundSchema: z.ZodType<
|
|
|
166
132
|
middleNames: z.string().optional(),
|
|
167
133
|
lastName: z.string().optional(),
|
|
168
134
|
dateOfBirth: z.string().optional(),
|
|
169
|
-
idExpiryDate: z.string().optional(),
|
|
170
|
-
idType: CustomerIDType$outboundSchema.optional(),
|
|
171
|
-
idState: AustralianStatesAndTerritories$outboundSchema.optional(),
|
|
172
|
-
idNumber: z.string().optional(),
|
|
173
135
|
cardNumber: z.string().optional(),
|
|
174
136
|
emailAddresses: z.array(z.string()).optional(),
|
|
175
137
|
phoneNumbers: z.array(z.string()).optional(),
|