@financeable/aggregation 0.7.4 → 0.8.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/README.md +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +192 -14
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +186 -19
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +136 -15
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +131 -11
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +370 -14
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +358 -20
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/currencycodeiso4217.d.ts +25 -0
- package/models/components/currencycodeiso4217.d.ts.map +1 -0
- package/models/components/currencycodeiso4217.js +59 -0
- package/models/components/currencycodeiso4217.js.map +1 -0
- package/models/components/customerassetattributes.d.ts +37 -0
- package/models/components/customerassetattributes.d.ts.map +1 -0
- package/models/components/customerassetattributes.js +77 -0
- package/models/components/customerassetattributes.js.map +1 -0
- package/models/components/customerassettype.d.ts +46 -0
- package/models/components/customerassettype.d.ts.map +1 -0
- package/models/components/customerassettype.js +66 -0
- package/models/components/customerassettype.js.map +1 -0
- package/models/components/customerattributes.d.ts +3 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +3 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/customerliabilityattributes.d.ts +46 -0
- package/models/components/customerliabilityattributes.d.ts.map +1 -0
- package/models/components/customerliabilityattributes.js +88 -0
- package/models/components/customerliabilityattributes.js.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts +31 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.js +61 -0
- package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
- package/models/components/customerliabilitytype.d.ts +40 -0
- package/models/components/customerliabilitytype.d.ts.map +1 -0
- package/models/components/customerliabilitytype.js +64 -0
- package/models/components/customerliabilitytype.js.map +1 -0
- package/models/components/expenseattributes.d.ts +38 -0
- package/models/components/expenseattributes.d.ts.map +1 -0
- package/models/components/expenseattributes.js +78 -0
- package/models/components/expenseattributes.js.map +1 -0
- package/models/components/expensefrequency.d.ts +31 -0
- package/models/components/expensefrequency.d.ts.map +1 -0
- package/models/components/expensefrequency.js +61 -0
- package/models/components/expensefrequency.js.map +1 -0
- package/models/components/expensetype.d.ts +79 -0
- package/models/components/expensetype.d.ts.map +1 -0
- package/models/components/expensetype.js +78 -0
- package/models/components/expensetype.js.map +1 -0
- package/models/components/incomeattributes.d.ts +38 -0
- package/models/components/incomeattributes.d.ts.map +1 -0
- package/models/components/incomeattributes.js +78 -0
- package/models/components/incomeattributes.js.map +1 -0
- package/models/components/incomefrequency.d.ts +34 -0
- package/models/components/incomefrequency.d.ts.map +1 -0
- package/models/components/incomefrequency.js +62 -0
- package/models/components/incomefrequency.js.map +1 -0
- package/models/components/incometype.d.ts +49 -0
- package/models/components/incometype.d.ts.map +1 -0
- package/models/components/incometype.js +68 -0
- package/models/components/incometype.js.map +1 -0
- package/models/components/index.d.ts +14 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -0
- package/models/components/index.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +252 -30
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +266 -19
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/monetaryquantity.d.ts +63 -0
- package/models/components/monetaryquantity.d.ts.map +1 -0
- package/models/components/monetaryquantity.js +93 -0
- package/models/components/monetaryquantity.js.map +1 -0
- package/models/components/percentagequantity.d.ts +57 -0
- package/models/components/percentagequantity.d.ts.map +1 -0
- package/models/components/percentagequantity.js +89 -0
- package/models/components/percentagequantity.js.map +1 -0
- package/models/operations/createapplication.d.ts +102 -4
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +107 -1
- package/models/operations/createapplication.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +426 -25
- package/src/models/components/consumersecuredloanassetattributes.ts +282 -25
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +895 -40
- package/src/models/components/currencycodeiso4217.ts +32 -0
- package/src/models/components/customerassetattributes.ts +89 -0
- package/src/models/components/customerassettype.ts +39 -0
- package/src/models/components/customerattributes.ts +10 -0
- package/src/models/components/customerliabilityattributes.ts +114 -0
- package/src/models/components/customerliabilityrepaymentfrequency.ts +38 -0
- package/src/models/components/customerliabilitytype.ts +37 -0
- package/src/models/components/expenseattributes.ts +94 -0
- package/src/models/components/expensefrequency.ts +34 -0
- package/src/models/components/expensetype.ts +48 -0
- package/src/models/components/incomeattributes.ts +94 -0
- package/src/models/components/incomefrequency.ts +35 -0
- package/src/models/components/incometype.ts +38 -0
- package/src/models/components/index.ts +14 -0
- package/src/models/components/loandetailsattributes.ts +537 -48
- package/src/models/components/monetaryquantity.ts +110 -0
- package/src/models/components/percentagequantity.ts +102 -0
- package/src/models/operations/createapplication.ts +191 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerliabilityrepaymentfrequency.js","sourceRoot":"","sources":["../../src/models/components/customerliabilityrepaymentfrequency.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,mCAAmC,GAAG;IACjD,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;CAClB,CAAC;AAKX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AACvD,CAAC,EAPgB,oCAAoC,oDAApC,oCAAoC,QAOpD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const CustomerLiabilityType: {
|
|
4
|
+
readonly Mortgage: "MORTGAGE";
|
|
5
|
+
readonly MotorVehicle: "MOTOR_VEHICLE";
|
|
6
|
+
readonly CreditCard: "CREDIT_CARD";
|
|
7
|
+
readonly PersonalLoan: "PERSONAL_LOAN";
|
|
8
|
+
readonly PayLater: "PAY_LATER";
|
|
9
|
+
readonly Other: "OTHER";
|
|
10
|
+
};
|
|
11
|
+
export type CustomerLiabilityType = ClosedEnum<typeof CustomerLiabilityType>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const CustomerLiabilityType$inboundSchema: z.ZodNativeEnum<typeof CustomerLiabilityType>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const CustomerLiabilityType$outboundSchema: z.ZodNativeEnum<typeof CustomerLiabilityType>;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
+
*/
|
|
20
|
+
export declare namespace CustomerLiabilityType$ {
|
|
21
|
+
/** @deprecated use `CustomerLiabilityType$inboundSchema` instead. */
|
|
22
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
23
|
+
readonly Mortgage: "MORTGAGE";
|
|
24
|
+
readonly MotorVehicle: "MOTOR_VEHICLE";
|
|
25
|
+
readonly CreditCard: "CREDIT_CARD";
|
|
26
|
+
readonly PersonalLoan: "PERSONAL_LOAN";
|
|
27
|
+
readonly PayLater: "PAY_LATER";
|
|
28
|
+
readonly Other: "OTHER";
|
|
29
|
+
}>;
|
|
30
|
+
/** @deprecated use `CustomerLiabilityType$outboundSchema` instead. */
|
|
31
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
32
|
+
readonly Mortgage: "MORTGAGE";
|
|
33
|
+
readonly MotorVehicle: "MOTOR_VEHICLE";
|
|
34
|
+
readonly CreditCard: "CREDIT_CARD";
|
|
35
|
+
readonly PersonalLoan: "PERSONAL_LOAN";
|
|
36
|
+
readonly PayLater: "PAY_LATER";
|
|
37
|
+
readonly Other: "OTHER";
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=customerliabilitytype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerliabilitytype.d.ts","sourceRoot":"","sources":["../../src/models/components/customerliabilitytype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,qBAAqB,CACS,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,aAAa,CAChE,OAAO,qBAAqB,CACS,CAAC;AAExC;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa;;;;;;;MAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc;;;;;;;MAAuC,CAAC;CACpE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.CustomerLiabilityType$ = exports.CustomerLiabilityType$outboundSchema = exports.CustomerLiabilityType$inboundSchema = exports.CustomerLiabilityType = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
exports.CustomerLiabilityType = {
|
|
42
|
+
Mortgage: "MORTGAGE",
|
|
43
|
+
MotorVehicle: "MOTOR_VEHICLE",
|
|
44
|
+
CreditCard: "CREDIT_CARD",
|
|
45
|
+
PersonalLoan: "PERSONAL_LOAN",
|
|
46
|
+
PayLater: "PAY_LATER",
|
|
47
|
+
Other: "OTHER",
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.CustomerLiabilityType$inboundSchema = z.nativeEnum(exports.CustomerLiabilityType);
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.CustomerLiabilityType$outboundSchema = exports.CustomerLiabilityType$inboundSchema;
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
var CustomerLiabilityType$;
|
|
58
|
+
(function (CustomerLiabilityType$) {
|
|
59
|
+
/** @deprecated use `CustomerLiabilityType$inboundSchema` instead. */
|
|
60
|
+
CustomerLiabilityType$.inboundSchema = exports.CustomerLiabilityType$inboundSchema;
|
|
61
|
+
/** @deprecated use `CustomerLiabilityType$outboundSchema` instead. */
|
|
62
|
+
CustomerLiabilityType$.outboundSchema = exports.CustomerLiabilityType$outboundSchema;
|
|
63
|
+
})(CustomerLiabilityType$ || (exports.CustomerLiabilityType$ = CustomerLiabilityType$ = {}));
|
|
64
|
+
//# sourceMappingURL=customerliabilitytype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerliabilitytype.js","sourceRoot":"","sources":["../../src/models/components/customerliabilitytype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,qBAAqB,GAAG;IACnC,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC,CAAC;AAExC,gBAAgB;AACH,QAAA,oCAAoC,GAE7C,2CAAmC,CAAC;AAExC;;;GAGG;AACH,IAAiB,sBAAsB,CAKtC;AALD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AACrE,CAAC,EALgB,sBAAsB,sCAAtB,sBAAsB,QAKtC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ExpenseFrequency } from "./expensefrequency.js";
|
|
5
|
+
import { ExpenseType } from "./expensetype.js";
|
|
6
|
+
import { MonetaryQuantity, MonetaryQuantity$Outbound } from "./monetaryquantity.js";
|
|
7
|
+
export type ExpenseAttributes = {
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
expenseType: ExpenseType;
|
|
10
|
+
frequency?: ExpenseFrequency | undefined;
|
|
11
|
+
amount?: MonetaryQuantity | undefined;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const ExpenseAttributes$inboundSchema: z.ZodType<ExpenseAttributes, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ExpenseAttributes$Outbound = {
|
|
17
|
+
id?: string | undefined;
|
|
18
|
+
expenseType: string;
|
|
19
|
+
frequency?: string | undefined;
|
|
20
|
+
amount?: MonetaryQuantity$Outbound | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const ExpenseAttributes$outboundSchema: z.ZodType<ExpenseAttributes$Outbound, z.ZodTypeDef, ExpenseAttributes>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace ExpenseAttributes$ {
|
|
29
|
+
/** @deprecated use `ExpenseAttributes$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<ExpenseAttributes, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `ExpenseAttributes$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<ExpenseAttributes$Outbound, z.ZodTypeDef, ExpenseAttributes>;
|
|
33
|
+
/** @deprecated use `ExpenseAttributes$Outbound` instead. */
|
|
34
|
+
type Outbound = ExpenseAttributes$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function expenseAttributesToJSON(expenseAttributes: ExpenseAttributes): string;
|
|
37
|
+
export declare function expenseAttributesFromJSON(jsonString: string): SafeParseResult<ExpenseAttributes, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=expenseattributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expenseattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/expenseattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,WAAW,EAGZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAMjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.ExpenseAttributes$ = exports.ExpenseAttributes$outboundSchema = exports.ExpenseAttributes$inboundSchema = void 0;
|
|
40
|
+
exports.expenseAttributesToJSON = expenseAttributesToJSON;
|
|
41
|
+
exports.expenseAttributesFromJSON = expenseAttributesFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const expensefrequency_js_1 = require("./expensefrequency.js");
|
|
45
|
+
const expensetype_js_1 = require("./expensetype.js");
|
|
46
|
+
const monetaryquantity_js_1 = require("./monetaryquantity.js");
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.ExpenseAttributes$inboundSchema = z.object({
|
|
49
|
+
id: z.string().optional(),
|
|
50
|
+
expenseType: expensetype_js_1.ExpenseType$inboundSchema,
|
|
51
|
+
frequency: expensefrequency_js_1.ExpenseFrequency$inboundSchema.optional(),
|
|
52
|
+
amount: monetaryquantity_js_1.MonetaryQuantity$inboundSchema.optional(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.ExpenseAttributes$outboundSchema = z.object({
|
|
56
|
+
id: z.string().optional(),
|
|
57
|
+
expenseType: expensetype_js_1.ExpenseType$outboundSchema,
|
|
58
|
+
frequency: expensefrequency_js_1.ExpenseFrequency$outboundSchema.optional(),
|
|
59
|
+
amount: monetaryquantity_js_1.MonetaryQuantity$outboundSchema.optional(),
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
var ExpenseAttributes$;
|
|
66
|
+
(function (ExpenseAttributes$) {
|
|
67
|
+
/** @deprecated use `ExpenseAttributes$inboundSchema` instead. */
|
|
68
|
+
ExpenseAttributes$.inboundSchema = exports.ExpenseAttributes$inboundSchema;
|
|
69
|
+
/** @deprecated use `ExpenseAttributes$outboundSchema` instead. */
|
|
70
|
+
ExpenseAttributes$.outboundSchema = exports.ExpenseAttributes$outboundSchema;
|
|
71
|
+
})(ExpenseAttributes$ || (exports.ExpenseAttributes$ = ExpenseAttributes$ = {}));
|
|
72
|
+
function expenseAttributesToJSON(expenseAttributes) {
|
|
73
|
+
return JSON.stringify(exports.ExpenseAttributes$outboundSchema.parse(expenseAttributes));
|
|
74
|
+
}
|
|
75
|
+
function expenseAttributesFromJSON(jsonString) {
|
|
76
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ExpenseAttributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExpenseAttributes' from JSON`);
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=expenseattributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expenseattributes.js","sourceRoot":"","sources":["../../src/models/components/expenseattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EH,0DAMC;AAED,8DAQC;AAzFD,uCAAyB;AACzB,qDAAiD;AAGjD,+DAI+B;AAC/B,qDAI0B;AAC1B,+DAK+B;AAS/B,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,WAAW,EAAE,0CAAyB;IACtC,SAAS,EAAE,oDAA8B,CAAC,QAAQ,EAAE;IACpD,MAAM,EAAE,oDAA8B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,WAAW,EAAE,2CAA0B;IACvC,SAAS,EAAE,qDAA+B,CAAC,QAAQ,EAAE;IACrD,MAAM,EAAE,qDAA+B,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const ExpenseFrequency: {
|
|
4
|
+
readonly Weekly: "WEEKLY";
|
|
5
|
+
readonly Fortnightly: "FORTNIGHTLY";
|
|
6
|
+
readonly Monthly: "MONTHLY";
|
|
7
|
+
};
|
|
8
|
+
export type ExpenseFrequency = ClosedEnum<typeof ExpenseFrequency>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ExpenseFrequency$inboundSchema: z.ZodNativeEnum<typeof ExpenseFrequency>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const ExpenseFrequency$outboundSchema: z.ZodNativeEnum<typeof ExpenseFrequency>;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
|
+
*/
|
|
17
|
+
export declare namespace ExpenseFrequency$ {
|
|
18
|
+
/** @deprecated use `ExpenseFrequency$inboundSchema` instead. */
|
|
19
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
20
|
+
readonly Weekly: "WEEKLY";
|
|
21
|
+
readonly Fortnightly: "FORTNIGHTLY";
|
|
22
|
+
readonly Monthly: "MONTHLY";
|
|
23
|
+
}>;
|
|
24
|
+
/** @deprecated use `ExpenseFrequency$outboundSchema` instead. */
|
|
25
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
26
|
+
readonly Weekly: "WEEKLY";
|
|
27
|
+
readonly Fortnightly: "FORTNIGHTLY";
|
|
28
|
+
readonly Monthly: "MONTHLY";
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=expensefrequency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expensefrequency.d.ts","sourceRoot":"","sources":["../../src/models/components/expensefrequency.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa;;;;MAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc;;;;MAAkC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ExpenseFrequency$ = exports.ExpenseFrequency$outboundSchema = exports.ExpenseFrequency$inboundSchema = exports.ExpenseFrequency = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
exports.ExpenseFrequency = {
|
|
42
|
+
Weekly: "WEEKLY",
|
|
43
|
+
Fortnightly: "FORTNIGHTLY",
|
|
44
|
+
Monthly: "MONTHLY",
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.ExpenseFrequency$inboundSchema = z.nativeEnum(exports.ExpenseFrequency);
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.ExpenseFrequency$outboundSchema = exports.ExpenseFrequency$inboundSchema;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
var ExpenseFrequency$;
|
|
55
|
+
(function (ExpenseFrequency$) {
|
|
56
|
+
/** @deprecated use `ExpenseFrequency$inboundSchema` instead. */
|
|
57
|
+
ExpenseFrequency$.inboundSchema = exports.ExpenseFrequency$inboundSchema;
|
|
58
|
+
/** @deprecated use `ExpenseFrequency$outboundSchema` instead. */
|
|
59
|
+
ExpenseFrequency$.outboundSchema = exports.ExpenseFrequency$outboundSchema;
|
|
60
|
+
})(ExpenseFrequency$ || (exports.ExpenseFrequency$ = ExpenseFrequency$ = {}));
|
|
61
|
+
//# sourceMappingURL=expensefrequency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expensefrequency.js","sourceRoot":"","sources":["../../src/models/components/expensefrequency.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;CACV,CAAC;AAGX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC;;;GAGG;AACH,IAAiB,iBAAiB,CAKjC;AALD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAChE,CAAC,EALgB,iBAAiB,iCAAjB,iBAAiB,QAKjC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const ExpenseType: {
|
|
4
|
+
readonly Rent: "RENT";
|
|
5
|
+
readonly Utilities: "UTILITIES";
|
|
6
|
+
readonly Groceries: "GROCERIES";
|
|
7
|
+
readonly DiningOut: "DINING_OUT";
|
|
8
|
+
readonly Insurance: "INSURANCE";
|
|
9
|
+
readonly Telecommunications: "TELECOMMUNICATIONS";
|
|
10
|
+
readonly SubscriptionTv: "SUBSCRIPTION_TV";
|
|
11
|
+
readonly EducationAndChildcare: "EDUCATION_AND_CHILDCARE";
|
|
12
|
+
readonly VehicleAndTransport: "VEHICLE_AND_TRANSPORT";
|
|
13
|
+
readonly PersonalCare: "PERSONAL_CARE";
|
|
14
|
+
readonly Health: "HEALTH";
|
|
15
|
+
readonly DepartmentStores: "DEPARTMENT_STORES";
|
|
16
|
+
readonly Retail: "RETAIL";
|
|
17
|
+
readonly HomeImprovement: "HOME_IMPROVEMENT";
|
|
18
|
+
readonly Entertainment: "ENTERTAINMENT";
|
|
19
|
+
readonly GymAndOtherMembership: "GYM_AND_OTHER_MEMBERSHIP";
|
|
20
|
+
readonly Travel: "TRAVEL";
|
|
21
|
+
readonly PetCare: "PET_CARE";
|
|
22
|
+
readonly UncategorizedDebts: "UNCATEGORIZED_DEBTS";
|
|
23
|
+
};
|
|
24
|
+
export type ExpenseType = ClosedEnum<typeof ExpenseType>;
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const ExpenseType$inboundSchema: z.ZodNativeEnum<typeof ExpenseType>;
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const ExpenseType$outboundSchema: z.ZodNativeEnum<typeof ExpenseType>;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export declare namespace ExpenseType$ {
|
|
34
|
+
/** @deprecated use `ExpenseType$inboundSchema` instead. */
|
|
35
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
36
|
+
readonly Rent: "RENT";
|
|
37
|
+
readonly Utilities: "UTILITIES";
|
|
38
|
+
readonly Groceries: "GROCERIES";
|
|
39
|
+
readonly DiningOut: "DINING_OUT";
|
|
40
|
+
readonly Insurance: "INSURANCE";
|
|
41
|
+
readonly Telecommunications: "TELECOMMUNICATIONS";
|
|
42
|
+
readonly SubscriptionTv: "SUBSCRIPTION_TV";
|
|
43
|
+
readonly EducationAndChildcare: "EDUCATION_AND_CHILDCARE";
|
|
44
|
+
readonly VehicleAndTransport: "VEHICLE_AND_TRANSPORT";
|
|
45
|
+
readonly PersonalCare: "PERSONAL_CARE";
|
|
46
|
+
readonly Health: "HEALTH";
|
|
47
|
+
readonly DepartmentStores: "DEPARTMENT_STORES";
|
|
48
|
+
readonly Retail: "RETAIL";
|
|
49
|
+
readonly HomeImprovement: "HOME_IMPROVEMENT";
|
|
50
|
+
readonly Entertainment: "ENTERTAINMENT";
|
|
51
|
+
readonly GymAndOtherMembership: "GYM_AND_OTHER_MEMBERSHIP";
|
|
52
|
+
readonly Travel: "TRAVEL";
|
|
53
|
+
readonly PetCare: "PET_CARE";
|
|
54
|
+
readonly UncategorizedDebts: "UNCATEGORIZED_DEBTS";
|
|
55
|
+
}>;
|
|
56
|
+
/** @deprecated use `ExpenseType$outboundSchema` instead. */
|
|
57
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
58
|
+
readonly Rent: "RENT";
|
|
59
|
+
readonly Utilities: "UTILITIES";
|
|
60
|
+
readonly Groceries: "GROCERIES";
|
|
61
|
+
readonly DiningOut: "DINING_OUT";
|
|
62
|
+
readonly Insurance: "INSURANCE";
|
|
63
|
+
readonly Telecommunications: "TELECOMMUNICATIONS";
|
|
64
|
+
readonly SubscriptionTv: "SUBSCRIPTION_TV";
|
|
65
|
+
readonly EducationAndChildcare: "EDUCATION_AND_CHILDCARE";
|
|
66
|
+
readonly VehicleAndTransport: "VEHICLE_AND_TRANSPORT";
|
|
67
|
+
readonly PersonalCare: "PERSONAL_CARE";
|
|
68
|
+
readonly Health: "HEALTH";
|
|
69
|
+
readonly DepartmentStores: "DEPARTMENT_STORES";
|
|
70
|
+
readonly Retail: "RETAIL";
|
|
71
|
+
readonly HomeImprovement: "HOME_IMPROVEMENT";
|
|
72
|
+
readonly Entertainment: "ENTERTAINMENT";
|
|
73
|
+
readonly GymAndOtherMembership: "GYM_AND_OTHER_MEMBERSHIP";
|
|
74
|
+
readonly Travel: "TRAVEL";
|
|
75
|
+
readonly PetCare: "PET_CARE";
|
|
76
|
+
readonly UncategorizedDebts: "UNCATEGORIZED_DEBTS";
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=expensetype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expensetype.d.ts","sourceRoot":"","sources":["../../src/models/components/expensetype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAoBd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE3B,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE5B;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;MAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;MAA6B,CAAC;CAC1D"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.ExpenseType$ = exports.ExpenseType$outboundSchema = exports.ExpenseType$inboundSchema = exports.ExpenseType = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
exports.ExpenseType = {
|
|
42
|
+
Rent: "RENT",
|
|
43
|
+
Utilities: "UTILITIES",
|
|
44
|
+
Groceries: "GROCERIES",
|
|
45
|
+
DiningOut: "DINING_OUT",
|
|
46
|
+
Insurance: "INSURANCE",
|
|
47
|
+
Telecommunications: "TELECOMMUNICATIONS",
|
|
48
|
+
SubscriptionTv: "SUBSCRIPTION_TV",
|
|
49
|
+
EducationAndChildcare: "EDUCATION_AND_CHILDCARE",
|
|
50
|
+
VehicleAndTransport: "VEHICLE_AND_TRANSPORT",
|
|
51
|
+
PersonalCare: "PERSONAL_CARE",
|
|
52
|
+
Health: "HEALTH",
|
|
53
|
+
DepartmentStores: "DEPARTMENT_STORES",
|
|
54
|
+
Retail: "RETAIL",
|
|
55
|
+
HomeImprovement: "HOME_IMPROVEMENT",
|
|
56
|
+
Entertainment: "ENTERTAINMENT",
|
|
57
|
+
GymAndOtherMembership: "GYM_AND_OTHER_MEMBERSHIP",
|
|
58
|
+
Travel: "TRAVEL",
|
|
59
|
+
PetCare: "PET_CARE",
|
|
60
|
+
UncategorizedDebts: "UNCATEGORIZED_DEBTS",
|
|
61
|
+
};
|
|
62
|
+
/** @internal */
|
|
63
|
+
exports.ExpenseType$inboundSchema = z
|
|
64
|
+
.nativeEnum(exports.ExpenseType);
|
|
65
|
+
/** @internal */
|
|
66
|
+
exports.ExpenseType$outboundSchema = exports.ExpenseType$inboundSchema;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
var ExpenseType$;
|
|
72
|
+
(function (ExpenseType$) {
|
|
73
|
+
/** @deprecated use `ExpenseType$inboundSchema` instead. */
|
|
74
|
+
ExpenseType$.inboundSchema = exports.ExpenseType$inboundSchema;
|
|
75
|
+
/** @deprecated use `ExpenseType$outboundSchema` instead. */
|
|
76
|
+
ExpenseType$.outboundSchema = exports.ExpenseType$outboundSchema;
|
|
77
|
+
})(ExpenseType$ || (exports.ExpenseType$ = ExpenseType$ = {}));
|
|
78
|
+
//# sourceMappingURL=expensetype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expensetype.js","sourceRoot":"","sources":["../../src/models/components/expensetype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,WAAW;IACtB,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,iBAAiB;IACjC,qBAAqB,EAAE,yBAAyB;IAChD,mBAAmB,EAAE,uBAAuB;IAC5C,YAAY,EAAE,eAAe;IAC7B,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,mBAAmB;IACrC,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,kBAAkB;IACnC,aAAa,EAAE,eAAe;IAC9B,qBAAqB,EAAE,0BAA0B;IACjD,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,UAAU;IACnB,kBAAkB,EAAE,qBAAqB;CACjC,CAAC;AAGX,gBAAgB;AACH,QAAA,yBAAyB,GAAwC,CAAC;KAC5E,UAAU,CAAC,mBAAW,CAAC,CAAC;AAE3B,gBAAgB;AACH,QAAA,0BAA0B,GACrC,iCAAyB,CAAC;AAE5B;;;GAGG;AACH,IAAiB,YAAY,CAK5B;AALD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,iCAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,kCAA0B,CAAC;AAC3D,CAAC,EALgB,YAAY,4BAAZ,YAAY,QAK5B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { IncomeFrequency } from "./incomefrequency.js";
|
|
5
|
+
import { IncomeType } from "./incometype.js";
|
|
6
|
+
import { MonetaryQuantity, MonetaryQuantity$Outbound } from "./monetaryquantity.js";
|
|
7
|
+
export type IncomeAttributes = {
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
incomeType: IncomeType;
|
|
10
|
+
frequency?: IncomeFrequency | undefined;
|
|
11
|
+
amount?: MonetaryQuantity | undefined;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const IncomeAttributes$inboundSchema: z.ZodType<IncomeAttributes, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type IncomeAttributes$Outbound = {
|
|
17
|
+
id?: string | undefined;
|
|
18
|
+
incomeType: string;
|
|
19
|
+
frequency?: string | undefined;
|
|
20
|
+
amount?: MonetaryQuantity$Outbound | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const IncomeAttributes$outboundSchema: z.ZodType<IncomeAttributes$Outbound, z.ZodTypeDef, IncomeAttributes>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace IncomeAttributes$ {
|
|
29
|
+
/** @deprecated use `IncomeAttributes$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<IncomeAttributes, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `IncomeAttributes$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<IncomeAttributes$Outbound, z.ZodTypeDef, IncomeAttributes>;
|
|
33
|
+
/** @deprecated use `IncomeAttributes$Outbound` instead. */
|
|
34
|
+
type Outbound = IncomeAttributes$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function incomeAttributesToJSON(incomeAttributes: IncomeAttributes): string;
|
|
37
|
+
export declare function incomeAttributesFromJSON(jsonString: string): SafeParseResult<IncomeAttributes, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=incomeattributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incomeattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/incomeattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,UAAU,EAGX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAMhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.IncomeAttributes$ = exports.IncomeAttributes$outboundSchema = exports.IncomeAttributes$inboundSchema = void 0;
|
|
40
|
+
exports.incomeAttributesToJSON = incomeAttributesToJSON;
|
|
41
|
+
exports.incomeAttributesFromJSON = incomeAttributesFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const incomefrequency_js_1 = require("./incomefrequency.js");
|
|
45
|
+
const incometype_js_1 = require("./incometype.js");
|
|
46
|
+
const monetaryquantity_js_1 = require("./monetaryquantity.js");
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.IncomeAttributes$inboundSchema = z.object({
|
|
49
|
+
id: z.string().optional(),
|
|
50
|
+
incomeType: incometype_js_1.IncomeType$inboundSchema,
|
|
51
|
+
frequency: incomefrequency_js_1.IncomeFrequency$inboundSchema.optional(),
|
|
52
|
+
amount: monetaryquantity_js_1.MonetaryQuantity$inboundSchema.optional(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.IncomeAttributes$outboundSchema = z.object({
|
|
56
|
+
id: z.string().optional(),
|
|
57
|
+
incomeType: incometype_js_1.IncomeType$outboundSchema,
|
|
58
|
+
frequency: incomefrequency_js_1.IncomeFrequency$outboundSchema.optional(),
|
|
59
|
+
amount: monetaryquantity_js_1.MonetaryQuantity$outboundSchema.optional(),
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
var IncomeAttributes$;
|
|
66
|
+
(function (IncomeAttributes$) {
|
|
67
|
+
/** @deprecated use `IncomeAttributes$inboundSchema` instead. */
|
|
68
|
+
IncomeAttributes$.inboundSchema = exports.IncomeAttributes$inboundSchema;
|
|
69
|
+
/** @deprecated use `IncomeAttributes$outboundSchema` instead. */
|
|
70
|
+
IncomeAttributes$.outboundSchema = exports.IncomeAttributes$outboundSchema;
|
|
71
|
+
})(IncomeAttributes$ || (exports.IncomeAttributes$ = IncomeAttributes$ = {}));
|
|
72
|
+
function incomeAttributesToJSON(incomeAttributes) {
|
|
73
|
+
return JSON.stringify(exports.IncomeAttributes$outboundSchema.parse(incomeAttributes));
|
|
74
|
+
}
|
|
75
|
+
function incomeAttributesFromJSON(jsonString) {
|
|
76
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.IncomeAttributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IncomeAttributes' from JSON`);
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=incomeattributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incomeattributes.js","sourceRoot":"","sources":["../../src/models/components/incomeattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EH,wDAMC;AAED,4DAQC;AAzFD,uCAAyB;AACzB,qDAAiD;AAGjD,6DAI8B;AAC9B,mDAIyB;AACzB,+DAK+B;AAS/B,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,UAAU,EAAE,wCAAwB;IACpC,SAAS,EAAE,kDAA6B,CAAC,QAAQ,EAAE;IACnD,MAAM,EAAE,oDAA8B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,UAAU,EAAE,yCAAyB;IACrC,SAAS,EAAE,mDAA8B,CAAC,QAAQ,EAAE;IACpD,MAAM,EAAE,qDAA+B,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC;AAED,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|