@financeable/aggregation 0.15.1 → 0.16.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/examples/package-lock.json +3 -3
- package/hooks/oauth2scopes.d.ts +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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 +6 -3
- 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 +6 -3
- 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/entityattributes.d.ts +6 -19
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +6 -16
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/entitycreateattributescreateitem.d.ts +70 -0
- package/models/components/entitycreateattributescreateitem.d.ts.map +1 -0
- package/models/components/entitycreateattributescreateitem.js +86 -0
- package/models/components/entitycreateattributescreateitem.js.map +1 -0
- package/models/components/index.d.ts +2 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -1
- package/models/components/index.js.map +1 -1
- package/package.json +3 -3
- package/src/hooks/oauth2scopes.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/abnstatus1.ts +20 -0
- package/src/models/components/businessloanbusinessapplicationrelationships.ts +10 -7
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +10 -7
- package/src/models/components/entityattributes.ts +11 -27
- package/src/models/components/entitycreateattributescreateitem.ts +103 -0
- package/src/models/components/index.ts +2 -1
- 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/src/models/components/entityattributesinput.ts +0 -49
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { ABNStatus1 } from "./abnstatus1.js";
|
|
4
|
+
/**
|
|
5
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
6
|
+
*/
|
|
7
|
+
export declare const EntityType: {
|
|
8
|
+
readonly IndividualSoleTrader: "INDIVIDUAL_SOLE_TRADER";
|
|
9
|
+
readonly AustralianPrivateCompany: "AUSTRALIAN_PRIVATE_COMPANY";
|
|
10
|
+
readonly AustralianPublicCompany: "AUSTRALIAN_PUBLIC_COMPANY";
|
|
11
|
+
readonly CashManagementTrust: "CASH_MANAGEMENT_TRUST";
|
|
12
|
+
readonly CorporateUnitTrust: "CORPORATE_UNIT_TRUST";
|
|
13
|
+
readonly DiscretionaryInvestmentTrust: "DISCRETIONARY_INVESTMENT_TRUST";
|
|
14
|
+
readonly DiscretionaryServicesManagementTrust: "DISCRETIONARY_SERVICES_MANAGEMENT_TRUST";
|
|
15
|
+
readonly DiscretionaryTradingTrust: "DISCRETIONARY_TRADING_TRUST";
|
|
16
|
+
readonly FirstHomeSaverAccountsFhsaTrust: "FIRST_HOME_SAVER_ACCOUNTS_FHSA_TRUST";
|
|
17
|
+
readonly FixedTrust: "FIXED_TRUST";
|
|
18
|
+
readonly FixedUnitTrust: "FIXED_UNIT_TRUST";
|
|
19
|
+
readonly HybridTrust: "HYBRID_TRUST";
|
|
20
|
+
readonly ListedPublicUnitTrust: "LISTED_PUBLIC_UNIT_TRUST";
|
|
21
|
+
readonly OtherTrust: "OTHER_TRUST";
|
|
22
|
+
readonly PooledSuperannuationTrust: "POOLED_SUPERANNUATION_TRUST";
|
|
23
|
+
readonly PublicTradingTrust: "PUBLIC_TRADING_TRUST";
|
|
24
|
+
readonly UnlistedPublicUnitTrust: "UNLISTED_PUBLIC_UNIT_TRUST";
|
|
25
|
+
readonly FamilyPartnership: "FAMILY_PARTNERSHIP";
|
|
26
|
+
readonly LimitedPartnership: "LIMITED_PARTNERSHIP";
|
|
27
|
+
readonly OtherPartnership: "OTHER_PARTNERSHIP";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
31
|
+
*/
|
|
32
|
+
export type EntityType = ClosedEnum<typeof EntityType>;
|
|
33
|
+
/**
|
|
34
|
+
* Entity attributes for create operations. entityType remains mandatory for writes.
|
|
35
|
+
*/
|
|
36
|
+
export type EntityCreateAttributesCreateItem = {
|
|
37
|
+
id?: string | undefined;
|
|
38
|
+
entityName?: string | undefined;
|
|
39
|
+
abn?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
42
|
+
*/
|
|
43
|
+
entityType: EntityType;
|
|
44
|
+
/**
|
|
45
|
+
* Derived from ABR lookup.
|
|
46
|
+
*/
|
|
47
|
+
abnStatus?: ABNStatus1 | undefined;
|
|
48
|
+
turnover?: number | undefined;
|
|
49
|
+
industryType?: string | undefined;
|
|
50
|
+
emails?: Array<string> | undefined;
|
|
51
|
+
phoneNumbers?: Array<string> | undefined;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const EntityType$outboundSchema: z.ZodNativeEnum<typeof EntityType>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type EntityCreateAttributesCreateItem$Outbound = {
|
|
57
|
+
id?: string | undefined;
|
|
58
|
+
entityName?: string | undefined;
|
|
59
|
+
abn?: string | undefined;
|
|
60
|
+
entityType: string;
|
|
61
|
+
abnStatus?: string | undefined;
|
|
62
|
+
turnover?: number | undefined;
|
|
63
|
+
industryType?: string | undefined;
|
|
64
|
+
emails?: Array<string> | undefined;
|
|
65
|
+
phoneNumbers?: Array<string> | undefined;
|
|
66
|
+
};
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const EntityCreateAttributesCreateItem$outboundSchema: z.ZodType<EntityCreateAttributesCreateItem$Outbound, z.ZodTypeDef, EntityCreateAttributesCreateItem>;
|
|
69
|
+
export declare function entityCreateAttributesCreateItemToJSON(entityCreateAttributesCreateItem: EntityCreateAttributesCreateItem): string;
|
|
70
|
+
//# sourceMappingURL=entitycreateattributescreateitem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitycreateattributescreateitem.d.ts","sourceRoot":"","sources":["../../src/models/components/entitycreateattributescreateitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAA6B,MAAM,iBAAiB,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAsBb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC,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,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAChD,CAAC;AAE1B,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,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,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAWhC,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.EntityCreateAttributesCreateItem$outboundSchema = exports.EntityType$outboundSchema = exports.EntityType = void 0;
|
|
40
|
+
exports.entityCreateAttributesCreateItemToJSON = entityCreateAttributesCreateItemToJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const abnstatus1_js_1 = require("./abnstatus1.js");
|
|
43
|
+
/**
|
|
44
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
45
|
+
*/
|
|
46
|
+
exports.EntityType = {
|
|
47
|
+
IndividualSoleTrader: "INDIVIDUAL_SOLE_TRADER",
|
|
48
|
+
AustralianPrivateCompany: "AUSTRALIAN_PRIVATE_COMPANY",
|
|
49
|
+
AustralianPublicCompany: "AUSTRALIAN_PUBLIC_COMPANY",
|
|
50
|
+
CashManagementTrust: "CASH_MANAGEMENT_TRUST",
|
|
51
|
+
CorporateUnitTrust: "CORPORATE_UNIT_TRUST",
|
|
52
|
+
DiscretionaryInvestmentTrust: "DISCRETIONARY_INVESTMENT_TRUST",
|
|
53
|
+
DiscretionaryServicesManagementTrust: "DISCRETIONARY_SERVICES_MANAGEMENT_TRUST",
|
|
54
|
+
DiscretionaryTradingTrust: "DISCRETIONARY_TRADING_TRUST",
|
|
55
|
+
FirstHomeSaverAccountsFhsaTrust: "FIRST_HOME_SAVER_ACCOUNTS_FHSA_TRUST",
|
|
56
|
+
FixedTrust: "FIXED_TRUST",
|
|
57
|
+
FixedUnitTrust: "FIXED_UNIT_TRUST",
|
|
58
|
+
HybridTrust: "HYBRID_TRUST",
|
|
59
|
+
ListedPublicUnitTrust: "LISTED_PUBLIC_UNIT_TRUST",
|
|
60
|
+
OtherTrust: "OTHER_TRUST",
|
|
61
|
+
PooledSuperannuationTrust: "POOLED_SUPERANNUATION_TRUST",
|
|
62
|
+
PublicTradingTrust: "PUBLIC_TRADING_TRUST",
|
|
63
|
+
UnlistedPublicUnitTrust: "UNLISTED_PUBLIC_UNIT_TRUST",
|
|
64
|
+
FamilyPartnership: "FAMILY_PARTNERSHIP",
|
|
65
|
+
LimitedPartnership: "LIMITED_PARTNERSHIP",
|
|
66
|
+
OtherPartnership: "OTHER_PARTNERSHIP",
|
|
67
|
+
};
|
|
68
|
+
/** @internal */
|
|
69
|
+
exports.EntityType$outboundSchema = z
|
|
70
|
+
.nativeEnum(exports.EntityType);
|
|
71
|
+
/** @internal */
|
|
72
|
+
exports.EntityCreateAttributesCreateItem$outboundSchema = z.object({
|
|
73
|
+
id: z.string().optional(),
|
|
74
|
+
entityName: z.string().optional(),
|
|
75
|
+
abn: z.string().optional(),
|
|
76
|
+
entityType: exports.EntityType$outboundSchema,
|
|
77
|
+
abnStatus: abnstatus1_js_1.ABNStatus1$outboundSchema.optional(),
|
|
78
|
+
turnover: z.number().int().optional(),
|
|
79
|
+
industryType: z.string().optional(),
|
|
80
|
+
emails: z.array(z.string()).optional(),
|
|
81
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
82
|
+
});
|
|
83
|
+
function entityCreateAttributesCreateItemToJSON(entityCreateAttributesCreateItem) {
|
|
84
|
+
return JSON.stringify(exports.EntityCreateAttributesCreateItem$outboundSchema.parse(entityCreateAttributesCreateItem));
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=entitycreateattributescreateitem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitycreateattributescreateitem.js","sourceRoot":"","sources":["../../src/models/components/entitycreateattributescreateitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FH,wFAQC;AAlGD,0CAA4B;AAE5B,mDAAwE;AAExE;;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;IAC3B,qBAAqB,EAAE,0BAA0B;IACjD,UAAU,EAAE,aAAa;IACzB,yBAAyB,EAAE,6BAA6B;IACxD,kBAAkB,EAAE,sBAAsB;IAC1C,uBAAuB,EAAE,4BAA4B;IACrD,iBAAiB,EAAE,oBAAoB;IACvC,kBAAkB,EAAE,qBAAqB;IACzC,gBAAgB,EAAE,mBAAmB;CAC7B,CAAC;AA2BX,gBAAgB;AACH,QAAA,yBAAyB,GAAuC,CAAC;KAC3E,UAAU,CAAC,kBAAU,CAAC,CAAC;AAe1B,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,UAAU,EAAE,iCAAyB;IACrC,SAAS,EAAE,yCAAyB,CAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEH,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,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";
|
|
@@ -41,7 +42,7 @@ export * from "./employerentitytype.js";
|
|
|
41
42
|
export * from "./employmentstatus.js";
|
|
42
43
|
export * from "./employmenttype.js";
|
|
43
44
|
export * from "./entityattributes.js";
|
|
44
|
-
export * from "./
|
|
45
|
+
export * from "./entitycreateattributescreateitem.js";
|
|
45
46
|
export * from "./errorsource.js";
|
|
46
47
|
export * from "./expenseattributes.js";
|
|
47
48
|
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,qCAAqC,CAAC;AACpD,cAAc,8DAA8D,CAAC;AAC7E,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0DAA0D,CAAC;AACzE,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC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C;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);
|
|
@@ -60,7 +61,7 @@ __exportStar(require("./employerentitytype.js"), exports);
|
|
|
60
61
|
__exportStar(require("./employmentstatus.js"), exports);
|
|
61
62
|
__exportStar(require("./employmenttype.js"), exports);
|
|
62
63
|
__exportStar(require("./entityattributes.js"), exports);
|
|
63
|
-
__exportStar(require("./
|
|
64
|
+
__exportStar(require("./entitycreateattributescreateitem.js"), exports);
|
|
64
65
|
__exportStar(require("./errorsource.js"), exports);
|
|
65
66
|
__exportStar(require("./expenseattributes.js"), exports);
|
|
66
67
|
__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,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,wEAAsD;AACtD,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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financeable/aggregation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"author": "Financeable",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@eslint/js": "^9.
|
|
21
|
-
"eslint": "^9.
|
|
20
|
+
"@eslint/js": "^9.26.0",
|
|
21
|
+
"eslint": "^9.26.0",
|
|
22
22
|
"globals": "^15.14.0",
|
|
23
23
|
"typescript": "~5.8.3",
|
|
24
24
|
"typescript-eslint": "^8.26.0"
|
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.
|
|
62
|
-
genVersion: "2.
|
|
61
|
+
sdkVersion: "0.16.0",
|
|
62
|
+
genVersion: "2.812.2",
|
|
63
63
|
userAgent:
|
|
64
|
-
"speakeasy-sdk/typescript 0.
|
|
64
|
+
"speakeasy-sdk/typescript 0.16.0 2.812.2 0.4.0 @financeable/aggregation",
|
|
65
65
|
} as const;
|
|
@@ -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;
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
CustomerLiabilityAttributes$outboundSchema,
|
|
26
26
|
} from "./customerliabilityattributes.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
28
|
+
EntityCreateAttributesCreateItem,
|
|
29
|
+
EntityCreateAttributesCreateItem$Outbound,
|
|
30
|
+
EntityCreateAttributesCreateItem$outboundSchema,
|
|
31
|
+
} from "./entitycreateattributescreateitem.js";
|
|
32
32
|
import {
|
|
33
33
|
LinkObject,
|
|
34
34
|
LinkObject$Outbound,
|
|
@@ -167,7 +167,10 @@ export type BusinessLoanBusinessApplicationRelationshipsEntitiesType =
|
|
|
167
167
|
|
|
168
168
|
export type BusinessLoanBusinessApplicationRelationshipsDataInput = {
|
|
169
169
|
type: BusinessLoanBusinessApplicationRelationshipsEntitiesType;
|
|
170
|
-
|
|
170
|
+
/**
|
|
171
|
+
* Entity attributes for create operations. entityType remains mandatory for writes.
|
|
172
|
+
*/
|
|
173
|
+
attributes: EntityCreateAttributesCreateItem;
|
|
171
174
|
links?: { [k: string]: LinkObject } | undefined;
|
|
172
175
|
meta?: { [k: string]: any } | undefined;
|
|
173
176
|
};
|
|
@@ -598,7 +601,7 @@ export const BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSc
|
|
|
598
601
|
/** @internal */
|
|
599
602
|
export type BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound = {
|
|
600
603
|
type: string;
|
|
601
|
-
attributes:
|
|
604
|
+
attributes: EntityCreateAttributesCreateItem$Outbound;
|
|
602
605
|
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
603
606
|
meta?: { [k: string]: any } | undefined;
|
|
604
607
|
};
|
|
@@ -612,7 +615,7 @@ export const BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchem
|
|
|
612
615
|
> = z.object({
|
|
613
616
|
type:
|
|
614
617
|
BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema,
|
|
615
|
-
attributes:
|
|
618
|
+
attributes: EntityCreateAttributesCreateItem$outboundSchema,
|
|
616
619
|
links: z.record(LinkObject$outboundSchema).optional(),
|
|
617
620
|
meta: z.record(z.any()).optional(),
|
|
618
621
|
});
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
EmployerAttributes$outboundSchema,
|
|
36
36
|
} from "./employerattributes.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} from "./
|
|
38
|
+
EntityCreateAttributesCreateItem,
|
|
39
|
+
EntityCreateAttributesCreateItem$Outbound,
|
|
40
|
+
EntityCreateAttributesCreateItem$outboundSchema,
|
|
41
|
+
} from "./entitycreateattributescreateitem.js";
|
|
42
42
|
import {
|
|
43
43
|
LinkObject,
|
|
44
44
|
LinkObject$Outbound,
|
|
@@ -264,7 +264,10 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
|
|
|
264
264
|
|
|
265
265
|
export type CommercialSecuredLoanCommercialApplicationRelationshipsDataInput = {
|
|
266
266
|
type: CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType;
|
|
267
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Entity attributes for create operations. entityType remains mandatory for writes.
|
|
269
|
+
*/
|
|
270
|
+
attributes: EntityCreateAttributesCreateItem;
|
|
268
271
|
links?: { [k: string]: LinkObject } | undefined;
|
|
269
272
|
meta?: { [k: string]: any } | undefined;
|
|
270
273
|
};
|
|
@@ -859,7 +862,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
|
|
|
859
862
|
export type CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$Outbound =
|
|
860
863
|
{
|
|
861
864
|
type: string;
|
|
862
|
-
attributes:
|
|
865
|
+
attributes: EntityCreateAttributesCreateItem$Outbound;
|
|
863
866
|
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
864
867
|
meta?: { [k: string]: any } | undefined;
|
|
865
868
|
};
|
|
@@ -873,7 +876,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsDataInput$ou
|
|
|
873
876
|
> = z.object({
|
|
874
877
|
type:
|
|
875
878
|
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema,
|
|
876
|
-
attributes:
|
|
879
|
+
attributes: EntityCreateAttributesCreateItem$outboundSchema,
|
|
877
880
|
links: z.record(LinkObject$outboundSchema).optional(),
|
|
878
881
|
meta: z.record(z.any()).optional(),
|
|
879
882
|
});
|
|
@@ -7,6 +7,7 @@ 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 { ABNStatus1, ABNStatus1$inboundSchema } from "./abnstatus1.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Derived from ABR lookup.
|
|
@@ -29,7 +30,7 @@ export type State = ClosedEnum<typeof State>;
|
|
|
29
30
|
/**
|
|
30
31
|
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
31
32
|
*/
|
|
32
|
-
export const
|
|
33
|
+
export const EntityAttributesEntityType = {
|
|
33
34
|
IndividualSoleTrader: "INDIVIDUAL_SOLE_TRADER",
|
|
34
35
|
AustralianPrivateCompany: "AUSTRALIAN_PRIVATE_COMPANY",
|
|
35
36
|
AustralianPublicCompany: "AUSTRALIAN_PUBLIC_COMPANY",
|
|
@@ -55,21 +56,8 @@ export const EntityType = {
|
|
|
55
56
|
/**
|
|
56
57
|
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
57
58
|
*/
|
|
58
|
-
export type
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
62
|
-
*/
|
|
63
|
-
export const EntityAttributesAbnStatus = {
|
|
64
|
-
Active: "active",
|
|
65
|
-
Registered: "registered",
|
|
66
|
-
Cancelled: "cancelled",
|
|
67
|
-
} as const;
|
|
68
|
-
/**
|
|
69
|
-
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
70
|
-
*/
|
|
71
|
-
export type EntityAttributesAbnStatus = ClosedEnum<
|
|
72
|
-
typeof EntityAttributesAbnStatus
|
|
59
|
+
export type EntityAttributesEntityType = ClosedEnum<
|
|
60
|
+
typeof EntityAttributesEntityType
|
|
73
61
|
>;
|
|
74
62
|
|
|
75
63
|
export type EntityAttributes = {
|
|
@@ -91,7 +79,7 @@ export type EntityAttributes = {
|
|
|
91
79
|
/**
|
|
92
80
|
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
93
81
|
*/
|
|
94
|
-
entityType
|
|
82
|
+
entityType?: EntityAttributesEntityType | undefined;
|
|
95
83
|
/**
|
|
96
84
|
* Derived from ABR lookup.
|
|
97
85
|
*/
|
|
@@ -99,7 +87,7 @@ export type EntityAttributes = {
|
|
|
99
87
|
/**
|
|
100
88
|
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
101
89
|
*/
|
|
102
|
-
abnStatus
|
|
90
|
+
abnStatus?: ABNStatus1 | undefined;
|
|
103
91
|
/**
|
|
104
92
|
* Derived from ABR lookup. Format YYYY-MM-DD
|
|
105
93
|
*/
|
|
@@ -124,13 +112,9 @@ export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
|
|
|
124
112
|
);
|
|
125
113
|
|
|
126
114
|
/** @internal */
|
|
127
|
-
export const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/** @internal */
|
|
131
|
-
export const EntityAttributesAbnStatus$inboundSchema: z.ZodNativeEnum<
|
|
132
|
-
typeof EntityAttributesAbnStatus
|
|
133
|
-
> = z.nativeEnum(EntityAttributesAbnStatus);
|
|
115
|
+
export const EntityAttributesEntityType$inboundSchema: z.ZodNativeEnum<
|
|
116
|
+
typeof EntityAttributesEntityType
|
|
117
|
+
> = z.nativeEnum(EntityAttributesEntityType);
|
|
134
118
|
|
|
135
119
|
/** @internal */
|
|
136
120
|
export const EntityAttributes$inboundSchema: z.ZodType<
|
|
@@ -144,9 +128,9 @@ export const EntityAttributes$inboundSchema: z.ZodType<
|
|
|
144
128
|
abn: z.string().optional(),
|
|
145
129
|
acn: z.string().optional(),
|
|
146
130
|
state: State$inboundSchema.optional(),
|
|
147
|
-
entityType:
|
|
131
|
+
entityType: EntityAttributesEntityType$inboundSchema.optional(),
|
|
148
132
|
gst: z.string().optional(),
|
|
149
|
-
abnStatus:
|
|
133
|
+
abnStatus: ABNStatus1$inboundSchema.optional(),
|
|
150
134
|
abnStatusEffectiveFrom: z.string().optional(),
|
|
151
135
|
timeInBusiness: z.number().int().optional(),
|
|
152
136
|
turnover: z.number().int().optional(),
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
import { ABNStatus1, ABNStatus1$outboundSchema } from "./abnstatus1.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
11
|
+
*/
|
|
12
|
+
export const EntityType = {
|
|
13
|
+
IndividualSoleTrader: "INDIVIDUAL_SOLE_TRADER",
|
|
14
|
+
AustralianPrivateCompany: "AUSTRALIAN_PRIVATE_COMPANY",
|
|
15
|
+
AustralianPublicCompany: "AUSTRALIAN_PUBLIC_COMPANY",
|
|
16
|
+
CashManagementTrust: "CASH_MANAGEMENT_TRUST",
|
|
17
|
+
CorporateUnitTrust: "CORPORATE_UNIT_TRUST",
|
|
18
|
+
DiscretionaryInvestmentTrust: "DISCRETIONARY_INVESTMENT_TRUST",
|
|
19
|
+
DiscretionaryServicesManagementTrust:
|
|
20
|
+
"DISCRETIONARY_SERVICES_MANAGEMENT_TRUST",
|
|
21
|
+
DiscretionaryTradingTrust: "DISCRETIONARY_TRADING_TRUST",
|
|
22
|
+
FirstHomeSaverAccountsFhsaTrust: "FIRST_HOME_SAVER_ACCOUNTS_FHSA_TRUST",
|
|
23
|
+
FixedTrust: "FIXED_TRUST",
|
|
24
|
+
FixedUnitTrust: "FIXED_UNIT_TRUST",
|
|
25
|
+
HybridTrust: "HYBRID_TRUST",
|
|
26
|
+
ListedPublicUnitTrust: "LISTED_PUBLIC_UNIT_TRUST",
|
|
27
|
+
OtherTrust: "OTHER_TRUST",
|
|
28
|
+
PooledSuperannuationTrust: "POOLED_SUPERANNUATION_TRUST",
|
|
29
|
+
PublicTradingTrust: "PUBLIC_TRADING_TRUST",
|
|
30
|
+
UnlistedPublicUnitTrust: "UNLISTED_PUBLIC_UNIT_TRUST",
|
|
31
|
+
FamilyPartnership: "FAMILY_PARTNERSHIP",
|
|
32
|
+
LimitedPartnership: "LIMITED_PARTNERSHIP",
|
|
33
|
+
OtherPartnership: "OTHER_PARTNERSHIP",
|
|
34
|
+
} as const;
|
|
35
|
+
/**
|
|
36
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
37
|
+
*/
|
|
38
|
+
export type EntityType = ClosedEnum<typeof EntityType>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Entity attributes for create operations. entityType remains mandatory for writes.
|
|
42
|
+
*/
|
|
43
|
+
export type EntityCreateAttributesCreateItem = {
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
entityName?: string | undefined;
|
|
46
|
+
abn?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Derived from ABR lookup. Mandatory to enable ASIC & Equifax lookups.
|
|
49
|
+
*/
|
|
50
|
+
entityType: EntityType;
|
|
51
|
+
/**
|
|
52
|
+
* Derived from ABR lookup.
|
|
53
|
+
*/
|
|
54
|
+
abnStatus?: ABNStatus1 | undefined;
|
|
55
|
+
turnover?: number | undefined;
|
|
56
|
+
industryType?: string | undefined;
|
|
57
|
+
emails?: Array<string> | undefined;
|
|
58
|
+
phoneNumbers?: Array<string> | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const EntityType$outboundSchema: z.ZodNativeEnum<typeof EntityType> = z
|
|
63
|
+
.nativeEnum(EntityType);
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type EntityCreateAttributesCreateItem$Outbound = {
|
|
67
|
+
id?: string | undefined;
|
|
68
|
+
entityName?: string | undefined;
|
|
69
|
+
abn?: string | undefined;
|
|
70
|
+
entityType: string;
|
|
71
|
+
abnStatus?: string | undefined;
|
|
72
|
+
turnover?: number | undefined;
|
|
73
|
+
industryType?: string | undefined;
|
|
74
|
+
emails?: Array<string> | undefined;
|
|
75
|
+
phoneNumbers?: Array<string> | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const EntityCreateAttributesCreateItem$outboundSchema: z.ZodType<
|
|
80
|
+
EntityCreateAttributesCreateItem$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
EntityCreateAttributesCreateItem
|
|
83
|
+
> = z.object({
|
|
84
|
+
id: z.string().optional(),
|
|
85
|
+
entityName: z.string().optional(),
|
|
86
|
+
abn: z.string().optional(),
|
|
87
|
+
entityType: EntityType$outboundSchema,
|
|
88
|
+
abnStatus: ABNStatus1$outboundSchema.optional(),
|
|
89
|
+
turnover: z.number().int().optional(),
|
|
90
|
+
industryType: z.string().optional(),
|
|
91
|
+
emails: z.array(z.string()).optional(),
|
|
92
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function entityCreateAttributesCreateItemToJSON(
|
|
96
|
+
entityCreateAttributesCreateItem: EntityCreateAttributesCreateItem,
|
|
97
|
+
): string {
|
|
98
|
+
return JSON.stringify(
|
|
99
|
+
EntityCreateAttributesCreateItem$outboundSchema.parse(
|
|
100
|
+
entityCreateAttributesCreateItem,
|
|
101
|
+
),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -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";
|
|
@@ -45,7 +46,7 @@ export * from "./employerentitytype.js";
|
|
|
45
46
|
export * from "./employmentstatus.js";
|
|
46
47
|
export * from "./employmenttype.js";
|
|
47
48
|
export * from "./entityattributes.js";
|
|
48
|
-
export * from "./
|
|
49
|
+
export * from "./entitycreateattributescreateitem.js";
|
|
49
50
|
export * from "./errorsource.js";
|
|
50
51
|
export * from "./expenseattributes.js";
|
|
51
52
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entityattributesinput.d.ts","sourceRoot":"","sources":["../../src/models/components/entityattributesinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,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;I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