@financeable/aggregation 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -6
- package/RUNTIMES.md +6 -6
- package/examples/applicationsCreate.example.ts +1 -1
- package/examples/package-lock.json +2 -2
- package/funcs/applicationsCreate.js +1 -1
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/oauthTokenGet.js +1 -1
- package/funcs/oauthTokenGet.js.map +1 -1
- package/funcs/supportingDocumentsCreate.js +1 -1
- package/funcs/supportingDocumentsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/base64.d.ts +1 -1
- package/lib/base64.d.ts.map +1 -1
- package/lib/base64.js +1 -1
- package/lib/base64.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +19 -2
- package/lib/env.js.map +1 -1
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +2 -2
- package/lib/schemas.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/models/components/addressattributes.d.ts +1 -1
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +1 -1
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/apierrorlinks.d.ts +1 -1
- package/models/components/apierrorlinks.d.ts.map +1 -1
- package/models/components/apierrorlinks.js +1 -1
- package/models/components/apierrorlinks.js.map +1 -1
- package/models/components/applicationresource.d.ts +5 -3
- package/models/components/applicationresource.d.ts.map +1 -1
- package/models/components/applicationresource.js +7 -1
- package/models/components/applicationresource.js.map +1 -1
- package/models/components/applicationstatus.d.ts +1 -1
- package/models/components/applicationstatus.d.ts.map +1 -1
- package/models/components/applicationstatus.js +1 -1
- package/models/components/applicationstatus.js.map +1 -1
- package/models/components/australianstatesandterritories.d.ts +1 -1
- package/models/components/australianstatesandterritories.d.ts.map +1 -1
- package/models/components/australianstatesandterritories.js +1 -1
- package/models/components/australianstatesandterritories.js.map +1 -1
- package/models/components/badrequesterror.d.ts +1 -1
- package/models/components/badrequesterror.d.ts.map +1 -1
- package/models/components/badrequesterror.js +1 -1
- package/models/components/badrequesterror.js.map +1 -1
- package/models/components/businessapplicationjsonapirelationships.d.ts +296 -0
- package/models/components/businessapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/businessapplicationjsonapirelationships.js +309 -0
- package/models/components/businessapplicationjsonapirelationships.js.map +1 -0
- package/models/components/businessapplicationpayload.d.ts +137 -0
- package/models/components/businessapplicationpayload.d.ts.map +1 -0
- package/models/components/businessapplicationpayload.js +150 -0
- package/models/components/businessapplicationpayload.js.map +1 -0
- package/models/components/businessapplicationresource.d.ts +166 -0
- package/models/components/businessapplicationresource.d.ts.map +1 -0
- package/models/components/businessapplicationresource.js +159 -0
- package/models/components/businessapplicationresource.js.map +1 -0
- package/models/components/businessloanbusinessapplicationrelationships.d.ts +594 -0
- package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -0
- package/models/components/businessloanbusinessapplicationrelationships.js +599 -0
- package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts +1 -1
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.js +1 -1
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.d.ts +1 -1
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.js +1 -1
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
- package/models/components/commercialsecuredapplicationresource.d.ts +1 -1
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationresource.js +1 -1
- package/models/components/commercialsecuredapplicationresource.js.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.d.ts +1 -1
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +1 -1
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloanassettype.d.ts +1 -1
- package/models/components/commercialsecuredloanassettype.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassettype.js +1 -1
- package/models/components/commercialsecuredloanassettype.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 +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/commercialsecuredloantypeofsale.d.ts +1 -1
- package/models/components/commercialsecuredloantypeofsale.d.ts.map +1 -1
- package/models/components/commercialsecuredloantypeofsale.js +1 -1
- package/models/components/commercialsecuredloantypeofsale.js.map +1 -1
- package/models/components/consumerapplicationjsonapirelationships.d.ts +1 -1
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/consumerapplicationjsonapirelationships.js +1 -1
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationpayload.js +1 -1
- package/models/components/consumersecuredapplicationpayload.js.map +1 -1
- package/models/components/consumersecuredapplicationresource.d.ts +1 -1
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationresource.js +1 -1
- package/models/components/consumersecuredapplicationresource.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +1 -1
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanassettype.d.ts +1 -1
- package/models/components/consumersecuredloanassettype.d.ts.map +1 -1
- package/models/components/consumersecuredloanassettype.js +1 -1
- package/models/components/consumersecuredloanassettype.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloantypeofsale.d.ts +1 -1
- package/models/components/consumersecuredloantypeofsale.d.ts.map +1 -1
- package/models/components/consumersecuredloantypeofsale.js +1 -1
- package/models/components/consumersecuredloantypeofsale.js.map +1 -1
- package/models/components/createsupportingdocumentsresponse.d.ts +1 -1
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
- package/models/components/createsupportingdocumentsresponse.js +1 -1
- package/models/components/createsupportingdocumentsresponse.js.map +1 -1
- package/models/components/currencycodeiso4217.d.ts +1 -1
- package/models/components/currencycodeiso4217.d.ts.map +1 -1
- package/models/components/currencycodeiso4217.js +1 -1
- package/models/components/currencycodeiso4217.js.map +1 -1
- package/models/components/customerassetattributes.d.ts +1 -1
- package/models/components/customerassetattributes.d.ts.map +1 -1
- package/models/components/customerassetattributes.js +1 -1
- package/models/components/customerassetattributes.js.map +1 -1
- package/models/components/customerassettype.d.ts +1 -1
- package/models/components/customerassettype.d.ts.map +1 -1
- package/models/components/customerassettype.js +1 -1
- package/models/components/customerassettype.js.map +1 -1
- package/models/components/customerattributes.d.ts +1 -1
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +1 -1
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/customeridtype.d.ts +1 -1
- package/models/components/customeridtype.d.ts.map +1 -1
- package/models/components/customeridtype.js +1 -1
- package/models/components/customeridtype.js.map +1 -1
- package/models/components/customerliabilityattributes.d.ts +1 -1
- package/models/components/customerliabilityattributes.d.ts.map +1 -1
- package/models/components/customerliabilityattributes.js +1 -1
- package/models/components/customerliabilityattributes.js.map +1 -1
- package/models/components/customerliabilityrepaymentfrequency.d.ts +1 -1
- package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -1
- package/models/components/customerliabilityrepaymentfrequency.js +1 -1
- package/models/components/customerliabilityrepaymentfrequency.js.map +1 -1
- package/models/components/customerliabilitytype.d.ts +1 -1
- package/models/components/customerliabilitytype.d.ts.map +1 -1
- package/models/components/customerliabilitytype.js +1 -1
- package/models/components/customerliabilitytype.js.map +1 -1
- package/models/components/customertitle.d.ts +1 -1
- package/models/components/customertitle.d.ts.map +1 -1
- package/models/components/customertitle.js +1 -1
- package/models/components/customertitle.js.map +1 -1
- package/models/components/documenttype.d.ts +1 -1
- package/models/components/documenttype.d.ts.map +1 -1
- package/models/components/documenttype.js +1 -1
- package/models/components/documenttype.js.map +1 -1
- package/models/components/entityattributes.d.ts +1 -1
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +1 -1
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/errorsource.d.ts +1 -1
- package/models/components/errorsource.d.ts.map +1 -1
- package/models/components/errorsource.js +1 -1
- package/models/components/errorsource.js.map +1 -1
- package/models/components/expenseattributes.d.ts +1 -1
- package/models/components/expenseattributes.d.ts.map +1 -1
- package/models/components/expenseattributes.js +1 -1
- package/models/components/expenseattributes.js.map +1 -1
- package/models/components/expensefrequency.d.ts +1 -1
- package/models/components/expensefrequency.d.ts.map +1 -1
- package/models/components/expensefrequency.js +1 -1
- package/models/components/expensefrequency.js.map +1 -1
- package/models/components/expensetype.d.ts +1 -1
- package/models/components/expensetype.d.ts.map +1 -1
- package/models/components/expensetype.js +1 -1
- package/models/components/expensetype.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +1 -1
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +1 -1
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/frequencytype.d.ts +1 -1
- package/models/components/frequencytype.d.ts.map +1 -1
- package/models/components/frequencytype.js +1 -1
- package/models/components/frequencytype.js.map +1 -1
- package/models/components/incomeattributes.d.ts +1 -1
- package/models/components/incomeattributes.d.ts.map +1 -1
- package/models/components/incomeattributes.js +1 -1
- package/models/components/incomeattributes.js.map +1 -1
- package/models/components/incomefrequency.d.ts +1 -1
- package/models/components/incomefrequency.d.ts.map +1 -1
- package/models/components/incomefrequency.js +1 -1
- package/models/components/incomefrequency.js.map +1 -1
- package/models/components/incometype.d.ts +1 -1
- package/models/components/incometype.d.ts.map +1 -1
- package/models/components/incometype.js +1 -1
- package/models/components/incometype.js.map +1 -1
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/linkobject.d.ts +1 -1
- package/models/components/linkobject.d.ts.map +1 -1
- package/models/components/linkobject.js +1 -1
- package/models/components/linkobject.js.map +1 -1
- package/models/components/livingarrangements.d.ts +1 -1
- package/models/components/livingarrangements.d.ts.map +1 -1
- package/models/components/livingarrangements.js +1 -1
- package/models/components/livingarrangements.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +8 -3
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +3 -1
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/maritalstatus.d.ts +1 -1
- package/models/components/maritalstatus.d.ts.map +1 -1
- package/models/components/maritalstatus.js +1 -1
- package/models/components/maritalstatus.js.map +1 -1
- package/models/components/monetaryquantity.d.ts +1 -1
- package/models/components/monetaryquantity.d.ts.map +1 -1
- package/models/components/monetaryquantity.js +1 -1
- package/models/components/monetaryquantity.js.map +1 -1
- package/models/components/percentagequantity.d.ts +1 -1
- package/models/components/percentagequantity.d.ts.map +1 -1
- package/models/components/percentagequantity.js +1 -1
- package/models/components/percentagequantity.js.map +1 -1
- package/models/components/personalapplicationjsonapirelationships.d.ts +208 -0
- package/models/components/personalapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/personalapplicationjsonapirelationships.js +229 -0
- package/models/components/personalapplicationjsonapirelationships.js.map +1 -0
- package/models/components/personalapplicationpayload.d.ts +137 -0
- package/models/components/personalapplicationpayload.d.ts.map +1 -0
- package/models/components/personalapplicationpayload.js +150 -0
- package/models/components/personalapplicationpayload.js.map +1 -0
- package/models/components/personalapplicationresource.d.ts +166 -0
- package/models/components/personalapplicationresource.d.ts.map +1 -0
- package/models/components/personalapplicationresource.js +159 -0
- package/models/components/personalapplicationresource.js.map +1 -0
- package/models/components/personalloanpersonalapplicationrelationships.d.ts +683 -0
- package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -0
- package/models/components/personalloanpersonalapplicationrelationships.js +682 -0
- package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -0
- package/models/components/relationshipresourcenotfound.d.ts +1 -1
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -1
- package/models/components/relationshipresourcenotfound.js +1 -1
- package/models/components/relationshipresourcenotfound.js.map +1 -1
- package/models/components/repaymentstructure.d.ts +1 -1
- package/models/components/repaymentstructure.d.ts.map +1 -1
- package/models/components/repaymentstructure.js +1 -1
- package/models/components/repaymentstructure.js.map +1 -1
- package/models/components/residencystatus.d.ts +1 -1
- package/models/components/residencystatus.d.ts.map +1 -1
- package/models/components/residencystatus.js +1 -1
- package/models/components/residencystatus.js.map +1 -1
- package/models/components/resourcenotfound.d.ts +1 -1
- package/models/components/resourcenotfound.d.ts.map +1 -1
- package/models/components/resourcenotfound.js +1 -1
- package/models/components/resourcenotfound.js.map +1 -1
- package/models/components/security.d.ts +1 -1
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +1 -1
- package/models/components/security.js.map +1 -1
- package/models/components/supportingdocumentattributes.d.ts +1 -1
- package/models/components/supportingdocumentattributes.d.ts.map +1 -1
- package/models/components/supportingdocumentattributes.js +1 -1
- package/models/components/supportingdocumentattributes.js.map +1 -1
- package/models/components/supportingdocumentattributesinput.d.ts +1 -1
- package/models/components/supportingdocumentattributesinput.d.ts.map +1 -1
- package/models/components/supportingdocumentattributesinput.js +1 -1
- package/models/components/supportingdocumentattributesinput.js.map +1 -1
- package/models/components/supportingdocumentrelationships.d.ts +1 -1
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
- package/models/components/supportingdocumentrelationships.js +1 -1
- package/models/components/supportingdocumentrelationships.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +1 -1
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js +1 -1
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/components/tokenrequest.d.ts +1 -1
- package/models/components/tokenrequest.d.ts.map +1 -1
- package/models/components/tokenrequest.js +1 -1
- package/models/components/tokenrequest.js.map +1 -1
- package/models/components/tokenresponse.d.ts +1 -1
- package/models/components/tokenresponse.d.ts.map +1 -1
- package/models/components/tokenresponse.js +1 -1
- package/models/components/tokenresponse.js.map +1 -1
- package/models/components/uploadmimetype.d.ts +1 -1
- package/models/components/uploadmimetype.d.ts.map +1 -1
- package/models/components/uploadmimetype.js +1 -1
- package/models/components/uploadmimetype.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/responsevalidationerror.js +1 -1
- package/models/errors/responsevalidationerror.js.map +1 -1
- package/models/errors/sdkvalidationerror.d.ts +1 -1
- package/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/models/errors/sdkvalidationerror.js +1 -1
- package/models/errors/sdkvalidationerror.js.map +1 -1
- package/models/operations/createapplication.d.ts +5 -5
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +9 -1
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +1 -1
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
- package/models/operations/supportingdocumentscreate.js +1 -1
- package/models/operations/supportingdocumentscreate.js.map +1 -1
- package/package.json +2 -2
- package/src/funcs/applicationsCreate.ts +1 -1
- package/src/funcs/oauthTokenGet.ts +1 -1
- package/src/funcs/supportingDocumentsCreate.ts +1 -1
- package/src/lib/base64.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +21 -5
- package/src/lib/schemas.ts +1 -1
- package/src/lib/url.ts +1 -1
- package/src/models/components/addressattributes.ts +1 -1
- package/src/models/components/apierrorlinks.ts +1 -1
- package/src/models/components/applicationresource.ts +23 -3
- package/src/models/components/applicationstatus.ts +1 -1
- package/src/models/components/australianstatesandterritories.ts +1 -1
- package/src/models/components/badrequesterror.ts +1 -1
- package/src/models/components/businessapplicationjsonapirelationships.ts +690 -0
- package/src/models/components/businessapplicationpayload.ts +242 -0
- package/src/models/components/businessapplicationresource.ts +285 -0
- package/src/models/components/businessloanbusinessapplicationrelationships.ts +1472 -0
- package/src/models/components/commercialapplicationjsonapirelationships.ts +1 -1
- package/src/models/components/commercialsecuredapplicationpayload.ts +1 -1
- package/src/models/components/commercialsecuredapplicationresource.ts +1 -1
- package/src/models/components/commercialsecuredloanassetattributes.ts +1 -1
- package/src/models/components/commercialsecuredloanassettype.ts +1 -1
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1 -1
- package/src/models/components/commercialsecuredloantypeofsale.ts +1 -1
- package/src/models/components/consumerapplicationjsonapirelationships.ts +1 -1
- package/src/models/components/consumersecuredapplicationpayload.ts +1 -1
- package/src/models/components/consumersecuredapplicationresource.ts +1 -1
- package/src/models/components/consumersecuredloanassetattributes.ts +1 -1
- package/src/models/components/consumersecuredloanassettype.ts +1 -1
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1 -1
- package/src/models/components/consumersecuredloantypeofsale.ts +1 -1
- package/src/models/components/createsupportingdocumentsresponse.ts +1 -1
- package/src/models/components/currencycodeiso4217.ts +1 -1
- package/src/models/components/customerassetattributes.ts +1 -1
- package/src/models/components/customerassettype.ts +1 -1
- package/src/models/components/customerattributes.ts +1 -1
- package/src/models/components/customeridtype.ts +1 -1
- package/src/models/components/customerliabilityattributes.ts +1 -1
- package/src/models/components/customerliabilityrepaymentfrequency.ts +1 -1
- package/src/models/components/customerliabilitytype.ts +1 -1
- package/src/models/components/customertitle.ts +1 -1
- package/src/models/components/documenttype.ts +1 -1
- package/src/models/components/entityattributes.ts +1 -1
- package/src/models/components/errorsource.ts +1 -1
- package/src/models/components/expenseattributes.ts +1 -1
- package/src/models/components/expensefrequency.ts +1 -1
- package/src/models/components/expensetype.ts +1 -1
- package/src/models/components/forbiddenerror.ts +1 -1
- package/src/models/components/frequencytype.ts +1 -1
- package/src/models/components/incomeattributes.ts +1 -1
- package/src/models/components/incomefrequency.ts +1 -1
- package/src/models/components/incometype.ts +1 -1
- package/src/models/components/index.ts +8 -0
- package/src/models/components/linkobject.ts +1 -1
- package/src/models/components/livingarrangements.ts +1 -1
- package/src/models/components/loandetailsattributes.ts +10 -3
- package/src/models/components/maritalstatus.ts +1 -1
- package/src/models/components/monetaryquantity.ts +1 -1
- package/src/models/components/percentagequantity.ts +1 -1
- package/src/models/components/personalapplicationjsonapirelationships.ts +486 -0
- package/src/models/components/personalapplicationpayload.ts +242 -0
- package/src/models/components/personalapplicationresource.ts +285 -0
- package/src/models/components/personalloanpersonalapplicationrelationships.ts +1710 -0
- package/src/models/components/relationshipresourcenotfound.ts +1 -1
- package/src/models/components/repaymentstructure.ts +1 -1
- package/src/models/components/residencystatus.ts +1 -1
- package/src/models/components/resourcenotfound.ts +1 -1
- package/src/models/components/security.ts +1 -1
- package/src/models/components/supportingdocumentattributes.ts +1 -1
- package/src/models/components/supportingdocumentattributesinput.ts +1 -1
- package/src/models/components/supportingdocumentrelationships.ts +1 -1
- package/src/models/components/supportingdocumentresource.ts +1 -1
- package/src/models/components/tokenrequest.ts +1 -1
- package/src/models/components/tokenresponse.ts +1 -1
- package/src/models/components/uploadmimetype.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/responsevalidationerror.ts +1 -1
- package/src/models/errors/sdkvalidationerror.ts +1 -1
- package/src/models/operations/createapplication.ts +21 -5
- package/src/models/operations/supportingdocumentscreate.ts +1 -1
- package/src/types/blobs.ts +7 -6
- package/src/types/constdatetime.ts +1 -1
- package/types/blobs.d.ts +1 -1
- package/types/blobs.d.ts.map +1 -1
- package/types/blobs.js +1 -1
- package/types/blobs.js.map +1 -1
- package/types/constdatetime.d.ts +1 -1
- package/types/constdatetime.d.ts.map +1 -1
- package/types/constdatetime.js +1 -1
- package/types/constdatetime.js.map +1 -1
- package/docs/sdks/financeable/README.md +0 -5
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
BusinessLoanBusinessApplicationRelationships,
|
|
12
|
+
BusinessLoanBusinessApplicationRelationships$inboundSchema,
|
|
13
|
+
BusinessLoanBusinessApplicationRelationships$Outbound,
|
|
14
|
+
BusinessLoanBusinessApplicationRelationships$outboundSchema,
|
|
15
|
+
} from "./businessloanbusinessapplicationrelationships.js";
|
|
16
|
+
import {
|
|
17
|
+
LinkObject,
|
|
18
|
+
LinkObject$inboundSchema,
|
|
19
|
+
LinkObject$Outbound,
|
|
20
|
+
LinkObject$outboundSchema,
|
|
21
|
+
} from "./linkobject.js";
|
|
22
|
+
|
|
23
|
+
export const BusinessApplicationPayloadType = {
|
|
24
|
+
BusinessApplications: "business-applications",
|
|
25
|
+
} as const;
|
|
26
|
+
export type BusinessApplicationPayloadType = ClosedEnum<
|
|
27
|
+
typeof BusinessApplicationPayloadType
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Type of the loan application
|
|
32
|
+
*/
|
|
33
|
+
export const BusinessApplicationPayloadApplicationType = {
|
|
34
|
+
Business: "business",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Type of the loan application
|
|
38
|
+
*/
|
|
39
|
+
export type BusinessApplicationPayloadApplicationType = ClosedEnum<
|
|
40
|
+
typeof BusinessApplicationPayloadApplicationType
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Application resource attributes
|
|
45
|
+
*/
|
|
46
|
+
export type BusinessApplicationPayloadAttributes = {
|
|
47
|
+
/**
|
|
48
|
+
* Type of the loan application
|
|
49
|
+
*/
|
|
50
|
+
applicationType: BusinessApplicationPayloadApplicationType;
|
|
51
|
+
/**
|
|
52
|
+
* Email address of the broker to be associated with this application.
|
|
53
|
+
*/
|
|
54
|
+
associatedBrokerEmail: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type BusinessApplicationPayload = {
|
|
58
|
+
type: BusinessApplicationPayloadType;
|
|
59
|
+
/**
|
|
60
|
+
* Application resource attributes
|
|
61
|
+
*/
|
|
62
|
+
attributes: BusinessApplicationPayloadAttributes;
|
|
63
|
+
relationships?: BusinessLoanBusinessApplicationRelationships | undefined;
|
|
64
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
65
|
+
meta?: { [k: string]: any } | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const BusinessApplicationPayloadType$inboundSchema: z.ZodNativeEnum<
|
|
70
|
+
typeof BusinessApplicationPayloadType
|
|
71
|
+
> = z.nativeEnum(BusinessApplicationPayloadType);
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const BusinessApplicationPayloadType$outboundSchema: z.ZodNativeEnum<
|
|
75
|
+
typeof BusinessApplicationPayloadType
|
|
76
|
+
> = BusinessApplicationPayloadType$inboundSchema;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace BusinessApplicationPayloadType$ {
|
|
83
|
+
/** @deprecated use `BusinessApplicationPayloadType$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = BusinessApplicationPayloadType$inboundSchema;
|
|
85
|
+
/** @deprecated use `BusinessApplicationPayloadType$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = BusinessApplicationPayloadType$outboundSchema;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const BusinessApplicationPayloadApplicationType$inboundSchema:
|
|
91
|
+
z.ZodNativeEnum<typeof BusinessApplicationPayloadApplicationType> = z
|
|
92
|
+
.nativeEnum(BusinessApplicationPayloadApplicationType);
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const BusinessApplicationPayloadApplicationType$outboundSchema:
|
|
96
|
+
z.ZodNativeEnum<typeof BusinessApplicationPayloadApplicationType> =
|
|
97
|
+
BusinessApplicationPayloadApplicationType$inboundSchema;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
+
*/
|
|
103
|
+
export namespace BusinessApplicationPayloadApplicationType$ {
|
|
104
|
+
/** @deprecated use `BusinessApplicationPayloadApplicationType$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema =
|
|
106
|
+
BusinessApplicationPayloadApplicationType$inboundSchema;
|
|
107
|
+
/** @deprecated use `BusinessApplicationPayloadApplicationType$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema =
|
|
109
|
+
BusinessApplicationPayloadApplicationType$outboundSchema;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const BusinessApplicationPayloadAttributes$inboundSchema: z.ZodType<
|
|
114
|
+
BusinessApplicationPayloadAttributes,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
unknown
|
|
117
|
+
> = z.object({
|
|
118
|
+
applicationType: BusinessApplicationPayloadApplicationType$inboundSchema,
|
|
119
|
+
associatedBrokerEmail: z.string(),
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type BusinessApplicationPayloadAttributes$Outbound = {
|
|
124
|
+
applicationType: string;
|
|
125
|
+
associatedBrokerEmail: string;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const BusinessApplicationPayloadAttributes$outboundSchema: z.ZodType<
|
|
130
|
+
BusinessApplicationPayloadAttributes$Outbound,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
BusinessApplicationPayloadAttributes
|
|
133
|
+
> = z.object({
|
|
134
|
+
applicationType: BusinessApplicationPayloadApplicationType$outboundSchema,
|
|
135
|
+
associatedBrokerEmail: z.string(),
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @internal
|
|
140
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
141
|
+
*/
|
|
142
|
+
export namespace BusinessApplicationPayloadAttributes$ {
|
|
143
|
+
/** @deprecated use `BusinessApplicationPayloadAttributes$inboundSchema` instead. */
|
|
144
|
+
export const inboundSchema =
|
|
145
|
+
BusinessApplicationPayloadAttributes$inboundSchema;
|
|
146
|
+
/** @deprecated use `BusinessApplicationPayloadAttributes$outboundSchema` instead. */
|
|
147
|
+
export const outboundSchema =
|
|
148
|
+
BusinessApplicationPayloadAttributes$outboundSchema;
|
|
149
|
+
/** @deprecated use `BusinessApplicationPayloadAttributes$Outbound` instead. */
|
|
150
|
+
export type Outbound = BusinessApplicationPayloadAttributes$Outbound;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function businessApplicationPayloadAttributesToJSON(
|
|
154
|
+
businessApplicationPayloadAttributes: BusinessApplicationPayloadAttributes,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
BusinessApplicationPayloadAttributes$outboundSchema.parse(
|
|
158
|
+
businessApplicationPayloadAttributes,
|
|
159
|
+
),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function businessApplicationPayloadAttributesFromJSON(
|
|
164
|
+
jsonString: string,
|
|
165
|
+
): SafeParseResult<BusinessApplicationPayloadAttributes, SDKValidationError> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) =>
|
|
169
|
+
BusinessApplicationPayloadAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
+
`Failed to parse 'BusinessApplicationPayloadAttributes' from JSON`,
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/** @internal */
|
|
175
|
+
export const BusinessApplicationPayload$inboundSchema: z.ZodType<
|
|
176
|
+
BusinessApplicationPayload,
|
|
177
|
+
z.ZodTypeDef,
|
|
178
|
+
unknown
|
|
179
|
+
> = z.object({
|
|
180
|
+
type: BusinessApplicationPayloadType$inboundSchema,
|
|
181
|
+
attributes: z.lazy(() => BusinessApplicationPayloadAttributes$inboundSchema),
|
|
182
|
+
relationships: BusinessLoanBusinessApplicationRelationships$inboundSchema
|
|
183
|
+
.optional(),
|
|
184
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
185
|
+
meta: z.record(z.any()).optional(),
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export type BusinessApplicationPayload$Outbound = {
|
|
190
|
+
type: string;
|
|
191
|
+
attributes: BusinessApplicationPayloadAttributes$Outbound;
|
|
192
|
+
relationships?:
|
|
193
|
+
| BusinessLoanBusinessApplicationRelationships$Outbound
|
|
194
|
+
| undefined;
|
|
195
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
196
|
+
meta?: { [k: string]: any } | undefined;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const BusinessApplicationPayload$outboundSchema: z.ZodType<
|
|
201
|
+
BusinessApplicationPayload$Outbound,
|
|
202
|
+
z.ZodTypeDef,
|
|
203
|
+
BusinessApplicationPayload
|
|
204
|
+
> = z.object({
|
|
205
|
+
type: BusinessApplicationPayloadType$outboundSchema,
|
|
206
|
+
attributes: z.lazy(() => BusinessApplicationPayloadAttributes$outboundSchema),
|
|
207
|
+
relationships: BusinessLoanBusinessApplicationRelationships$outboundSchema
|
|
208
|
+
.optional(),
|
|
209
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
210
|
+
meta: z.record(z.any()).optional(),
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @internal
|
|
215
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
216
|
+
*/
|
|
217
|
+
export namespace BusinessApplicationPayload$ {
|
|
218
|
+
/** @deprecated use `BusinessApplicationPayload$inboundSchema` instead. */
|
|
219
|
+
export const inboundSchema = BusinessApplicationPayload$inboundSchema;
|
|
220
|
+
/** @deprecated use `BusinessApplicationPayload$outboundSchema` instead. */
|
|
221
|
+
export const outboundSchema = BusinessApplicationPayload$outboundSchema;
|
|
222
|
+
/** @deprecated use `BusinessApplicationPayload$Outbound` instead. */
|
|
223
|
+
export type Outbound = BusinessApplicationPayload$Outbound;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export function businessApplicationPayloadToJSON(
|
|
227
|
+
businessApplicationPayload: BusinessApplicationPayload,
|
|
228
|
+
): string {
|
|
229
|
+
return JSON.stringify(
|
|
230
|
+
BusinessApplicationPayload$outboundSchema.parse(businessApplicationPayload),
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function businessApplicationPayloadFromJSON(
|
|
235
|
+
jsonString: string,
|
|
236
|
+
): SafeParseResult<BusinessApplicationPayload, SDKValidationError> {
|
|
237
|
+
return safeParse(
|
|
238
|
+
jsonString,
|
|
239
|
+
(x) => BusinessApplicationPayload$inboundSchema.parse(JSON.parse(x)),
|
|
240
|
+
`Failed to parse 'BusinessApplicationPayload' from JSON`,
|
|
241
|
+
);
|
|
242
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ApplicationStatus,
|
|
12
|
+
ApplicationStatus$inboundSchema,
|
|
13
|
+
ApplicationStatus$outboundSchema,
|
|
14
|
+
} from "./applicationstatus.js";
|
|
15
|
+
import {
|
|
16
|
+
BusinessApplicationJsonApiRelationships,
|
|
17
|
+
BusinessApplicationJsonApiRelationships$inboundSchema,
|
|
18
|
+
BusinessApplicationJsonApiRelationships$Outbound,
|
|
19
|
+
BusinessApplicationJsonApiRelationships$outboundSchema,
|
|
20
|
+
} from "./businessapplicationjsonapirelationships.js";
|
|
21
|
+
import {
|
|
22
|
+
LinkObject,
|
|
23
|
+
LinkObject$inboundSchema,
|
|
24
|
+
LinkObject$Outbound,
|
|
25
|
+
LinkObject$outboundSchema,
|
|
26
|
+
} from "./linkobject.js";
|
|
27
|
+
|
|
28
|
+
export const BusinessApplicationResourceType = {
|
|
29
|
+
BusinessApplications: "business-applications",
|
|
30
|
+
} as const;
|
|
31
|
+
export type BusinessApplicationResourceType = ClosedEnum<
|
|
32
|
+
typeof BusinessApplicationResourceType
|
|
33
|
+
>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Type of the loan application
|
|
37
|
+
*/
|
|
38
|
+
export const BusinessApplicationResourceApplicationType = {
|
|
39
|
+
Business: "business",
|
|
40
|
+
} as const;
|
|
41
|
+
/**
|
|
42
|
+
* Type of the loan application
|
|
43
|
+
*/
|
|
44
|
+
export type BusinessApplicationResourceApplicationType = ClosedEnum<
|
|
45
|
+
typeof BusinessApplicationResourceApplicationType
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Application resource attributes
|
|
50
|
+
*/
|
|
51
|
+
export type BusinessApplicationResourceAttributes = {
|
|
52
|
+
/**
|
|
53
|
+
* Full identifier of the application. Not visible within the web application.
|
|
54
|
+
*/
|
|
55
|
+
id?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Human readable & easily communicated identifier of the application. Visible within the web application.
|
|
58
|
+
*/
|
|
59
|
+
humanId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Type of the loan application
|
|
62
|
+
*/
|
|
63
|
+
applicationType: BusinessApplicationResourceApplicationType;
|
|
64
|
+
/**
|
|
65
|
+
* Current status, must be 'workshop' for new applications
|
|
66
|
+
*/
|
|
67
|
+
status: ApplicationStatus;
|
|
68
|
+
/**
|
|
69
|
+
* Creation timestamp
|
|
70
|
+
*/
|
|
71
|
+
createdAt?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Last update timestamp
|
|
74
|
+
*/
|
|
75
|
+
updatedAt?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* A Business Application resource following JSON:API structure
|
|
80
|
+
*/
|
|
81
|
+
export type BusinessApplicationResource = {
|
|
82
|
+
type: BusinessApplicationResourceType;
|
|
83
|
+
id?: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Application resource attributes
|
|
86
|
+
*/
|
|
87
|
+
attributes: BusinessApplicationResourceAttributes;
|
|
88
|
+
/**
|
|
89
|
+
* Relationships for a Business Application Resource
|
|
90
|
+
*/
|
|
91
|
+
relationships: BusinessApplicationJsonApiRelationships;
|
|
92
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
93
|
+
meta?: { [k: string]: any } | undefined;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const BusinessApplicationResourceType$inboundSchema: z.ZodNativeEnum<
|
|
98
|
+
typeof BusinessApplicationResourceType
|
|
99
|
+
> = z.nativeEnum(BusinessApplicationResourceType);
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const BusinessApplicationResourceType$outboundSchema: z.ZodNativeEnum<
|
|
103
|
+
typeof BusinessApplicationResourceType
|
|
104
|
+
> = BusinessApplicationResourceType$inboundSchema;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
|
+
*/
|
|
110
|
+
export namespace BusinessApplicationResourceType$ {
|
|
111
|
+
/** @deprecated use `BusinessApplicationResourceType$inboundSchema` instead. */
|
|
112
|
+
export const inboundSchema = BusinessApplicationResourceType$inboundSchema;
|
|
113
|
+
/** @deprecated use `BusinessApplicationResourceType$outboundSchema` instead. */
|
|
114
|
+
export const outboundSchema = BusinessApplicationResourceType$outboundSchema;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const BusinessApplicationResourceApplicationType$inboundSchema:
|
|
119
|
+
z.ZodNativeEnum<typeof BusinessApplicationResourceApplicationType> = z
|
|
120
|
+
.nativeEnum(BusinessApplicationResourceApplicationType);
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const BusinessApplicationResourceApplicationType$outboundSchema:
|
|
124
|
+
z.ZodNativeEnum<typeof BusinessApplicationResourceApplicationType> =
|
|
125
|
+
BusinessApplicationResourceApplicationType$inboundSchema;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
+
*/
|
|
131
|
+
export namespace BusinessApplicationResourceApplicationType$ {
|
|
132
|
+
/** @deprecated use `BusinessApplicationResourceApplicationType$inboundSchema` instead. */
|
|
133
|
+
export const inboundSchema =
|
|
134
|
+
BusinessApplicationResourceApplicationType$inboundSchema;
|
|
135
|
+
/** @deprecated use `BusinessApplicationResourceApplicationType$outboundSchema` instead. */
|
|
136
|
+
export const outboundSchema =
|
|
137
|
+
BusinessApplicationResourceApplicationType$outboundSchema;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const BusinessApplicationResourceAttributes$inboundSchema: z.ZodType<
|
|
142
|
+
BusinessApplicationResourceAttributes,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
unknown
|
|
145
|
+
> = z.object({
|
|
146
|
+
id: z.string().optional(),
|
|
147
|
+
humanId: z.string(),
|
|
148
|
+
applicationType: BusinessApplicationResourceApplicationType$inboundSchema,
|
|
149
|
+
status: ApplicationStatus$inboundSchema,
|
|
150
|
+
createdAt: z.string().optional(),
|
|
151
|
+
updatedAt: z.string().optional(),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export type BusinessApplicationResourceAttributes$Outbound = {
|
|
156
|
+
id?: string | undefined;
|
|
157
|
+
humanId: string;
|
|
158
|
+
applicationType: string;
|
|
159
|
+
status: string;
|
|
160
|
+
createdAt?: string | undefined;
|
|
161
|
+
updatedAt?: string | undefined;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const BusinessApplicationResourceAttributes$outboundSchema: z.ZodType<
|
|
166
|
+
BusinessApplicationResourceAttributes$Outbound,
|
|
167
|
+
z.ZodTypeDef,
|
|
168
|
+
BusinessApplicationResourceAttributes
|
|
169
|
+
> = z.object({
|
|
170
|
+
id: z.string().optional(),
|
|
171
|
+
humanId: z.string(),
|
|
172
|
+
applicationType: BusinessApplicationResourceApplicationType$outboundSchema,
|
|
173
|
+
status: ApplicationStatus$outboundSchema,
|
|
174
|
+
createdAt: z.string().optional(),
|
|
175
|
+
updatedAt: z.string().optional(),
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
181
|
+
*/
|
|
182
|
+
export namespace BusinessApplicationResourceAttributes$ {
|
|
183
|
+
/** @deprecated use `BusinessApplicationResourceAttributes$inboundSchema` instead. */
|
|
184
|
+
export const inboundSchema =
|
|
185
|
+
BusinessApplicationResourceAttributes$inboundSchema;
|
|
186
|
+
/** @deprecated use `BusinessApplicationResourceAttributes$outboundSchema` instead. */
|
|
187
|
+
export const outboundSchema =
|
|
188
|
+
BusinessApplicationResourceAttributes$outboundSchema;
|
|
189
|
+
/** @deprecated use `BusinessApplicationResourceAttributes$Outbound` instead. */
|
|
190
|
+
export type Outbound = BusinessApplicationResourceAttributes$Outbound;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function businessApplicationResourceAttributesToJSON(
|
|
194
|
+
businessApplicationResourceAttributes: BusinessApplicationResourceAttributes,
|
|
195
|
+
): string {
|
|
196
|
+
return JSON.stringify(
|
|
197
|
+
BusinessApplicationResourceAttributes$outboundSchema.parse(
|
|
198
|
+
businessApplicationResourceAttributes,
|
|
199
|
+
),
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function businessApplicationResourceAttributesFromJSON(
|
|
204
|
+
jsonString: string,
|
|
205
|
+
): SafeParseResult<BusinessApplicationResourceAttributes, SDKValidationError> {
|
|
206
|
+
return safeParse(
|
|
207
|
+
jsonString,
|
|
208
|
+
(x) =>
|
|
209
|
+
BusinessApplicationResourceAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
210
|
+
`Failed to parse 'BusinessApplicationResourceAttributes' from JSON`,
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const BusinessApplicationResource$inboundSchema: z.ZodType<
|
|
216
|
+
BusinessApplicationResource,
|
|
217
|
+
z.ZodTypeDef,
|
|
218
|
+
unknown
|
|
219
|
+
> = z.object({
|
|
220
|
+
type: BusinessApplicationResourceType$inboundSchema,
|
|
221
|
+
id: z.string().optional(),
|
|
222
|
+
attributes: z.lazy(() => BusinessApplicationResourceAttributes$inboundSchema),
|
|
223
|
+
relationships: BusinessApplicationJsonApiRelationships$inboundSchema,
|
|
224
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
225
|
+
meta: z.record(z.any()).optional(),
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
/** @internal */
|
|
229
|
+
export type BusinessApplicationResource$Outbound = {
|
|
230
|
+
type: string;
|
|
231
|
+
id?: string | undefined;
|
|
232
|
+
attributes: BusinessApplicationResourceAttributes$Outbound;
|
|
233
|
+
relationships: BusinessApplicationJsonApiRelationships$Outbound;
|
|
234
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
235
|
+
meta?: { [k: string]: any } | undefined;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/** @internal */
|
|
239
|
+
export const BusinessApplicationResource$outboundSchema: z.ZodType<
|
|
240
|
+
BusinessApplicationResource$Outbound,
|
|
241
|
+
z.ZodTypeDef,
|
|
242
|
+
BusinessApplicationResource
|
|
243
|
+
> = z.object({
|
|
244
|
+
type: BusinessApplicationResourceType$outboundSchema,
|
|
245
|
+
id: z.string().optional(),
|
|
246
|
+
attributes: z.lazy(() =>
|
|
247
|
+
BusinessApplicationResourceAttributes$outboundSchema
|
|
248
|
+
),
|
|
249
|
+
relationships: BusinessApplicationJsonApiRelationships$outboundSchema,
|
|
250
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
251
|
+
meta: z.record(z.any()).optional(),
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @internal
|
|
256
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
257
|
+
*/
|
|
258
|
+
export namespace BusinessApplicationResource$ {
|
|
259
|
+
/** @deprecated use `BusinessApplicationResource$inboundSchema` instead. */
|
|
260
|
+
export const inboundSchema = BusinessApplicationResource$inboundSchema;
|
|
261
|
+
/** @deprecated use `BusinessApplicationResource$outboundSchema` instead. */
|
|
262
|
+
export const outboundSchema = BusinessApplicationResource$outboundSchema;
|
|
263
|
+
/** @deprecated use `BusinessApplicationResource$Outbound` instead. */
|
|
264
|
+
export type Outbound = BusinessApplicationResource$Outbound;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function businessApplicationResourceToJSON(
|
|
268
|
+
businessApplicationResource: BusinessApplicationResource,
|
|
269
|
+
): string {
|
|
270
|
+
return JSON.stringify(
|
|
271
|
+
BusinessApplicationResource$outboundSchema.parse(
|
|
272
|
+
businessApplicationResource,
|
|
273
|
+
),
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function businessApplicationResourceFromJSON(
|
|
278
|
+
jsonString: string,
|
|
279
|
+
): SafeParseResult<BusinessApplicationResource, SDKValidationError> {
|
|
280
|
+
return safeParse(
|
|
281
|
+
jsonString,
|
|
282
|
+
(x) => BusinessApplicationResource$inboundSchema.parse(JSON.parse(x)),
|
|
283
|
+
`Failed to parse 'BusinessApplicationResource' from JSON`,
|
|
284
|
+
);
|
|
285
|
+
}
|