@financeable/aggregation 0.4.5 → 0.5.1
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/.devcontainer/README.md +1 -1
- package/FUNCTIONS.md +18 -0
- package/README.md +54 -0
- package/docs/sdks/applications/README.md +36 -0
- package/hooks/types.d.ts +1 -1
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/models/components/addressattributes.d.ts +2 -1
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +3 -2
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresourcebulksubmission.d.ts +133 -56
- package/models/components/applicationresourcebulksubmission.d.ts.map +1 -1
- package/models/components/applicationresourcebulksubmission.js +147 -68
- package/models/components/applicationresourcebulksubmission.js.map +1 -1
- package/models/components/australianstatesandterritories.d.ts +46 -0
- package/models/components/australianstatesandterritories.d.ts.map +1 -0
- package/models/components/australianstatesandterritories.js +66 -0
- package/models/components/australianstatesandterritories.js.map +1 -0
- package/models/components/entityattributes.d.ts +61 -0
- package/models/components/entityattributes.d.ts.map +1 -0
- package/models/components/entityattributes.js +98 -0
- package/models/components/entityattributes.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/tokenrequest.d.ts +2 -2
- package/models/operations/createapplication.d.ts +239 -82
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +273 -108
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/getapplication.d.ts +211 -54
- package/models/operations/getapplication.d.ts.map +1 -1
- package/models/operations/getapplication.js +241 -72
- package/models/operations/getapplication.js.map +1 -1
- package/models/operations/getapplications.d.ts +183 -26
- package/models/operations/getapplications.d.ts.map +1 -1
- package/models/operations/getapplications.js +199 -34
- package/models/operations/getapplications.js.map +1 -1
- package/package.json +2 -2
- package/src/hooks/types.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +11 -3
- package/src/models/components/addressattributes.ts +8 -3
- package/src/models/components/applicationresourcebulksubmission.ts +310 -126
- package/src/models/components/australianstatesandterritories.ts +41 -0
- package/src/models/components/entityattributes.ts +130 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/tokenrequest.ts +2 -2
- package/src/models/operations/createapplication.ts +609 -208
- package/src/models/operations/getapplication.ts +558 -141
- package/src/models/operations/getapplications.ts +454 -53
|
@@ -0,0 +1,41 @@
|
|
|
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 AustralianStatesAndTerritories = {
|
|
9
|
+
Sa: "SA",
|
|
10
|
+
Nsw: "NSW",
|
|
11
|
+
Vic: "VIC",
|
|
12
|
+
Qld: "QLD",
|
|
13
|
+
Wa: "WA",
|
|
14
|
+
Tas: "TAS",
|
|
15
|
+
Act: "ACT",
|
|
16
|
+
Nt: "NT",
|
|
17
|
+
} as const;
|
|
18
|
+
export type AustralianStatesAndTerritories = ClosedEnum<
|
|
19
|
+
typeof AustralianStatesAndTerritories
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const AustralianStatesAndTerritories$inboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof AustralianStatesAndTerritories
|
|
25
|
+
> = z.nativeEnum(AustralianStatesAndTerritories);
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const AustralianStatesAndTerritories$outboundSchema: z.ZodNativeEnum<
|
|
29
|
+
typeof AustralianStatesAndTerritories
|
|
30
|
+
> = AustralianStatesAndTerritories$inboundSchema;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export namespace AustralianStatesAndTerritories$ {
|
|
37
|
+
/** @deprecated use `AustralianStatesAndTerritories$inboundSchema` instead. */
|
|
38
|
+
export const inboundSchema = AustralianStatesAndTerritories$inboundSchema;
|
|
39
|
+
/** @deprecated use `AustralianStatesAndTerritories$outboundSchema` instead. */
|
|
40
|
+
export const outboundSchema = AustralianStatesAndTerritories$outboundSchema;
|
|
41
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AustralianStatesAndTerritories,
|
|
11
|
+
AustralianStatesAndTerritories$inboundSchema,
|
|
12
|
+
AustralianStatesAndTerritories$outboundSchema,
|
|
13
|
+
} from "./australianstatesandterritories.js";
|
|
14
|
+
|
|
15
|
+
export type EntityAttributes = {
|
|
16
|
+
businessNames: Array<string>;
|
|
17
|
+
entityName: string;
|
|
18
|
+
abn: string;
|
|
19
|
+
acn: string;
|
|
20
|
+
state: AustralianStatesAndTerritories;
|
|
21
|
+
entityType?: string | undefined;
|
|
22
|
+
gst?: string | undefined;
|
|
23
|
+
abnStatus?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* in format YYYY-MM-DD
|
|
26
|
+
*/
|
|
27
|
+
abnStatusEffectiveFrom?: string | undefined;
|
|
28
|
+
monthsInBusiness?: number | undefined;
|
|
29
|
+
turnover?: number | undefined;
|
|
30
|
+
industryType?: string | undefined;
|
|
31
|
+
ppsr?: string | undefined;
|
|
32
|
+
emails?: Array<string> | undefined;
|
|
33
|
+
phoneNumbers?: Array<string> | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const EntityAttributes$inboundSchema: z.ZodType<
|
|
38
|
+
EntityAttributes,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
businessNames: z.array(z.string()),
|
|
43
|
+
entityName: z.string(),
|
|
44
|
+
abn: z.string(),
|
|
45
|
+
acn: z.string(),
|
|
46
|
+
state: AustralianStatesAndTerritories$inboundSchema,
|
|
47
|
+
entityType: z.string().optional(),
|
|
48
|
+
gst: z.string().optional(),
|
|
49
|
+
abnStatus: z.string().optional(),
|
|
50
|
+
abnStatusEffectiveFrom: z.string().optional(),
|
|
51
|
+
monthsInBusiness: z.number().int().optional(),
|
|
52
|
+
turnover: z.number().int().optional(),
|
|
53
|
+
industryType: z.string().optional(),
|
|
54
|
+
ppsr: z.string().optional(),
|
|
55
|
+
emails: z.array(z.string()).optional(),
|
|
56
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type EntityAttributes$Outbound = {
|
|
61
|
+
businessNames: Array<string>;
|
|
62
|
+
entityName: string;
|
|
63
|
+
abn: string;
|
|
64
|
+
acn: string;
|
|
65
|
+
state: string;
|
|
66
|
+
entityType?: string | undefined;
|
|
67
|
+
gst?: string | undefined;
|
|
68
|
+
abnStatus?: string | undefined;
|
|
69
|
+
abnStatusEffectiveFrom?: string | undefined;
|
|
70
|
+
monthsInBusiness?: number | undefined;
|
|
71
|
+
turnover?: number | undefined;
|
|
72
|
+
industryType?: string | undefined;
|
|
73
|
+
ppsr?: string | undefined;
|
|
74
|
+
emails?: Array<string> | undefined;
|
|
75
|
+
phoneNumbers?: Array<string> | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const EntityAttributes$outboundSchema: z.ZodType<
|
|
80
|
+
EntityAttributes$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
EntityAttributes
|
|
83
|
+
> = z.object({
|
|
84
|
+
businessNames: z.array(z.string()),
|
|
85
|
+
entityName: z.string(),
|
|
86
|
+
abn: z.string(),
|
|
87
|
+
acn: z.string(),
|
|
88
|
+
state: AustralianStatesAndTerritories$outboundSchema,
|
|
89
|
+
entityType: z.string().optional(),
|
|
90
|
+
gst: z.string().optional(),
|
|
91
|
+
abnStatus: z.string().optional(),
|
|
92
|
+
abnStatusEffectiveFrom: z.string().optional(),
|
|
93
|
+
monthsInBusiness: z.number().int().optional(),
|
|
94
|
+
turnover: z.number().int().optional(),
|
|
95
|
+
industryType: z.string().optional(),
|
|
96
|
+
ppsr: z.string().optional(),
|
|
97
|
+
emails: z.array(z.string()).optional(),
|
|
98
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export namespace EntityAttributes$ {
|
|
106
|
+
/** @deprecated use `EntityAttributes$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema = EntityAttributes$inboundSchema;
|
|
108
|
+
/** @deprecated use `EntityAttributes$outboundSchema` instead. */
|
|
109
|
+
export const outboundSchema = EntityAttributes$outboundSchema;
|
|
110
|
+
/** @deprecated use `EntityAttributes$Outbound` instead. */
|
|
111
|
+
export type Outbound = EntityAttributes$Outbound;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function entityAttributesToJSON(
|
|
115
|
+
entityAttributes: EntityAttributes,
|
|
116
|
+
): string {
|
|
117
|
+
return JSON.stringify(
|
|
118
|
+
EntityAttributes$outboundSchema.parse(entityAttributes),
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function entityAttributesFromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<EntityAttributes, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => EntityAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'EntityAttributes' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
@@ -10,11 +10,13 @@ export * from "./applicationresourcebulksubmission.js";
|
|
|
10
10
|
export * from "./applicationstatus.js";
|
|
11
11
|
export * from "./applicationtype.js";
|
|
12
12
|
export * from "./assetattributes.js";
|
|
13
|
+
export * from "./australianstatesandterritories.js";
|
|
13
14
|
export * from "./commercialassettype.js";
|
|
14
15
|
export * from "./consumerassettype.js";
|
|
15
16
|
export * from "./customerattributes.js";
|
|
16
17
|
export * from "./customeridtype.js";
|
|
17
18
|
export * from "./customertitle.js";
|
|
19
|
+
export * from "./entityattributes.js";
|
|
18
20
|
export * from "./errorsource.js";
|
|
19
21
|
export * from "./forbiddenerror.js";
|
|
20
22
|
export * from "./frequencytype.js";
|
|
@@ -29,11 +29,11 @@ export type TokenRequest = {
|
|
|
29
29
|
*/
|
|
30
30
|
grantType: GrantType;
|
|
31
31
|
/**
|
|
32
|
-
* The client ID
|
|
32
|
+
* The client ID issued to you, by Financeable, for service integration.
|
|
33
33
|
*/
|
|
34
34
|
clientId: string;
|
|
35
35
|
/**
|
|
36
|
-
* The client secret
|
|
36
|
+
* The client secret issued to you, by Financeable, for service integration.
|
|
37
37
|
*/
|
|
38
38
|
clientSecret: string;
|
|
39
39
|
/**
|