@financeable/aggregation 0.15.0 → 0.15.2
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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/models/components/abnstatus1.d.ts +13 -0
- package/models/components/abnstatus1.d.ts.map +1 -0
- package/models/components/{entityattributesinput.js → abnstatus1.js} +11 -15
- package/models/components/abnstatus1.js.map +1 -0
- package/models/components/businessloanbusinessapplicationrelationships.d.ts +1 -1
- package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -1
- package/models/components/businessloanbusinessapplicationrelationships.js +2 -2
- package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +2 -2
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/employerattributes.d.ts +2 -2
- package/models/components/employerattributes.d.ts.map +1 -1
- package/models/components/employerattributes.js +2 -2
- package/models/components/employerattributes.js.map +1 -1
- package/models/components/{entitytype.d.ts → employerentitytype.d.ts} +4 -4
- package/models/components/employerentitytype.d.ts.map +1 -0
- package/models/components/{entitytype.js → employerentitytype.js} +4 -5
- package/models/components/employerentitytype.js.map +1 -0
- package/models/components/entityattributes.d.ts +64 -12
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +46 -9
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/index.d.ts +2 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -2
- package/models/components/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/abnstatus1.ts +20 -0
- package/src/models/components/businessloanbusinessapplicationrelationships.ts +1 -1
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1 -1
- package/src/models/components/employerattributes.ts +6 -3
- package/src/models/components/{entitytype.ts → employerentitytype.ts} +5 -4
- package/src/models/components/entityattributes.ts +97 -18
- package/src/models/components/index.ts +2 -2
- package/models/components/entityattributesinput.d.ts +0 -24
- package/models/components/entityattributesinput.d.ts.map +0 -1
- package/models/components/entityattributesinput.js.map +0 -1
- package/models/components/entitytype.d.ts.map +0 -1
- package/models/components/entitytype.js.map +0 -1
- package/src/models/components/entityattributesinput.ts +0 -49
|
@@ -2,6 +2,7 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { ABNStatus1 } from "./abnstatus1.js";
|
|
5
6
|
/**
|
|
6
7
|
* Derived from ABR lookup.
|
|
7
8
|
*/
|
|
@@ -20,17 +21,34 @@ export declare const State: {
|
|
|
20
21
|
*/
|
|
21
22
|
export type State = ClosedEnum<typeof State>;
|
|
22
23
|
/**
|
|
23
|
-
* Derived from ABR lookup.
|
|
24
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
24
25
|
*/
|
|
25
|
-
export declare const
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
26
|
+
export declare const EntityType: {
|
|
27
|
+
readonly IndividualSoleTrader: "INDIVIDUAL_SOLE_TRADER";
|
|
28
|
+
readonly AustralianPrivateCompany: "AUSTRALIAN_PRIVATE_COMPANY";
|
|
29
|
+
readonly AustralianPublicCompany: "AUSTRALIAN_PUBLIC_COMPANY";
|
|
30
|
+
readonly CashManagementTrust: "CASH_MANAGEMENT_TRUST";
|
|
31
|
+
readonly CorporateUnitTrust: "CORPORATE_UNIT_TRUST";
|
|
32
|
+
readonly DiscretionaryInvestmentTrust: "DISCRETIONARY_INVESTMENT_TRUST";
|
|
33
|
+
readonly DiscretionaryServicesManagementTrust: "DISCRETIONARY_SERVICES_MANAGEMENT_TRUST";
|
|
34
|
+
readonly DiscretionaryTradingTrust: "DISCRETIONARY_TRADING_TRUST";
|
|
35
|
+
readonly FirstHomeSaverAccountsFhsaTrust: "FIRST_HOME_SAVER_ACCOUNTS_FHSA_TRUST";
|
|
36
|
+
readonly FixedTrust: "FIXED_TRUST";
|
|
37
|
+
readonly FixedUnitTrust: "FIXED_UNIT_TRUST";
|
|
38
|
+
readonly HybridTrust: "HYBRID_TRUST";
|
|
39
|
+
readonly ListedPublicUnitTrust: "LISTED_PUBLIC_UNIT_TRUST";
|
|
40
|
+
readonly OtherTrust: "OTHER_TRUST";
|
|
41
|
+
readonly PooledSuperannuationTrust: "POOLED_SUPERANNUATION_TRUST";
|
|
42
|
+
readonly PublicTradingTrust: "PUBLIC_TRADING_TRUST";
|
|
43
|
+
readonly UnlistedPublicUnitTrust: "UNLISTED_PUBLIC_UNIT_TRUST";
|
|
44
|
+
readonly FamilyPartnership: "FAMILY_PARTNERSHIP";
|
|
45
|
+
readonly LimitedPartnership: "LIMITED_PARTNERSHIP";
|
|
46
|
+
readonly OtherPartnership: "OTHER_PARTNERSHIP";
|
|
29
47
|
};
|
|
30
48
|
/**
|
|
31
|
-
* Derived from ABR lookup.
|
|
49
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
32
50
|
*/
|
|
33
|
-
export type
|
|
51
|
+
export type EntityType = ClosedEnum<typeof EntityType>;
|
|
34
52
|
export type EntityAttributes = {
|
|
35
53
|
id?: string | undefined;
|
|
36
54
|
/**
|
|
@@ -48,17 +66,17 @@ export type EntityAttributes = {
|
|
|
48
66
|
*/
|
|
49
67
|
state?: State | undefined;
|
|
50
68
|
/**
|
|
51
|
-
* Derived from ABR lookup.
|
|
69
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
52
70
|
*/
|
|
53
|
-
entityType
|
|
71
|
+
entityType: EntityType;
|
|
54
72
|
/**
|
|
55
73
|
* Derived from ABR lookup.
|
|
56
74
|
*/
|
|
57
75
|
gst?: string | undefined;
|
|
58
76
|
/**
|
|
59
|
-
* Derived from ABR lookup.
|
|
77
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
60
78
|
*/
|
|
61
|
-
abnStatus
|
|
79
|
+
abnStatus: ABNStatus1;
|
|
62
80
|
/**
|
|
63
81
|
* Derived from ABR lookup. Format YYYY-MM-DD
|
|
64
82
|
*/
|
|
@@ -76,11 +94,45 @@ export type EntityAttributes = {
|
|
|
76
94
|
emails?: Array<string> | undefined;
|
|
77
95
|
phoneNumbers?: Array<string> | undefined;
|
|
78
96
|
};
|
|
97
|
+
export type EntityAttributesInput = {
|
|
98
|
+
id?: string | undefined;
|
|
99
|
+
entityName?: string | undefined;
|
|
100
|
+
abn?: string | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
103
|
+
*/
|
|
104
|
+
entityType: EntityType;
|
|
105
|
+
/**
|
|
106
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
107
|
+
*/
|
|
108
|
+
abnStatus: ABNStatus1;
|
|
109
|
+
turnover?: number | undefined;
|
|
110
|
+
industryType?: string | undefined;
|
|
111
|
+
emails?: Array<string> | undefined;
|
|
112
|
+
phoneNumbers?: Array<string> | undefined;
|
|
113
|
+
};
|
|
79
114
|
/** @internal */
|
|
80
115
|
export declare const State$inboundSchema: z.ZodNativeEnum<typeof State>;
|
|
81
116
|
/** @internal */
|
|
82
|
-
export declare const
|
|
117
|
+
export declare const EntityType$inboundSchema: z.ZodNativeEnum<typeof EntityType>;
|
|
118
|
+
/** @internal */
|
|
119
|
+
export declare const EntityType$outboundSchema: z.ZodNativeEnum<typeof EntityType>;
|
|
83
120
|
/** @internal */
|
|
84
121
|
export declare const EntityAttributes$inboundSchema: z.ZodType<EntityAttributes, z.ZodTypeDef, unknown>;
|
|
85
122
|
export declare function entityAttributesFromJSON(jsonString: string): SafeParseResult<EntityAttributes, SDKValidationError>;
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type EntityAttributesInput$Outbound = {
|
|
125
|
+
id?: string | undefined;
|
|
126
|
+
entityName?: string | undefined;
|
|
127
|
+
abn?: string | undefined;
|
|
128
|
+
entityType: string;
|
|
129
|
+
abnStatus: string;
|
|
130
|
+
turnover?: number | undefined;
|
|
131
|
+
industryType?: string | undefined;
|
|
132
|
+
emails?: Array<string> | undefined;
|
|
133
|
+
phoneNumbers?: Array<string> | undefined;
|
|
134
|
+
};
|
|
135
|
+
/** @internal */
|
|
136
|
+
export declare const EntityAttributesInput$outboundSchema: z.ZodType<EntityAttributesInput$Outbound, z.ZodTypeDef, EntityAttributesInput>;
|
|
137
|
+
export declare function entityAttributesInputToJSON(entityAttributesInput: EntityAttributesInput): string;
|
|
86
138
|
//# sourceMappingURL=entityattributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/entityattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"entityattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/entityattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AA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ACxB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAWrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR"}
|
|
@@ -36,10 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.EntityAttributes$inboundSchema = exports.
|
|
39
|
+
exports.EntityAttributesInput$outboundSchema = exports.EntityAttributes$inboundSchema = exports.EntityType$outboundSchema = exports.EntityType$inboundSchema = exports.State$inboundSchema = exports.EntityType = exports.State = void 0;
|
|
40
40
|
exports.entityAttributesFromJSON = entityAttributesFromJSON;
|
|
41
|
+
exports.entityAttributesInputToJSON = entityAttributesInputToJSON;
|
|
41
42
|
const z = __importStar(require("zod/v3"));
|
|
42
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const abnstatus1_js_1 = require("./abnstatus1.js");
|
|
43
45
|
/**
|
|
44
46
|
* Derived from ABR lookup.
|
|
45
47
|
*/
|
|
@@ -54,17 +56,37 @@ exports.State = {
|
|
|
54
56
|
Nt: "NT",
|
|
55
57
|
};
|
|
56
58
|
/**
|
|
57
|
-
* Derived from ABR lookup.
|
|
59
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
58
60
|
*/
|
|
59
|
-
exports.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
exports.EntityType = {
|
|
62
|
+
IndividualSoleTrader: "INDIVIDUAL_SOLE_TRADER",
|
|
63
|
+
AustralianPrivateCompany: "AUSTRALIAN_PRIVATE_COMPANY",
|
|
64
|
+
AustralianPublicCompany: "AUSTRALIAN_PUBLIC_COMPANY",
|
|
65
|
+
CashManagementTrust: "CASH_MANAGEMENT_TRUST",
|
|
66
|
+
CorporateUnitTrust: "CORPORATE_UNIT_TRUST",
|
|
67
|
+
DiscretionaryInvestmentTrust: "DISCRETIONARY_INVESTMENT_TRUST",
|
|
68
|
+
DiscretionaryServicesManagementTrust: "DISCRETIONARY_SERVICES_MANAGEMENT_TRUST",
|
|
69
|
+
DiscretionaryTradingTrust: "DISCRETIONARY_TRADING_TRUST",
|
|
70
|
+
FirstHomeSaverAccountsFhsaTrust: "FIRST_HOME_SAVER_ACCOUNTS_FHSA_TRUST",
|
|
71
|
+
FixedTrust: "FIXED_TRUST",
|
|
72
|
+
FixedUnitTrust: "FIXED_UNIT_TRUST",
|
|
73
|
+
HybridTrust: "HYBRID_TRUST",
|
|
74
|
+
ListedPublicUnitTrust: "LISTED_PUBLIC_UNIT_TRUST",
|
|
75
|
+
OtherTrust: "OTHER_TRUST",
|
|
76
|
+
PooledSuperannuationTrust: "POOLED_SUPERANNUATION_TRUST",
|
|
77
|
+
PublicTradingTrust: "PUBLIC_TRADING_TRUST",
|
|
78
|
+
UnlistedPublicUnitTrust: "UNLISTED_PUBLIC_UNIT_TRUST",
|
|
79
|
+
FamilyPartnership: "FAMILY_PARTNERSHIP",
|
|
80
|
+
LimitedPartnership: "LIMITED_PARTNERSHIP",
|
|
81
|
+
OtherPartnership: "OTHER_PARTNERSHIP",
|
|
63
82
|
};
|
|
64
83
|
/** @internal */
|
|
65
84
|
exports.State$inboundSchema = z.nativeEnum(exports.State);
|
|
66
85
|
/** @internal */
|
|
67
|
-
exports.
|
|
86
|
+
exports.EntityType$inboundSchema = z
|
|
87
|
+
.nativeEnum(exports.EntityType);
|
|
88
|
+
/** @internal */
|
|
89
|
+
exports.EntityType$outboundSchema = exports.EntityType$inboundSchema;
|
|
68
90
|
/** @internal */
|
|
69
91
|
exports.EntityAttributes$inboundSchema = z.object({
|
|
70
92
|
id: z.string().optional(),
|
|
@@ -73,9 +95,9 @@ exports.EntityAttributes$inboundSchema = z.object({
|
|
|
73
95
|
abn: z.string().optional(),
|
|
74
96
|
acn: z.string().optional(),
|
|
75
97
|
state: exports.State$inboundSchema.optional(),
|
|
76
|
-
entityType:
|
|
98
|
+
entityType: exports.EntityType$inboundSchema,
|
|
77
99
|
gst: z.string().optional(),
|
|
78
|
-
abnStatus:
|
|
100
|
+
abnStatus: abnstatus1_js_1.ABNStatus1$inboundSchema,
|
|
79
101
|
abnStatusEffectiveFrom: z.string().optional(),
|
|
80
102
|
timeInBusiness: z.number().int().optional(),
|
|
81
103
|
turnover: z.number().int().optional(),
|
|
@@ -87,4 +109,19 @@ exports.EntityAttributes$inboundSchema = z.object({
|
|
|
87
109
|
function entityAttributesFromJSON(jsonString) {
|
|
88
110
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntityAttributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntityAttributes' from JSON`);
|
|
89
111
|
}
|
|
112
|
+
/** @internal */
|
|
113
|
+
exports.EntityAttributesInput$outboundSchema = z.object({
|
|
114
|
+
id: z.string().optional(),
|
|
115
|
+
entityName: z.string().optional(),
|
|
116
|
+
abn: z.string().optional(),
|
|
117
|
+
entityType: exports.EntityType$outboundSchema,
|
|
118
|
+
abnStatus: abnstatus1_js_1.ABNStatus1$outboundSchema,
|
|
119
|
+
turnover: z.number().int().optional(),
|
|
120
|
+
industryType: z.string().optional(),
|
|
121
|
+
emails: z.array(z.string()).optional(),
|
|
122
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
123
|
+
});
|
|
124
|
+
function entityAttributesInputToJSON(entityAttributesInput) {
|
|
125
|
+
return JSON.stringify(exports.EntityAttributesInput$outboundSchema.parse(entityAttributesInput));
|
|
126
|
+
}
|
|
90
127
|
//# sourceMappingURL=entityattributes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityattributes.js","sourceRoot":"","sources":["../../src/models/components/entityattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"entityattributes.js","sourceRoot":"","sources":["../../src/models/components/entityattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkKH,4DAQC;AAgCD,kEAMC;AA9MD,0CAA4B;AAC5B,qDAAiD;AAIjD,mDAIyB;AAEzB;;GAEG;AACU,QAAA,KAAK,GAAG;IACnB,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,IAAI;CACA,CAAC;AAMX;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,oBAAoB,EAAE,wBAAwB;IAC9C,wBAAwB,EAAE,4BAA4B;IACtD,uBAAuB,EAAE,2BAA2B;IACpD,mBAAmB,EAAE,uBAAuB;IAC5C,kBAAkB,EAAE,sBAAsB;IAC1C,4BAA4B,EAAE,gCAAgC;IAC9D,oCAAoC,EAClC,yCAAyC;IAC3C,yBAAyB,EAAE,6BAA6B;IACxD,+BAA+B,EAAE,sCAAsC;IACvE,UAAU,EAAE,aAAa;IACzB,cAAc,EAAE,kBAAkB;IAClC,WAAW,EAAE,cAAc;IAC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,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./abnstatus.js";
|
|
2
|
+
export * from "./abnstatus1.js";
|
|
2
3
|
export * from "./addressattributes.js";
|
|
3
4
|
export * from "./apierrorlinks.js";
|
|
4
5
|
export * from "./applicationresource.js";
|
|
@@ -37,11 +38,10 @@ export * from "./customerliabilitytype.js";
|
|
|
37
38
|
export * from "./customertitle.js";
|
|
38
39
|
export * from "./documenttype.js";
|
|
39
40
|
export * from "./employerattributes.js";
|
|
41
|
+
export * from "./employerentitytype.js";
|
|
40
42
|
export * from "./employmentstatus.js";
|
|
41
43
|
export * from "./employmenttype.js";
|
|
42
44
|
export * from "./entityattributes.js";
|
|
43
|
-
export * from "./entityattributesinput.js";
|
|
44
|
-
export * from "./entitytype.js";
|
|
45
45
|
export * from "./errorsource.js";
|
|
46
46
|
export * from "./expenseattributes.js";
|
|
47
47
|
export * from "./expensefrequency.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mDAAmD,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,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mDAAmD,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -18,6 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./abnstatus.js"), exports);
|
|
21
|
+
__exportStar(require("./abnstatus1.js"), exports);
|
|
21
22
|
__exportStar(require("./addressattributes.js"), exports);
|
|
22
23
|
__exportStar(require("./apierrorlinks.js"), exports);
|
|
23
24
|
__exportStar(require("./applicationresource.js"), exports);
|
|
@@ -56,11 +57,10 @@ __exportStar(require("./customerliabilitytype.js"), exports);
|
|
|
56
57
|
__exportStar(require("./customertitle.js"), exports);
|
|
57
58
|
__exportStar(require("./documenttype.js"), exports);
|
|
58
59
|
__exportStar(require("./employerattributes.js"), exports);
|
|
60
|
+
__exportStar(require("./employerentitytype.js"), exports);
|
|
59
61
|
__exportStar(require("./employmentstatus.js"), exports);
|
|
60
62
|
__exportStar(require("./employmenttype.js"), exports);
|
|
61
63
|
__exportStar(require("./entityattributes.js"), exports);
|
|
62
|
-
__exportStar(require("./entityattributesinput.js"), exports);
|
|
63
|
-
__exportStar(require("./entitytype.js"), exports);
|
|
64
64
|
__exportStar(require("./errorsource.js"), exports);
|
|
65
65
|
__exportStar(require("./expenseattributes.js"), exports);
|
|
66
66
|
__exportStar(require("./expensefrequency.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,2DAAyC;AACzC,yDAAuC;AACvC,sEAAoD;AACpD,uDAAqC;AACrC,+EAA6D;AAC7D,kEAAgD;AAChD,mEAAiD;AACjD,oFAAkE;AAClE,2DAAyC;AACzC,iFAA+D;AAC/D,2EAAyD;AACzD,4EAA0D;AAC1D,4EAA0D;AAC1D,sEAAoD;AACpD,+FAA6E;AAC7E,uEAAqD;AACrD,+EAA6D;AAC7D,yEAAuD;AACvD,0EAAwD;AACxD,0EAAwD;AACxD,oEAAkD;AAClD,2FAAyE;AACzE,qEAAmD;AACnD,yEAAuD;AACvD,2DAAyC;AACzC,+DAA6C;AAC7C,yDAAuC;AACvC,0DAAwC;AACxC,oEAAkD;AAClD,sDAAoC;AACpC,mEAAiD;AACjD,2EAAyD;AACzD,6DAA2C;AAC3C,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,wDAAsC;AACtC,sDAAoC;AACpC,wDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC;AACvC,qDAAmC;AACnC,2DAAyC;AACzC,yDAAuC;AACvC,sEAAoD;AACpD,uDAAqC;AACrC,+EAA6D;AAC7D,kEAAgD;AAChD,mEAAiD;AACjD,oFAAkE;AAClE,2DAAyC;AACzC,iFAA+D;AAC/D,2EAAyD;AACzD,4EAA0D;AAC1D,4EAA0D;AAC1D,sEAAoD;AACpD,+FAA6E;AAC7E,uEAAqD;AACrD,+EAA6D;AAC7D,yEAAuD;AACvD,0EAAwD;AACxD,0EAAwD;AACxD,oEAAkD;AAClD,2FAAyE;AACzE,qEAAmD;AACnD,yEAAuD;AACvD,2DAAyC;AACzC,+DAA6C;AAC7C,yDAAuC;AACvC,0DAAwC;AACxC,oEAAkD;AAClD,sDAAoC;AACpC,mEAAiD;AACjD,2EAAyD;AACzD,6DAA2C;AAC3C,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,0DAAwC;AACxC,wDAAsC;AACtC,sDAAoC;AACpC,wDAAsC;AACtC,mDAAiC;AACjC,yDAAuC;AACvC,wDAAsC;AACtC,mDAAiC;AACjC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,uDAAqC;AACrC,kDAAgC;AAChC,gDAA8B;AAC9B,kDAAgC;AAChC,0DAAwC;AACxC,6DAA2C;AAC3C,qDAAmC;AACnC,wDAAsC;AACtC,kDAAgC;AAChC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,+EAA6D;AAC7D,kEAAgD;AAChD,mEAAiD;AACjD,oFAAkE;AAClE,2DAAyC;AACzC,oEAAkD;AAClD,0DAAwC;AACxC,uDAAqC;AACrC,wDAAsC;AACtC,gDAA8B;AAC9B,oEAAkD;AAClD,yEAAuD;AACvD,uEAAqD;AACrD,kEAAgD;AAChD,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "0.4.0",
|
|
61
|
-
sdkVersion: "0.15.
|
|
62
|
-
genVersion: "2.
|
|
61
|
+
sdkVersion: "0.15.2",
|
|
62
|
+
genVersion: "2.794.1",
|
|
63
63
|
userAgent:
|
|
64
|
-
"speakeasy-sdk/typescript 0.15.
|
|
64
|
+
"speakeasy-sdk/typescript 0.15.2 2.794.1 0.4.0 @financeable/aggregation",
|
|
65
65
|
} as const;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -308,9 +308,9 @@ export class ClientSDK {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
const jsonLikeContentTypeRE =
|
|
311
|
+
const jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
|
|
312
312
|
const jsonlLikeContentTypeRE =
|
|
313
|
-
|
|
313
|
+
/^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
|
|
314
314
|
async function logRequest(logger: Logger | undefined, req: Request) {
|
|
315
315
|
if (!logger) {
|
|
316
316
|
return;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ABNStatus1 = {
|
|
9
|
+
Active: "active",
|
|
10
|
+
Registered: "registered",
|
|
11
|
+
Cancelled: "cancelled",
|
|
12
|
+
} as const;
|
|
13
|
+
export type ABNStatus1 = ClosedEnum<typeof ABNStatus1>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ABNStatus1$inboundSchema: z.ZodNativeEnum<typeof ABNStatus1> = z
|
|
17
|
+
.nativeEnum(ABNStatus1);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ABNStatus1$outboundSchema: z.ZodNativeEnum<typeof ABNStatus1> =
|
|
20
|
+
ABNStatus1$inboundSchema;
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { AbnStatus, AbnStatus$outboundSchema } from "./abnstatus.js";
|
|
7
|
+
import {
|
|
8
|
+
EmployerEntityType,
|
|
9
|
+
EmployerEntityType$outboundSchema,
|
|
10
|
+
} from "./employerentitytype.js";
|
|
7
11
|
import {
|
|
8
12
|
EmploymentStatus,
|
|
9
13
|
EmploymentStatus$outboundSchema,
|
|
@@ -12,7 +16,6 @@ import {
|
|
|
12
16
|
EmploymentType,
|
|
13
17
|
EmploymentType$outboundSchema,
|
|
14
18
|
} from "./employmenttype.js";
|
|
15
|
-
import { EntityType, EntityType$outboundSchema } from "./entitytype.js";
|
|
16
19
|
import { Industry, Industry$outboundSchema } from "./industry.js";
|
|
17
20
|
import { Occupation, Occupation$outboundSchema } from "./occupation.js";
|
|
18
21
|
|
|
@@ -22,7 +25,7 @@ export type EmployerAttributes = {
|
|
|
22
25
|
status?: EmploymentStatus | undefined;
|
|
23
26
|
abn?: string | undefined;
|
|
24
27
|
acn?: string | undefined;
|
|
25
|
-
entityType?:
|
|
28
|
+
entityType?: EmployerEntityType | undefined;
|
|
26
29
|
/**
|
|
27
30
|
* Format YYYY-MM-DD
|
|
28
31
|
*/
|
|
@@ -76,7 +79,7 @@ export const EmployerAttributes$outboundSchema: z.ZodType<
|
|
|
76
79
|
status: EmploymentStatus$outboundSchema.optional(),
|
|
77
80
|
abn: z.string().optional(),
|
|
78
81
|
acn: z.string().optional(),
|
|
79
|
-
entityType:
|
|
82
|
+
entityType: EmployerEntityType$outboundSchema.optional(),
|
|
80
83
|
gstRegistrationDate: z.string().optional(),
|
|
81
84
|
abnStatus: AbnStatus$outboundSchema.optional(),
|
|
82
85
|
employmentType: EmploymentType$outboundSchema.optional(),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const EmployerEntityType = {
|
|
9
9
|
ApprovedDepositFund: "APPROVED_DEPOSIT_FUND",
|
|
10
10
|
ApraRegulatedFundUnknown: "APRA_REGULATED_FUND_UNKNOWN",
|
|
11
11
|
Cooperative: "COOPERATIVE",
|
|
@@ -208,8 +208,9 @@ export const EntityType = {
|
|
|
208
208
|
FirstHomeSaverAccountsTrust: "FIRST_HOME_SAVER_ACCOUNTS_TRUST",
|
|
209
209
|
CcivSubFund: "CCIV_SUB_FUND",
|
|
210
210
|
} as const;
|
|
211
|
-
export type
|
|
211
|
+
export type EmployerEntityType = ClosedEnum<typeof EmployerEntityType>;
|
|
212
212
|
|
|
213
213
|
/** @internal */
|
|
214
|
-
export const
|
|
215
|
-
|
|
214
|
+
export const EmployerEntityType$outboundSchema: z.ZodNativeEnum<
|
|
215
|
+
typeof EmployerEntityType
|
|
216
|
+
> = z.nativeEnum(EmployerEntityType);
|
|
@@ -7,6 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ABNStatus1,
|
|
12
|
+
ABNStatus1$inboundSchema,
|
|
13
|
+
ABNStatus1$outboundSchema,
|
|
14
|
+
} from "./abnstatus1.js";
|
|
10
15
|
|
|
11
16
|
/**
|
|
12
17
|
* Derived from ABR lookup.
|
|
@@ -27,19 +32,35 @@ export const State = {
|
|
|
27
32
|
export type State = ClosedEnum<typeof State>;
|
|
28
33
|
|
|
29
34
|
/**
|
|
30
|
-
* Derived from ABR lookup.
|
|
35
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
31
36
|
*/
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
export const EntityType = {
|
|
38
|
+
IndividualSoleTrader: "INDIVIDUAL_SOLE_TRADER",
|
|
39
|
+
AustralianPrivateCompany: "AUSTRALIAN_PRIVATE_COMPANY",
|
|
40
|
+
AustralianPublicCompany: "AUSTRALIAN_PUBLIC_COMPANY",
|
|
41
|
+
CashManagementTrust: "CASH_MANAGEMENT_TRUST",
|
|
42
|
+
CorporateUnitTrust: "CORPORATE_UNIT_TRUST",
|
|
43
|
+
DiscretionaryInvestmentTrust: "DISCRETIONARY_INVESTMENT_TRUST",
|
|
44
|
+
DiscretionaryServicesManagementTrust:
|
|
45
|
+
"DISCRETIONARY_SERVICES_MANAGEMENT_TRUST",
|
|
46
|
+
DiscretionaryTradingTrust: "DISCRETIONARY_TRADING_TRUST",
|
|
47
|
+
FirstHomeSaverAccountsFhsaTrust: "FIRST_HOME_SAVER_ACCOUNTS_FHSA_TRUST",
|
|
48
|
+
FixedTrust: "FIXED_TRUST",
|
|
49
|
+
FixedUnitTrust: "FIXED_UNIT_TRUST",
|
|
50
|
+
HybridTrust: "HYBRID_TRUST",
|
|
51
|
+
ListedPublicUnitTrust: "LISTED_PUBLIC_UNIT_TRUST",
|
|
52
|
+
OtherTrust: "OTHER_TRUST",
|
|
53
|
+
PooledSuperannuationTrust: "POOLED_SUPERANNUATION_TRUST",
|
|
54
|
+
PublicTradingTrust: "PUBLIC_TRADING_TRUST",
|
|
55
|
+
UnlistedPublicUnitTrust: "UNLISTED_PUBLIC_UNIT_TRUST",
|
|
56
|
+
FamilyPartnership: "FAMILY_PARTNERSHIP",
|
|
57
|
+
LimitedPartnership: "LIMITED_PARTNERSHIP",
|
|
58
|
+
OtherPartnership: "OTHER_PARTNERSHIP",
|
|
36
59
|
} as const;
|
|
37
60
|
/**
|
|
38
|
-
* Derived from ABR lookup.
|
|
61
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
39
62
|
*/
|
|
40
|
-
export type
|
|
41
|
-
typeof EntityAttributesAbnStatus
|
|
42
|
-
>;
|
|
63
|
+
export type EntityType = ClosedEnum<typeof EntityType>;
|
|
43
64
|
|
|
44
65
|
export type EntityAttributes = {
|
|
45
66
|
id?: string | undefined;
|
|
@@ -58,17 +79,17 @@ export type EntityAttributes = {
|
|
|
58
79
|
*/
|
|
59
80
|
state?: State | undefined;
|
|
60
81
|
/**
|
|
61
|
-
* Derived from ABR lookup.
|
|
82
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
62
83
|
*/
|
|
63
|
-
entityType
|
|
84
|
+
entityType: EntityType;
|
|
64
85
|
/**
|
|
65
86
|
* Derived from ABR lookup.
|
|
66
87
|
*/
|
|
67
88
|
gst?: string | undefined;
|
|
68
89
|
/**
|
|
69
|
-
* Derived from ABR lookup.
|
|
90
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
70
91
|
*/
|
|
71
|
-
abnStatus
|
|
92
|
+
abnStatus: ABNStatus1;
|
|
72
93
|
/**
|
|
73
94
|
* Derived from ABR lookup. Format YYYY-MM-DD
|
|
74
95
|
*/
|
|
@@ -87,15 +108,35 @@ export type EntityAttributes = {
|
|
|
87
108
|
phoneNumbers?: Array<string> | undefined;
|
|
88
109
|
};
|
|
89
110
|
|
|
111
|
+
export type EntityAttributesInput = {
|
|
112
|
+
id?: string | undefined;
|
|
113
|
+
entityName?: string | undefined;
|
|
114
|
+
abn?: string | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
117
|
+
*/
|
|
118
|
+
entityType: EntityType;
|
|
119
|
+
/**
|
|
120
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
121
|
+
*/
|
|
122
|
+
abnStatus: ABNStatus1;
|
|
123
|
+
turnover?: number | undefined;
|
|
124
|
+
industryType?: string | undefined;
|
|
125
|
+
emails?: Array<string> | undefined;
|
|
126
|
+
phoneNumbers?: Array<string> | undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
90
129
|
/** @internal */
|
|
91
130
|
export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
|
|
92
131
|
State,
|
|
93
132
|
);
|
|
94
133
|
|
|
95
134
|
/** @internal */
|
|
96
|
-
export const
|
|
97
|
-
|
|
98
|
-
|
|
135
|
+
export const EntityType$inboundSchema: z.ZodNativeEnum<typeof EntityType> = z
|
|
136
|
+
.nativeEnum(EntityType);
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const EntityType$outboundSchema: z.ZodNativeEnum<typeof EntityType> =
|
|
139
|
+
EntityType$inboundSchema;
|
|
99
140
|
|
|
100
141
|
/** @internal */
|
|
101
142
|
export const EntityAttributes$inboundSchema: z.ZodType<
|
|
@@ -109,9 +150,9 @@ export const EntityAttributes$inboundSchema: z.ZodType<
|
|
|
109
150
|
abn: z.string().optional(),
|
|
110
151
|
acn: z.string().optional(),
|
|
111
152
|
state: State$inboundSchema.optional(),
|
|
112
|
-
entityType:
|
|
153
|
+
entityType: EntityType$inboundSchema,
|
|
113
154
|
gst: z.string().optional(),
|
|
114
|
-
abnStatus:
|
|
155
|
+
abnStatus: ABNStatus1$inboundSchema,
|
|
115
156
|
abnStatusEffectiveFrom: z.string().optional(),
|
|
116
157
|
timeInBusiness: z.number().int().optional(),
|
|
117
158
|
turnover: z.number().int().optional(),
|
|
@@ -130,3 +171,41 @@ export function entityAttributesFromJSON(
|
|
|
130
171
|
`Failed to parse 'EntityAttributes' from JSON`,
|
|
131
172
|
);
|
|
132
173
|
}
|
|
174
|
+
|
|
175
|
+
/** @internal */
|
|
176
|
+
export type EntityAttributesInput$Outbound = {
|
|
177
|
+
id?: string | undefined;
|
|
178
|
+
entityName?: string | undefined;
|
|
179
|
+
abn?: string | undefined;
|
|
180
|
+
entityType: string;
|
|
181
|
+
abnStatus: string;
|
|
182
|
+
turnover?: number | undefined;
|
|
183
|
+
industryType?: string | undefined;
|
|
184
|
+
emails?: Array<string> | undefined;
|
|
185
|
+
phoneNumbers?: Array<string> | undefined;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export const EntityAttributesInput$outboundSchema: z.ZodType<
|
|
190
|
+
EntityAttributesInput$Outbound,
|
|
191
|
+
z.ZodTypeDef,
|
|
192
|
+
EntityAttributesInput
|
|
193
|
+
> = z.object({
|
|
194
|
+
id: z.string().optional(),
|
|
195
|
+
entityName: z.string().optional(),
|
|
196
|
+
abn: z.string().optional(),
|
|
197
|
+
entityType: EntityType$outboundSchema,
|
|
198
|
+
abnStatus: ABNStatus1$outboundSchema,
|
|
199
|
+
turnover: z.number().int().optional(),
|
|
200
|
+
industryType: z.string().optional(),
|
|
201
|
+
emails: z.array(z.string()).optional(),
|
|
202
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
export function entityAttributesInputToJSON(
|
|
206
|
+
entityAttributesInput: EntityAttributesInput,
|
|
207
|
+
): string {
|
|
208
|
+
return JSON.stringify(
|
|
209
|
+
EntityAttributesInput$outboundSchema.parse(entityAttributesInput),
|
|
210
|
+
);
|
|
211
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./abnstatus.js";
|
|
6
|
+
export * from "./abnstatus1.js";
|
|
6
7
|
export * from "./addressattributes.js";
|
|
7
8
|
export * from "./apierrorlinks.js";
|
|
8
9
|
export * from "./applicationresource.js";
|
|
@@ -41,11 +42,10 @@ export * from "./customerliabilitytype.js";
|
|
|
41
42
|
export * from "./customertitle.js";
|
|
42
43
|
export * from "./documenttype.js";
|
|
43
44
|
export * from "./employerattributes.js";
|
|
45
|
+
export * from "./employerentitytype.js";
|
|
44
46
|
export * from "./employmentstatus.js";
|
|
45
47
|
export * from "./employmenttype.js";
|
|
46
48
|
export * from "./entityattributes.js";
|
|
47
|
-
export * from "./entityattributesinput.js";
|
|
48
|
-
export * from "./entitytype.js";
|
|
49
49
|
export * from "./errorsource.js";
|
|
50
50
|
export * from "./expenseattributes.js";
|
|
51
51
|
export * from "./expensefrequency.js";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type EntityAttributesInput = {
|
|
3
|
-
id?: string | undefined;
|
|
4
|
-
entityName?: string | undefined;
|
|
5
|
-
abn?: string | undefined;
|
|
6
|
-
turnover?: number | undefined;
|
|
7
|
-
industryType?: string | undefined;
|
|
8
|
-
emails?: Array<string> | undefined;
|
|
9
|
-
phoneNumbers?: Array<string> | undefined;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export type EntityAttributesInput$Outbound = {
|
|
13
|
-
id?: string | undefined;
|
|
14
|
-
entityName?: string | undefined;
|
|
15
|
-
abn?: string | undefined;
|
|
16
|
-
turnover?: number | undefined;
|
|
17
|
-
industryType?: string | undefined;
|
|
18
|
-
emails?: Array<string> | undefined;
|
|
19
|
-
phoneNumbers?: Array<string> | undefined;
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const EntityAttributesInput$outboundSchema: z.ZodType<EntityAttributesInput$Outbound, z.ZodTypeDef, EntityAttributesInput>;
|
|
23
|
-
export declare function entityAttributesInputToJSON(entityAttributesInput: EntityAttributesInput): string;
|
|
24
|
-
//# sourceMappingURL=entityattributesinput.d.ts.map
|