diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0359c2f3..a4d60fee 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 7bffa198-5d29-4efa-9942-d549cc832085 management: - docChecksum: 44787a7a83de7e825d52591063ea6b13 + docChecksum: f3cc69ac1b32ffe0a9295ca6839dfdbe docVersion: 10.17.2 - speakeasyVersion: 1.555.0 - generationVersion: 2.618.0 - releaseVersion: 0.24.1 - configChecksum: 63786f3516711b541d05ecf80173dd8c + speakeasyVersion: 1.559.0 + generationVersion: 2.624.0 + releaseVersion: 0.25.0 + configChecksum: 6c8dc30f9fe3e976dc8f5b1b1c33607f repoURL: https://github.com/apideck-libraries/sdk-typescript.git installationURL: https://github.com/apideck-libraries/sdk-typescript published: true @@ -22,7 +22,7 @@ features: downloadStreams: 0.1.1 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 - errors: 2.84.1 + errors: 2.85.0 globalSecurity: 2.82.13 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 @@ -40,7 +40,7 @@ features: sdkHooks: 0.3.0 tests: 0.16.2 typeOverrides: 2.81.1 - unions: 2.85.8 + unions: 2.85.9 uploadStreams: 0.1.0 generatedFiles: - .gitattributes @@ -697,7 +697,6 @@ generatedFiles: - docs/models/components/security.md - docs/models/components/service.md - docs/models/components/session.md - - docs/models/components/sessionsettings.md - docs/models/components/settings.md - docs/models/components/sharedlink.md - docs/models/components/sharedlinkinput.md @@ -2110,6 +2109,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/attachmentreference.go - src/__tests__/mockserver/internal/sdk/models/components/attachmentreferencetype.go - src/__tests__/mockserver/internal/sdk/models/components/authtype.go + - src/__tests__/mockserver/internal/sdk/models/components/badrequestresponseerror.go - src/__tests__/mockserver/internal/sdk/models/components/balancebyperiod.go - src/__tests__/mockserver/internal/sdk/models/components/balancebytransaction.go - src/__tests__/mockserver/internal/sdk/models/components/balancesheet.go @@ -2490,6 +2490,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/meta.go - src/__tests__/mockserver/internal/sdk/models/components/note.go - src/__tests__/mockserver/internal/sdk/models/components/noteinput.go + - src/__tests__/mockserver/internal/sdk/models/components/notfoundresponseerror.go - src/__tests__/mockserver/internal/sdk/models/components/oauthgranttype.go - src/__tests__/mockserver/internal/sdk/models/components/opportunitiesfilter.go - src/__tests__/mockserver/internal/sdk/models/components/opportunitiessort.go @@ -2531,7 +2532,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/schemasupport.go - src/__tests__/mockserver/internal/sdk/models/components/security.go - src/__tests__/mockserver/internal/sdk/models/components/session.go - - src/__tests__/mockserver/internal/sdk/models/components/sharedlink.go + - src/__tests__/mockserver/internal/sdk/models/components/sharedlinkoutput.go - src/__tests__/mockserver/internal/sdk/models/components/sharedlinktarget.go - src/__tests__/mockserver/internal/sdk/models/components/simpleformfieldoption.go - src/__tests__/mockserver/internal/sdk/models/components/sociallink.go @@ -2554,10 +2555,12 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/timeoffrequestsfilter.go - src/__tests__/mockserver/internal/sdk/models/components/trackingcategory.go - src/__tests__/mockserver/internal/sdk/models/components/trackingitem.go + - src/__tests__/mockserver/internal/sdk/models/components/unauthorizedresponseerror.go - src/__tests__/mockserver/internal/sdk/models/components/unexpectederrorresponse.go - src/__tests__/mockserver/internal/sdk/models/components/unifiedapiid.go - src/__tests__/mockserver/internal/sdk/models/components/unifiedfile.go - src/__tests__/mockserver/internal/sdk/models/components/unifiedid.go + - src/__tests__/mockserver/internal/sdk/models/components/unprocessableresponseerror.go - src/__tests__/mockserver/internal/sdk/models/components/updateaccountingdepartmentresponse.go - src/__tests__/mockserver/internal/sdk/models/components/updateaccountinglocationresponse.go - src/__tests__/mockserver/internal/sdk/models/components/updateactivityresponse.go @@ -2610,8 +2613,8 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/updatewebhookrequest.go - src/__tests__/mockserver/internal/sdk/models/components/updatewebhookresponse.go - src/__tests__/mockserver/internal/sdk/models/components/uploadsession.go - - src/__tests__/mockserver/internal/sdk/models/components/user.go - src/__tests__/mockserver/internal/sdk/models/components/userinput.go + - src/__tests__/mockserver/internal/sdk/models/components/useroutput.go - src/__tests__/mockserver/internal/sdk/models/components/validateconnectionstateresponse.go - src/__tests__/mockserver/internal/sdk/models/components/webhook.go - src/__tests__/mockserver/internal/sdk/models/components/webhookeventlog.go @@ -2906,11 +2909,11 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksdelete.go - src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksone.go - src/__tests__/mockserver/internal/sdk/models/operations/webhookwebhooksupdate.go - - src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponse.go - - src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponse.go - - src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponse.go - - src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponse.go - - src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponse.go + - src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponseerror.go + - src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponseerror.go + - src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponseerror.go + - src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponseerror.go + - src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponseerror.go - src/__tests__/mockserver/internal/sdk/types/bigint.go - src/__tests__/mockserver/internal/sdk/types/date.go - src/__tests__/mockserver/internal/sdk/types/datetime.go @@ -3797,12 +3800,14 @@ generatedFiles: - src/models/components/webhooksubscription.ts - src/models/components/webhooksupport.ts - src/models/components/website.ts + - src/models/errors/apideckerror.ts - src/models/errors/apierror.ts - src/models/errors/badrequestresponse.ts - src/models/errors/httpclienterrors.ts - src/models/errors/index.ts - src/models/errors/notfoundresponse.ts - src/models/errors/paymentrequiredresponse.ts + - src/models/errors/responsevalidationerror.ts - src/models/errors/sdkvalidationerror.ts - src/models/errors/unauthorizedresponse.ts - src/models/errors/unprocessableresponse.ts @@ -4208,6 +4213,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "tax-rates", "operation": "all", "data": [{"id": "1234", "name": "GST on Purchases", "code": "ABN", "description": "Reduced rate GST Purchases", "effective_tax_rate": 10, "total_tax_rate": 10, "tax_payable_account_id": "123456", "tax_remitted_account_id": "123456", "components": null, "type": "NONE", "report_tax_type": "NONE", "original_tax_rate_id": "12345", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -4230,6 +4237,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"id": "1234", "name": "GST on Purchases", "code": "ABN", "description": "Reduced rate GST Purchases", "effective_tax_rate": 10, "total_tax_rate": 10, "tax_payable_account_id": "123456", "tax_remitted_account_id": "123456", "components": [{"id": "10", "name": "GST", "rate": 10, "compound": true}], "type": "NONE", "report_tax_type": "NONE", "original_tax_rate_id": "12345", "status": "active", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} responses: @@ -4257,6 +4266,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "tax-rates", "operation": "one", "data": {"id": "1234", "name": "GST on Purchases", "code": "ABN", "description": "Reduced rate GST Purchases", "effective_tax_rate": 10, "total_tax_rate": 10, "tax_payable_account_id": "123456", "tax_remitted_account_id": "123456", "components": [{"id": "10", "name": "GST", "rate": 10, "compound": true}, {"id": "10", "name": "GST", "rate": 10, "compound": true}, {"id": "10", "name": "GST", "rate": 10, "compound": true}], "type": "NONE", "report_tax_type": "NONE", "original_tax_rate_id": "12345", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]}} @@ -4281,6 +4292,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"id": "1234", "name": "GST on Purchases", "code": "ABN", "description": "Reduced rate GST Purchases", "effective_tax_rate": 10, "total_tax_rate": 10, "tax_payable_account_id": "123456", "tax_remitted_account_id": "123456", "components": [{"id": "10", "name": "GST", "rate": 10, "compound": true}, {"id": "10", "name": "GST", "rate": 10, "compound": true}, {"id": "10", "name": "GST", "rate": 10, "compound": true}], "type": "NONE", "report_tax_type": "NONE", "original_tax_rate_id": "12345", "status": "active", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} responses: @@ -4307,6 +4320,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "tax-rates", "operation": "delete", "data": {"id": "12345"}} @@ -4334,6 +4349,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "123456", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "discount_percentage": 5.5, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24"}, {"id": "12345", "downstream_id": "12345", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "123456", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "discount_percentage": 5.5, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -4356,6 +4373,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "123456", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "discount_percentage": 5.5, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": null, "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24"} responses: @@ -4383,6 +4402,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "123456", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "discount_percentage": 5.5, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24"}} @@ -4407,6 +4428,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "123456", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}, {"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "discount_percentage": 5.5, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24"} responses: @@ -4433,6 +4456,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "delete", "data": {"id": "12345"}} @@ -4460,6 +4485,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -4482,6 +4509,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "123456", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4509,6 +4538,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "type": "service", "number": "OIT00546", "customer": null, "company_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "123456", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}, {"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -4533,6 +4564,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "123456", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}, {"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4559,6 +4592,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "delete", "data": {"id": "12345", "downstream_id": "12345"}} @@ -4586,6 +4621,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "ledger-accounts", "operation": "all", "data": [{"id": "12345", "display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "categories": [{"id": "12345", "name": "Finance Charges Expense"}, {"id": "12345", "name": "Finance Charges Expense"}], "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "sub_accounts": [{"id": "12345", "account_sub_name": "Petty Cash"}, {"id": "12345", "account_sub_name": "Petty Cash"}], "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "categories": [{"id": "12345", "name": "Finance Charges Expense"}, {"id": "12345", "name": "Finance Charges Expense"}], "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "sub_accounts": [{"id": "12345", "account_sub_name": "Petty Cash"}, {"id": "12345", "account_sub_name": "Petty Cash"}], "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "categories": [{"id": "12345", "name": "Finance Charges Expense"}, {"id": "12345", "name": "Finance Charges Expense"}], "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "sub_accounts": [{"id": "12345", "account_sub_name": "Petty Cash"}, {"id": "12345", "account_sub_name": "Petty Cash"}], "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -4608,6 +4645,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4635,6 +4674,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "ledger-accounts", "operation": "one", "data": {"id": "12345", "display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "categories": [{"id": "12345", "name": "Finance Charges Expense"}, {"id": "12345", "name": "Finance Charges Expense"}], "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "sub_accounts": [{"id": "12345", "account_sub_name": "Petty Cash"}], "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -4659,6 +4700,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"display_id": "1-12345", "code": "453", "classification": "asset", "type": "bank", "sub_type": "CHECKING_ACCOUNT", "name": "Bank account", "fully_qualified_name": "Asset.Bank.Checking_Account", "description": "Main checking account", "opening_balance": 75000, "current_balance": 20000, "currency": "USD", "tax_type": "NONE", "tax_rate": {"id": "123456", "rate": 10}, "level": 1, "active": true, "status": "active", "header": true, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "parent_account": {"id": "12345", "name": "Bank Accounts", "display_id": "1-1100"}, "sub_account": false, "last_reconciliation_date": "2020-09-30", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4685,6 +4728,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "ledger-accounts", "operation": "delete", "data": {"id": "12345"}} @@ -4712,6 +4757,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "all", "data": [{"id": "123456", "name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "123456", "name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "123456", "name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -4734,6 +4781,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": null, "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4762,6 +4811,8 @@ examples: filter: {"type": "service"} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoice-items", "operation": "one", "data": {"id": "123456", "name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "income_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "expense_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -4786,6 +4837,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Model Y", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code": "120-C", "sold": true, "purchased": true, "tracked": true, "taxable": true, "inventory_date": "2020-10-30", "type": "inventory", "sales_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "purchase_details": {"unit_price": 27500.5, "unit_of_measure": "pc.", "tax_inclusive": true, "tax_rate": {"id": "123456", "rate": 10}}, "quantity": 1, "unit_price": 27500.5, "asset_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "income_account": null, "expense_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "active": true, "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_schedule_id": "123456", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4812,6 +4865,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "tax-rates", "operation": "delete", "data": {"id": "12345"}} @@ -4839,6 +4894,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "all", "data": [{"id": "123456", "number": "OIT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -4861,6 +4918,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4888,6 +4947,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "one", "data": {"id": "123456", "number": "OIT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -4912,6 +4973,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}, {"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -4938,6 +5001,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "delete", "data": {"id": "12345"}} @@ -4965,6 +5030,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -4987,6 +5054,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5014,6 +5083,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -5038,6 +5109,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5064,6 +5137,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "delete", "data": {"id": "12345"}} @@ -5091,6 +5166,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "suppliers", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345"}, {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345"}, {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -5113,6 +5190,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345"} responses: @@ -5140,6 +5219,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "suppliers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345"}} @@ -5164,6 +5245,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345"} responses: @@ -5190,6 +5273,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "suppliers", "operation": "delete", "data": {"id": "12345"}} @@ -5217,6 +5302,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -5239,6 +5326,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}, {"id": "123456", "amount": 49.99, "allocation_id": "123456"}, {"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5266,6 +5355,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}, {"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -5290,6 +5381,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_receivable", "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}, {"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5316,6 +5409,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "delete", "data": {"id": "12345"}} @@ -5339,6 +5434,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "company-info", "operation": "one", "data": {"id": "12345", "company_name": "SpaceX", "status": "active", "legal_name": "SpaceX Inc.", "country": "US", "sales_tax_number": "111.222.333", "default_sales_tax": {"id": "1234", "name": "GST on Purchases", "code": "ABN", "description": "Reduced rate GST Purchases", "effective_tax_rate": 10, "total_tax_rate": 10, "tax_payable_account_id": "123456", "tax_remitted_account_id": "123456", "components": [{"id": "10", "name": "GST", "rate": 10, "compound": true}, {"id": "10", "name": "GST", "rate": 10, "compound": true}], "type": "NONE", "report_tax_type": "NONE", "original_tax_rate_id": "12345", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}]}, "currency": "USD", "language": "EN", "fiscal_year_start_month": "January", "company_start_date": "2015-06-05", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -5363,6 +5460,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "BalanceSheets", "operation": "one", "data": {"reports": []}} @@ -5388,6 +5487,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "ProfitAndLosses", "operation": "one", "data": {"id": "12345", "report_name": "ProfitAndLoss", "start_date": "2017-01-01", "end_date": "2017-01-31", "currency": "USD", "income": {"id": "123", "code": "123", "title": "Operating Income", "type": "Section", "total": 60000, "records": [{"id": "137", "title": "Sales of products", "code": "137", "type": "Section", "total": 20000, "records": [{"id": "13701", "title": "Sales of products", "code": "13701", "type": "Record", "total": 20000}]}, {"id": "138", "title": "Sales of services", "code": "138", "type": "Section", "total": 40000, "records": [{"id": "789", "code": "789", "title": "Sales of External Services", "type": "Record", "total": 10000}, {"id": "101", "code": "101", "title": "Sales of Internal Services", "type": "Record", "total": 30000}]}]}, "cost_of_goods_sold": {"id": "123", "code": "123", "title": "Cost of Goods Sold", "type": "Section", "total": 12000, "records": [{"id": "123", "code": "123", "title": "COGS Sales", "type": "Record", "total": 12000}]}, "expenses": {"id": "123", "code": "123", "title": "Operating Expenses", "type": "Section", "total": 14000, "records": [{"id": "137", "title": "Maintenance", "code": "137", "type": "Record", "total": 1000}, {"id": "138", "title": "Rent", "code": "138", "type": "Record", "total": 10000}, {"id": "789", "code": "789", "title": "Utilities", "type": "Section", "total": 3000, "records": [{"id": "101", "code": "101", "title": "Electricity", "type": "Record", "total": 2000}, {"id": "102", "code": "102", "title": "Telephone", "type": "Record", "total": 1000}]}]}, "other_income": {"id": "123", "code": "123", "title": "Other Income", "type": "Section", "total": 3000, "records": [{"id": "123", "code": "123", "title": "Interest Income", "type": "Record", "total": 2000}, {"id": "123", "code": "123", "title": "Foreign Exchange Gain", "type": "Record", "total": 1000}]}, "other_expenses": {"id": "123", "code": "123", "title": "Other Expenses", "type": "Section", "total": 1000, "records": [{"id": "123", "code": "123", "title": "Unrealized Gain/Loss", "type": "Record", "total": 1000}]}, "uncategorized_accounts": {"id": "123", "code": "123", "title": "Uncategorized Accounts", "type": "Section", "total": 0, "records": [{"id": "123", "code": "123", "title": "Elimination Adjustments", "type": "Record", "total": 0}]}, "gross_profit": {"total": 10000}, "net_operating_income": {"total": 10000}, "net_income": {"total": 10000}, "customer": "123"}} @@ -5415,6 +5516,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "all", "data": [{"id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "accounting_period": "01-24", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "accounting_period": "01-24", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "accounting_period": "01-24", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -5437,6 +5540,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": null, "accounting_period": "01-24", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5464,6 +5569,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "one", "data": {"id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}, {"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": null, "accounting_period": "01-24", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -5488,6 +5595,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "accounting_period": "01-24", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5514,6 +5623,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "delete", "data": {"id": "12345"}} @@ -5540,6 +5651,8 @@ examples: sort: {"by": "updated_at", "direction": "desc"} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "tax_code": "1234", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "downstream_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "tax_code": "1234", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "downstream_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "tax_code": "1234", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -5562,6 +5675,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "tax_code": "1234", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5588,6 +5703,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "tax_code": "1234", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -5612,6 +5729,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}, {"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "tax_code": "1234", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5638,6 +5757,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "delete", "data": {"id": "12345"}} @@ -5662,6 +5783,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "subsidiaries", "operation": "all", "data": [{"id": "12345", "parent_id": "12345", "name": "SpaceX", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "parent_id": "12345", "name": "SpaceX", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "parent_id": "12345", "name": "SpaceX", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -5684,6 +5807,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "name": "SpaceX", "status": "active", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5711,6 +5836,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "subsidiaries", "operation": "one", "data": {"id": "12345", "parent_id": "12345", "name": "SpaceX", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -5735,6 +5862,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "name": "SpaceX", "status": "active", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5761,6 +5890,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "subsidiaries", "operation": "delete", "data": {"id": "12345"}} @@ -5786,6 +5917,8 @@ examples: filter: {"subsidiary": "1"} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "subsidiaries", "operation": "all", "data": [{"id": "12345", "parent_id": "12345", "company_name": "SpaceX", "display_name": "11 UT - South Jordan", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "subsidiaries": [{"id": "12345", "name": "SpaceX"}, {"id": "12345", "name": "SpaceX"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "parent_id": "12345", "company_name": "SpaceX", "display_name": "11 UT - South Jordan", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "subsidiaries": [{"id": "12345", "name": "SpaceX"}, {"id": "12345", "name": "SpaceX"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -5808,6 +5941,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "company_name": "SpaceX", "display_name": "11 UT - South Jordan", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "subsidiaries": [{"name": "SpaceX"}, {"name": "SpaceX"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5835,6 +5970,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "subsidiaries", "operation": "one", "data": {"id": "12345", "parent_id": "12345", "company_name": "SpaceX", "display_name": "11 UT - South Jordan", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "subsidiaries": [{"id": "12345", "name": "SpaceX"}, {"id": "12345", "name": "SpaceX"}, {"id": "12345", "name": "SpaceX"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -5859,6 +5996,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "company_name": "SpaceX", "display_name": "11 UT - South Jordan", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "subsidiaries": [{"name": "SpaceX"}, {"name": "SpaceX"}, {"name": "SpaceX"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5885,6 +6024,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "locations", "operation": "delete", "data": {"id": "12345"}} @@ -5910,6 +6051,8 @@ examples: filter: {"subsidiary": "1"} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "subsidiaries", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -5932,6 +6075,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "name": "Sales", "status": "active", "subsidiaries": [{"name": "SpaceX"}, {"name": "SpaceX"}, {"name": "SpaceX"}], "code": "123", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -5959,6 +6104,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "subsidiaries", "operation": "one", "data": {"id": "12345", "parent_id": "12345", "name": "Sales", "status": "active", "subsidiaries": [{"id": "12345", "name": "SpaceX"}, {"id": "12345", "name": "SpaceX"}], "code": "123", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -5983,6 +6130,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "name": "Sales", "status": "active", "subsidiaries": [{"name": "SpaceX"}, {"name": "SpaceX"}, {"name": "SpaceX"}], "code": "123", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6009,6 +6158,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "departments", "operation": "delete", "data": {"id": "12345"}} @@ -6036,6 +6187,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6061,6 +6214,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: '*/*': "x-file: example.file" responses: @@ -6088,6 +6243,8 @@ examples: header: x-apideck-metadata: "{\"name\":\"document.pdf\",\"description\":\"Invoice attachment\"}" x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: '*/*': "x-file: example.file" responses: @@ -6117,6 +6274,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "display_id": "sample ID", "name": "sample.jpg", "mime_type": "image/jpeg", "size": 1810673, "reference": {"type": "invoice", "id": "12345"}, "description": "A sample image", "parent_folder_id": "123", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -6143,6 +6302,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "files", "operation": "delete", "data": {"id": "12345"}} @@ -6169,6 +6330,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": '*/*': "x-file: example.file" @@ -6194,6 +6357,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "tracking-categories", "operation": "all", "data": [{"id": "12345", "parent_id": "12345", "name": "Department", "code": "100", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "parent_id": "12345", "name": "Department", "code": "100", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6216,6 +6381,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "name": "Department", "code": "100", "status": "active", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6243,6 +6410,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "tracking-categories", "operation": "one", "data": {"id": "12345", "parent_id": "12345", "name": "Department", "code": "100", "status": "active", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -6267,6 +6436,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "name": "Department", "code": "100", "status": "active", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6293,6 +6464,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "tracking-categories", "operation": "delete", "data": {"id": "12345"}} @@ -6320,6 +6493,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6342,6 +6517,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}, {"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}, {"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6369,6 +6546,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}, {"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}, {"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -6393,6 +6572,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}, {"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}, {"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6419,6 +6600,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "delete", "data": {"id": "12345"}} @@ -6442,6 +6625,8 @@ examples: limit: 20 header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Expenses", "operation": "all", "data": [{"id": "12345", "number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account_id": "123456", "customer_id": "12345", "supplier_id": "12345", "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "total_amount": 275, "line_items": [{"id": "12345", "tracking_categories": [{"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6464,6 +6649,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account_id": "123456", "customer_id": "12345", "supplier_id": "12345", "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "rate": 10}, "total_amount": 275, "line_items": [{"tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6490,6 +6677,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Expenses", "operation": "one", "data": {"id": "12345", "number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account_id": "123456", "customer_id": "12345", "supplier_id": "12345", "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "total_amount": 275, "line_items": [{"id": "12345", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}, {"id": "12345", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}, {"id": "12345", "tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -6514,6 +6703,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"number": "OIT00546", "transaction_date": "2021-05-01T12:00:00.000Z", "account_id": "123456", "customer_id": "12345", "supplier_id": "12345", "company_id": "12345", "department_id": "12345", "payment_type": "cash", "currency": "USD", "currency_rate": 0.69, "type": "expense", "memo": "For travel expenses incurred on 2024-05-15", "tax_rate": {"id": "123456", "rate": 10}, "total_amount": 275, "line_items": [{"tracking_categories": [{"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}, {"id": "123456", "name": "New York"}], "account_id": "123456", "customer_id": "12345", "department_id": "12345", "location_id": "12345", "subsidiary_id": "12345", "tax_rate": {"id": "123456", "rate": 10}, "description": "Travel US.", "total_amount": 275, "billable": true, "line_number": 1}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6540,6 +6731,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Expenses", "operation": "delete", "data": {"id": "12345"}} @@ -6565,6 +6758,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "AgedCreditors", "operation": "one", "data": {"report_generated_at": "2024-11-14T12:00:00.000Z", "report_as_of_date": "2024-11-13", "period_count": 4, "period_length": 30, "outstanding_balances": [{"supplier_id": "123", "supplier_name": "Super Store", "outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}]}, {"supplier_id": "123", "supplier_name": "Super Store", "outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}]}]}} @@ -6590,6 +6785,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "AgedDebtors", "operation": "one", "data": {"report_generated_at": "2024-11-14T12:00:00.000Z", "report_as_of_date": "2024-11-13", "period_count": 4, "period_length": 30, "outstanding_balances": [{"customer_id": "123", "customer_name": "Super Store", "outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}]}, {"customer_id": "123", "customer_name": "Super Store", "outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800, "transaction_number": "INV-1001"}]}]}]}]}} @@ -6615,6 +6812,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-feed-accounts", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6637,6 +6836,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"bank_account_type": "bank", "source_account_id": "src_456", "target_account_id": "tgt_789", "target_account_name": "Main Company Checking", "target_account_number": "NL91ABNA0417164300", "currency": "USD", "feed_status": "pending", "country": "US", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} responses: @@ -6664,6 +6865,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-feed-accounts", "operation": "one", "data": {"id": "12345", "bank_account_type": "bank", "source_account_id": "src_456", "target_account_id": "tgt_789", "target_account_name": "Main Company Checking", "target_account_number": "NL91ABNA0417164300", "currency": "USD", "feed_status": "pending", "country": "US", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345", "created_by": "12345"}} @@ -6688,6 +6891,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"bank_account_type": "bank", "source_account_id": "src_456", "target_account_id": "tgt_789", "target_account_name": "Main Company Checking", "target_account_number": "NL91ABNA0417164300", "currency": "USD", "feed_status": "pending", "country": "US", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}]} responses: @@ -6714,6 +6919,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-feed-accounts", "operation": "delete", "data": {"id": "12345"}} @@ -6739,6 +6946,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-feed-statements", "operation": "all", "data": [{"id": "12345", "bank_feed_account_id": "acc_456", "status": "pending", "start_date": "2021-05-01T12:00:00.000Z", "end_date": "2025-01-31T12:00:00.000Z", "start_balance": 10500.25, "start_balance_credit_or_debit": "debit", "end_balance": 9800.5, "end_balance_credit_or_debit": "debit", "transactions": [{"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}], "created_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345"}, {"id": "12345", "bank_feed_account_id": "acc_456", "status": "pending", "start_date": "2021-05-01T12:00:00.000Z", "end_date": "2025-01-31T12:00:00.000Z", "start_balance": 10500.25, "start_balance_credit_or_debit": "debit", "end_balance": 9800.5, "end_balance_credit_or_debit": "debit", "transactions": [{"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}], "created_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6761,6 +6970,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"bank_feed_account_id": "acc_456", "status": "pending", "start_date": "2021-05-01T12:00:00.000Z", "end_date": "2025-01-31T12:00:00.000Z", "start_balance": 10500.25, "start_balance_credit_or_debit": "debit", "end_balance": 9800.5, "end_balance_credit_or_debit": "debit", "transactions": [{"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}, {"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}, {"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}]} responses: @@ -6788,6 +6999,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-feed-statements", "operation": "one", "data": {"id": "12345", "bank_feed_account_id": "acc_456", "status": "pending", "start_date": "2021-05-01T12:00:00.000Z", "end_date": "2025-01-31T12:00:00.000Z", "start_balance": 10500.25, "start_balance_credit_or_debit": "debit", "end_balance": 9800.5, "end_balance_credit_or_debit": "debit", "transactions": [{"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}, {"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}], "created_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345"}} @@ -6812,6 +7025,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"bank_feed_account_id": "acc_456", "status": "pending", "start_date": "2021-05-01T12:00:00.000Z", "end_date": "2025-01-31T12:00:00.000Z", "start_balance": 10500.25, "start_balance_credit_or_debit": "debit", "end_balance": 9800.5, "end_balance_credit_or_debit": "debit", "transactions": [{"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}, {"posted_date": "2025-01-15T12:00:00.000Z", "description": "Payment received from ACME Corp", "amount": 250, "credit_or_debit": "debit", "source_transaction_id": "txn_987", "counterparty": "ACME Corp", "reference": "INV-2025-01", "transaction_type": "payment"}]} responses: @@ -6838,6 +7053,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "bank-feed-statements", "operation": "delete", "data": {"id": "12345"}} @@ -6863,6 +7080,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "lever", "resource": "Jobs", "operation": "all", "data": [{"id": "12345", "slug": "ceo", "title": "CEO", "sequence": 3, "visibility": "internal", "status": "completed", "code": "123-OC", "language": "EN", "employment_terms": "full-time", "experience": "Director/ Vice President", "location": "San Francisco", "remote": true, "requisition_id": "abc123", "department": {"id": "12345", "parent_id": "22345", "name": "R&D", "code": "2", "description": "R&D", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, "branch": {"id": "123", "name": "HQ NY"}, "recruiters": ["a0d636c6-43b3-4bde-8c70-85b707d992f4"], "hiring_managers": ["123456"], "followers": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "description": "A description", "blocks": [{"title": "string", "content": "string"}], "closing": "The closing section of the job description", "closing_date": "2020-10-30", "salary": {"min": 8000, "max": 10000, "currency": "USD", "interval": "year"}, "links": [{"type": "job_portal", "url": "https://app.intercom.io/contacts/12345"}], "confidential": false, "available_to_employees": false, "tags": ["New"], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "deleted": true, "owner_id": "54321", "published_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "slug": "ceo", "title": "CEO", "sequence": 3, "visibility": "internal", "status": "completed", "code": "123-OC", "language": "EN", "employment_terms": "full-time", "experience": "Director/ Vice President", "location": "San Francisco", "remote": true, "requisition_id": "abc123", "department": {"id": "12345", "parent_id": "22345", "name": "R&D", "code": "2", "description": "R&D", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, "branch": {"id": "123", "name": "HQ NY"}, "recruiters": ["a0d636c6-43b3-4bde-8c70-85b707d992f4"], "hiring_managers": ["123456"], "followers": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "description": "A description", "blocks": [{"title": "string", "content": "string"}], "closing": "The closing section of the job description", "closing_date": "2020-10-30", "salary": {"min": 8000, "max": 10000, "currency": "USD", "interval": "year"}, "links": [{"type": "job_portal", "url": "https://app.intercom.io/contacts/12345"}], "confidential": false, "available_to_employees": false, "tags": ["New"], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "deleted": true, "owner_id": "54321", "published_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "slug": "ceo", "title": "CEO", "sequence": 3, "visibility": "internal", "status": "completed", "code": "123-OC", "language": "EN", "employment_terms": "full-time", "experience": "Director/ Vice President", "location": "San Francisco", "remote": true, "requisition_id": "abc123", "department": {"id": "12345", "parent_id": "22345", "name": "R&D", "code": "2", "description": "R&D", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, "branch": {"id": "123", "name": "HQ NY"}, "recruiters": ["a0d636c6-43b3-4bde-8c70-85b707d992f4"], "hiring_managers": ["123456"], "followers": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "description": "A description", "blocks": [{"title": "string", "content": "string"}], "closing": "The closing section of the job description", "closing_date": "2020-10-30", "salary": {"min": 8000, "max": 10000, "currency": "USD", "interval": "year"}, "links": [{"type": "job_portal", "url": "https://app.intercom.io/contacts/12345"}], "confidential": false, "available_to_employees": false, "tags": ["New"], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "deleted": true, "owner_id": "54321", "published_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6888,6 +7107,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "lever", "resource": "Jobs", "operation": "one", "data": {"id": "12345", "slug": "ceo", "title": "CEO", "sequence": 3, "visibility": "internal", "status": "completed", "code": "123-OC", "language": "EN", "employment_terms": "full-time", "experience": "Director/ Vice President", "location": "San Francisco", "remote": true, "requisition_id": "abc123", "department": {"id": "12345", "parent_id": "22345", "name": "R&D", "code": "2", "description": "R&D", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, "branch": {"id": "123", "name": "HQ NY"}, "recruiters": ["a0d636c6-43b3-4bde-8c70-85b707d992f4"], "hiring_managers": ["123456"], "followers": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "description": "A description", "blocks": [{"title": "string", "content": "string"}], "closing": "The closing section of the job description", "closing_date": "2020-10-30", "salary": {"min": 8000, "max": 10000, "currency": "USD", "interval": "year"}, "links": [{"type": "job_portal", "url": "https://app.intercom.io/contacts/12345"}, {"type": "job_portal", "url": "https://app.intercom.io/contacts/12345"}, {"type": "job_portal", "url": "https://app.intercom.io/contacts/12345"}], "confidential": false, "available_to_employees": false, "tags": ["New"], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "deleted": true, "owner_id": "54321", "published_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -6914,6 +7135,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "lever", "resource": "Applicants", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -6936,6 +7159,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "initials": "EM", "birthday": "2000-08-12", "cover_letter": "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", "photo_url": "https://unavatar.io/elon-musk", "headline": "PepsiCo, Inc, Central Perk", "title": "CEO", "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "stage_id": "12345", "recruiter_id": "12345", "coordinator_id": "12345", "application_ids": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "applications": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "followers": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "sources": ["Job site"], "confidential": false, "anonymized": true, "tags": ["New"], "archived": false, "owner_id": "54321", "record_url": "https://app.intercom.io/contacts/12345", "deleted": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -6963,6 +7188,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "lever", "resource": "Applicants", "operation": "one", "data": {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "initials": "EM", "birthday": "2000-08-12", "cover_letter": "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", "job_url": "https://democompany.recruitee.com/o/example-talent-pool", "photo_url": "https://unavatar.io/elon-musk", "headline": "PepsiCo, Inc, Central Perk", "title": "CEO", "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "stage_id": "12345", "recruiter_id": "12345", "coordinator_id": "12345", "application_ids": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "applications": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "followers": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "sources": ["Job site"], "source_id": "12345", "confidential": false, "anonymized": true, "tags": ["New"], "archived": false, "last_interaction_at": "2020-09-30T07:43:32.000Z", "owner_id": "54321", "sourced_by": "12345", "cv_url": "https://recruitee-main.s3.eu-central-1.amazonaws.com/candidates/36615291/pdf_cv_38swhu4w42k1.pdf?response-content-disposition=inline&response-content-type=application%2Fpdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQYHB7CA5RLR4Y3ON%2F20220514%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20220514T235654Z&X-Amz-Expires=36000&X-Amz-SignedHeaders=host&X-Amz-Signature=72c0621f5976db75b54de487eb821a8e73480d7f2a6a4a9713ab997944b0561f", "record_url": "https://app.intercom.io/contacts/12345", "rejected_at": "2020-09-30T07:43:32.000Z", "deleted": true, "deleted_by": "12345", "deleted_at": "2020-09-30T07:43:32.000Z", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -6987,6 +7214,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "initials": "EM", "birthday": "2000-08-12", "cover_letter": "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", "photo_url": "https://unavatar.io/elon-musk", "headline": "PepsiCo, Inc, Central Perk", "title": "CEO", "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "stage_id": "12345", "recruiter_id": "12345", "coordinator_id": "12345", "application_ids": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "applications": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "followers": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "sources": ["Job site"], "confidential": false, "anonymized": true, "tags": ["New"], "archived": false, "owner_id": "54321", "record_url": "https://app.intercom.io/contacts/12345", "deleted": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7013,6 +7242,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "lever", "resource": "Applicants", "operation": "delete", "data": {"id": "12345"}} @@ -7037,6 +7268,8 @@ examples: limit: 20 header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sap-successfactors", "resource": "Applications", "operation": "all", "data": [{"id": "12345", "applicant_id": "12345", "job_id": "12345", "status": "open", "stage": {"id": "12345", "name": "12345"}, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "applicant_id": "12345", "job_id": "12345", "status": "open", "stage": {"id": "12345", "name": "12345"}, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7059,6 +7292,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"applicant_id": "12345", "job_id": "12345", "status": "open", "stage": {"id": "12345", "name": "12345"}, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7085,6 +7320,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sap-successfactors", "resource": "Applications", "operation": "one", "data": {"id": "12345", "applicant_id": "12345", "job_id": "12345", "status": "open", "stage": {"id": "12345", "name": "12345"}, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7109,6 +7346,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"applicant_id": "12345", "job_id": "12345", "status": "open", "stage": {"id": "12345", "name": "12345"}, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7135,6 +7374,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sap-successfactors", "resource": "Applications", "operation": "delete", "data": {"id": "12345"}} @@ -7162,6 +7403,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7184,6 +7427,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "SpaceX", "owner_id": "12345", "image": "https://www.spacex.com/static/images/share.jpg", "description": "Space Exploration Technologies Corp. is an American aerospace manufacturer, space transportation services and communications company headquartered in Hawthorne, California.", "vat_number": "BE0689615164", "currency": "USD", "status": "Open", "fax": "+12129876543", "annual_revenue": "+$35m", "number_of_employees": "500-1000", "industry": "Apparel", "ownership": "Public", "sales_tax_number": "12456EN", "payee_number": "78932EN", "abn_or_tfn": "46 115 614 695", "abn_branch": "123", "acn": "XXX XXX XXX", "first_name": "Elon", "last_name": "Musk", "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "row_type": {"id": "12345", "name": "Customer Account"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "read_only": false, "salutation": "Mr", "birthday": "2000-08-12", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7211,6 +7456,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "one", "data": {"id": "12345", "name": "SpaceX", "interaction_count": 1, "owner_id": "12345", "image": "https://www.spacex.com/static/images/share.jpg", "description": "Space Exploration Technologies Corp. is an American aerospace manufacturer, space transportation services and communications company headquartered in Hawthorne, California.", "vat_number": "BE0689615164", "currency": "USD", "status": "Open", "fax": "+12129876543", "annual_revenue": "+$35m", "number_of_employees": "500-1000", "industry": "Apparel", "ownership": "Public", "sales_tax_number": "12456EN", "payee_number": "78932EN", "abn_or_tfn": "46 115 614 695", "abn_branch": "123", "acn": "XXX XXX XXX", "first_name": "Elon", "last_name": "Musk", "parent_id": "22345", "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "row_type": {"id": "12345", "name": "Customer Account"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "tags": ["New"], "read_only": false, "last_activity_at": "2020-09-30T07:43:32.000Z", "deleted": false, "salutation": "Mr", "birthday": "2000-08-12", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7235,6 +7482,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "SpaceX", "owner_id": "12345", "image": "https://www.spacex.com/static/images/share.jpg", "description": "Space Exploration Technologies Corp. is an American aerospace manufacturer, space transportation services and communications company headquartered in Hawthorne, California.", "vat_number": "BE0689615164", "currency": "USD", "status": "Open", "fax": "+12129876543", "annual_revenue": "+$35m", "number_of_employees": "500-1000", "industry": "Apparel", "ownership": "Public", "sales_tax_number": "12456EN", "payee_number": "78932EN", "abn_or_tfn": "46 115 614 695", "abn_branch": "123", "acn": "XXX XXX XXX", "first_name": "Elon", "last_name": "Musk", "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "row_type": {"id": "12345", "name": "Customer Account"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "read_only": false, "salutation": "Mr", "birthday": "2000-08-12", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7261,6 +7510,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "delete", "data": {"id": "12345"}} @@ -7288,6 +7539,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "contacts", "operation": "all", "data": [{"id": "12345", "name": "Elon Musk", "owner_id": "54321", "type": "personal", "company_id": "23456", "company_name": "23456", "lead_id": "34567", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "title": "CEO", "department": "Engineering", "language": "EN", "gender": "female", "birthday": "2000-08-12", "photo_url": "https://unavatar.io/elon-musk", "lead_source": "Cold Call", "fax": "+12129876543", "description": "Internal champion", "current_balance": 10.5, "status": "open", "active": true, "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "email_domain": "gmail.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "first_call_at": "2020-09-30T07:43:32.000Z", "first_email_at": "2020-09-30T07:43:32.000Z", "last_activity_at": "2020-09-30T07:43:32.000Z", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z", "opportunity_ids": ["12345"], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "name": "Elon Musk", "owner_id": "54321", "type": "personal", "company_id": "23456", "company_name": "23456", "lead_id": "34567", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "title": "CEO", "department": "Engineering", "language": "EN", "gender": "female", "birthday": "2000-08-12", "photo_url": "https://unavatar.io/elon-musk", "lead_source": "Cold Call", "fax": "+12129876543", "description": "Internal champion", "current_balance": 10.5, "status": "open", "active": true, "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "email_domain": "gmail.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "first_call_at": "2020-09-30T07:43:32.000Z", "first_email_at": "2020-09-30T07:43:32.000Z", "last_activity_at": "2020-09-30T07:43:32.000Z", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z", "opportunity_ids": ["12345"], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7310,6 +7563,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Elon Musk", "owner_id": "54321", "type": "personal", "company_id": "23456", "company_name": "23456", "lead_id": "34567", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "title": "CEO", "department": "Engineering", "language": "EN", "gender": "female", "birthday": "2000-08-12", "photo_url": "https://unavatar.io/elon-musk", "lead_source": "Cold Call", "fax": "+12129876543", "description": "Internal champion", "current_balance": 10.5, "status": "open", "active": true, "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "email_domain": "gmail.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "opportunity_ids": ["12345"], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7338,6 +7593,8 @@ examples: filter: {"first_name": "Elon", "last_name": "Musk", "email": "elon@tesla.com", "company_id": "12345", "owner_id": "12345"} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "one", "data": {"id": "12345", "name": "Elon Musk", "owner_id": "54321", "type": "personal", "company_id": "23456", "company_name": "23456", "lead_id": "34567", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "title": "CEO", "department": "Engineering", "language": "EN", "gender": "female", "birthday": "2000-08-12", "photo_url": "https://unavatar.io/elon-musk", "lead_source": "Cold Call", "fax": "+12129876543", "description": "Internal champion", "current_balance": 10.5, "status": "open", "active": true, "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "email_domain": "gmail.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "first_call_at": "2020-09-30T07:43:32.000Z", "first_email_at": "2020-09-30T07:43:32.000Z", "last_activity_at": "2020-09-30T07:43:32.000Z", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z", "opportunity_ids": ["12345"], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7362,6 +7619,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Elon Musk", "owner_id": "54321", "type": "personal", "company_id": "23456", "company_name": "23456", "lead_id": "34567", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "title": "CEO", "department": "Engineering", "language": "EN", "gender": "female", "birthday": "2000-08-12", "photo_url": "https://unavatar.io/elon-musk", "lead_source": "Cold Call", "fax": "+12129876543", "description": "Internal champion", "current_balance": 10.5, "status": "open", "active": true, "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "email_domain": "gmail.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "opportunity_ids": ["12345"], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7388,6 +7647,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "contacts", "operation": "delete", "data": {"id": "12345"}} @@ -7415,6 +7676,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "opportunities", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7437,6 +7700,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"title": "New Rocket", "primary_contact_id": "12345", "description": "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", "type": "Existing Customer - Upgrade", "monetary_amount": 75000, "currency": "USD", "win_probability": 40, "close_date": "2020-10-30", "loss_reason_id": "12345", "loss_reason": "No budget", "won_reason_id": "12345", "won_reason": "Best pitch", "pipeline_id": "12345", "pipeline_stage_id": "12345", "source_id": "12345", "lead_id": "12345", "lead_source": "Website", "contact_id": "12345", "contact_ids": ["12345"], "company_id": "12345", "company_name": "Copper", "owner_id": "12345", "priority": "None", "status": "Open", "status_id": "12345", "tags": ["New"], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "stage_last_changed_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7464,6 +7729,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "opportunities", "operation": "one", "data": {"id": "12345", "title": "New Rocket", "primary_contact_id": "12345", "description": "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", "type": "Existing Customer - Upgrade", "monetary_amount": 75000, "currency": "USD", "win_probability": 40, "expected_revenue": 75000, "close_date": "2020-10-30", "loss_reason_id": "12345", "loss_reason": "No budget", "won_reason_id": "12345", "won_reason": "Best pitch", "pipeline_id": "12345", "pipeline_stage_id": "12345", "source_id": "12345", "lead_id": "12345", "lead_source": "Website", "contact_id": "12345", "contact_ids": ["12345"], "company_id": "12345", "company_name": "Copper", "owner_id": "12345", "priority": "None", "status": "Open", "status_id": "12345", "tags": ["New"], "interaction_count": 0, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "stage_last_changed_at": "2020-09-30T07:43:32.000Z", "last_activity_at": "2020-09-30T07:43:32.000Z", "deleted": false, "date_stage_changed": "2020-09-30T00:00:00.000Z", "date_last_contacted": "2020-09-30T00:00:00.000Z", "date_lead_created": "2020-09-30T00:00:00.000Z", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7488,6 +7755,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"title": "New Rocket", "primary_contact_id": "12345", "description": "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", "type": "Existing Customer - Upgrade", "monetary_amount": 75000, "currency": "USD", "win_probability": 40, "close_date": "2020-10-30", "loss_reason_id": "12345", "loss_reason": "No budget", "won_reason_id": "12345", "won_reason": "Best pitch", "pipeline_id": "12345", "pipeline_stage_id": "12345", "source_id": "12345", "lead_id": "12345", "lead_source": "Website", "contact_id": "12345", "contact_ids": ["12345"], "company_id": "12345", "company_name": "Copper", "owner_id": "12345", "priority": "None", "status": "Open", "status_id": "12345", "tags": ["New"], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "stage_last_changed_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7514,6 +7783,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "delete", "data": {"id": "12345"}} @@ -7541,6 +7812,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "all", "data": [{"id": "12345", "name": "Elon Musk", "company_name": "Spacex", "owner_id": "54321", "owner_name": "John Doe", "company_id": "2", "lead_id": "2", "lead_source": "Cold Call", "first_name": "Elon", "last_name": "Musk", "description": "A thinker", "prefix": "Sir", "title": "CEO", "language": "EN", "status": "New", "monetary_amount": 75000, "currency": "USD", "fax": "+12129876543", "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "name": "Elon Musk", "company_name": "Spacex", "owner_id": "54321", "owner_name": "John Doe", "company_id": "2", "lead_id": "2", "lead_source": "Cold Call", "first_name": "Elon", "last_name": "Musk", "description": "A thinker", "prefix": "Sir", "title": "CEO", "language": "EN", "status": "New", "monetary_amount": 75000, "currency": "USD", "fax": "+12129876543", "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7563,6 +7836,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Elon Musk", "company_name": "Spacex", "owner_id": "54321", "owner_name": "John Doe", "company_id": "2", "lead_id": "2", "lead_source": "Cold Call", "first_name": "Elon", "last_name": "Musk", "description": "A thinker", "prefix": "Sir", "title": "CEO", "language": "EN", "status": "New", "monetary_amount": 75000, "currency": "USD", "fax": "+12129876543", "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7590,6 +7865,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "one", "data": {"id": "12345", "name": "Elon Musk", "company_name": "Spacex", "owner_id": "54321", "owner_name": "John Doe", "company_id": "2", "lead_id": "2", "lead_source": "Cold Call", "first_name": "Elon", "last_name": "Musk", "description": "A thinker", "prefix": "Sir", "title": "CEO", "language": "EN", "status": "New", "monetary_amount": 75000, "currency": "USD", "fax": "+12129876543", "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7614,6 +7891,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Elon Musk", "company_name": "Spacex", "owner_id": "54321", "owner_name": "John Doe", "company_id": "2", "lead_id": "2", "lead_source": "Cold Call", "first_name": "Elon", "last_name": "Musk", "description": "A thinker", "prefix": "Sir", "title": "CEO", "language": "EN", "status": "New", "monetary_amount": 75000, "currency": "USD", "fax": "+12129876543", "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tags": ["New"], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7640,6 +7919,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "delete", "data": {"id": "12345"}} @@ -7665,6 +7946,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "pipelines", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7687,6 +7970,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"id": "default", "name": "Sales Pipeline", "currency": "USD", "archived": false, "active": false, "display_order": 1, "win_probability_enabled": true, "stages": [{"name": "Contract Sent", "value": "CONTRACT_SENT", "win_probability": 50, "display_order": 1}, {"name": "Contract Sent", "value": "CONTRACT_SENT", "win_probability": 50, "display_order": 1}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7714,6 +7999,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "pipelines", "operation": "one", "data": {"id": "default", "name": "Sales Pipeline", "currency": "USD", "archived": false, "active": false, "display_order": 1, "win_probability_enabled": true, "stages": [{"id": "contractsent", "name": "Contract Sent", "value": "CONTRACT_SENT", "win_probability": 50, "display_order": 1}, {"id": "contractsent", "name": "Contract Sent", "value": "CONTRACT_SENT", "win_probability": 50, "display_order": 1}, {"id": "contractsent", "name": "Contract Sent", "value": "CONTRACT_SENT", "win_probability": 50, "display_order": 1}], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7738,6 +8025,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"id": "default", "name": "Sales Pipeline", "currency": "USD", "archived": false, "active": false, "display_order": 1, "win_probability_enabled": true, "stages": [{"name": "Contract Sent", "value": "CONTRACT_SENT", "win_probability": 50, "display_order": 1}, {"name": "Contract Sent", "value": "CONTRACT_SENT", "win_probability": 50, "display_order": 1}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7764,6 +8053,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "delete", "data": {"id": "12345"}} @@ -7789,6 +8080,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "notes", "operation": "all", "data": [{"id": "12345", "title": "Meeting Notes", "content": "Office hours are 9AM-6PM", "owner_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "activity_id": "12345", "lead_id": "12345", "active": true, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7811,6 +8104,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"title": "Meeting Notes", "content": "Office hours are 9AM-6PM", "owner_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "activity_id": "12345", "lead_id": "12345", "active": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7838,6 +8133,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "notes", "operation": "one", "data": {"id": "12345", "title": "Meeting Notes", "content": "Office hours are 9AM-6PM", "owner_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "activity_id": "12345", "lead_id": "12345", "active": true, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7862,6 +8159,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"title": "Meeting Notes", "content": "Office hours are 9AM-6PM", "owner_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "activity_id": "12345", "lead_id": "12345", "active": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7888,6 +8187,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "notes", "operation": "delete", "data": {"id": "12345"}} @@ -7913,6 +8214,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "users", "operation": "all", "data": [{"id": "12345", "parent_id": "54321", "username": "masterofcoin", "first_name": "Elon", "last_name": "Musk", "title": "CEO", "division": "Europe", "company_name": "SpaceX", "employee_number": "123456-AB", "description": "A description", "image": "https://logo.clearbit.com/spacex.com?s=128", "language": "EN", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [], "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "parent_id": "54321", "username": "masterofcoin", "first_name": "Elon", "last_name": "Musk", "title": "CEO", "division": "Europe", "company_name": "SpaceX", "employee_number": "123456-AB", "description": "A description", "image": "https://logo.clearbit.com/spacex.com?s=128", "language": "EN", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [], "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "parent_id": "54321", "username": "masterofcoin", "first_name": "Elon", "last_name": "Musk", "title": "CEO", "division": "Europe", "company_name": "SpaceX", "employee_number": "123456-AB", "description": "A description", "image": "https://logo.clearbit.com/spacex.com?s=128", "language": "EN", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [], "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -7935,6 +8238,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "54321", "username": "masterofcoin", "first_name": "Elon", "last_name": "Musk", "title": "CEO", "division": "Europe", "company_name": "SpaceX", "employee_number": "123456-AB", "description": "A description", "image": "https://logo.clearbit.com/spacex.com?s=128", "language": "EN", "status": "active", "password": "supersecretpassword", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -7962,6 +8267,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "companies", "operation": "one", "data": {"id": "12345", "parent_id": "54321", "username": "masterofcoin", "first_name": "Elon", "last_name": "Musk", "title": "CEO", "division": "Europe", "company_name": "SpaceX", "employee_number": "123456-AB", "description": "A description", "image": "https://logo.clearbit.com/spacex.com?s=128", "language": "EN", "status": "active", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -7986,6 +8293,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "54321", "username": "masterofcoin", "first_name": "Elon", "last_name": "Musk", "title": "CEO", "division": "Europe", "company_name": "SpaceX", "employee_number": "123456-AB", "description": "A description", "image": "https://logo.clearbit.com/spacex.com?s=128", "language": "EN", "status": "active", "password": "supersecretpassword", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8012,6 +8321,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "users", "operation": "delete", "data": {"id": "12345"}} @@ -8039,6 +8350,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "activities", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "duration_minutes": 30, "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "attendees": [{"id": "12345", "name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted", "user_id": "12345", "contact_id": "12345", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z"}, {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted", "user_id": "12345", "contact_id": "12345", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -8061,6 +8374,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "attendees": [{"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8088,6 +8403,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "activities", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "duration_minutes": 30, "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"id": "12345", "name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted", "user_id": "12345", "contact_id": "12345", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -8112,6 +8429,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}, {"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}, {"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8138,6 +8457,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "activities", "operation": "delete", "data": {"id": "12345"}} @@ -8165,6 +8486,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "shopify", "resource": "orders", "operation": "all", "data": [{"id": "12345", "order_number": "123456789", "currency": "USD", "discounts": [{"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}, {"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}, {"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}], "sub_total": "45.17", "shipping_cost": "5.17", "coupon_discount": "5.5", "total_discount": "5.5", "total_tax": "5.16", "total_amount": "50.17", "refunded_amount": "5.5", "status": "active", "payment_status": "paid", "fulfillment_status": "shipped", "payment_method": "credit_card", "customer": {"id": "12345", "name": "John Doe", "first_name": "John", "last_name": "Doe", "company_name": "Acme Inc.", "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}]}, "billing_address": {"line1": "123 Main Street", "line2": "Apt 1", "company_name": "Acme Inc.", "city": "New York", "state": "NY", "postal_code": "10001", "country": "US"}, "shipping_address": {"line1": "123 Main Street", "line2": "Apt 1", "company_name": "Acme Inc.", "city": "New York", "state": "NY", "postal_code": "10001", "country": "US"}, "tracking": [{"provider": "UPS", "number": "1Z9999999999999999", "url": "https://www.ups.com/track?tracknum=1Z9999999999999999", "updated_at": "2020-09-30T07:43:32.000Z"}, {"provider": "UPS", "number": "1Z9999999999999999", "url": "https://www.ups.com/track?tracknum=1Z9999999999999999", "updated_at": "2020-09-30T07:43:32.000Z"}], "line_items": [{"id": "12345", "product_id": "def456", "variant_id": "ghi789", "sku": "MBP123-16GB-SILVER-13", "name": "Midnight 16inch MacBook Pro", "description": "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", "options": [{"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}], "quantity": "2", "unit_price": "19.99", "tax_rate": "0.08", "tax_amount": "1.6", "is_refunded": false, "refunded_amount": "0", "refunded_quantity": "0", "sub_total": "43.18", "total_amount": "43.18", "discounts": [{"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}, {"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}]}, {"id": "12345", "product_id": "def456", "variant_id": "ghi789", "sku": "MBP123-16GB-SILVER-13", "name": "Midnight 16inch MacBook Pro", "description": "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", "options": [{"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}], "quantity": "2", "unit_price": "19.99", "tax_rate": "0.08", "tax_amount": "1.6", "is_refunded": false, "refunded_amount": "0", "refunded_quantity": "0", "sub_total": "43.18", "total_amount": "43.18", "discounts": [{"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}, {"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}]}, {"id": "12345", "product_id": "def456", "variant_id": "ghi789", "sku": "MBP123-16GB-SILVER-13", "name": "Midnight 16inch MacBook Pro", "description": "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", "options": [{"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}], "quantity": "2", "unit_price": "19.99", "tax_rate": "0.08", "tax_amount": "1.6", "is_refunded": false, "refunded_amount": "0", "refunded_quantity": "0", "sub_total": "43.18", "total_amount": "43.18", "discounts": [{"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}, {"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}]}], "note": "Special instructions for delivery", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -8190,6 +8513,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "shopify", "resource": "orders", "operation": "one", "data": {"id": "12345", "order_number": "123456789", "currency": "USD", "discounts": [{"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}, {"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}, {"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}], "sub_total": "45.17", "shipping_cost": "5.17", "coupon_discount": "5.5", "total_discount": "5.5", "total_tax": "5.16", "total_amount": "50.17", "refunded_amount": "5.5", "status": "active", "payment_status": "paid", "fulfillment_status": "shipped", "payment_method": "credit_card", "customer": {"id": "12345", "name": "John Doe", "first_name": "John", "last_name": "Doe", "company_name": "Acme Inc.", "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}]}, "billing_address": {"line1": "123 Main Street", "line2": "Apt 1", "company_name": "Acme Inc.", "city": "New York", "state": "NY", "postal_code": "10001", "country": "US"}, "shipping_address": {"line1": "123 Main Street", "line2": "Apt 1", "company_name": "Acme Inc.", "city": "New York", "state": "NY", "postal_code": "10001", "country": "US"}, "tracking": [{"provider": "UPS", "number": "1Z9999999999999999", "url": "https://www.ups.com/track?tracknum=1Z9999999999999999", "updated_at": "2020-09-30T07:43:32.000Z"}, {"provider": "UPS", "number": "1Z9999999999999999", "url": "https://www.ups.com/track?tracknum=1Z9999999999999999", "updated_at": "2020-09-30T07:43:32.000Z"}], "line_items": [{"id": "12345", "product_id": "def456", "variant_id": "ghi789", "sku": "MBP123-16GB-SILVER-13", "name": "Midnight 16inch MacBook Pro", "description": "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", "options": [{"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}, {"id": "jkl012", "name": "Color", "value": "Silver"}], "quantity": "2", "unit_price": "19.99", "tax_rate": "0.08", "tax_amount": "1.6", "is_refunded": false, "refunded_amount": "0", "refunded_quantity": "0", "sub_total": "43.18", "total_amount": "43.18", "discounts": [{"code": "SUMMER20", "amount": "5.99", "percentage": "0.1"}]}], "note": "Special instructions for delivery", "refunds": [{"id": "12345", "amount": "100", "currency": "USD", "reason": "Customer requested a refund", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "amount": "100", "currency": "USD", "reason": "Customer requested a refund", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "amount": "100", "currency": "USD", "reason": "Customer requested a refund", "created_at": "2020-09-30T07:43:32.000Z"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}} @@ -8215,6 +8540,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "shopify", "resource": "products", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -8240,6 +8567,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "shopify", "resource": "products", "operation": "one", "data": {"id": "12345", "name": "MacBook Pro", "description": "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", "status": "active", "price": "1999.99", "sku": "MBP123", "inventory_quantity": "10", "images": [{"id": "12345", "url": "https://example.com/macbook-pro.jpg"}], "weight": "1.25", "weight_unit": "lb", "options": [{"id": "1", "name": "Color", "values": ["Red"]}], "variants": [{"id": "1", "name": "Midnight 16inch MacBook Pro", "price": "1999.99", "sku": "MBP123-16GB-SILVER-13", "inventory_quantity": "5", "weight": "1.25", "weight_unit": "lb", "options": [{"id": "1", "name": "Color", "value": "Silver"}, {"id": "1", "name": "Color", "value": "Silver"}, {"id": "1", "name": "Color", "value": "Silver"}], "images": [{"id": "12345", "url": "https://example.com/macbook-pro.jpg"}]}, {"id": "1", "name": "Midnight 16inch MacBook Pro", "price": "1999.99", "sku": "MBP123-16GB-SILVER-13", "inventory_quantity": "5", "weight": "1.25", "weight_unit": "lb", "options": [{"id": "1", "name": "Color", "value": "Silver"}, {"id": "1", "name": "Color", "value": "Silver"}, {"id": "1", "name": "Color", "value": "Silver"}], "images": [{"id": "12345", "url": "https://example.com/macbook-pro.jpg"}]}, {"id": "1", "name": "Midnight 16inch MacBook Pro", "price": "1999.99", "sku": "MBP123-16GB-SILVER-13", "inventory_quantity": "5", "weight": "1.25", "weight_unit": "lb", "options": [{"id": "1", "name": "Color", "value": "Silver"}, {"id": "1", "name": "Color", "value": "Silver"}, {"id": "1", "name": "Color", "value": "Silver"}], "images": [{"id": "12345", "url": "https://example.com/macbook-pro.jpg"}]}], "tags": ["Apple"], "categories": [{"id": "12345", "name": "Laptops"}, {"id": "12345", "name": "Laptops"}, {"id": "12345", "name": "Laptops"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}} @@ -8266,6 +8595,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "shopify", "resource": "customers", "operation": "all", "data": [{"id": "12345", "name": "John Doe", "first_name": "John", "last_name": "Doe", "company_name": "Acme Inc.", "status": "active", "currency": "USD", "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "addresses": [{"type": "billing", "id": "12345", "line1": "Main street", "line2": "apt #", "city": "Anytown", "state": "Ohio", "postal_code": "12345", "country": "US"}], "orders": [{"id": "12345", "total": "199.99", "status": "active"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "name": "John Doe", "first_name": "John", "last_name": "Doe", "company_name": "Acme Inc.", "status": "active", "currency": "USD", "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "addresses": [{"type": "billing", "id": "12345", "line1": "Main street", "line2": "apt #", "city": "Anytown", "state": "Ohio", "postal_code": "12345", "country": "US"}], "orders": [{"id": "12345", "total": "199.99", "status": "active"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "name": "John Doe", "first_name": "John", "last_name": "Doe", "company_name": "Acme Inc.", "status": "active", "currency": "USD", "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "addresses": [{"type": "billing", "id": "12345", "line1": "Main street", "line2": "apt #", "city": "Anytown", "state": "Ohio", "postal_code": "12345", "country": "US"}], "orders": [{"id": "12345", "total": "199.99", "status": "active"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -8291,6 +8622,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "shopify", "resource": "customers", "operation": "one", "data": {"id": "12345", "name": "John Doe", "first_name": "John", "last_name": "Doe", "company_name": "Acme Inc.", "status": "active", "currency": "USD", "emails": null, "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "addresses": [{"type": "billing", "id": "12345", "line1": "Main street", "line2": "apt #", "city": "Anytown", "state": "Ohio", "postal_code": "12345", "country": "US"}, {"type": "billing", "id": "12345", "line1": "Main street", "line2": "apt #", "city": "Anytown", "state": "Ohio", "postal_code": "12345", "country": "US"}], "orders": [{"id": "12345", "total": "199.99", "status": "active"}, {"id": "12345", "total": "199.99", "status": "active"}], "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}} @@ -8314,6 +8647,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "shopify", "resource": "stores", "operation": "one", "data": {"id": "12345", "name": "My Store", "store_url": "https://mybrand.com/shop", "admin_url": "https://mybrand.com/admin", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}} @@ -8341,6 +8676,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "files", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "name": "sample.jpg", "description": "A sample image", "type": "file", "path": "/Documents/sample.jpg", "mime_type": "image/jpeg", "size": 1810673, "owner": {"id": "12345", "email": "hello@apideck.com", "name": "Elon Musk"}, "parent_folders": [{"id": "12345", "name": "Personal"}, {"id": "12345", "name": "Personal"}], "export_formats": ["application/pdf", "application/vnd.oasis.opendocument.presentation", "text/plain"], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -8367,6 +8704,8 @@ examples: filter: {"drive_id": "1234", "folder_id": "root", "shared": true} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"query": "logo jpg"} responses: @@ -8394,6 +8733,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "files", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "name": "sample.jpg", "description": "A sample image", "type": "file", "path": "/Documents/sample.jpg", "mime_type": "image/jpeg", "size": 1810673, "owner": {"id": "12345", "email": "hello@apideck.com", "name": "Elon Musk"}, "parent_folders": [{"id": "12345", "name": "Personal"}, {"id": "12345", "name": "Personal"}, {"id": "12345", "name": "Personal"}], "export_formats": ["application/pdf", "application/vnd.oasis.opendocument.presentation", "text/plain"], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -8418,6 +8759,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "New Name.pdf", "description": "Renamed PDF Document", "parent_folder_id": "1234", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8444,6 +8787,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "files", "operation": "delete", "data": {"id": "12345"}} @@ -8468,6 +8813,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": '*/*': "x-file: example.file" @@ -8493,6 +8840,8 @@ examples: format: "pdf" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": '*/*': "x-file: example.file" @@ -8516,6 +8865,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Documents", "description": "My Personal Documents", "parent_folder_id": "1234", "drive_id": "1234", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8543,6 +8894,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "undefined", "resource": "Folders", "operation": "one", "data": {"id": "12345", "name": "Documents", "description": "My Personal Documents", "path": "/Personal/Documents", "size": 1810673, "owner": {"id": "12345", "email": "hello@apideck.com", "name": "Elon Musk"}, "parent_folders": [], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -8567,6 +8920,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Documents", "description": "My Personal Documents", "parent_folder_id": "1234", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8593,6 +8948,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "undefined", "resource": "Folders", "operation": "delete", "data": {"id": "12345"}} @@ -8618,6 +8975,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Documents", "parent_folder_id": "1234", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8645,6 +9004,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "dropbox", "resource": "Shared Links", "operation": "all", "data": [{"url": "https://www.box.com/s/vspke7y05sb214wjokpk", "download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", "target": {"id": "12345", "name": "sample.jpg", "type": "file"}, "scope": "company", "expires_at": "2022-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"url": "https://www.box.com/s/vspke7y05sb214wjokpk", "download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", "target": {"id": "12345", "name": "sample.jpg", "type": "file"}, "scope": "company", "expires_at": "2022-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"url": "https://www.box.com/s/vspke7y05sb214wjokpk", "download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", "target": {"id": "12345", "name": "sample.jpg", "type": "file"}, "scope": "company", "expires_at": "2022-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -8667,6 +9028,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", "target_id": "", "scope": "company", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8694,6 +9057,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "dropbox", "resource": "Shared Links", "operation": "one", "data": {"url": "https://www.box.com/s/vspke7y05sb214wjokpk", "download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", "target": {"id": "12345", "name": "sample.jpg", "type": "file"}, "scope": "company", "expires_at": "2022-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -8718,6 +9083,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", "target_id": "", "scope": "company", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8744,6 +9111,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "dropbox", "resource": "Shared Links", "operation": "delete", "data": {"id": "12345"}} @@ -8766,6 +9135,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Documents", "parent_folder_id": "1234", "drive_id": "1234", "size": 1810673, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8793,6 +9164,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "dropbox", "resource": "UploadSessions", "operation": "one", "data": {"id": "12345", "success": true, "part_size": 1000000, "parallel_upload_supported": true, "uploaded_byte_range": "0-42", "expires_at": "2022-09-30T07:43:32.000Z"}} @@ -8819,6 +9192,8 @@ examples: header: x-apideck-service-id: "salesforce" digest: "sha=fpRyg5eVQletdZqEKaFlqwBXJzM=" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: '*/*': "" responses: @@ -8845,6 +9220,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "dropbox", "resource": "UploadSessions", "operation": "one", "data": {"id": "12345"}} @@ -8870,6 +9247,8 @@ examples: header: x-apideck-service-id: "salesforce" digest: "sha=fpRyg5eVQletdZqEKaFlqwBXJzM=" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "files", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "name": "sample.jpg", "description": "A sample image", "type": "file", "path": "/Documents/sample.jpg", "mime_type": "image/jpeg", "size": 1810673, "owner": {"id": "12345", "email": "hello@apideck.com", "name": "Elon Musk"}, "parent_folders": [{"id": "12345", "name": "Personal"}, {"id": "12345", "name": "Personal"}, {"id": "12345", "name": "Personal"}], "export_formats": ["application/pdf", "application/vnd.oasis.opendocument.presentation", "text/plain"], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -8895,6 +9274,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "Drives", "operation": "all", "data": [{"id": "12345", "name": "Project Resources", "description": "A description", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "name": "Project Resources", "description": "A description", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -8917,6 +9298,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Project Resources", "description": "A description", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8944,6 +9327,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "Drives", "operation": "one", "data": {"id": "12345", "name": "Project Resources", "description": "A description", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -8968,6 +9353,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "Project Resources", "description": "A description", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -8994,6 +9381,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "Drives", "operation": "delete", "data": {"id": "12345"}} @@ -9020,6 +9409,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "DriveGroups", "operation": "all", "data": [{"id": "12345", "name": "accounting", "display_name": "accounting", "description": "A description", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9042,6 +9433,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "accounting", "display_name": "accounting", "description": "A description", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9069,6 +9462,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "DriveGroups", "operation": "one", "data": {"id": "12345", "name": "accounting", "display_name": "accounting", "description": "A description", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -9093,6 +9488,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "accounting", "display_name": "accounting", "description": "A description", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9119,6 +9516,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "google-drive", "resource": "DriveGroups", "operation": "delete", "data": {"id": "12345"}} @@ -9146,6 +9545,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Employees", "operation": "all", "data": [{"id": "12345", "downstream_id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "display_name": "Technoking", "preferred_name": "Elon Musk", "initials": "EM", "salutation": "Mr", "title": "CEO", "marital_status": "married", "partner": {"id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "gender": "male", "initials": "EM", "birthday": "2000-08-12", "deceased_on": "2000-08-12"}, "division": "Europe", "division_id": "12345", "department_id": "12345", "department_name": "12345", "team": {"id": "1234", "name": "Full Stack Engineers"}, "company_id": "23456", "company_name": "SpaceX", "employment_start_date": "2021-10-26", "employment_end_date": "2028-10-26", "leaving_reason": "resigned", "employee_number": "123456-AB", "employment_status": "active", "ethnicity": "African American", "manager": {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "employment_status": "active"}, "direct_reports": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "social_security_number": "123456789", "birthday": "2000-08-12", "deceased_on": "2000-08-12", "country_of_birth": "US", "description": "A description", "gender": "male", "pronouns": "she,her", "preferred_language": "EN", "languages": ["EN"], "nationalities": ["US"], "photo_url": "https://unavatar.io/elon-musk", "timezone": "Europe/London", "source": "lever", "source_id": "12345", "record_url": "https://app.intercom.io/contacts/12345", "jobs": [{"id": "12345", "employee_id": "12345", "title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, {"id": "12345", "employee_id": "12345", "title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, {"id": "12345", "employee_id": "12345", "title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}], "compensations": [{"id": "3404301363494309004", "job_id": "3490439050957906679", "rate": 50, "payment_unit": "hour", "flsa_status": "nonexempt", "effective_date": "2021-06-11"}], "works_remote": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "tax_code": "1111", "tax_id": "234-32-0000", "dietary_preference": "Veggie", "food_allergies": ["No allergies"], "probation_period": {"start_date": "2021-10-01", "end_date": "2021-11-28"}, "tags": ["New"], "row_version": "1-12345", "deleted": true, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9168,6 +9569,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "display_name": "Technoking", "preferred_name": "Elon Musk", "initials": "EM", "salutation": "Mr", "title": "CEO", "marital_status": "married", "partner": {"first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "gender": "male", "initials": "EM", "birthday": "2000-08-12", "deceased_on": "2000-08-12"}, "division": "Europe", "division_id": "12345", "department_id": "12345", "department_name": "12345", "team": {"id": "1234", "name": "Full Stack Engineers"}, "company_id": "23456", "company_name": "SpaceX", "employment_start_date": "2021-10-26", "employment_end_date": "2028-10-26", "leaving_reason": "resigned", "employee_number": "123456-AB", "employment_status": "active", "ethnicity": "African American", "manager": {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "employment_status": "active"}, "direct_reports": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "social_security_number": "123456789", "birthday": "2000-08-12", "deceased_on": "2000-08-12", "country_of_birth": "US", "description": "A description", "gender": "male", "pronouns": "she,her", "preferred_language": "EN", "languages": ["EN"], "nationalities": ["US"], "photo_url": "https://unavatar.io/elon-musk", "timezone": "Europe/London", "source": "lever", "source_id": "12345", "record_url": "https://app.intercom.io/contacts/12345", "jobs": [{"title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, {"title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, {"title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}], "compensations": [{"rate": 50, "payment_unit": "hour", "flsa_status": "nonexempt", "effective_date": "2021-06-11"}], "works_remote": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "tax_code": "1111", "tax_id": "234-32-0000", "dietary_preference": "Veggie", "food_allergies": ["No allergies"], "probation_period": {"start_date": "2021-10-01", "end_date": "2021-11-28"}, "tags": ["New"], "row_version": "1-12345", "deleted": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9197,6 +9600,8 @@ examples: pass_through: {"search": "San Francisco"} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Employees", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "display_name": "Technoking", "preferred_name": "Elon Musk", "initials": "EM", "salutation": "Mr", "title": "CEO", "marital_status": "married", "partner": {"id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "gender": "male", "initials": "EM", "birthday": "2000-08-12", "deceased_on": "2000-08-12"}, "division": "Europe", "division_id": "12345", "department_id": "12345", "department_name": "12345", "team": {"id": "1234", "name": "Full Stack Engineers"}, "company_id": "23456", "company_name": "SpaceX", "employment_start_date": "2021-10-26", "employment_end_date": "2028-10-26", "leaving_reason": "resigned", "employee_number": "123456-AB", "employment_status": "active", "ethnicity": "African American", "manager": {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "employment_status": "active"}, "direct_reports": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "social_security_number": "123456789", "birthday": "2000-08-12", "deceased_on": "2000-08-12", "country_of_birth": "US", "description": "A description", "gender": "male", "pronouns": "she,her", "preferred_language": "EN", "languages": ["EN"], "nationalities": ["US"], "photo_url": "https://unavatar.io/elon-musk", "timezone": "Europe/London", "source": "lever", "source_id": "12345", "record_url": "https://app.intercom.io/contacts/12345", "jobs": [{"id": "12345", "employee_id": "12345", "title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}], "compensations": [{"id": "3404301363494309004", "job_id": "3490439050957906679", "rate": 50, "payment_unit": "hour", "flsa_status": "nonexempt", "effective_date": "2021-06-11"}], "works_remote": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "tax_code": "1111", "tax_id": "234-32-0000", "dietary_preference": "Veggie", "food_allergies": ["No allergies"], "probation_period": {"start_date": "2021-10-01", "end_date": "2021-11-28"}, "tags": ["New"], "row_version": "1-12345", "deleted": true, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -9221,6 +9626,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "display_name": "Technoking", "preferred_name": "Elon Musk", "initials": "EM", "salutation": "Mr", "title": "CEO", "marital_status": "married", "partner": {"first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "gender": "male", "initials": "EM", "birthday": "2000-08-12", "deceased_on": "2000-08-12"}, "division": "Europe", "division_id": "12345", "department_id": "12345", "department_name": "12345", "team": {"id": "1234", "name": "Full Stack Engineers"}, "company_id": "23456", "company_name": "SpaceX", "employment_start_date": "2021-10-26", "employment_end_date": "2028-10-26", "leaving_reason": "resigned", "employee_number": "123456-AB", "employment_status": "active", "ethnicity": "African American", "manager": {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "employment_status": "active"}, "direct_reports": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "social_security_number": "123456789", "birthday": "2000-08-12", "deceased_on": "2000-08-12", "country_of_birth": "US", "description": "A description", "gender": "male", "pronouns": "she,her", "preferred_language": "EN", "languages": ["EN"], "nationalities": ["US"], "photo_url": "https://unavatar.io/elon-musk", "timezone": "Europe/London", "source": "lever", "source_id": "12345", "record_url": "https://app.intercom.io/contacts/12345", "jobs": [{"title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}], "compensations": [{"rate": 50, "payment_unit": "hour", "flsa_status": "nonexempt", "effective_date": "2021-06-11"}], "works_remote": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}, {"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "tax_code": "1111", "tax_id": "234-32-0000", "dietary_preference": "Veggie", "food_allergies": ["No allergies"], "probation_period": {"start_date": "2021-10-01", "end_date": "2021-11-28"}, "tags": ["New"], "row_version": "1-12345", "deleted": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9247,6 +9654,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Employees", "operation": "delete", "data": {"id": "12345"}} @@ -9272,6 +9681,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "undefined", "resource": "Companies", "operation": "all", "data": [{"id": "12345", "legal_name": "SpaceX", "display_name": "SpaceX", "subdomain": "company", "status": "active", "company_number": "123456-AB", "currency": "USD", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "debtor_id": "12345", "deleted": false, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "legal_name": "SpaceX", "display_name": "SpaceX", "subdomain": "company", "status": "active", "company_number": "123456-AB", "currency": "USD", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "debtor_id": "12345", "deleted": false, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "legal_name": "SpaceX", "display_name": "SpaceX", "subdomain": "company", "status": "active", "company_number": "123456-AB", "currency": "USD", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "debtor_id": "12345", "deleted": false, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9294,6 +9705,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"legal_name": "SpaceX", "display_name": "SpaceX", "subdomain": "company", "status": "active", "company_number": "123456-AB", "currency": "USD", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "debtor_id": "12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9321,6 +9734,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "undefined", "resource": "Companies", "operation": "one", "data": {"id": "12345", "legal_name": "SpaceX", "display_name": "SpaceX", "subdomain": "company", "status": "active", "company_number": "123456-AB", "currency": "USD", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}, {"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "debtor_id": "12345", "deleted": false, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -9345,6 +9760,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"legal_name": "SpaceX", "display_name": "SpaceX", "subdomain": "company", "status": "active", "company_number": "123456-AB", "currency": "USD", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}, {"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}, {"id": "12345", "url": "http://example.com", "type": "primary"}], "debtor_id": "12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9371,6 +9788,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "undefined", "resource": "Companies", "operation": "delete", "data": {"id": "12345"}} @@ -9396,6 +9815,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "workday", "resource": "Departments", "operation": "all", "data": [{"id": "12345", "parent_id": "22345", "name": "R&D", "code": "2", "description": "R&D", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9418,6 +9839,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "R&D", "code": "2", "description": "R&D", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9445,6 +9868,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "workday", "resource": "Departments", "operation": "one", "data": {"id": "12345", "parent_id": "22345", "name": "R&D", "code": "2", "description": "R&D", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -9469,6 +9894,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "R&D", "code": "2", "description": "R&D", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9495,6 +9922,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "workday", "resource": "Departments", "operation": "delete", "data": {"id": "12345"}} @@ -9520,6 +9949,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Employees", "operation": "all", "data": [{"id": "12345", "company_id": "23456", "processed": false, "processed_date": "2022-04-08", "check_date": "2022-04-08", "start_date": "2022-04-08", "end_date": "2022-04-21", "totals": {"company_debit": 27992.49, "tax_debit": 8655.32, "check_amount": 27966.23, "net_pay": 19337.17, "gross_pay": 27966.23, "employer_taxes": 2038.93, "employee_taxes": 6616.39, "employer_benefit_contributions": 0, "employee_benefit_deductions": 0}, "compensations": [{"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}, {"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}]}, {"id": "12345", "company_id": "23456", "processed": false, "processed_date": "2022-04-08", "check_date": "2022-04-08", "start_date": "2022-04-08", "end_date": "2022-04-21", "totals": {"company_debit": 27992.49, "tax_debit": 8655.32, "check_amount": 27966.23, "net_pay": 19337.17, "gross_pay": 27966.23, "employer_taxes": 2038.93, "employee_taxes": 6616.39, "employer_benefit_contributions": 0, "employee_benefit_deductions": 0}, "compensations": [{"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}, {"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}, {"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}]}]} @@ -9545,6 +9976,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "undefined", "resource": "Companies", "operation": "one", "data": {"id": "12345", "company_id": "23456", "processed": false, "processed_date": "2022-04-08", "check_date": "2022-04-08", "start_date": "2022-04-08", "end_date": "2022-04-21", "totals": {"company_debit": 27992.49, "tax_debit": 8655.32, "check_amount": 27966.23, "net_pay": 19337.17, "gross_pay": 27966.23, "employer_taxes": 2038.93, "employee_taxes": 6616.39, "employer_benefit_contributions": 0, "employee_benefit_deductions": 0}, "compensations": [{"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}]}} @@ -9572,6 +10005,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Employees", "operation": "all", "data": []} @@ -9598,6 +10033,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "undefined", "resource": "Companies", "operation": "one", "data": {"id": "12345", "employee_id": "12345", "company_id": "23456", "processed": false, "processed_date": "2022-04-08", "check_date": "2022-04-08", "start_date": "2022-04-08", "end_date": "2022-04-21", "totals": {"company_debit": 27992.49, "tax_debit": 8655.32, "check_amount": 27966.23, "net_pay": 19337.17, "gross_pay": 27966.23, "employer_taxes": 2038.93, "employee_taxes": 6616.39, "employer_benefit_contributions": 0, "employee_benefit_deductions": 0}, "compensations": [{"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}, {"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}, {"employee_id": "12345", "net_pay": 2199.93, "gross_pay": 3000, "taxes": [{"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}, {"name": "CA State Income Tax", "employer": false, "amount": 1.97}], "deductions": [{"name": "Company Car", "amount": 10.97}], "benefits": [{"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}, {"name": "Health Insurance", "employee_deduction": 142.94, "employer_contribution": 141.14}]}]}} @@ -9624,6 +10061,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Employees", "operation": "all", "data": {"employee": {"id": "12345", "downstream_id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "display_name": "Technoking", "preferred_name": "Elon Musk", "initials": "EM", "salutation": "Mr", "title": "CEO", "marital_status": "married", "partner": {"id": "12345", "first_name": "Elon", "last_name": "Musk", "middle_name": "D.", "gender": "male", "initials": "EM", "birthday": "2000-08-12", "deceased_on": "2000-08-12"}, "division": "Europe", "division_id": "12345", "department_id": "12345", "department_name": "12345", "team": {"id": "1234", "name": "Full Stack Engineers"}, "company_id": "23456", "company_name": "SpaceX", "employment_start_date": "2021-10-26", "employment_end_date": "2028-10-26", "leaving_reason": "resigned", "employee_number": "123456-AB", "employment_status": "active", "ethnicity": "African American", "manager": {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "employment_status": "active"}, "direct_reports": ["a0d636c6-43b3-4bde-8c70-85b707d992f4", "a98lfd96-43b3-4bde-8c70-85b707d992e6"], "social_security_number": "123456789", "birthday": "2000-08-12", "deceased_on": "2000-08-12", "country_of_birth": "US", "description": "A description", "gender": "male", "pronouns": "she,her", "preferred_language": "EN", "languages": ["EN"], "nationalities": ["US"], "photo_url": "https://unavatar.io/elon-musk", "timezone": "Europe/London", "source": "lever", "source_id": "12345", "record_url": "https://app.intercom.io/contacts/12345", "jobs": [{"id": "12345", "employee_id": "12345", "title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, {"id": "12345", "employee_id": "12345", "title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, {"id": "12345", "employee_id": "12345", "title": "CEO", "role": "Sales", "start_date": "2020-08-12", "end_date": "2020-08-12", "compensation_rate": 72000, "currency": "USD", "payment_unit": "year", "hired_at": "2020-08-12", "is_primary": true, "is_manager": true, "status": "active", "location": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}], "compensations": [{"id": "3404301363494309004", "job_id": "3490439050957906679", "rate": 50, "payment_unit": "hour", "flsa_status": "nonexempt", "effective_date": "2021-06-11"}], "works_remote": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "social_links": [{"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}, {"id": "12345", "url": "https://www.twitter.com/apideck", "type": "twitter"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}, {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "tax_code": "1111", "tax_id": "234-32-0000", "dietary_preference": "Veggie", "food_allergies": ["No allergies"], "probation_period": {"start_date": "2021-10-01", "end_date": "2021-11-28"}, "tags": ["New"], "row_version": "1-12345", "deleted": true, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, "schedules": [{"id": "12345", "start_date": "2022-04-08", "end_date": "2022-04-21", "work_pattern": {"odd_weeks": {"hours_monday": 8, "hours_tuesday": 8, "hours_wednesday": 4, "hours_thursday": 7.5, "hours_friday": 4, "hours_saturday": 0, "hours_sunday": 0}, "even_weeks": {"hours_monday": 8, "hours_tuesday": 8, "hours_wednesday": 4, "hours_thursday": 7.5, "hours_friday": 4, "hours_saturday": 0, "hours_sunday": 0}}}]}} @@ -9650,6 +10089,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "bamboohr", "resource": "time-off-requests", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9672,6 +10113,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"employee_id": "12345", "policy_id": "12345", "status": "approved", "description": "Enjoying some sun.", "start_date": "2022-04-01", "end_date": "2022-04-01", "request_date": "2022-03-21", "request_type": "vacation", "approval_date": "2022-03-21", "units": "hours", "amount": 3.5, "day_part": "morning", "notes": {"employee": "Relaxing on the beach for a few hours.", "manager": "Enjoy!"}, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "policy_type": "sick"} responses: @@ -9700,6 +10143,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "bamboohr", "resource": "time-off-requests", "operation": "one", "data": {"id": "12345", "employee_id": "12345", "policy_id": "12345", "status": "approved", "description": "Enjoying some sun.", "start_date": "2022-04-01", "end_date": "2022-04-01", "request_date": "2022-03-21", "request_type": "vacation", "approval_date": "2022-03-21", "units": "hours", "amount": 3.5, "day_part": "morning", "notes": {"employee": "Relaxing on the beach for a few hours.", "manager": "Enjoy!"}, "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "policy_type": "sick"}} @@ -9725,6 +10170,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"employee_id": "12345", "policy_id": "12345", "status": "approved", "description": "Enjoying some sun.", "start_date": "2022-04-01", "end_date": "2022-04-01", "request_date": "2022-03-21", "request_type": "vacation", "approval_date": "2022-03-21", "units": "hours", "amount": 3.5, "day_part": "morning", "notes": {"employee": "Relaxing on the beach for a few hours.", "manager": "Enjoy!"}, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "policy_type": "sick"} responses: @@ -9752,6 +10199,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "bamboohr", "resource": "time-off-requests", "operation": "delete", "data": {"id": "12345"}} @@ -9776,6 +10225,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "twilio", "resource": "Messages", "operation": "all", "data": [{"id": "12345", "from": "+15017122661", "to": "+15017122662", "subject": "Picture", "body": "Hi! How are you doing?", "type": "sms", "number_of_units": 1, "number_of_media_files": 1, "direction": "outbound-api", "status": "sent", "scheduled_at": "2020-09-30T07:43:32.000Z", "sent_at": "2020-09-30T07:43:32.000Z", "webhook_url": "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", "reference": "CUST001", "price": {"per_unit": "0.01", "total_amount": "0.01", "currency": "USD"}, "error": {"code": "X1", "message": "Something went wrong"}, "messaging_service_id": "123456", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "from": "+15017122661", "to": "+15017122662", "subject": "Picture", "body": "Hi! How are you doing?", "type": "sms", "number_of_units": 1, "number_of_media_files": 1, "direction": "outbound-api", "status": "sent", "scheduled_at": "2020-09-30T07:43:32.000Z", "sent_at": "2020-09-30T07:43:32.000Z", "webhook_url": "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", "reference": "CUST001", "price": {"per_unit": "0.01", "total_amount": "0.01", "currency": "USD"}, "error": {"code": "X1", "message": "Something went wrong"}, "messaging_service_id": "123456", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9798,6 +10249,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"from": "+15017122661", "to": "+15017122662", "subject": "Picture", "body": "Hi! How are you doing?", "type": "sms", "scheduled_at": "2020-09-30T07:43:32.000Z", "webhook_url": "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", "reference": "CUST001", "messaging_service_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9825,6 +10278,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "twilio", "resource": "Messages", "operation": "one", "data": {"id": "12345", "from": "+15017122661", "to": "+15017122662", "subject": "Picture", "body": "Hi! How are you doing?", "type": "sms", "number_of_units": 1, "number_of_media_files": 1, "direction": "outbound-api", "status": "sent", "scheduled_at": "2020-09-30T07:43:32.000Z", "sent_at": "2020-09-30T07:43:32.000Z", "webhook_url": "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", "reference": "CUST001", "price": {"per_unit": "0.01", "total_amount": "0.01", "currency": "USD"}, "error": {"code": "X1", "message": "Something went wrong"}, "messaging_service_id": "123456", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -9849,6 +10304,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"from": "+15017122661", "to": "+15017122662", "subject": "Picture", "body": "Hi! How are you doing?", "type": "sms", "scheduled_at": "2020-09-30T07:43:32.000Z", "webhook_url": "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", "reference": "CUST001", "messaging_service_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -9875,6 +10332,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "twilio", "resource": "Messages", "operation": "delete", "data": {"id": "12345"}} @@ -9901,6 +10360,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "all", "data": [{"id": "12345", "parent_id": "12345", "type": "Technical", "name": "Main IT Issues", "description": "IT Issues", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "parent_id": "12345", "type": "Technical", "name": "Main IT Issues", "description": "IT Issues", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9926,6 +10387,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "one", "data": {"id": "12345", "parent_id": "12345", "type": "Technical", "name": "Main IT Issues", "description": "IT Issues", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -9955,6 +10418,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "all", "data": [{"id": "12345", "parent_id": "12345", "collection_id": "12345", "type": "Technical", "subject": "Technical Support Request", "description": "I am facing issues with my internet connection", "status": "open", "priority": "high", "assignees": [{"id": "12345", "username": "Cocoa"}, {"id": "12345", "username": "Cocoa"}, {"id": "12345", "username": "Cocoa"}], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "due_date": "2020-09-30T07:43:32.000Z", "completed_at": "2020-09-30T07:43:32.000Z", "tags": [{"id": "12345", "name": "User Experience"}, {"id": "12345", "name": "User Experience"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "parent_id": "12345", "collection_id": "12345", "type": "Technical", "subject": "Technical Support Request", "description": "I am facing issues with my internet connection", "status": "open", "priority": "high", "assignees": [{"id": "12345", "username": "Cocoa"}, {"id": "12345", "username": "Cocoa"}, {"id": "12345", "username": "Cocoa"}], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "due_date": "2020-09-30T07:43:32.000Z", "completed_at": "2020-09-30T07:43:32.000Z", "tags": [{"id": "12345", "name": "User Experience"}, {"id": "12345", "name": "User Experience"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -9979,6 +10444,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "type": "Technical", "subject": "Technical Support Request", "description": "I am facing issues with my internet connection", "status": "open", "priority": "high", "assignees": [{"id": "12345"}, {"id": "12345"}, {"id": "12345"}], "due_date": "2020-09-30T07:43:32.000Z", "tags": [{"id": "12345"}, {"id": "12345"}, {"id": "12345"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -10007,6 +10474,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Tickets", "operation": "one", "data": {"id": "12345", "parent_id": "12345", "collection_id": "12345", "type": "Technical", "subject": "Technical Support Request", "description": "I am facing issues with my internet connection", "status": "open", "priority": "high", "assignees": [{"id": "12345", "username": "Cocoa"}, {"id": "12345", "username": "Cocoa"}, {"id": "12345", "username": "Cocoa"}], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "created_by": "12345", "due_date": "2020-09-30T07:43:32.000Z", "completed_at": "2020-09-30T07:43:32.000Z", "tags": [{"id": "12345", "name": "User Experience"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -10032,6 +10501,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"parent_id": "12345", "type": "Technical", "subject": "Technical Support Request", "description": "I am facing issues with my internet connection", "status": "open", "priority": "high", "assignees": [{"id": "12345"}, {"id": "12345"}], "due_date": "2020-09-30T07:43:32.000Z", "tags": [{"id": "12345"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -10059,6 +10530,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "add", "data": {"id": "12345"}} @@ -10088,6 +10561,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "all", "data": [{"id": "12345", "body": "What internet provider do you use?", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "12345", "body": "What internet provider do you use?", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10113,6 +10588,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"body": "What internet provider do you use?", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -10143,6 +10620,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "sage-hr", "resource": "Tickets", "operation": "one", "data": {"id": "12345", "body": "What internet provider do you use?", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -10169,6 +10648,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"body": "What internet provider do you use?", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -10197,6 +10678,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "add", "data": {"id": "12345"}} @@ -10224,6 +10707,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "all", "data": [{"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "photo_url": "https://unavatar.io/elon-musk", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "photo_url": "https://unavatar.io/elon-musk", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "photo_url": "https://unavatar.io/elon-musk", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10250,6 +10735,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "one", "data": {"id": "12345", "name": "Elon Musk", "first_name": "Elon", "last_name": "Musk", "email": "elon@musk.com", "photo_url": "https://unavatar.io/elon-musk", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -10277,6 +10764,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "jira", "resource": "Tickets", "operation": "all", "data": [{"id": "12345", "name": "User Experience"}, {"id": "12345", "name": "User Experience"}, {"id": "12345", "name": "User Experience"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10298,6 +10787,8 @@ examples: query: limit: 20 filter: {"unified_api": "file-storage"} + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [{"id": "crm+salesforce", "name": "Salesforce", "description": "A description", "icon_url": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo_url": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "website_url": "https://www.salesforce.com", "signup_url": "https://www.salesforce.com/signup", "partner_signup_url": "https://www.salesforce.com/partners", "auth_type": "oauth2", "auth_only": true, "blind_mapped": true, "oauth_grant_type": "authorization_code", "oauth_credentials_source": "integration", "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource", "default_apis": ["crm"]}, {"id": "contacts:all", "label": "Read/write on the Contacts resource", "default_apis": ["crm"]}], "custom_scopes": true, "has_sandbox_credentials": true, "settings": [{"id": "pipeline_id", "label": "Pipeline", "type": "select"}], "service_id": "close", "unified_apis": [{"id": "crm", "name": "File Storage API", "auth_only": true, "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource"}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "downstream_unsupported_resources": ["companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}, {"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}]}, {"id": "crm", "name": "File Storage API", "auth_only": true, "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource"}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "downstream_unsupported_resources": ["companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}, {"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}]}, {"id": "crm", "name": "File Storage API", "auth_only": true, "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource"}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "downstream_unsupported_resources": ["companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}, {"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}]}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "configurable_resources": ["leads", "companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}, {"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}], "webhook_support": {"mode": "native", "subscription_level": "integration", "managed_via": "api"}, "schema_support": {"supported": true}, "docs": [{"id": "12345", "name": "connection", "url": "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection"}, {"id": "12345", "name": "connection", "url": "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection"}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10314,6 +10805,8 @@ examples: parameters: path: id: "" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "crm+salesforce", "name": "Salesforce", "description": "A description", "icon_url": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo_url": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "website_url": "https://www.salesforce.com", "signup_url": "https://www.salesforce.com/signup", "partner_signup_url": "https://www.salesforce.com/partners", "auth_type": "oauth2", "auth_only": true, "blind_mapped": true, "oauth_grant_type": "authorization_code", "oauth_credentials_source": "integration", "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource", "default_apis": ["crm"]}], "custom_scopes": true, "has_sandbox_credentials": true, "settings": [{"id": "pipeline_id", "label": "Pipeline", "type": "select"}, {"id": "pipeline_id", "label": "Pipeline", "type": "select"}, {"id": "pipeline_id", "label": "Pipeline", "type": "select"}], "service_id": "close", "unified_apis": [{"id": "crm", "name": "File Storage API", "auth_only": true, "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource"}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "downstream_unsupported_resources": ["companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}]}, {"id": "crm", "name": "File Storage API", "auth_only": true, "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource"}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "downstream_unsupported_resources": ["companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}]}, {"id": "crm", "name": "File Storage API", "auth_only": true, "oauth_scopes": [{"id": "contacts:all", "label": "Read/write on the Contacts resource"}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}, {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "downstream_unsupported_resources": ["companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}]}], "supported_resources": [{"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts"}], "configurable_resources": ["leads", "companies"], "supported_events": [{"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}, {"event_type": "employee.created", "event_source": "native", "downstream_event_type": "person_created", "resources": ["companies"], "entity_type": "employee"}], "webhook_support": {"mode": "native", "subscription_level": "integration", "managed_via": "api"}, "schema_support": {"supported": true}, "docs": [{"id": "12345", "name": "connection", "url": "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection"}, {"id": "12345", "name": "connection", "url": "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection"}]}, "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10331,6 +10824,8 @@ examples: path: id: "" doc_id: "application_owner+oauth_credentials" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": text/markdown: "" @@ -10350,6 +10845,8 @@ examples: resource_id: "" query: unified_api: "crm" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "companies", "name": "Companies", "downstream_id": "accounts", "downstream_name": "Accounts", "pagination": {"mode": "native"}, "supported_operations": ["all", "one", "add", "update", "delete"], "downstream_unsupported_operations": ["upload"], "supported_filters": ["name", "email"], "supported_sort_by": ["updated_at", "created_at", "name"], "supported_fields": [{"unified_property": "owner_id", "child_properties": [{"unified_property": "owner_id"}]}], "supported_list_fields": [{"unified_property": "owner_id"}, {"unified_property": "owner_id"}]}, "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10367,6 +10864,8 @@ examples: query: limit: 20 filter: {"status": "beta"} + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [{"id": "file-storage", "name": "File Storage API", "description": "Manage API keys, access tokens, OAuth flows and integrations.", "spec_url": "https://specs.apideck.com/file-storage.yml", "api_reference_url": "https://developers.apideck.com/apis/file-storage/reference", "postman_collection_id": "1311564-00e7266b-a3d6-4f40-b172-baaa66a3ed6f", "categories": ["files", "file-storage", "cloud-storage", "object-storage"], "resources": [{"id": "companies", "name": "Companies", "excluded_from_coverage": false}], "events": ["crm.contact.updated", "accounting.invoice.created"]}, {"id": "file-storage", "name": "File Storage API", "description": "Manage API keys, access tokens, OAuth flows and integrations.", "spec_url": "https://specs.apideck.com/file-storage.yml", "api_reference_url": "https://developers.apideck.com/apis/file-storage/reference", "postman_collection_id": "1311564-00e7266b-a3d6-4f40-b172-baaa66a3ed6f", "categories": ["files", "file-storage", "cloud-storage", "object-storage"], "resources": [{"id": "companies", "name": "Companies", "excluded_from_coverage": false}], "events": ["crm.contact.updated", "accounting.invoice.created"]}, {"id": "file-storage", "name": "File Storage API", "description": "Manage API keys, access tokens, OAuth flows and integrations.", "spec_url": "https://specs.apideck.com/file-storage.yml", "api_reference_url": "https://developers.apideck.com/apis/file-storage/reference", "postman_collection_id": "1311564-00e7266b-a3d6-4f40-b172-baaa66a3ed6f", "categories": ["files", "file-storage", "cloud-storage", "object-storage"], "resources": [{"id": "companies", "name": "Companies", "excluded_from_coverage": false}], "events": ["crm.contact.updated", "accounting.invoice.created"]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10383,6 +10882,8 @@ examples: parameters: path: id: "" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "file-storage", "name": "File Storage API", "description": "Manage API keys, access tokens, OAuth flows and integrations.", "spec_url": "https://specs.apideck.com/file-storage.yml", "api_reference_url": "https://developers.apideck.com/apis/file-storage/reference", "postman_collection_id": "1311564-00e7266b-a3d6-4f40-b172-baaa66a3ed6f", "categories": ["files", "file-storage", "cloud-storage", "object-storage"], "resources": [{"id": "companies", "name": "Companies", "excluded_from_coverage": false}, {"id": "companies", "name": "Companies", "excluded_from_coverage": false}], "events": ["crm.contact.updated", "accounting.invoice.created"]}, "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10400,6 +10901,8 @@ examples: path: id: "" resource_id: "" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "companies", "name": "Companies", "linked_resources": [{"id": "companies", "unified_property": "owner_id"}, {"id": "companies", "unified_property": "owner_id"}], "schema": {}}, "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10417,6 +10920,8 @@ examples: path: id: "" resource_id: "" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "companies", "name": "Companies", "coverage": [{"downstream_id": "accounts", "downstream_name": "Accounts", "pagination": {"mode": "native"}, "supported_operations": ["all", "one", "add", "update", "delete"], "supported_filters": ["name", "email"], "supported_sort_by": ["updated_at", "created_at", "name"], "supported_fields": [{"unified_property": "owner_id", "child_properties": [{"unified_property": "owner_id"}]}, {"unified_property": "owner_id", "child_properties": [{"unified_property": "owner_id"}]}], "supported_list_fields": [{"unified_property": "owner_id"}, {"unified_property": "owner_id"}]}, {"downstream_id": "accounts", "downstream_name": "Accounts", "pagination": {"mode": "native"}, "supported_operations": ["all", "one", "add", "update", "delete"], "supported_filters": ["name", "email"], "supported_sort_by": ["updated_at", "created_at", "name"], "supported_fields": [{"unified_property": "owner_id", "child_properties": [{"unified_property": "owner_id"}]}, {"unified_property": "owner_id", "child_properties": [{"unified_property": "owner_id"}]}], "supported_list_fields": [{"unified_property": "owner_id"}, {"unified_property": "owner_id"}]}, {"downstream_id": "accounts", "downstream_name": "Accounts", "pagination": {"mode": "native"}, "supported_operations": ["all", "one", "add", "update", "delete"], "supported_filters": ["name", "email"], "supported_sort_by": ["updated_at", "created_at", "name"], "supported_fields": [{"unified_property": "owner_id", "child_properties": [{"unified_property": "owner_id"}]}, {"unified_property": "owner_id", "child_properties": [{"unified_property": "owner_id"}]}], "supported_list_fields": [{"unified_property": "owner_id"}, {"unified_property": "owner_id"}]}]}, "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10430,6 +10935,9 @@ examples: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} vault.consumersAdd: "": + parameters: + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"consumer_id": "test_consumer_id", "metadata": {"account_name": "SpaceX", "user_name": "Elon Musk", "email": "elon@musk.com", "image": "https://www.spacex.com/static/images/share.jpg"}} responses: @@ -10452,6 +10960,8 @@ examples: parameters: query: limit: 20 + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [{"consumer_id": "test_consumer_id", "application_id": "1111", "metadata": {"account_name": "SpaceX", "user_name": "Elon Musk", "email": "elon@musk.com", "image": "https://www.spacex.com/static/images/share.jpg"}, "aggregated_request_count": 101, "request_counts": {"unify": 100, "proxy": 10, "vault": 21}, "created": "2021-05-07T12:55:42.242Z", "modified": "2021-05-07T12:55:42.242Z", "request_count_updated": "2021-05-07T12:55:42.242Z", "services": ["salesforce", "stripe"]}, {"consumer_id": "test_consumer_id", "application_id": "1111", "metadata": {"account_name": "SpaceX", "user_name": "Elon Musk", "email": "elon@musk.com", "image": "https://www.spacex.com/static/images/share.jpg"}, "aggregated_request_count": 101, "request_counts": {"unify": 100, "proxy": 10, "vault": 21}, "created": "2021-05-07T12:55:42.242Z", "modified": "2021-05-07T12:55:42.242Z", "request_count_updated": "2021-05-07T12:55:42.242Z", "services": ["salesforce", "stripe"]}, {"consumer_id": "test_consumer_id", "application_id": "1111", "metadata": {"account_name": "SpaceX", "user_name": "Elon Musk", "email": "elon@musk.com", "image": "https://www.spacex.com/static/images/share.jpg"}, "aggregated_request_count": 101, "request_counts": {"unify": 100, "proxy": 10, "vault": 21}, "created": "2021-05-07T12:55:42.242Z", "modified": "2021-05-07T12:55:42.242Z", "request_count_updated": "2021-05-07T12:55:42.242Z", "services": ["salesforce", "stripe"]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10472,6 +10982,8 @@ examples: parameters: path: consumer_id: "test_user_id" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"consumer_id": "test_consumer_id", "application_id": "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", "metadata": {"account_name": "SpaceX", "user_name": "Elon Musk", "email": "elon@musk.com", "image": "https://www.spacex.com/static/images/share.jpg"}, "connections": [{"id": "1111+test_user_id", "name": "Salesforce", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "website": "https://www.salesforce.com", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "service_id": "teamleader", "unified_api": "crm", "consumer_id": "test_user_id", "auth_type": "oauth2", "enabled": true, "settings": {"instance_url": "https://eu28.salesforce.com"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "created_at": "2020-09-19T12:18:37.071Z", "updated_at": "2020-09-19T12:18:37.071Z", "state": "authorized"}, {"id": "1111+test_user_id", "name": "Salesforce", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "website": "https://www.salesforce.com", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "service_id": "teamleader", "unified_api": "crm", "consumer_id": "test_user_id", "auth_type": "oauth2", "enabled": true, "settings": {"instance_url": "https://eu28.salesforce.com"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "created_at": "2020-09-19T12:18:37.071Z", "updated_at": "2020-09-19T12:18:37.071Z", "state": "authorized"}, {"id": "1111+test_user_id", "name": "Salesforce", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "website": "https://www.salesforce.com", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "service_id": "teamleader", "unified_api": "crm", "consumer_id": "test_user_id", "auth_type": "oauth2", "enabled": true, "settings": {"instance_url": "https://eu28.salesforce.com"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "created_at": "2020-09-19T12:18:37.071Z", "updated_at": "2020-09-19T12:18:37.071Z", "state": "authorized"}], "services": ["salesforce", "stripe"], "aggregated_request_count": 101, "request_counts": {"unify": 100, "proxy": 10, "vault": 21}, "created": "2021-05-07T12:55:42.242Z", "modified": "2021-05-07T12:55:42.242Z", "request_count_updated": "2021-05-07T12:55:42.242Z"}} @@ -10492,6 +11004,8 @@ examples: parameters: path: consumer_id: "test_user_id" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"metadata": {"account_name": "SpaceX", "user_name": "Elon Musk", "email": "elon@musk.com", "image": "https://www.spacex.com/static/images/share.jpg"}} responses: @@ -10514,6 +11028,8 @@ examples: parameters: path: consumer_id: "test_user_id" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"consumer_id": "test_consumer_id"}} @@ -10537,6 +11053,8 @@ examples: query: start_datetime: "2021-05-01T12:00:00.000Z" end_datetime: "2021-05-30T12:00:00.000Z" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"application_id": "1111", "consumer_id": "test_user_id", "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-10T12:00:00.000Z", "aggregated_request_count": 40, "request_counts": {"unify": 100, "proxy": 10, "vault": 21}}} @@ -10558,6 +11076,9 @@ examples: query: api: "crm" configured: true + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [{"id": "crm+salesforce", "service_id": "salesforce", "name": "Salesforce", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "unified_api": "crm", "state": "authorized", "integration_state": "configured", "auth_type": "oauth2", "oauth_grant_type": "authorization_code", "enabled": true, "website": "https://www.salesforce.com", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "authorize_url": "https://unify.apideck.com/vault/authorize/salesforce/?state=", "revoke_url": "https://unify.apideck.com/vault/revoke/salesforce/?state=", "settings": {"instance_url": "https://eu28.salesforce.com", "api_key": "12345xxxxxx"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "form_fields": [{"id": "instance_url", "label": "Instance url", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": false}, {"id": "api_key", "label": "API Key", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": true}], "configuration": [{"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}], "configurable_resources": ["opportunities", "companies", "contacts", "leads"], "resource_schema_support": ["leads"], "resource_settings_support": ["leads"], "settings_required_for_authorization": ["client_id", "client_secret"], "subscriptions": [{"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}], "has_guide": true, "created_at": 1615563533390, "custom_mappings": [{"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}], "updated_at": 1616662325753}]} @@ -10579,6 +11100,9 @@ examples: path: service_id: "pipedrive" unified_api: "crm" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "crm+salesforce", "service_id": "salesforce", "name": "Salesforce", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "unified_api": "crm", "state": "authorized", "integration_state": "configured", "auth_type": "oauth2", "oauth_grant_type": "authorization_code", "enabled": true, "website": "https://www.salesforce.com", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "authorize_url": "https://unify.apideck.com/vault/authorize/salesforce/?state=", "revoke_url": "https://unify.apideck.com/vault/revoke/salesforce/?state=", "settings": {"instance_url": "https://eu28.salesforce.com", "api_key": "12345xxxxxx"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "form_fields": [{"id": "instance_url", "label": "Instance url", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": false}, {"id": "api_key", "label": "API Key", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": true}], "configuration": [{"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}], "configurable_resources": ["opportunities", "companies", "contacts", "leads"], "resource_schema_support": ["leads"], "resource_settings_support": ["leads"], "settings_required_for_authorization": ["client_id", "client_secret"], "subscriptions": [{"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}, {"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}], "has_guide": true, "created_at": 1615563533390, "custom_mappings": [{"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}], "updated_at": 1616662325753}} @@ -10600,6 +11124,9 @@ examples: path: service_id: "pipedrive" unified_api: "crm" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"enabled": true, "settings": {"instance_url": "https://eu28.salesforce.com", "api_key": "12345xxxxxx"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "configuration": [{"resource": "leads", "defaults": [{"id": "ProductInterest", "options": [{"label": "General Channel", "options": [], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"id": "ProductInterest", "options": [{"label": "General Channel", "options": [], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"id": "ProductInterest", "options": [{"label": "General Channel", "options": [], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"id": "ProductInterest", "options": [{"label": "General Channel", "options": [], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}]}], "custom_mappings": [{"value": "$.root.training.first_aid"}, {"value": "$.root.training.first_aid"}, {"value": "$.root.training.first_aid"}]} responses: @@ -10623,6 +11150,9 @@ examples: path: service_id: "pipedrive" unified_api: "crm" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} @@ -10642,8 +11172,11 @@ examples: path: service_id: "pipedrive" unified_api: "crm" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: - application/json: {"credentials": {"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ", "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}, "settings": {}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}} + application/json: {"credentials": {"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ", "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}, "settings": {"instance_url": "https://eu28.salesforce.com"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}} responses: "200": application/json: {"status_code": 201, "status": "OK", "data": {"id": "crm+salesforce", "service_id": "salesforce", "name": "Salesforce", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "unified_api": "crm", "state": "authorized", "integration_state": "configured", "auth_type": "oauth2", "oauth_grant_type": "authorization_code", "enabled": true, "website": "https://www.salesforce.com", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "authorize_url": "https://unify.apideck.com/vault/authorize/salesforce/?state=", "revoke_url": "https://unify.apideck.com/vault/revoke/salesforce/?state=", "settings": {"instance_url": "https://eu28.salesforce.com", "api_key": "12345xxxxxx"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "form_fields": [{"id": "instance_url", "label": "Instance url", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": false}, {"id": "api_key", "label": "API Key", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": true}], "configuration": [{"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}], "configurable_resources": ["opportunities", "companies", "contacts", "leads"], "resource_schema_support": ["leads"], "resource_settings_support": ["leads"], "settings_required_for_authorization": ["client_id", "client_secret"], "subscriptions": [{"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}, {"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}], "has_guide": true, "created_at": 1615563533390, "custom_mappings": [{"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}, {"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}, {"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}], "updated_at": 1616662325753}} @@ -10665,6 +11198,9 @@ examples: path: service_id: "pipedrive" unified_api: "crm" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "crm+salesforce", "service_id": "salesforce", "name": "Salesforce", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "unified_api": "crm", "state": "authorized", "integration_state": "configured", "auth_type": "oauth2", "oauth_grant_type": "authorization_code", "enabled": true, "website": "https://www.salesforce.com", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "authorize_url": "https://unify.apideck.com/vault/authorize/salesforce/?state=", "revoke_url": "https://unify.apideck.com/vault/revoke/salesforce/?state=", "settings": {"instance_url": "https://eu28.salesforce.com", "api_key": "12345xxxxxx"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "form_fields": [{"id": "instance_url", "label": "Instance url", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": false}, {"id": "api_key", "label": "API Key", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": true}], "configuration": [{"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}, {"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}, {"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}]}], "configurable_resources": ["opportunities", "companies", "contacts", "leads"], "resource_schema_support": ["leads"], "resource_settings_support": ["leads"], "settings_required_for_authorization": ["client_id", "client_secret"], "subscriptions": [{"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}, {"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}], "has_guide": true, "created_at": 1615563533390, "custom_mappings": [{"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}, {"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}], "updated_at": 1616662325753}} @@ -10686,6 +11222,9 @@ examples: path: service_id: "pipedrive" unified_api: "crm" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "crm+salesforce", "state": "authorized"}} @@ -10707,6 +11246,9 @@ examples: path: service_id: "pipedrive" unified_api: "crm" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"redirect_uri": "https://example.com/callback"} responses: @@ -10731,6 +11273,9 @@ examples: unified_api: "crm" service_id: "pipedrive" resource: "leads" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "crm+salesforce", "service_id": "salesforce", "name": "Salesforce", "tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", "unified_api": "crm", "state": "authorized", "integration_state": "configured", "auth_type": "oauth2", "oauth_grant_type": "authorization_code", "enabled": true, "website": "https://www.salesforce.com", "icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", "logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", "authorize_url": "https://unify.apideck.com/vault/authorize/salesforce/?state=", "revoke_url": "https://unify.apideck.com/vault/revoke/salesforce/?state=", "settings": {"instance_url": "https://eu28.salesforce.com", "api_key": "12345xxxxxx"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "form_fields": [{"id": "instance_url", "label": "Instance url", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": false}, {"id": "api_key", "label": "API Key", "placeholder": "", "type": "text", "required": true, "custom_field": false, "allow_custom_values": false, "disabled": false, "sensitive": true}], "configuration": [{"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"target": "custom_fields", "id": "ProductInterest", "options": [{"label": "General Channel", "options": [{"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}, {"label": "General Channel", "value": "general", "option_type": "simple"}], "option_type": "group"}], "value": "GC5000 series"}]}], "configurable_resources": ["opportunities", "companies", "contacts", "leads"], "resource_schema_support": ["leads"], "resource_settings_support": ["leads"], "settings_required_for_authorization": ["client_id", "client_secret"], "subscriptions": [{"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}, {"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}, {"downstream_id": "5f5f5f5f5f5f5f5f5f5f5f5f", "unify_event_types": ["crm.contact.created"], "downstream_event_types": ["contacts.CREATED"], "execute_url": "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", "created_at": "2020-10-01T12:00:00.000Z"}], "has_guide": true, "created_at": 1615563533390, "custom_mappings": [{"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}, {"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}], "updated_at": 1616662325753}} @@ -10753,6 +11298,9 @@ examples: service_id: "pipedrive" unified_api: "crm" resource: "leads" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"enabled": true, "settings": {"instance_url": "https://eu28.salesforce.com", "api_key": "12345xxxxxx"}, "metadata": {"account": {"name": "My Company", "id": "c01458a5-7276-41ce-bc19-639906b0450a"}, "plan": "enterprise"}, "configuration": [{"resource": "leads", "defaults": [{"id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}]}, {"resource": "leads", "defaults": [{"id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}, {"id": "ProductInterest", "options": [{"label": "General Channel", "option_type": "simple"}], "value": "GC5000 series"}]}], "custom_mappings": [{"value": "$.root.training.first_aid"}, {"value": "$.root.training.first_aid"}]} responses: @@ -10779,6 +11327,9 @@ examples: resource: "leads" query: resource_id: "1234" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": []} @@ -10803,6 +11354,9 @@ examples: resource: "leads" query: resource_id: "1234" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [{"id": "hris+employees+first_aid_training", "label": "First Aid Training", "description": "First Aid Training completed after 2019-01-01", "value": "$.root.training.first_aid", "key": "first_aid_training", "required": false, "custom_field": true, "consumer_id": "test_user_id", "example": "Some value"}]} @@ -10824,6 +11378,9 @@ examples: path: unified_api: "crm" service_id: "pipedrive" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": []} @@ -10841,6 +11398,10 @@ examples: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} vault.sessionsCreate: "": + parameters: + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"consumer_metadata": {"account_name": "SpaceX", "user_name": "Elon Musk", "email": "elon@musk.com", "image": "https://www.spacex.com/static/images/share.jpg"}, "redirect_uri": "https://mysaas.com/dashboard", "settings": {"unified_apis": ["crm"], "hide_resource_settings": false, "sandbox_mode": false, "isolation_mode": false, "session_length": "30m", "show_logs": true, "show_suggestions": false, "show_sidebar": true, "auto_redirect": false, "hide_guides": false}, "theme": {"favicon": "https://res.cloudinary.com/apideck/icons/intercom", "logo": "https://res.cloudinary.com/apideck/icons/intercom", "primary_color": "#286efa", "sidepanel_background_color": "#286efa", "sidepanel_text_color": "#FFFFFF", "vault_name": "Intercom", "privacy_url": "https://compliance.apideck.com/privacy-policy", "terms_url": "https://www.termsfeed.com/terms-conditions/957c85c1b089ae9e3219c83eff65377e"}, "custom_consumer_settings": {"feature_flag_1": true, "tax_rates": [{"id": "6", "label": "6%"}, {"id": "21", "label": "21%"}]}} responses: @@ -10864,6 +11425,9 @@ examples: query: filter: {"connector_id": "crm+salesforce", "status_code": 201, "exclude_unified_apis": "vault,proxy"} limit: 20 + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" + x-apideck-consumer-id: "test-consumer" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [{"api_style": "REST", "base_url": "unify.apideck.com", "child_request": false, "consumer_id": "test-consumer", "duration": 2220.379304, "error_message": "Refresh token is invalid", "execution": 2248, "has_children": false, "http_method": "GET", "id": "0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f", "latency": 27.620695999999953, "operation": {"id": "connectionsAll", "name": "Get All Connections"}, "parent_id": "0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f", "path": "/vault/connections", "sandbox": false, "service": {"id": "apideck-vault", "name": "Apideck Vault"}, "source_ip": "94.227.131.238", "status_code": 200, "success": true, "timestamp": "2021-07-12T14:26:17.420Z", "unified_api": "vault"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10884,6 +11448,8 @@ examples: parameters: query: limit: 20 + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [{"id": "1234", "description": "A description", "unified_api": "crm", "status": "enabled", "disabled_reason": "retry_limit", "delivery_url": "https://example.com/my/webhook/endpoint", "execute_base_url": "https://unify.apideck.com/webhook/webhooks/1234/execute", "events": ["vault.connection.created", "vault.connection.updated"], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}, {"id": "1234", "description": "A description", "unified_api": "crm", "status": "enabled", "disabled_reason": "retry_limit", "delivery_url": "https://example.com/my/webhook/endpoint", "execute_base_url": "https://unify.apideck.com/webhook/webhooks/1234/execute", "events": ["vault.connection.created", "vault.connection.updated"], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -10901,6 +11467,9 @@ examples: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} webhook.webhooksAdd: "": + parameters: + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"description": "A description", "unified_api": "crm", "status": "enabled", "delivery_url": "https://example.com/my/webhook/endpoint", "events": ["vault.connection.created", "vault.connection.updated"]} responses: @@ -10923,6 +11492,8 @@ examples: parameters: path: id: "" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "1234", "description": "A description", "unified_api": "crm", "status": "enabled", "disabled_reason": "retry_limit", "delivery_url": "https://example.com/my/webhook/endpoint", "execute_base_url": "https://unify.apideck.com/webhook/webhooks/1234/execute", "events": ["vault.connection.created", "vault.connection.updated"], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -10943,6 +11514,8 @@ examples: parameters: path: id: "" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"description": "A description", "status": "enabled", "delivery_url": "https://example.com/my/webhook/endpoint", "events": ["vault.connection.created", "vault.connection.updated"]} responses: @@ -10965,6 +11538,8 @@ examples: parameters: path: id: "" + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": {"id": "1234", "description": "A description", "unified_api": "crm", "status": "enabled", "disabled_reason": "retry_limit", "delivery_url": "https://example.com/my/webhook/endpoint", "execute_base_url": "https://unify.apideck.com/webhook/webhooks/1234/execute", "events": ["vault.connection.created", "vault.connection.updated"], "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z"}} @@ -10986,6 +11561,8 @@ examples: query: limit: 20 filter: {"exclude_apis": "vault,proxy", "consumer_id": "test_user_id", "entity_type": "Connection", "event_type": "vault.connection.callable"} + header: + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -11010,6 +11587,8 @@ examples: pass_through: {"search": "San Francisco"} header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "custom-object-schemas", "operation": "all", "data": [{"id": "cos_12345", "name": "project", "description": "This schema defines a project custom object", "fields": [{"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}, {"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}], "visible": true, "active": true, "created_by": "12345", "updated_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "cos_12345", "name": "project", "description": "This schema defines a project custom object", "fields": [{"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}, {"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}], "visible": true, "active": true, "created_by": "12345", "updated_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "cos_12345", "name": "project", "description": "This schema defines a project custom object", "fields": [{"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}, {"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}], "visible": true, "active": true, "created_by": "12345", "updated_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -11032,6 +11611,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "project", "description": "This schema defines a project custom object", "fields": [{"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}], "default_value": "New Project"}], "visible": true, "active": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -11058,6 +11639,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "custom-object-schemas", "operation": "one", "data": {"id": "cos_12345", "name": "project", "description": "This schema defines a project custom object", "fields": [{"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}], "default_value": "New Project"}], "visible": true, "active": true, "created_by": "12345", "updated_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -11082,6 +11665,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "project", "description": "This schema defines a project custom object", "fields": [{"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}, {"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}, {"id": "field_123", "name": "project_name", "description": "Name of the project", "type": "string", "required": true, "options": [{"value": "option1", "label": "Option 1"}, {"value": "option1", "label": "Option 1"}], "default_value": "New Project"}], "visible": true, "active": true, "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -11108,6 +11693,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "custom-object-schemas", "operation": "delete", "data": {"id": "12345"}} @@ -11135,6 +11722,8 @@ examples: fields: "id,updated_at" header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "custom-objects", "operation": "all", "data": [{"id": "co_12345", "owner_id": "user_12345", "name": "project", "fields": [{"name": "name", "value": "string"}], "updated_by": "user_12345", "created_by": "user_12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "co_12345", "owner_id": "user_12345", "name": "project", "fields": [{"name": "name", "value": "string"}], "updated_by": "user_12345", "created_by": "user_12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}, {"id": "co_12345", "owner_id": "user_12345", "name": "project", "fields": [{"name": "name", "value": "string"}], "updated_by": "user_12345", "created_by": "user_12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} @@ -11159,6 +11748,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "project", "fields": [{"name": "name", "value": "string"}, {"name": "name", "value": "string"}, {"name": "name", "value": "string"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}, {"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -11186,6 +11777,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "custom-objects", "operation": "one", "data": {"id": "co_12345", "owner_id": "user_12345", "name": "project", "fields": [{"name": "name", "value": "string"}, {"name": "name", "value": "string"}, {"name": "name", "value": "string"}], "updated_by": "user_12345", "created_by": "user_12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} @@ -11211,6 +11804,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" requestBody: application/json: {"name": "project", "fields": [{"name": "name", "value": "string"}, {"name": "name", "value": "string"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}, {"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: @@ -11238,6 +11833,8 @@ examples: raw: false header: x-apideck-service-id: "salesforce" + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "custom-objects", "operation": "delete", "data": {"id": "12345"}} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 629c26a9..a07d64db 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -23,13 +23,14 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.24.1 + version: 0.25.0 additionalDependencies: dependencies: {} devDependencies: {} peerDependencies: {} additionalPackageJSON: {} author: Speakeasy + baseErrorName: ApideckError clientServerStatusCodesAsErrors: true defaultErrorName: APIError enableCustomCodeRegions: false diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0f30d550..66551f18 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.555.0 +speakeasyVersion: 1.559.0 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:dfd8bf44ffd797bd01ed1dcb3c44becb2f7199d271108c1c00340fa5e6c9e259 - sourceBlobDigest: sha256:56d1ef43c8d49e89407bc967e1cd9b9eeb54029bf17113e1c6914056084805da + sourceRevisionDigest: sha256:bd0b9d7f0319e40714550f4804ac44d6ac7f3ef1346eb26a972d44ce46ac0fba + sourceBlobDigest: sha256:b16d87c11cc9c5bbff0fc829bd6621927e10f79ff8f16a6b6eddd3b1bf56e8a1 tags: - latest - - speakeasy-sdk-regen-1748856960 + - speakeasy-sdk-regen-1749226423 - 10.17.2 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:dfd8bf44ffd797bd01ed1dcb3c44becb2f7199d271108c1c00340fa5e6c9e259 - sourceBlobDigest: sha256:56d1ef43c8d49e89407bc967e1cd9b9eeb54029bf17113e1c6914056084805da + sourceRevisionDigest: sha256:bd0b9d7f0319e40714550f4804ac44d6ac7f3ef1346eb26a972d44ce46ac0fba + sourceBlobDigest: sha256:b16d87c11cc9c5bbff0fc829bd6621927e10f79ff8f16a6b6eddd3b1bf56e8a1 codeSamplesNamespace: apideck-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:a29b5e75f9bed069b68f15f829ab6db1367bd3b5b8181e73b1393450324b9512 + codeSamplesRevisionDigest: sha256:14c55248868d8910ef92a44aac87cbfd4e88eba070457afb5c72608a3585d047 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index a96bb45d..602c752f 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -21,14 +21,13 @@ specific category of applications. ```typescript import { ApideckCore } from "@apideck/unify/core.js"; import { accountingTaxRatesList } from "@apideck/unify/funcs/accountingTaxRatesList.js"; -import { SDKValidationError } from "@apideck/unify/models/errors/sdkvalidationerror.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -46,30 +45,14 @@ async function run() { }, fields: "id,updated_at", }); - - switch (true) { - case res.ok: - // The success case will be handled outside of the switch block - break; - case res.error instanceof SDKValidationError: - // Pretty-print validation errors. - return console.log(res.error.pretty()); - case res.error instanceof Error: - return console.log(res.error); - default: - // TypeScript's type checking will fail on the following line if the above - // cases were not exhaustive. - res.error satisfies never; - throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error); - } - - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingTaxRatesList failed:", res.error); + } } run(); diff --git a/README.md b/README.md index 22aa211d..1900ad0b 100644 --- a/README.md +++ b/README.md @@ -89,9 +89,9 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md). import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -111,7 +111,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -1011,9 +1010,9 @@ Here's an example of one such pagination call: import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1033,7 +1032,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -1062,9 +1060,9 @@ import { Apideck } from "@apideck/unify"; import { openAsBlob } from "node:fs"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1077,7 +1075,6 @@ async function run() { requestBody: await openAsBlob("example.file"), }); - // Handle the result console.log(result); } @@ -1096,9 +1093,9 @@ To change the default retry strategy for a single API call, simply provide a ret import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1129,7 +1126,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -1153,9 +1149,9 @@ const apideck = new Apideck({ }, retryConnectionErrors: false, }, - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1175,7 +1171,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -1188,40 +1183,29 @@ run(); ## Error Handling -Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `list` method may throw the following errors: +[`ApideckError`](./src/models/errors/apideckerror.ts) is the base class for all HTTP error responses. It has the following properties: -| Error Type | Status Code | Content Type | -| ------------------------------ | ----------- | ---------------- | -| errors.BadRequestResponse | 400 | application/json | -| errors.UnauthorizedResponse | 401 | application/json | -| errors.PaymentRequiredResponse | 402 | application/json | -| errors.NotFoundResponse | 404 | application/json | -| errors.UnprocessableResponse | 422 | application/json | -| errors.APIError | 4XX, 5XX | \*/\* | - -If the method throws an error and it is not captured by the known errors, it will default to throwing a `APIError`. +| Property | Type | Description | +| ------------------------- | ---------- | --------------------------------------------------------------------------------------- | +| `error.message` | `string` | Error message | +| `error.httpMeta.response` | `Response` | HTTP response. Access to headers and more. | +| `error.httpMeta.request` | `Request` | HTTP request. Access to headers and more. | +| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | +### Example ```typescript import { Apideck } from "@apideck/unify"; -import { - BadRequestResponse, - NotFoundResponse, - PaymentRequiredResponse, - SDKValidationError, - UnauthorizedResponse, - UnprocessableResponse, -} from "@apideck/unify/models/errors"; +import * as errors from "@apideck/unify/models/errors"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { - let result; try { - result = await apideck.accounting.taxRates.list({ + const result = await apideck.accounting.taxRates.list({ serviceId: "salesforce", filter: { assets: true, @@ -1237,47 +1221,23 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } - } catch (err) { - switch (true) { - // The server response does not match the expected SDK schema - case (err instanceof SDKValidationError): { - // Pretty-print will provide a human-readable multi-line error message - console.error(err.pretty()); - // Raw value may also be inspected - console.error(err.rawValue); - return; - } - case (err instanceof BadRequestResponse): { - // Handle err.data$: BadRequestResponseData - console.error(err); - return; - } - case (err instanceof UnauthorizedResponse): { - // Handle err.data$: UnauthorizedResponseData - console.error(err); - return; - } - case (err instanceof PaymentRequiredResponse): { - // Handle err.data$: PaymentRequiredResponseData - console.error(err); - return; - } - case (err instanceof NotFoundResponse): { - // Handle err.data$: NotFoundResponseData - console.error(err); - return; - } - case (err instanceof UnprocessableResponse): { - // Handle err.data$: UnprocessableResponseData - console.error(err); - return; - } - default: { - // Other errors such as network errors, see HTTPClientErrors for more details - throw err; + } catch (error) { + // The base class for HTTP error responses + if (error instanceof errors.ApideckError) { + console.log(error.message); + console.log(error.httpMeta.response.status); + console.log(error.httpMeta.response.headers); + console.log(error.httpMeta.request); + + // Depending on the method different errors may be thrown + if (error instanceof errors.BadRequestResponse) { + console.log(error.data$.statusCode); // number + console.log(error.data$.error); // string + console.log(error.data$.typeName); // string + console.log(error.data$.message); // string + console.log(error.data$.detail); // errors.Detail } } } @@ -1287,17 +1247,33 @@ run(); ``` -Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging. +### Error Classes +**Primary errors:** +* [`ApideckError`](./src/models/errors/apideckerror.ts): The base class for HTTP error responses. + * [`UnauthorizedResponse`](docs/models/errors/unauthorizedresponse.md): Unauthorized. Status code `401`. + * [`PaymentRequiredResponse`](docs/models/errors/paymentrequiredresponse.md): Payment Required. Status code `402`. + * [`NotFoundResponse`](docs/models/errors/notfoundresponse.md): The specified resource was not found. Status code `404`. * + * [`BadRequestResponse`](docs/models/errors/badrequestresponse.md): Bad Request. Status code `400`. * + * [`UnprocessableResponse`](docs/models/errors/unprocessableresponse.md): Unprocessable. Status code `422`. * + +
Less common errors (6) + +
+ +**Network errors:** +* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server. +* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal. +* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client. +* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid. +* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error. -In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module: -| HTTP Client Error | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | -| RequestAbortedError | HTTP request was aborted by the client | -| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal | -| ConnectionError | HTTP client was unable to make a request to a server | -| InvalidRequestError | Any input used to create a request is invalid | -| UnexpectedClientError | Unrecognised or unexpected error | +**Inherit from [`ApideckError`](./src/models/errors/apideckerror.ts)**: +* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. + +
+ +\* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable. @@ -1311,9 +1287,9 @@ import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ serverURL: "https://unify.apideck.com", - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1333,7 +1309,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -1350,9 +1325,9 @@ import { Apideck } from "@apideck/unify"; import { openAsBlob } from "node:fs"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1367,7 +1342,6 @@ async function run() { serverURL: "https://upload.apideck.com", }); - // Handle the result console.log(result); } @@ -1463,7 +1437,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } diff --git a/RELEASES.md b/RELEASES.md index fe7ab033..d6713cb0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -308,4 +308,14 @@ Based on: ### Generated - [typescript v0.24.1] . ### Releases -- [NPM v0.24.1] https://www.npmjs.com/package/@apideck/unify/v/0.24.1 - . \ No newline at end of file +- [NPM v0.24.1] https://www.npmjs.com/package/@apideck/unify/v/0.24.1 - . + +## 2025-06-10 12:04:42 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.559.0 (2.624.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.25.0] . +### Releases +- [NPM v0.25.0] https://www.npmjs.com/package/@apideck/unify/v/0.25.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 0335e8a5..a005bea8 100644 --- a/USAGE.md +++ b/USAGE.md @@ -3,9 +3,9 @@ import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -25,7 +25,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } diff --git a/docs/models/components/activitiessort.md b/docs/models/components/activitiessort.md index 11d3001a..380349fb 100644 --- a/docs/models/components/activitiessort.md +++ b/docs/models/components/activitiessort.md @@ -7,6 +7,7 @@ import { ActivitiesSort } from "@apideck/unify/models/components"; let value: ActivitiesSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/apiresourcecoverage.md b/docs/models/components/apiresourcecoverage.md index f11c5d7a..f67ebf38 100644 --- a/docs/models/components/apiresourcecoverage.md +++ b/docs/models/components/apiresourcecoverage.md @@ -34,7 +34,11 @@ let value: ApiResourceCoverage = { supportedFields: [ { unifiedProperty: "owner_id", - childProperties: [], + childProperties: [ + { + unifiedProperty: "owner_id", + }, + ], }, ], supportedListFields: [ diff --git a/docs/models/components/bill.md b/docs/models/components/bill.md index d53a7999..d9a42343 100644 --- a/docs/models/components/bill.md +++ b/docs/models/components/bill.md @@ -10,38 +10,7 @@ let value: Bill = { id: "12345", downstreamId: "12345", billNumber: "10001", - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, + supplier: null, companyId: "12345", currency: "USD", currencyRate: 0.69, diff --git a/docs/models/components/billpayment.md b/docs/models/components/billpayment.md index ecc442de..a2947029 100644 --- a/docs/models/components/billpayment.md +++ b/docs/models/components/billpayment.md @@ -22,38 +22,7 @@ let value: BillPayment = { code: "453", }, transactionDate: new Date("2021-05-01T12:00:00.000Z"), - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, + supplier: null, companyId: "12345", reconciled: true, status: "authorised", diff --git a/docs/models/components/billssort.md b/docs/models/components/billssort.md index 579bcc92..c09c48cd 100644 --- a/docs/models/components/billssort.md +++ b/docs/models/components/billssort.md @@ -7,6 +7,7 @@ import { BillsSort } from "@apideck/unify/models/components"; let value: BillsSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/collectionssort.md b/docs/models/components/collectionssort.md index 5115820d..e137b7b7 100644 --- a/docs/models/components/collectionssort.md +++ b/docs/models/components/collectionssort.md @@ -7,6 +7,7 @@ import { CollectionsSort } from "@apideck/unify/models/components"; let value: CollectionsSort = { by: "name", + direction: "desc", }; ``` diff --git a/docs/models/components/commentssort.md b/docs/models/components/commentssort.md index 12fdabbe..c857b5f4 100644 --- a/docs/models/components/commentssort.md +++ b/docs/models/components/commentssort.md @@ -7,6 +7,7 @@ import { CommentsSort } from "@apideck/unify/models/components"; let value: CommentsSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/companiessort.md b/docs/models/components/companiessort.md index 8f55bde4..b1887732 100644 --- a/docs/models/components/companiessort.md +++ b/docs/models/components/companiessort.md @@ -7,6 +7,7 @@ import { CompaniesSort } from "@apideck/unify/models/components"; let value: CompaniesSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/configuration.md b/docs/models/components/configuration.md index dfbed027..b64c92de 100644 --- a/docs/models/components/configuration.md +++ b/docs/models/components/configuration.md @@ -14,14 +14,7 @@ let value: Configuration = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/connectionconfiguration.md b/docs/models/components/connectionconfiguration.md index 2d4692cd..2b0432e6 100644 --- a/docs/models/components/connectionconfiguration.md +++ b/docs/models/components/connectionconfiguration.md @@ -13,7 +13,14 @@ let value: ConnectionConfiguration = { options: [ { label: "General Channel", - optionType: "simple", + options: [ + { + label: "General Channel", + value: "general", + optionType: "simple", + }, + ], + optionType: "group", }, ], value: "GC5000 series", diff --git a/docs/models/components/connectionimportdata.md b/docs/models/components/connectionimportdata.md index 4a804155..8e3417b9 100644 --- a/docs/models/components/connectionimportdata.md +++ b/docs/models/components/connectionimportdata.md @@ -12,7 +12,9 @@ let value: ConnectionImportData = { accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", }, - settings: {}, + settings: { + "instance_url": "https://eu28.salesforce.com", + }, metadata: { "account": { "name": "My Company", @@ -28,5 +30,5 @@ let value: ConnectionImportData = { | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `credentials` | [components.Credentials](../../models/components/credentials.md) | :heavy_minus_sign: | N/A | {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ"
} | -| `settings` | [components.Settings](../../models/components/settings.md) | :heavy_minus_sign: | Connection settings. Values will persist to `form_fields` with corresponding id | {
"instance_url": "https://eu28.salesforce.com"
} | +| `settings` | Record | :heavy_minus_sign: | Connection settings. Values will persist to `form_fields` with corresponding id | {
"instance_url": "https://eu28.salesforce.com"
} | | `metadata` | Record | :heavy_minus_sign: | Attach your own consumer specific metadata | {
"account": {
"name": "My Company",
"id": "c01458a5-7276-41ce-bc19-639906b0450a"
},
"plan": "enterprise"
} | \ No newline at end of file diff --git a/docs/models/components/connectioninput.md b/docs/models/components/connectioninput.md index 1a912e04..bdbaf724 100644 --- a/docs/models/components/connectioninput.md +++ b/docs/models/components/connectioninput.md @@ -27,7 +27,14 @@ let value: ConnectionInput = { options: [ { label: "General Channel", - optionType: "simple", + options: [ + { + label: "General Channel", + value: "general", + optionType: "simple", + }, + ], + optionType: "group", }, ], value: "GC5000 series", diff --git a/docs/models/components/connectorresource.md b/docs/models/components/connectorresource.md index 89a59ead..05b8affd 100644 --- a/docs/models/components/connectorresource.md +++ b/docs/models/components/connectorresource.md @@ -35,7 +35,11 @@ let value: ConnectorResource = { supportedFields: [ { unifiedProperty: "owner_id", - childProperties: [], + childProperties: [ + { + unifiedProperty: "owner_id", + }, + ], }, ], supportedListFields: [ diff --git a/docs/models/components/contactssort.md b/docs/models/components/contactssort.md index a4fbec01..fd031586 100644 --- a/docs/models/components/contactssort.md +++ b/docs/models/components/contactssort.md @@ -7,6 +7,7 @@ import { ContactsSort } from "@apideck/unify/models/components"; let value: ContactsSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/coverage.md b/docs/models/components/coverage.md index 70b1dc13..d3d634fa 100644 --- a/docs/models/components/coverage.md +++ b/docs/models/components/coverage.md @@ -30,7 +30,11 @@ let value: Coverage = { supportedFields: [ { unifiedProperty: "owner_id", - childProperties: [], + childProperties: [ + { + unifiedProperty: "owner_id", + }, + ], }, ], supportedListFields: [ diff --git a/docs/models/components/createconnectionresponse.md b/docs/models/components/createconnectionresponse.md index d0ed20c6..90a08e3e 100644 --- a/docs/models/components/createconnectionresponse.md +++ b/docs/models/components/createconnectionresponse.md @@ -74,14 +74,7 @@ let value: CreateConnectionResponse = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/creditnotessort.md b/docs/models/components/creditnotessort.md index e350d9a2..64a8ac25 100644 --- a/docs/models/components/creditnotessort.md +++ b/docs/models/components/creditnotessort.md @@ -7,6 +7,7 @@ import { CreditNotesSort } from "@apideck/unify/models/components"; let value: CreditNotesSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/customer.md b/docs/models/components/customer.md index d68ffdf9..c4c46bdc 100644 --- a/docs/models/components/customer.md +++ b/docs/models/components/customer.md @@ -101,10 +101,7 @@ let value: Customer = { nominalCode: "N091", code: "453", }, - parent: { - id: "12345", - name: "Windsurf Shop", - }, + parent: null, status: "active", paymentMethod: "cash", channel: "email", diff --git a/docs/models/components/customerssort.md b/docs/models/components/customerssort.md index dd8be3b1..6dffa7dc 100644 --- a/docs/models/components/customerssort.md +++ b/docs/models/components/customerssort.md @@ -7,6 +7,7 @@ import { CustomersSort } from "@apideck/unify/models/components"; let value: CustomersSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/defaults.md b/docs/models/components/defaults.md index ecf797ac..0524df90 100644 --- a/docs/models/components/defaults.md +++ b/docs/models/components/defaults.md @@ -11,14 +11,7 @@ let value: Defaults = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/employeessort.md b/docs/models/components/employeessort.md index 90fae661..777a0e76 100644 --- a/docs/models/components/employeessort.md +++ b/docs/models/components/employeessort.md @@ -7,6 +7,7 @@ import { EmployeesSort } from "@apideck/unify/models/components"; let value: EmployeesSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/expense.md b/docs/models/components/expense.md index 06181f55..17fab164 100644 --- a/docs/models/components/expense.md +++ b/docs/models/components/expense.md @@ -26,32 +26,7 @@ let value: Expense = { rate: 10, }, totalAmount: 275, - lineItems: [ - { - id: "12345", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountId: "123456", - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - }, - ], + lineItems: [], customFields: [ { id: "2389328923893298", diff --git a/docs/models/components/expenseinput.md b/docs/models/components/expenseinput.md index e90f8796..7486cb77 100644 --- a/docs/models/components/expenseinput.md +++ b/docs/models/components/expenseinput.md @@ -23,29 +23,7 @@ let value: ExpenseInput = { rate: 10, }, totalAmount: 275, - lineItems: [ - { - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountId: "123456", - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - }, - ], + lineItems: [], customFields: [ { id: "2389328923893298", diff --git a/docs/models/components/filessort.md b/docs/models/components/filessort.md index 6e881568..3b4e78ae 100644 --- a/docs/models/components/filessort.md +++ b/docs/models/components/filessort.md @@ -7,6 +7,7 @@ import { FilesSort } from "@apideck/unify/models/components"; let value: FilesSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/folder.md b/docs/models/components/folder.md index 40427c5e..f4862132 100644 --- a/docs/models/components/folder.md +++ b/docs/models/components/folder.md @@ -16,12 +16,7 @@ let value: Folder = { email: "hello@apideck.com", name: "Elon Musk", }, - parentFolders: [ - { - id: "12345", - name: "Personal", - }, - ], + parentFolders: [], updatedBy: "12345", createdBy: "12345", updatedAt: new Date("2020-09-30T07:43:32.000Z"), diff --git a/docs/models/components/getaccountinglocationsresponse.md b/docs/models/components/getaccountinglocationsresponse.md index 49e2e313..d7fd138a 100644 --- a/docs/models/components/getaccountinglocationsresponse.md +++ b/docs/models/components/getaccountinglocationsresponse.md @@ -13,69 +13,7 @@ let value: GetAccountingLocationsResponse = { service: "xero", resource: "subsidiaries", operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - companyName: "SpaceX", - displayName: "11 UT - South Jordan", - status: "active", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - subsidiaries: [ - { - id: "12345", - name: "SpaceX", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getapiresourcecoverageresponse.md b/docs/models/components/getapiresourcecoverageresponse.md index 0b0a98b8..ef505322 100644 --- a/docs/models/components/getapiresourcecoverageresponse.md +++ b/docs/models/components/getapiresourcecoverageresponse.md @@ -39,7 +39,11 @@ let value: GetApiResourceCoverageResponse = { supportedFields: [ { unifiedProperty: "owner_id", - childProperties: [], + childProperties: [ + { + unifiedProperty: "owner_id", + }, + ], }, ], supportedListFields: [ diff --git a/docs/models/components/getapplicantsresponse.md b/docs/models/components/getapplicantsresponse.md index 08182611..01e4e5fa 100644 --- a/docs/models/components/getapplicantsresponse.md +++ b/docs/models/components/getapplicantsresponse.md @@ -6,7 +6,6 @@ Applicants ```typescript import { GetApplicantsResponse } from "@apideck/unify/models/components"; -import { RFCDate } from "@apideck/unify/types"; let value: GetApplicantsResponse = { statusCode: 200, @@ -14,144 +13,7 @@ let value: GetApplicantsResponse = { service: "lever", resource: "Applicants", operation: "all", - data: [ - { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - coverLetter: - "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", - jobUrl: "https://democompany.recruitee.com/o/example-talent-pool", - photoUrl: "https://unavatar.io/elon-musk", - headline: "PepsiCo, Inc, Central Perk", - title: "CEO", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - stageId: "12345", - recruiterId: "12345", - coordinatorId: "12345", - applicationIds: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - applications: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - sources: [ - "Job site", - ], - sourceId: "12345", - confidential: false, - anonymized: true, - tags: [ - "New", - ], - archived: false, - lastInteractionAt: new Date("2020-09-30T07:43:32.000Z"), - ownerId: "54321", - sourcedBy: "12345", - cvUrl: - "https://recruitee-main.s3.eu-central-1.amazonaws.com/candidates/36615291/pdf_cv_38swhu4w42k1.pdf?response-content-disposition=inline&response-content-type=application%2Fpdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQYHB7CA5RLR4Y3ON%2F20220514%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20220514T235654Z&X-Amz-Expires=36000&X-Amz-SignedHeaders=host&X-Amz-Signature=72c0621f5976db75b54de487eb821a8e73480d7f2a6a4a9713ab997944b0561f", - recordUrl: "https://app.intercom.io/contacts/12345", - rejectedAt: new Date("2020-09-30T07:43:32.000Z"), - deleted: true, - deletedBy: "12345", - deletedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getapplicationsresponse.md b/docs/models/components/getapplicationsresponse.md index 74d18188..25071c2c 100644 --- a/docs/models/components/getapplicationsresponse.md +++ b/docs/models/components/getapplicationsresponse.md @@ -13,37 +13,7 @@ let value: GetApplicationsResponse = { service: "sap-successfactors", resource: "Applications", operation: "all", - data: [ - { - id: "12345", - applicantId: "12345", - jobId: "12345", - status: "open", - stage: { - id: "12345", - name: "12345", - }, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getattachmentsresponse.md b/docs/models/components/getattachmentsresponse.md index 549af5b8..ff7c6cb1 100644 --- a/docs/models/components/getattachmentsresponse.md +++ b/docs/models/components/getattachmentsresponse.md @@ -13,40 +13,7 @@ let value: GetAttachmentsResponse = { service: "quickbooks", resource: "PurchaseOrders", operation: "all", - data: [ - { - id: "12345", - displayId: "sample ID", - name: "sample.jpg", - mimeType: "image/jpeg", - size: 1810673, - reference: { - type: "invoice", - id: "12345", - }, - description: "A sample image", - parentFolderId: "123", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getbalancesheetresponse.md b/docs/models/components/getbalancesheetresponse.md index d98133a9..d90216bc 100644 --- a/docs/models/components/getbalancesheetresponse.md +++ b/docs/models/components/getbalancesheetresponse.md @@ -14,212 +14,7 @@ let value: GetBalanceSheetResponse = { resource: "BalanceSheets", operation: "one", data: { - reports: [ - { - id: "12345", - reportName: "BalanceSheet", - startDate: "2017-01-01", - endDate: "2017-01-31", - currency: "USD", - assets: { - accountId: "1", - code: "1000", - name: "Assets", - value: 50000, - items: [ - { - "account_id": "101", - "code": "1100", - "name": "Current Assets", - "value": 20000, - "items": [ - { - "account_id": "1011", - "code": "1101", - "name": "Cash and Cash Equivalents", - "value": 10000, - }, - { - "account_id": "1012", - "code": "1102", - "name": "Accounts Receivable", - "value": 5000, - }, - { - "account_id": "1013", - "code": "1103", - "name": "Inventory", - "value": 3000, - }, - { - "account_id": "1014", - "code": "1104", - "name": "Prepaid Expenses", - "value": 2000, - }, - ], - }, - { - "account_id": "102", - "code": "1200", - "name": "Non-Current Assets", - "value": 30000, - "items": [ - { - "account_id": "1021", - "code": "1201", - "name": "Property, Plant, and Equipment (PPE)", - "value": 25000, - }, - { - "account_id": "1022", - "code": "1202", - "name": "Intangible Assets", - "value": 5000, - "items": [ - { - "account_id": "10221", - "code": "1203", - "name": "Goodwill", - "value": 3000, - }, - { - "account_id": "10222", - "code": "1204", - "name": "Patents", - "value": 2000, - }, - ], - }, - ], - }, - ], - }, - liabilities: { - accountId: "2", - code: "2000", - name: "Liabilities", - value: 30000, - items: [ - { - "account_id": "201", - "code": "2100", - "name": "Current Liabilities", - "value": 10000, - "items": [ - { - "account_id": "2011", - "code": "2101", - "name": "Accounts Payable", - "value": 4000, - }, - { - "account_id": "2012", - "code": "2102", - "name": "Short-Term Debt", - "value": 2000, - }, - { - "account_id": "2013", - "code": "2103", - "name": "Accrued Expenses", - "value": 1000, - }, - { - "account_id": "2014", - "code": "2104", - "name": "Current Portion of Long-Term Debt", - "value": 3000, - }, - ], - }, - { - "account_id": "202", - "code": "2200", - "name": "Non-Current Liabilities", - "value": 20000, - "items": [ - { - "account_id": "2021", - "code": "2201", - "name": "Long-Term Debt", - "value": 15000, - }, - { - "account_id": "2022", - "code": "2202", - "name": "Deferred Tax Liabilities", - "value": 3000, - }, - { - "account_id": "2023", - "code": "2203", - "name": "Pension Liabilities", - "value": 2000, - }, - ], - }, - ], - }, - equity: { - accountId: "3", - code: "3000", - name: "Equity", - value: 20000, - items: [ - { - "account_id": "301", - "code": "3100", - "name": "Common Stock", - "value": 5000, - }, - { - "account_id": "302", - "code": "3200", - "name": "Retained Earnings", - "value": 10000, - }, - { - "account_id": "303", - "code": "3300", - "name": "Additional Paid-In Capital", - "value": 3000, - }, - { - "account_id": "304", - "code": "3400", - "name": "Treasury Stock", - "value": -1000, - }, - { - "account_id": "305", - "code": "3500", - "name": "Other Comprehensive Income", - "value": 3000, - }, - ], - }, - netAssets: 1000, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - uncategorizedItems: { - accountId: "3", - code: "3000", - name: "Uncategorized Items", - value: 1000, - items: [ - { - "account_id": "301", - "code": "3100", - "name": "not linked account", - "value": 1000, - }, - ], - }, - }, - ], + reports: [], }, }; ``` diff --git a/docs/models/components/getbankfeedaccountsresponse.md b/docs/models/components/getbankfeedaccountsresponse.md index 553362c2..fde92c5d 100644 --- a/docs/models/components/getbankfeedaccountsresponse.md +++ b/docs/models/components/getbankfeedaccountsresponse.md @@ -13,31 +13,7 @@ let value: GetBankFeedAccountsResponse = { service: "quickbooks", resource: "bank-feed-accounts", operation: "all", - data: [ - { - id: "12345", - bankAccountType: "bank", - sourceAccountId: "src_456", - targetAccountId: "tgt_789", - targetAccountName: "Main Company Checking", - targetAccountNumber: "NL91ABNA0417164300", - currency: "USD", - feedStatus: "pending", - country: "US", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getbillpaymentsresponse.md b/docs/models/components/getbillpaymentsresponse.md index 55034108..93776fe5 100644 --- a/docs/models/components/getbillpaymentsresponse.md +++ b/docs/models/components/getbillpaymentsresponse.md @@ -24,12 +24,7 @@ let value: GetBillPaymentsResponse = { paymentMethod: "cash", paymentMethodReference: "123456", paymentMethodId: "12345", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, + account: null, transactionDate: new Date("2021-05-01T12:00:00.000Z"), supplier: { id: "12345", diff --git a/docs/models/components/getbillsresponse.md b/docs/models/components/getbillsresponse.md index 5d07ee5d..99bb9270 100644 --- a/docs/models/components/getbillsresponse.md +++ b/docs/models/components/getbillsresponse.md @@ -6,7 +6,6 @@ Bills ```typescript import { GetBillsResponse } from "@apideck/unify/models/components"; -import { RFCDate } from "@apideck/unify/types"; let value: GetBillsResponse = { statusCode: 200, @@ -14,171 +13,7 @@ let value: GetBillsResponse = { service: "xero", resource: "bills", operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - billNumber: "10001", - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - billDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-10-30"), - paidDate: new RFCDate("2020-10-30"), - poNumber: "90000117", - reference: "123456", - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "expense_account", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - terms: "Net 30 days", - balance: 27500, - deposit: 0, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxCode: "1234", - notes: "Some notes about this bill.", - status: "draft", - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - discountPercentage: 5.5, - sourceDocumentUrl: "https://www.invoicesolution.com/bill/123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - accountingPeriod: "01-24", - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getcollectionsresponse.md b/docs/models/components/getcollectionsresponse.md index 55673617..58d1668a 100644 --- a/docs/models/components/getcollectionsresponse.md +++ b/docs/models/components/getcollectionsresponse.md @@ -13,17 +13,7 @@ let value: GetCollectionsResponse = { service: "jira", resource: "Tickets", operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - type: "Technical", - name: "Main IT Issues", - description: "IT Issues", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getcollectiontagsresponse.md b/docs/models/components/getcollectiontagsresponse.md index 851a6657..ada7276c 100644 --- a/docs/models/components/getcollectiontagsresponse.md +++ b/docs/models/components/getcollectiontagsresponse.md @@ -13,12 +13,7 @@ let value: GetCollectionTagsResponse = { service: "jira", resource: "Tickets", operation: "all", - data: [ - { - id: "12345", - name: "User Experience", - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getcollectionusersresponse.md b/docs/models/components/getcollectionusersresponse.md index 29e863f1..12458e0c 100644 --- a/docs/models/components/getcollectionusersresponse.md +++ b/docs/models/components/getcollectionusersresponse.md @@ -13,18 +13,7 @@ let value: GetCollectionUsersResponse = { service: "jira", resource: "Tickets", operation: "all", - data: [ - { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - photoUrl: "https://unavatar.io/elon-musk", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getconnectionsresponse.md b/docs/models/components/getconnectionsresponse.md index b9f9b444..d979679c 100644 --- a/docs/models/components/getconnectionsresponse.md +++ b/docs/models/components/getconnectionsresponse.md @@ -10,127 +10,7 @@ import { GetConnectionsResponse } from "@apideck/unify/models/components"; let value: GetConnectionsResponse = { statusCode: 200, status: "OK", - data: [ - { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - optionType: "simple", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - ], + data: [], }; ``` diff --git a/docs/models/components/getconnectorresourceresponse.md b/docs/models/components/getconnectorresourceresponse.md index 6336a0c1..3fdada15 100644 --- a/docs/models/components/getconnectorresourceresponse.md +++ b/docs/models/components/getconnectorresourceresponse.md @@ -40,7 +40,11 @@ let value: GetConnectorResourceResponse = { supportedFields: [ { unifiedProperty: "owner_id", - childProperties: [], + childProperties: [ + { + unifiedProperty: "owner_id", + }, + ], }, ], supportedListFields: [ diff --git a/docs/models/components/getcustommappingsresponse.md b/docs/models/components/getcustommappingsresponse.md index 78039513..4dd3c3e9 100644 --- a/docs/models/components/getcustommappingsresponse.md +++ b/docs/models/components/getcustommappingsresponse.md @@ -10,19 +10,7 @@ import { GetCustomMappingsResponse } from "@apideck/unify/models/components"; let value: GetCustomMappingsResponse = { statusCode: 200, status: "OK", - data: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], + data: [], }; ``` diff --git a/docs/models/components/getcustomobjectsresponse.md b/docs/models/components/getcustomobjectsresponse.md index 1a8dae23..b5ac4602 100644 --- a/docs/models/components/getcustomobjectsresponse.md +++ b/docs/models/components/getcustomobjectsresponse.md @@ -13,38 +13,7 @@ let value: GetCustomObjectsResponse = { service: "zoho-crm", resource: "custom-objects", operation: "all", - data: [ - { - id: "co_12345", - ownerId: "user_12345", - name: "project", - fields: [ - { - name: "name", - value: "string", - }, - ], - updatedBy: "user_12345", - createdBy: "user_12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getdrivegroupsresponse.md b/docs/models/components/getdrivegroupsresponse.md index 7b8d2f3d..87abefe5 100644 --- a/docs/models/components/getdrivegroupsresponse.md +++ b/docs/models/components/getdrivegroupsresponse.md @@ -13,33 +13,7 @@ let value: GetDriveGroupsResponse = { service: "google-drive", resource: "DriveGroups", operation: "all", - data: [ - { - id: "12345", - name: "accounting", - displayName: "accounting", - description: "A description", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getdrivesresponse.md b/docs/models/components/getdrivesresponse.md index 77e69b8d..0ce95ce6 100644 --- a/docs/models/components/getdrivesresponse.md +++ b/docs/models/components/getdrivesresponse.md @@ -13,32 +13,7 @@ let value: GetDrivesResponse = { service: "google-drive", resource: "Drives", operation: "all", - data: [ - { - id: "12345", - name: "Project Resources", - description: "A description", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getecommercecustomersresponse.md b/docs/models/components/getecommercecustomersresponse.md index 02ad4eae..d52a640f 100644 --- a/docs/models/components/getecommercecustomersresponse.md +++ b/docs/models/components/getecommercecustomersresponse.md @@ -13,55 +13,7 @@ let value: GetEcommerceCustomersResponse = { service: "shopify", resource: "customers", operation: "all", - data: [ - { - id: "12345", - name: "John Doe", - firstName: "John", - lastName: "Doe", - companyName: "Acme Inc.", - status: "active", - currency: "USD", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - type: "billing", - id: "12345", - line1: "Main street", - line2: "apt #", - city: "Anytown", - state: "Ohio", - postalCode: "12345", - country: "US", - }, - ], - orders: [ - { - id: "12345", - total: "199.99", - status: "active", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getecommerceordersresponse.md b/docs/models/components/getecommerceordersresponse.md index 4081bc8a..c691a222 100644 --- a/docs/models/components/getecommerceordersresponse.md +++ b/docs/models/components/getecommerceordersresponse.md @@ -13,127 +13,7 @@ let value: GetEcommerceOrdersResponse = { service: "shopify", resource: "orders", operation: "all", - data: [ - { - id: "12345", - orderNumber: "123456789", - currency: "USD", - discounts: [ - { - code: "SUMMER20", - amount: "5.99", - percentage: "0.1", - }, - ], - subTotal: "45.17", - shippingCost: "5.17", - couponDiscount: "5.5", - totalDiscount: "5.5", - totalTax: "5.16", - totalAmount: "50.17", - refundedAmount: "5.5", - status: "active", - paymentStatus: "paid", - fulfillmentStatus: "shipped", - paymentMethod: "credit_card", - customer: { - id: "12345", - name: "John Doe", - firstName: "John", - lastName: "Doe", - companyName: "Acme Inc.", - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - }, - billingAddress: { - line1: "123 Main Street", - line2: "Apt 1", - companyName: "Acme Inc.", - city: "New York", - state: "NY", - postalCode: "10001", - country: "US", - }, - shippingAddress: { - line1: "123 Main Street", - line2: "Apt 1", - companyName: "Acme Inc.", - city: "New York", - state: "NY", - postalCode: "10001", - country: "US", - }, - tracking: [ - { - provider: "UPS", - number: "1Z9999999999999999", - url: "https://www.ups.com/track?tracknum=1Z9999999999999999", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - lineItems: [ - { - id: "12345", - productId: "def456", - variantId: "ghi789", - sku: "MBP123-16GB-SILVER-13", - name: "Midnight 16inch MacBook Pro", - description: - "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", - options: [ - { - id: "jkl012", - name: "Color", - value: "Silver", - }, - ], - quantity: "2", - unitPrice: "19.99", - taxRate: "0.08", - taxAmount: "1.6", - isRefunded: false, - refundedAmount: "0", - refundedQuantity: "0", - subTotal: "43.18", - totalAmount: "43.18", - discounts: [ - { - code: "SUMMER20", - amount: "5.99", - percentage: "0.1", - }, - ], - }, - ], - note: "Special instructions for delivery", - refunds: [ - { - id: "12345", - amount: "100", - currency: "USD", - reason: "Customer requested a refund", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getemployeepayrollsresponse.md b/docs/models/components/getemployeepayrollsresponse.md index 4853d225..5891e143 100644 --- a/docs/models/components/getemployeepayrollsresponse.md +++ b/docs/models/components/getemployeepayrollsresponse.md @@ -13,56 +13,7 @@ let value: GetEmployeePayrollsResponse = { service: "sage-hr", resource: "Employees", operation: "all", - data: [ - { - id: "12345", - employeeId: "12345", - companyId: "23456", - processed: false, - processedDate: "2022-04-08", - checkDate: "2022-04-08", - startDate: "2022-04-08", - endDate: "2022-04-21", - totals: { - companyDebit: 27992.49, - taxDebit: 8655.32, - checkAmount: 27966.23, - netPay: 19337.17, - grossPay: 27966.23, - employerTaxes: 2038.93, - employeeTaxes: 6616.39, - employerBenefitContributions: 0, - employeeBenefitDeductions: 0, - }, - compensations: [ - { - employeeId: "12345", - netPay: 2199.93, - grossPay: 3000, - taxes: [ - { - name: "CA State Income Tax", - employer: false, - amount: 1.97, - }, - ], - deductions: [ - { - name: "Company Car", - amount: 10.97, - }, - ], - benefits: [ - { - name: "Health Insurance", - employeeDeduction: 142.94, - employerContribution: 141.14, - }, - ], - }, - ], - }, - ], + data: [], }; ``` diff --git a/docs/models/components/getexpensesresponse.md b/docs/models/components/getexpensesresponse.md index da9bc9a6..bb4e19f2 100644 --- a/docs/models/components/getexpensesresponse.md +++ b/docs/models/components/getexpensesresponse.md @@ -35,32 +35,7 @@ let value: GetExpensesResponse = { rate: 10, }, totalAmount: 275, - lineItems: [ - { - id: "12345", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountId: "123456", - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - }, - ], + lineItems: [], customFields: [ { id: "2389328923893298", diff --git a/docs/models/components/getfolderresponse.md b/docs/models/components/getfolderresponse.md index 88c69848..32b7bfd4 100644 --- a/docs/models/components/getfolderresponse.md +++ b/docs/models/components/getfolderresponse.md @@ -24,12 +24,7 @@ let value: GetFolderResponse = { email: "hello@apideck.com", name: "Elon Musk", }, - parentFolders: [ - { - id: "12345", - name: "Personal", - }, - ], + parentFolders: [], updatedBy: "12345", createdBy: "12345", updatedAt: new Date("2020-09-30T07:43:32.000Z"), diff --git a/docs/models/components/getinvoiceitemresponse.md b/docs/models/components/getinvoiceitemresponse.md index 38312916..a7ebd35a 100644 --- a/docs/models/components/getinvoiceitemresponse.md +++ b/docs/models/components/getinvoiceitemresponse.md @@ -68,12 +68,7 @@ let value: GetInvoiceItemResponse = { nominalCode: "N091", code: "453", }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], + trackingCategories: null, active: true, departmentId: "12345", locationId: "12345", diff --git a/docs/models/components/getinvoicesresponse.md b/docs/models/components/getinvoicesresponse.md index a8ca25d0..57475ba1 100644 --- a/docs/models/components/getinvoicesresponse.md +++ b/docs/models/components/getinvoicesresponse.md @@ -6,7 +6,6 @@ Invoices ```typescript import { GetInvoicesResponse } from "@apideck/unify/models/components"; -import { RFCDate } from "@apideck/unify/types"; let value: GetInvoicesResponse = { statusCode: 200, @@ -14,215 +13,7 @@ let value: GetInvoicesResponse = { service: "xero", resource: "invoices", operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - type: "service", - number: "OIT00546", - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - invoiceDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-09-30"), - terms: "Net 30 days", - poNumber: "90000117", - reference: "123456", - status: "draft", - invoiceSent: true, - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalTax: 2500, - taxCode: "1234", - discountPercentage: 5.5, - discountAmount: 25, - total: 27500, - balance: 27500, - deposit: 0, - customerMemo: "Thank you for your business and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - templateId: "123456", - sourceDocumentUrl: "https://www.invoicesolution.com/invoice/123456", - paymentAllocations: [ - { - id: "123456", - allocatedAmount: 1000, - date: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getjobsresponse.md b/docs/models/components/getjobsresponse.md index b27e6c14..22a0d8d0 100644 --- a/docs/models/components/getjobsresponse.md +++ b/docs/models/components/getjobsresponse.md @@ -6,7 +6,6 @@ Jobs ```typescript import { GetJobsResponse } from "@apideck/unify/models/components"; -import { RFCDate } from "@apideck/unify/types"; let value: GetJobsResponse = { statusCode: 200, @@ -14,132 +13,7 @@ let value: GetJobsResponse = { service: "lever", resource: "Jobs", operation: "all", - data: [ - { - id: "12345", - slug: "ceo", - title: "CEO", - sequence: 3, - visibility: "internal", - status: "completed", - code: "123-OC", - language: "EN", - employmentTerms: "full-time", - experience: "Director/ Vice President", - location: "San Francisco", - remote: true, - requisitionId: "abc123", - department: { - id: "12345", - parentId: "22345", - name: "R&D", - code: "2", - description: "R&D", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - branch: { - id: "123", - name: "HQ NY", - }, - recruiters: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - ], - hiringManagers: [ - "123456", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - description: "A description", - blocks: [ - { - title: "string", - content: "string", - }, - ], - closing: "The closing section of the job description", - closingDate: new RFCDate("2020-10-30"), - salary: { - min: 8000, - max: 10000, - currency: "USD", - interval: "year", - }, - links: [ - { - type: "job_portal", - url: "https://app.intercom.io/contacts/12345", - }, - ], - confidential: false, - availableToEmployees: false, - tags: [ - "New", - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - deleted: true, - ownerId: "54321", - publishedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getjournalentriesresponse.md b/docs/models/components/getjournalentriesresponse.md index 90dea33c..4d4534c6 100644 --- a/docs/models/components/getjournalentriesresponse.md +++ b/docs/models/components/getjournalentriesresponse.md @@ -13,128 +13,7 @@ let value: GetJournalEntriesResponse = { service: "quickbooks", resource: "journal-entries", operation: "all", - data: [ - { - id: "12345", - title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", - currencyRate: 0.69, - currency: "USD", - companyId: "12345", - lineItems: [ - { - id: "12345", - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - taxAmount: 27500, - subTotal: 27500, - totalAmount: 27500, - type: "debit", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - departmentId: "12345", - locationId: "12345", - lineNumber: 1, - }, - ], - status: "draft", - memo: "Thank you for your business and have a great day!", - postedAt: new Date("2020-09-30T07:43:32.000Z"), - journalSymbol: "IND", - taxType: "sales", - taxCode: "1234", - number: "OIT00546", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountingPeriod: "01-24", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getjournalentryresponse.md b/docs/models/components/getjournalentryresponse.md index 4241c9b5..1717d275 100644 --- a/docs/models/components/getjournalentryresponse.md +++ b/docs/models/components/getjournalentryresponse.md @@ -97,12 +97,7 @@ let value: GetJournalEntryResponse = { taxType: "sales", taxCode: "1234", number: "OIT00546", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], + trackingCategories: null, accountingPeriod: "01-24", updatedBy: "12345", createdBy: "12345", diff --git a/docs/models/components/getledgeraccountsresponse.md b/docs/models/components/getledgeraccountsresponse.md index ef60e2b3..513e15c4 100644 --- a/docs/models/components/getledgeraccountsresponse.md +++ b/docs/models/components/getledgeraccountsresponse.md @@ -6,7 +6,6 @@ LedgerAccounts ```typescript import { GetLedgerAccountsResponse } from "@apideck/unify/models/components"; -import { RFCDate } from "@apideck/unify/types"; let value: GetLedgerAccountsResponse = { statusCode: 200, @@ -14,93 +13,7 @@ let value: GetLedgerAccountsResponse = { service: "xero", resource: "ledger-accounts", operation: "all", - data: [ - { - id: "12345", - displayId: "1-12345", - code: "453", - classification: "asset", - type: "bank", - subType: "CHECKING_ACCOUNT", - name: "Bank account", - fullyQualifiedName: "Asset.Bank.Checking_Account", - description: "Main checking account", - openingBalance: 75000, - currentBalance: 20000, - currency: "USD", - taxType: "NONE", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - level: 1, - active: true, - status: "active", - header: true, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - categories: [ - { - id: "12345", - name: "Finance Charges Expense", - }, - ], - parentAccount: { - id: "12345", - name: "Bank Accounts", - displayId: "1-1100", - }, - subAccount: false, - subAccounts: [ - { - id: "12345", - accountSubName: "Petty Cash", - }, - ], - lastReconciliationDate: new RFCDate("2020-09-30"), - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getnotesresponse.md b/docs/models/components/getnotesresponse.md index 615bc3ab..ba24cbfd 100644 --- a/docs/models/components/getnotesresponse.md +++ b/docs/models/components/getnotesresponse.md @@ -13,39 +13,7 @@ let value: GetNotesResponse = { service: "zoho-crm", resource: "notes", operation: "all", - data: [ - { - id: "12345", - title: "Meeting Notes", - content: "Office hours are 9AM-6PM", - ownerId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - activityId: "12345", - leadId: "12345", - active: true, - updatedBy: "12345", - createdBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getopportunitiesresponse.md b/docs/models/components/getopportunitiesresponse.md index f35d3d35..a08c9041 100644 --- a/docs/models/components/getopportunitiesresponse.md +++ b/docs/models/components/getopportunitiesresponse.md @@ -6,7 +6,6 @@ Opportunities ```typescript import { GetOpportunitiesResponse } from "@apideck/unify/models/components"; -import { RFCDate } from "@apideck/unify/types"; let value: GetOpportunitiesResponse = { statusCode: 200, @@ -14,77 +13,7 @@ let value: GetOpportunitiesResponse = { service: "zoho-crm", resource: "opportunities", operation: "all", - data: [ - { - id: "12345", - title: "New Rocket", - primaryContactId: "12345", - description: - "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", - type: "Existing Customer - Upgrade", - monetaryAmount: 75000, - currency: "USD", - winProbability: 40, - expectedRevenue: 75000, - closeDate: new RFCDate("2020-10-30"), - lossReasonId: "12345", - lossReason: "No budget", - wonReasonId: "12345", - wonReason: "Best pitch", - pipelineId: "12345", - pipelineStageId: "12345", - sourceId: "12345", - leadId: "12345", - leadSource: "Website", - contactId: "12345", - contactIds: [ - "12345", - ], - companyId: "12345", - companyName: "Copper", - ownerId: "12345", - priority: "None", - status: "Open", - statusId: "12345", - tags: [ - "New", - ], - interactionCount: 0, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - stageLastChangedAt: new Date("2020-09-30T07:43:32.000Z"), - lastActivityAt: "2020-09-30T07:43:32.000Z", - deleted: false, - dateStageChanged: new Date("2020-09-30T00:00:00.000Z"), - dateLastContacted: new Date("2020-09-30T00:00:00.000Z"), - dateLeadCreated: new Date("2020-09-30T00:00:00.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getpaymentsresponse.md b/docs/models/components/getpaymentsresponse.md index 1016d685..5052dd23 100644 --- a/docs/models/components/getpaymentsresponse.md +++ b/docs/models/components/getpaymentsresponse.md @@ -13,82 +13,7 @@ let value: GetPaymentsResponse = { service: "xero", resource: "payments", operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_receivable", - allocations: [ - { - id: "123456", - code: "N091", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getpipelinesresponse.md b/docs/models/components/getpipelinesresponse.md index de23d2f1..7654ac82 100644 --- a/docs/models/components/getpipelinesresponse.md +++ b/docs/models/components/getpipelinesresponse.md @@ -13,43 +13,7 @@ let value: GetPipelinesResponse = { service: "zoho-crm", resource: "pipelines", operation: "all", - data: [ - { - id: "default", - name: "Sales Pipeline", - currency: "USD", - archived: false, - active: false, - displayOrder: 1, - winProbabilityEnabled: true, - stages: [ - { - id: "contractsent", - name: "Contract Sent", - value: "CONTRACT_SENT", - winProbability: 50, - displayOrder: 1, - }, - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getproductsresponse.md b/docs/models/components/getproductsresponse.md index c5d09cdd..f1d956f4 100644 --- a/docs/models/components/getproductsresponse.md +++ b/docs/models/components/getproductsresponse.md @@ -23,12 +23,7 @@ let value: GetProductsResponse = { price: "1999.99", sku: "MBP123", inventoryQuantity: "10", - images: [ - { - id: "12345", - url: "https://example.com/macbook-pro.jpg", - }, - ], + images: null, weight: "1.25", weightUnit: "lb", options: [ diff --git a/docs/models/components/getsharedlinksresponse.md b/docs/models/components/getsharedlinksresponse.md index 6e6bb07e..5356bfc3 100644 --- a/docs/models/components/getsharedlinksresponse.md +++ b/docs/models/components/getsharedlinksresponse.md @@ -13,37 +13,7 @@ let value: GetSharedLinksResponse = { service: "dropbox", resource: "Shared Links", operation: "all", - data: [ - { - url: "https://www.box.com/s/vspke7y05sb214wjokpk", - downloadUrl: - "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", - target: { - id: "12345", - name: "sample.jpg", - type: "file", - }, - scope: "company", - expiresAt: new Date("2022-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getsubsidiariesresponse.md b/docs/models/components/getsubsidiariesresponse.md index 8fa51f8f..ae66ea6e 100644 --- a/docs/models/components/getsubsidiariesresponse.md +++ b/docs/models/components/getsubsidiariesresponse.md @@ -13,34 +13,7 @@ let value: GetSubsidiariesResponse = { service: "xero", resource: "subsidiaries", operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - name: "SpaceX", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/gettaxratesresponse.md b/docs/models/components/gettaxratesresponse.md index ffc8fa55..17df9657 100644 --- a/docs/models/components/gettaxratesresponse.md +++ b/docs/models/components/gettaxratesresponse.md @@ -13,58 +13,7 @@ let value: GetTaxRatesResponse = { service: "xero", resource: "tax-rates", operation: "all", - data: [ - { - id: "1234", - name: "GST on Purchases", - code: "ABN", - description: "Reduced rate GST Purchases", - effectiveTaxRate: 10, - totalTaxRate: 10, - taxPayableAccountId: "123456", - taxRemittedAccountId: "123456", - components: [ - { - id: "10", - name: "GST", - rate: 10, - compound: true, - }, - ], - type: "NONE", - reportTaxType: "NONE", - originalTaxRateId: "12345", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/getusersresponse.md b/docs/models/components/getusersresponse.md index a467242d..b19da532 100644 --- a/docs/models/components/getusersresponse.md +++ b/docs/models/components/getusersresponse.md @@ -66,13 +66,7 @@ let value: GetUsersResponse = { type: "primary", }, ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], + emails: [], updatedAt: "2017-08-12T20:43:21.291Z", createdAt: "2017-08-12T20:43:21.291Z", passThrough: [ diff --git a/docs/models/components/getwebhooksresponse.md b/docs/models/components/getwebhooksresponse.md index ac509c07..bad0e9e3 100644 --- a/docs/models/components/getwebhooksresponse.md +++ b/docs/models/components/getwebhooksresponse.md @@ -10,23 +10,7 @@ import { GetWebhooksResponse } from "@apideck/unify/models/components"; let value: GetWebhooksResponse = { statusCode: 200, status: "OK", - data: [ - { - id: "1234", - description: "A description", - unifiedApi: "crm", - status: "enabled", - disabledReason: "retry_limit", - deliveryUrl: "https://example.com/my/webhook/endpoint", - executeBaseUrl: "https://unify.apideck.com/webhook/webhooks/1234/execute", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], + data: [], meta: { itemsOnPage: 50, cursors: { diff --git a/docs/models/components/httpmetadata.md b/docs/models/components/httpmetadata.md index 02172714..2d75e2d3 100644 --- a/docs/models/components/httpmetadata.md +++ b/docs/models/components/httpmetadata.md @@ -5,12 +5,7 @@ ```typescript import { HTTPMetadata } from "@apideck/unify/models/components"; -let value: HTTPMetadata = { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), -}; +let value: HTTPMetadata = {}; ``` ## Fields diff --git a/docs/models/components/invoiceitem.md b/docs/models/components/invoiceitem.md index eea75d6c..71a87d86 100644 --- a/docs/models/components/invoiceitem.md +++ b/docs/models/components/invoiceitem.md @@ -60,12 +60,7 @@ let value: InvoiceItem = { nominalCode: "N091", code: "453", }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], + trackingCategories: null, active: true, departmentId: "12345", locationId: "12345", diff --git a/docs/models/components/invoiceitemssort.md b/docs/models/components/invoiceitemssort.md index 3c9567f3..6a3a1f42 100644 --- a/docs/models/components/invoiceitemssort.md +++ b/docs/models/components/invoiceitemssort.md @@ -7,6 +7,7 @@ import { InvoiceItemsSort } from "@apideck/unify/models/components"; let value: InvoiceItemsSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/invoicessort.md b/docs/models/components/invoicessort.md index f722a89c..cf6b28f5 100644 --- a/docs/models/components/invoicessort.md +++ b/docs/models/components/invoicessort.md @@ -7,6 +7,7 @@ import { InvoicesSort } from "@apideck/unify/models/components"; let value: InvoicesSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/journalentriessort.md b/docs/models/components/journalentriessort.md index bf7a76e1..5423ac6d 100644 --- a/docs/models/components/journalentriessort.md +++ b/docs/models/components/journalentriessort.md @@ -7,6 +7,7 @@ import { JournalEntriesSort } from "@apideck/unify/models/components"; let value: JournalEntriesSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/journalentry.md b/docs/models/components/journalentry.md index 4e0320fa..30bb3aed 100644 --- a/docs/models/components/journalentry.md +++ b/docs/models/components/journalentry.md @@ -89,12 +89,7 @@ let value: JournalEntry = { taxType: "sales", taxCode: "1234", number: "OIT00546", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], + trackingCategories: null, accountingPeriod: "01-24", updatedBy: "12345", createdBy: "12345", diff --git a/docs/models/components/leadssort.md b/docs/models/components/leadssort.md index 49bcce02..2a85d745 100644 --- a/docs/models/components/leadssort.md +++ b/docs/models/components/leadssort.md @@ -7,6 +7,7 @@ import { LeadsSort } from "@apideck/unify/models/components"; let value: LeadsSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/ledgeraccountssort.md b/docs/models/components/ledgeraccountssort.md index 1aeb48d6..d50c8680 100644 --- a/docs/models/components/ledgeraccountssort.md +++ b/docs/models/components/ledgeraccountssort.md @@ -7,6 +7,7 @@ import { LedgerAccountsSort } from "@apideck/unify/models/components"; let value: LedgerAccountsSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/opportunitiessort.md b/docs/models/components/opportunitiessort.md index 08857695..0512ce39 100644 --- a/docs/models/components/opportunitiessort.md +++ b/docs/models/components/opportunitiessort.md @@ -7,6 +7,7 @@ import { OpportunitiesSort } from "@apideck/unify/models/components"; let value: OpportunitiesSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/orderssort.md b/docs/models/components/orderssort.md index 767ab872..144b8209 100644 --- a/docs/models/components/orderssort.md +++ b/docs/models/components/orderssort.md @@ -7,6 +7,7 @@ import { OrdersSort } from "@apideck/unify/models/components"; let value: OrdersSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/payment.md b/docs/models/components/payment.md index 110790f5..3e0fa61d 100644 --- a/docs/models/components/payment.md +++ b/docs/models/components/payment.md @@ -43,12 +43,7 @@ let value: Payment = { ], note: "Some notes about this transaction", number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], + trackingCategories: null, customFields: [ { id: "2389328923893298", diff --git a/docs/models/components/paymentssort.md b/docs/models/components/paymentssort.md index 6cb7da59..90743bf6 100644 --- a/docs/models/components/paymentssort.md +++ b/docs/models/components/paymentssort.md @@ -7,6 +7,7 @@ import { PaymentsSort } from "@apideck/unify/models/components"; let value: PaymentsSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/purchaseorderssort.md b/docs/models/components/purchaseorderssort.md index 1a7e4cf8..4aa69c0a 100644 --- a/docs/models/components/purchaseorderssort.md +++ b/docs/models/components/purchaseorderssort.md @@ -7,6 +7,7 @@ import { PurchaseOrdersSort } from "@apideck/unify/models/components"; let value: PurchaseOrdersSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/session.md b/docs/models/components/session.md index 8f59416b..be03de80 100644 --- a/docs/models/components/session.md +++ b/docs/models/components/session.md @@ -17,6 +17,7 @@ let value: Session = { unifiedApis: [ "crm", ], + sessionLength: "30m", }, theme: { favicon: "https://res.cloudinary.com/apideck/icons/intercom", @@ -51,6 +52,6 @@ let value: Session = { | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `consumerMetadata` | [components.ConsumerMetadata](../../models/components/consumermetadata.md) | :heavy_minus_sign: | The metadata of the consumer. This is used to display the consumer in the sidebar. This is optional, but recommended. | | | `redirectUri` | *string* | :heavy_minus_sign: | The URL to redirect the user to after the session has been configured. | https://mysaas.com/dashboard | -| `settings` | [components.SessionSettings](../../models/components/sessionsettings.md) | :heavy_minus_sign: | Settings to change the way the Vault is displayed. | | +| `settings` | [components.Settings](../../models/components/settings.md) | :heavy_minus_sign: | Settings to change the way the Vault is displayed. | | | `theme` | [components.Theme](../../models/components/theme.md) | :heavy_minus_sign: | Theming options to change the look and feel of Vault. | | | `customConsumerSettings` | Record | :heavy_minus_sign: | Custom consumer settings that are passed as part of the session. | {
"feature_flag_1": true,
"tax_rates": [
{
"id": "6",
"label": "6%"
},
{
"id": "21",
"label": "21%"
}
]
} | \ No newline at end of file diff --git a/docs/models/components/sessionsettings.md b/docs/models/components/sessionsettings.md deleted file mode 100644 index 48bdaf02..00000000 --- a/docs/models/components/sessionsettings.md +++ /dev/null @@ -1,31 +0,0 @@ -# SessionSettings - -Settings to change the way the Vault is displayed. - -## Example Usage - -```typescript -import { SessionSettings } from "@apideck/unify/models/components"; - -let value: SessionSettings = { - unifiedApis: [ - "crm", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `unifiedApis` | [components.UnifiedApiId](../../models/components/unifiedapiid.md)[] | :heavy_minus_sign: | Provide the IDs of the Unified APIs you want to be visible. Leaving it empty or omitting this field will show all Unified APIs. | | -| `hideResourceSettings` | *boolean* | :heavy_minus_sign: | A boolean that controls the display of the configurable resources for an integration. When set to true, the resource configuration options will be hidden and not shown to the user. When set to false, the resource configuration options will be displayed to the user. | | -| `sandboxMode` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show a banner informing the logged in user is in a test environment. | | -| `isolationMode` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to run in isolation mode, meaning it only shows the connection settings and hides the navigation items. | | -| `sessionLength` | *string* | :heavy_minus_sign: | The duration of time the session is valid for (maximum 1 week). | 30m | -| `showLogs` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show the logs page. Defaults to `true`. | | -| `showSuggestions` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show the suggestions page. Defaults to `false`. | | -| `showSidebar` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show the sidebar. Defaults to `true`. | | -| `autoRedirect` | *boolean* | :heavy_minus_sign: | Automatically redirect to redirect uri after the connection has been configured as callable. Defaults to `false`. | | -| `hideGuides` | *boolean* | :heavy_minus_sign: | Hide Apideck connection guides in [Vault](/apis/vault/reference#section/Get-Started). Defaults to `false`. | | -| `allowActions` | [components.AllowActions](../../models/components/allowactions.md)[] | :heavy_minus_sign: | Hide actions from your users in [Vault](/apis/vault/reference#section/Get-Started). Actions in `allow_actions` will be shown on a connection in Vault.
Available actions are: `delete`, `disconnect`, `reauthorize` and `disable`.
Empty array will hide all actions. By default all actions are visible. | | \ No newline at end of file diff --git a/docs/models/components/settings.md b/docs/models/components/settings.md index ac73d3cd..a0935181 100644 --- a/docs/models/components/settings.md +++ b/docs/models/components/settings.md @@ -1,16 +1,32 @@ # Settings -Connection settings. Values will persist to `form_fields` with corresponding id +Settings to change the way the Vault is displayed. ## Example Usage ```typescript import { Settings } from "@apideck/unify/models/components"; -let value: Settings = {}; +let value: Settings = { + unifiedApis: [ + "crm", + ], + sessionLength: "30m", +}; ``` ## Fields -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `unifiedApis` | [components.UnifiedApiId](../../models/components/unifiedapiid.md)[] | :heavy_minus_sign: | Provide the IDs of the Unified APIs you want to be visible. Leaving it empty or omitting this field will show all Unified APIs. | | +| `hideResourceSettings` | *boolean* | :heavy_minus_sign: | A boolean that controls the display of the configurable resources for an integration. When set to true, the resource configuration options will be hidden and not shown to the user. When set to false, the resource configuration options will be displayed to the user. | | +| `sandboxMode` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show a banner informing the logged in user is in a test environment. | | +| `isolationMode` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to run in isolation mode, meaning it only shows the connection settings and hides the navigation items. | | +| `sessionLength` | *string* | :heavy_minus_sign: | The duration of time the session is valid for (maximum 1 week). | 30m | +| `showLogs` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show the logs page. Defaults to `true`. | | +| `showSuggestions` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show the suggestions page. Defaults to `false`. | | +| `showSidebar` | *boolean* | :heavy_minus_sign: | Configure [Vault](/apis/vault/reference#section/Get-Started) to show the sidebar. Defaults to `true`. | | +| `autoRedirect` | *boolean* | :heavy_minus_sign: | Automatically redirect to redirect uri after the connection has been configured as callable. Defaults to `false`. | | +| `hideGuides` | *boolean* | :heavy_minus_sign: | Hide Apideck connection guides in [Vault](/apis/vault/reference#section/Get-Started). Defaults to `false`. | | +| `allowActions` | [components.AllowActions](../../models/components/allowactions.md)[] | :heavy_minus_sign: | Hide actions from your users in [Vault](/apis/vault/reference#section/Get-Started). Actions in `allow_actions` will be shown on a connection in Vault.
Available actions are: `delete`, `disconnect`, `reauthorize` and `disable`.
Empty array will hide all actions. By default all actions are visible. | | \ No newline at end of file diff --git a/docs/models/components/supplierssort.md b/docs/models/components/supplierssort.md index 76b62d23..06939d69 100644 --- a/docs/models/components/supplierssort.md +++ b/docs/models/components/supplierssort.md @@ -7,6 +7,7 @@ import { SuppliersSort } from "@apideck/unify/models/components"; let value: SuppliersSort = { by: "updated_at", + direction: "desc", }; ``` diff --git a/docs/models/components/supportedproperty.md b/docs/models/components/supportedproperty.md index b49f42da..29f99cf0 100644 --- a/docs/models/components/supportedproperty.md +++ b/docs/models/components/supportedproperty.md @@ -7,7 +7,11 @@ import { SupportedProperty } from "@apideck/unify/models/components"; let value: SupportedProperty = { unifiedProperty: "owner_id", - childProperties: [], + childProperties: [ + { + unifiedProperty: "owner_id", + }, + ], }; ``` diff --git a/docs/models/components/taxrateinput.md b/docs/models/components/taxrateinput.md index 187757e2..9885f469 100644 --- a/docs/models/components/taxrateinput.md +++ b/docs/models/components/taxrateinput.md @@ -14,14 +14,7 @@ let value: TaxRateInput = { totalTaxRate: 10, taxPayableAccountId: "123456", taxRemittedAccountId: "123456", - components: [ - { - id: "10", - name: "GST", - rate: 10, - compound: true, - }, - ], + components: null, type: "NONE", reportTaxType: "NONE", originalTaxRateId: "12345", diff --git a/docs/models/components/ticketssort.md b/docs/models/components/ticketssort.md index b6953813..a68651b5 100644 --- a/docs/models/components/ticketssort.md +++ b/docs/models/components/ticketssort.md @@ -7,6 +7,7 @@ import { TicketsSort } from "@apideck/unify/models/components"; let value: TicketsSort = { by: "created_at", + direction: "desc", }; ``` diff --git a/docs/models/components/userinput.md b/docs/models/components/userinput.md index 76590ba0..4cdee137 100644 --- a/docs/models/components/userinput.md +++ b/docs/models/components/userinput.md @@ -57,13 +57,7 @@ let value: UserInput = { type: "primary", }, ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], + emails: [], passThrough: [ { serviceId: "", diff --git a/docs/models/components/value.md b/docs/models/components/value.md index b4d8e650..dc9a7b7f 100644 --- a/docs/models/components/value.md +++ b/docs/models/components/value.md @@ -31,7 +31,8 @@ const value: components.Four = {}; ```typescript const value: string[] = [ - "", + "", + "", ]; ``` diff --git a/docs/models/operations/accountingagedcreditorsoneglobals.md b/docs/models/operations/accountingagedcreditorsoneglobals.md index 2d5970d4..c5f53353 100644 --- a/docs/models/operations/accountingagedcreditorsoneglobals.md +++ b/docs/models/operations/accountingagedcreditorsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingAgedCreditorsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingAgedCreditorsOneGlobals = {}; +let value: AccountingAgedCreditorsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingagedcreditorsoneresponse.md b/docs/models/operations/accountingagedcreditorsoneresponse.md index a37d5303..4473f0a6 100644 --- a/docs/models/operations/accountingagedcreditorsoneresponse.md +++ b/docs/models/operations/accountingagedcreditorsoneresponse.md @@ -4,64 +4,8 @@ ```typescript import { AccountingAgedCreditorsOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingAgedCreditorsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAgedCreditorsResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "AgedCreditors", - operation: "one", - data: { - reportGeneratedAt: new Date("2024-11-14T12:00:00.000Z"), - reportAsOfDate: new RFCDate("2024-11-13"), - outstandingBalances: [ - { - supplierId: "123", - supplierName: "Super Store", - outstandingBalancesByCurrency: [ - { - currency: "USD", - balancesByPeriod: [ - { - startDate: new RFCDate("2024-01-01"), - endDate: new RFCDate("2024-01-30"), - totalAmount: 1500, - balancesByTransaction: [ - { - transactionId: "INV-1001", - transactionDate: new RFCDate("2024-01-15"), - transactionType: "invoice", - dueDate: new RFCDate("2024-02-15"), - originalAmount: 1000, - outstandingBalance: 800, - transactionNumber: "INV-1001", - }, - ], - }, - ], - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingAgedCreditorsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingageddebtorsoneglobals.md b/docs/models/operations/accountingageddebtorsoneglobals.md index 01587ede..daf45221 100644 --- a/docs/models/operations/accountingageddebtorsoneglobals.md +++ b/docs/models/operations/accountingageddebtorsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingAgedDebtorsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingAgedDebtorsOneGlobals = {}; +let value: AccountingAgedDebtorsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingageddebtorsoneresponse.md b/docs/models/operations/accountingageddebtorsoneresponse.md index a89b3c34..262c73a3 100644 --- a/docs/models/operations/accountingageddebtorsoneresponse.md +++ b/docs/models/operations/accountingageddebtorsoneresponse.md @@ -4,64 +4,8 @@ ```typescript import { AccountingAgedDebtorsOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingAgedDebtorsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAgedDebtorsResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "AgedDebtors", - operation: "one", - data: { - reportGeneratedAt: new Date("2024-11-14T12:00:00.000Z"), - reportAsOfDate: new RFCDate("2024-11-13"), - outstandingBalances: [ - { - customerId: "123", - customerName: "Super Store", - outstandingBalancesByCurrency: [ - { - currency: "USD", - balancesByPeriod: [ - { - startDate: new RFCDate("2024-01-01"), - endDate: new RFCDate("2024-01-30"), - totalAmount: 1500, - balancesByTransaction: [ - { - transactionId: "INV-1001", - transactionDate: new RFCDate("2024-01-15"), - transactionType: "invoice", - dueDate: new RFCDate("2024-02-15"), - originalAmount: 1000, - outstandingBalance: 800, - transactionNumber: "INV-1001", - }, - ], - }, - ], - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingAgedDebtorsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsallglobals.md b/docs/models/operations/accountingattachmentsallglobals.md index 722f5944..834e488b 100644 --- a/docs/models/operations/accountingattachmentsallglobals.md +++ b/docs/models/operations/accountingattachmentsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingAttachmentsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsAllGlobals = {}; +let value: AccountingAttachmentsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsallresponse.md b/docs/models/operations/accountingattachmentsallresponse.md index 074eec87..f4ba7d0b 100644 --- a/docs/models/operations/accountingattachmentsallresponse.md +++ b/docs/models/operations/accountingattachmentsallresponse.md @@ -5,78 +5,7 @@ ```typescript import { AccountingAttachmentsAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAttachmentsResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "PurchaseOrders", - operation: "all", - data: [ - { - id: "12345", - displayId: "sample ID", - name: "sample.jpg", - mimeType: "image/jpeg", - size: 1810673, - reference: { - type: "invoice", - id: "12345", - }, - description: "A sample image", - parentFolderId: "123", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingAttachmentsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsdeleteglobals.md b/docs/models/operations/accountingattachmentsdeleteglobals.md index 1abd86f1..3d30f4fc 100644 --- a/docs/models/operations/accountingattachmentsdeleteglobals.md +++ b/docs/models/operations/accountingattachmentsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingAttachmentsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsDeleteGlobals = {}; +let value: AccountingAttachmentsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsdeleteresponse.md b/docs/models/operations/accountingattachmentsdeleteresponse.md index 6e4fc96e..fac85b0c 100644 --- a/docs/models/operations/accountingattachmentsdeleteresponse.md +++ b/docs/models/operations/accountingattachmentsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingAttachmentsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteAttachmentResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingAttachmentsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsdownloadglobals.md b/docs/models/operations/accountingattachmentsdownloadglobals.md index e00d8d68..43d948e8 100644 --- a/docs/models/operations/accountingattachmentsdownloadglobals.md +++ b/docs/models/operations/accountingattachmentsdownloadglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingAttachmentsDownloadGlobals } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsDownloadGlobals = {}; +let value: AccountingAttachmentsDownloadGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsoneglobals.md b/docs/models/operations/accountingattachmentsoneglobals.md index 6a4d27aa..6298396d 100644 --- a/docs/models/operations/accountingattachmentsoneglobals.md +++ b/docs/models/operations/accountingattachmentsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingAttachmentsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsOneGlobals = {}; +let value: AccountingAttachmentsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsoneresponse.md b/docs/models/operations/accountingattachmentsoneresponse.md index d7a8b9cf..411c87d4 100644 --- a/docs/models/operations/accountingattachmentsoneresponse.md +++ b/docs/models/operations/accountingattachmentsoneresponse.md @@ -5,61 +5,7 @@ ```typescript import { AccountingAttachmentsOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAttachmentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "one", - data: { - id: "12345", - displayId: "sample ID", - name: "sample.jpg", - mimeType: "image/jpeg", - size: 1810673, - reference: { - type: "invoice", - id: "12345", - }, - description: "A sample image", - parentFolderId: "123", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingAttachmentsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsuploadglobals.md b/docs/models/operations/accountingattachmentsuploadglobals.md index 5f8c5f88..29b5474e 100644 --- a/docs/models/operations/accountingattachmentsuploadglobals.md +++ b/docs/models/operations/accountingattachmentsuploadglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingAttachmentsUploadGlobals } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsUploadGlobals = {}; +let value: AccountingAttachmentsUploadGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingattachmentsuploadresponse.md b/docs/models/operations/accountingattachmentsuploadresponse.md index 540a70cb..85b74a91 100644 --- a/docs/models/operations/accountingattachmentsuploadresponse.md +++ b/docs/models/operations/accountingattachmentsuploadresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingAttachmentsUploadResponse } from "@apideck/unify/models/operations"; -let value: AccountingAttachmentsUploadResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createAttachmentResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingAttachmentsUploadResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbalancesheetoneglobals.md b/docs/models/operations/accountingbalancesheetoneglobals.md index 12dc6842..7134c117 100644 --- a/docs/models/operations/accountingbalancesheetoneglobals.md +++ b/docs/models/operations/accountingbalancesheetoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBalanceSheetOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBalanceSheetOneGlobals = {}; +let value: AccountingBalanceSheetOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbalancesheetoneresponse.md b/docs/models/operations/accountingbalancesheetoneresponse.md index ea6e71c7..3ce280da 100644 --- a/docs/models/operations/accountingbalancesheetoneresponse.md +++ b/docs/models/operations/accountingbalancesheetoneresponse.md @@ -5,237 +5,7 @@ ```typescript import { AccountingBalanceSheetOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingBalanceSheetOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBalanceSheetResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "BalanceSheets", - operation: "one", - data: { - reports: [ - { - id: "12345", - reportName: "BalanceSheet", - startDate: "2017-01-01", - endDate: "2017-01-31", - currency: "USD", - assets: { - accountId: "1", - code: "1000", - name: "Assets", - value: 50000, - items: [ - { - "account_id": "101", - "code": "1100", - "name": "Current Assets", - "value": 20000, - "items": [ - { - "account_id": "1011", - "code": "1101", - "name": "Cash and Cash Equivalents", - "value": 10000, - }, - { - "account_id": "1012", - "code": "1102", - "name": "Accounts Receivable", - "value": 5000, - }, - { - "account_id": "1013", - "code": "1103", - "name": "Inventory", - "value": 3000, - }, - { - "account_id": "1014", - "code": "1104", - "name": "Prepaid Expenses", - "value": 2000, - }, - ], - }, - { - "account_id": "102", - "code": "1200", - "name": "Non-Current Assets", - "value": 30000, - "items": [ - { - "account_id": "1021", - "code": "1201", - "name": "Property, Plant, and Equipment (PPE)", - "value": 25000, - }, - { - "account_id": "1022", - "code": "1202", - "name": "Intangible Assets", - "value": 5000, - "items": [ - { - "account_id": "10221", - "code": "1203", - "name": "Goodwill", - "value": 3000, - }, - { - "account_id": "10222", - "code": "1204", - "name": "Patents", - "value": 2000, - }, - ], - }, - ], - }, - ], - }, - liabilities: { - accountId: "2", - code: "2000", - name: "Liabilities", - value: 30000, - items: [ - { - "account_id": "201", - "code": "2100", - "name": "Current Liabilities", - "value": 10000, - "items": [ - { - "account_id": "2011", - "code": "2101", - "name": "Accounts Payable", - "value": 4000, - }, - { - "account_id": "2012", - "code": "2102", - "name": "Short-Term Debt", - "value": 2000, - }, - { - "account_id": "2013", - "code": "2103", - "name": "Accrued Expenses", - "value": 1000, - }, - { - "account_id": "2014", - "code": "2104", - "name": "Current Portion of Long-Term Debt", - "value": 3000, - }, - ], - }, - { - "account_id": "202", - "code": "2200", - "name": "Non-Current Liabilities", - "value": 20000, - "items": [ - { - "account_id": "2021", - "code": "2201", - "name": "Long-Term Debt", - "value": 15000, - }, - { - "account_id": "2022", - "code": "2202", - "name": "Deferred Tax Liabilities", - "value": 3000, - }, - { - "account_id": "2023", - "code": "2203", - "name": "Pension Liabilities", - "value": 2000, - }, - ], - }, - ], - }, - equity: { - accountId: "3", - code: "3000", - name: "Equity", - value: 20000, - items: [ - { - "account_id": "301", - "code": "3100", - "name": "Common Stock", - "value": 5000, - }, - { - "account_id": "302", - "code": "3200", - "name": "Retained Earnings", - "value": 10000, - }, - { - "account_id": "303", - "code": "3300", - "name": "Additional Paid-In Capital", - "value": 3000, - }, - { - "account_id": "304", - "code": "3400", - "name": "Treasury Stock", - "value": -1000, - }, - { - "account_id": "305", - "code": "3500", - "name": "Other Comprehensive Income", - "value": 3000, - }, - ], - }, - netAssets: 1000, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - uncategorizedItems: { - accountId: "3", - code: "3000", - name: "Uncategorized Items", - value: 1000, - items: [ - { - "account_id": "301", - "code": "3100", - "name": "not linked account", - "value": 1000, - }, - ], - }, - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBalanceSheetOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsaddglobals.md b/docs/models/operations/accountingbankfeedaccountsaddglobals.md index f48e76f4..8a6a41ee 100644 --- a/docs/models/operations/accountingbankfeedaccountsaddglobals.md +++ b/docs/models/operations/accountingbankfeedaccountsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedAccountsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsAddGlobals = {}; +let value: AccountingBankFeedAccountsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsaddrequest.md b/docs/models/operations/accountingbankfeedaccountsaddrequest.md index 5402f0c8..3226a5ae 100644 --- a/docs/models/operations/accountingbankfeedaccountsaddrequest.md +++ b/docs/models/operations/accountingbankfeedaccountsaddrequest.md @@ -7,24 +7,6 @@ import { AccountingBankFeedAccountsAddRequest } from "@apideck/unify/models/oper let value: AccountingBankFeedAccountsAddRequest = { serviceId: "salesforce", - bankFeedAccount: { - bankAccountType: "bank", - sourceAccountId: "src_456", - targetAccountId: "tgt_789", - targetAccountName: "Main Company Checking", - targetAccountNumber: "NL91ABNA0417164300", - currency: "USD", - feedStatus: "pending", - country: "US", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingbankfeedaccountsaddresponse.md b/docs/models/operations/accountingbankfeedaccountsaddresponse.md index 20d491c2..b7cbca81 100644 --- a/docs/models/operations/accountingbankfeedaccountsaddresponse.md +++ b/docs/models/operations/accountingbankfeedaccountsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBankFeedAccountsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createBankFeedAccountResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "bills", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedAccountsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsallglobals.md b/docs/models/operations/accountingbankfeedaccountsallglobals.md index 6e807cac..c0278f5b 100644 --- a/docs/models/operations/accountingbankfeedaccountsallglobals.md +++ b/docs/models/operations/accountingbankfeedaccountsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedAccountsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsAllGlobals = {}; +let value: AccountingBankFeedAccountsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsallresponse.md b/docs/models/operations/accountingbankfeedaccountsallresponse.md index 302f9897..f303206c 100644 --- a/docs/models/operations/accountingbankfeedaccountsallresponse.md +++ b/docs/models/operations/accountingbankfeedaccountsallresponse.md @@ -5,69 +5,7 @@ ```typescript import { AccountingBankFeedAccountsAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBankFeedAccountsResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-accounts", - operation: "all", - data: [ - { - id: "12345", - bankAccountType: "bank", - sourceAccountId: "src_456", - targetAccountId: "tgt_789", - targetAccountName: "Main Company Checking", - targetAccountNumber: "NL91ABNA0417164300", - currency: "USD", - feedStatus: "pending", - country: "US", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedAccountsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsdeleteglobals.md b/docs/models/operations/accountingbankfeedaccountsdeleteglobals.md index 6e425a0e..d27f9f86 100644 --- a/docs/models/operations/accountingbankfeedaccountsdeleteglobals.md +++ b/docs/models/operations/accountingbankfeedaccountsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedAccountsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsDeleteGlobals = {}; +let value: AccountingBankFeedAccountsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsdeleteresponse.md b/docs/models/operations/accountingbankfeedaccountsdeleteresponse.md index b1a9a1db..2bd84f98 100644 --- a/docs/models/operations/accountingbankfeedaccountsdeleteresponse.md +++ b/docs/models/operations/accountingbankfeedaccountsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBankFeedAccountsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteBankFeedAccountResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-accounts", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedAccountsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsoneglobals.md b/docs/models/operations/accountingbankfeedaccountsoneglobals.md index 94e856f9..1a955935 100644 --- a/docs/models/operations/accountingbankfeedaccountsoneglobals.md +++ b/docs/models/operations/accountingbankfeedaccountsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedAccountsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsOneGlobals = {}; +let value: AccountingBankFeedAccountsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsoneresponse.md b/docs/models/operations/accountingbankfeedaccountsoneresponse.md index 2d55ff0c..1bd683c1 100644 --- a/docs/models/operations/accountingbankfeedaccountsoneresponse.md +++ b/docs/models/operations/accountingbankfeedaccountsoneresponse.md @@ -5,52 +5,7 @@ ```typescript import { AccountingBankFeedAccountsOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBankFeedAccountResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-accounts", - operation: "one", - data: { - id: "12345", - bankAccountType: "bank", - sourceAccountId: "src_456", - targetAccountId: "tgt_789", - targetAccountName: "Main Company Checking", - targetAccountNumber: "NL91ABNA0417164300", - currency: "USD", - feedStatus: "pending", - country: "US", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedAccountsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsupdateglobals.md b/docs/models/operations/accountingbankfeedaccountsupdateglobals.md index b098a4ae..a23b3aae 100644 --- a/docs/models/operations/accountingbankfeedaccountsupdateglobals.md +++ b/docs/models/operations/accountingbankfeedaccountsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedAccountsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsUpdateGlobals = {}; +let value: AccountingBankFeedAccountsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedaccountsupdaterequest.md b/docs/models/operations/accountingbankfeedaccountsupdaterequest.md index 268d01c9..720494c0 100644 --- a/docs/models/operations/accountingbankfeedaccountsupdaterequest.md +++ b/docs/models/operations/accountingbankfeedaccountsupdaterequest.md @@ -8,24 +8,6 @@ import { AccountingBankFeedAccountsUpdateRequest } from "@apideck/unify/models/o let value: AccountingBankFeedAccountsUpdateRequest = { id: "", serviceId: "salesforce", - bankFeedAccount: { - bankAccountType: "bank", - sourceAccountId: "src_456", - targetAccountId: "tgt_789", - targetAccountName: "Main Company Checking", - targetAccountNumber: "NL91ABNA0417164300", - currency: "USD", - feedStatus: "pending", - country: "US", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingbankfeedaccountsupdateresponse.md b/docs/models/operations/accountingbankfeedaccountsupdateresponse.md index 2cf363e9..d0dfd2de 100644 --- a/docs/models/operations/accountingbankfeedaccountsupdateresponse.md +++ b/docs/models/operations/accountingbankfeedaccountsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBankFeedAccountsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedAccountsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateBankFeedAccountResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-accounts", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedAccountsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsaddglobals.md b/docs/models/operations/accountingbankfeedstatementsaddglobals.md index 16df94f2..45d9f4f1 100644 --- a/docs/models/operations/accountingbankfeedstatementsaddglobals.md +++ b/docs/models/operations/accountingbankfeedstatementsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedStatementsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsAddGlobals = {}; +let value: AccountingBankFeedStatementsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsaddrequest.md b/docs/models/operations/accountingbankfeedstatementsaddrequest.md index 8363b658..05b967e7 100644 --- a/docs/models/operations/accountingbankfeedstatementsaddrequest.md +++ b/docs/models/operations/accountingbankfeedstatementsaddrequest.md @@ -7,28 +7,6 @@ import { AccountingBankFeedStatementsAddRequest } from "@apideck/unify/models/op let value: AccountingBankFeedStatementsAddRequest = { serviceId: "salesforce", - bankFeedStatement: { - bankFeedAccountId: "acc_456", - status: "pending", - startDate: new Date("2021-05-01T12:00:00.000Z"), - endDate: new Date("2025-01-31T12:00:00.000Z"), - startBalance: 10500.25, - startBalanceCreditOrDebit: "debit", - endBalance: 9800.5, - endBalanceCreditOrDebit: "debit", - transactions: [ - { - postedDate: new Date("2025-01-15T12:00:00.000Z"), - description: "Payment received from ACME Corp", - amount: 250, - creditOrDebit: "debit", - sourceTransactionId: "txn_987", - counterparty: "ACME Corp", - reference: "INV-2025-01", - transactionType: "payment", - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingbankfeedstatementsaddresponse.md b/docs/models/operations/accountingbankfeedstatementsaddresponse.md index a0e4f940..c182fd7e 100644 --- a/docs/models/operations/accountingbankfeedstatementsaddresponse.md +++ b/docs/models/operations/accountingbankfeedstatementsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBankFeedStatementsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createBankFeedStatementResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "bills", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedStatementsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsallglobals.md b/docs/models/operations/accountingbankfeedstatementsallglobals.md index c1cef077..fd5b906e 100644 --- a/docs/models/operations/accountingbankfeedstatementsallglobals.md +++ b/docs/models/operations/accountingbankfeedstatementsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedStatementsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsAllGlobals = {}; +let value: AccountingBankFeedStatementsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsallresponse.md b/docs/models/operations/accountingbankfeedstatementsallresponse.md index 4f13743d..23849104 100644 --- a/docs/models/operations/accountingbankfeedstatementsallresponse.md +++ b/docs/models/operations/accountingbankfeedstatementsallresponse.md @@ -5,73 +5,7 @@ ```typescript import { AccountingBankFeedStatementsAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBankFeedStatementsResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-statements", - operation: "all", - data: [ - { - id: "12345", - bankFeedAccountId: "acc_456", - status: "pending", - startDate: new Date("2021-05-01T12:00:00.000Z"), - endDate: new Date("2025-01-31T12:00:00.000Z"), - startBalance: 10500.25, - startBalanceCreditOrDebit: "debit", - endBalance: 9800.5, - endBalanceCreditOrDebit: "debit", - transactions: [ - { - postedDate: new Date("2025-01-15T12:00:00.000Z"), - description: "Payment received from ACME Corp", - amount: 250, - creditOrDebit: "debit", - sourceTransactionId: "txn_987", - counterparty: "ACME Corp", - reference: "INV-2025-01", - transactionType: "payment", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedStatementsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsdeleteglobals.md b/docs/models/operations/accountingbankfeedstatementsdeleteglobals.md index 5376ad8c..5ea690bb 100644 --- a/docs/models/operations/accountingbankfeedstatementsdeleteglobals.md +++ b/docs/models/operations/accountingbankfeedstatementsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedStatementsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsDeleteGlobals = {}; +let value: AccountingBankFeedStatementsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsdeleteresponse.md b/docs/models/operations/accountingbankfeedstatementsdeleteresponse.md index 18011be5..f7fd0297 100644 --- a/docs/models/operations/accountingbankfeedstatementsdeleteresponse.md +++ b/docs/models/operations/accountingbankfeedstatementsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBankFeedStatementsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteBankFeedStatementResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-statements", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedStatementsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsoneglobals.md b/docs/models/operations/accountingbankfeedstatementsoneglobals.md index ccb7d934..a3b12227 100644 --- a/docs/models/operations/accountingbankfeedstatementsoneglobals.md +++ b/docs/models/operations/accountingbankfeedstatementsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedStatementsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsOneGlobals = {}; +let value: AccountingBankFeedStatementsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsoneresponse.md b/docs/models/operations/accountingbankfeedstatementsoneresponse.md index 8df7ae4f..9b50b988 100644 --- a/docs/models/operations/accountingbankfeedstatementsoneresponse.md +++ b/docs/models/operations/accountingbankfeedstatementsoneresponse.md @@ -5,56 +5,7 @@ ```typescript import { AccountingBankFeedStatementsOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBankFeedStatementResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-statements", - operation: "one", - data: { - id: "12345", - bankFeedAccountId: "acc_456", - status: "pending", - startDate: new Date("2021-05-01T12:00:00.000Z"), - endDate: new Date("2025-01-31T12:00:00.000Z"), - startBalance: 10500.25, - startBalanceCreditOrDebit: "debit", - endBalance: 9800.5, - endBalanceCreditOrDebit: "debit", - transactions: [ - { - postedDate: new Date("2025-01-15T12:00:00.000Z"), - description: "Payment received from ACME Corp", - amount: 250, - creditOrDebit: "debit", - sourceTransactionId: "txn_987", - counterparty: "ACME Corp", - reference: "INV-2025-01", - transactionType: "payment", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedStatementsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsupdateglobals.md b/docs/models/operations/accountingbankfeedstatementsupdateglobals.md index 59ecc814..6a0f4103 100644 --- a/docs/models/operations/accountingbankfeedstatementsupdateglobals.md +++ b/docs/models/operations/accountingbankfeedstatementsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBankFeedStatementsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsUpdateGlobals = {}; +let value: AccountingBankFeedStatementsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbankfeedstatementsupdaterequest.md b/docs/models/operations/accountingbankfeedstatementsupdaterequest.md index ca1b79df..38a1078c 100644 --- a/docs/models/operations/accountingbankfeedstatementsupdaterequest.md +++ b/docs/models/operations/accountingbankfeedstatementsupdaterequest.md @@ -8,28 +8,6 @@ import { AccountingBankFeedStatementsUpdateRequest } from "@apideck/unify/models let value: AccountingBankFeedStatementsUpdateRequest = { id: "", serviceId: "salesforce", - bankFeedStatement: { - bankFeedAccountId: "acc_456", - status: "pending", - startDate: new Date("2021-05-01T12:00:00.000Z"), - endDate: new Date("2025-01-31T12:00:00.000Z"), - startBalance: 10500.25, - startBalanceCreditOrDebit: "debit", - endBalance: 9800.5, - endBalanceCreditOrDebit: "debit", - transactions: [ - { - postedDate: new Date("2025-01-15T12:00:00.000Z"), - description: "Payment received from ACME Corp", - amount: 250, - creditOrDebit: "debit", - sourceTransactionId: "txn_987", - counterparty: "ACME Corp", - reference: "INV-2025-01", - transactionType: "payment", - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingbankfeedstatementsupdateresponse.md b/docs/models/operations/accountingbankfeedstatementsupdateresponse.md index cb71e158..40d3e91f 100644 --- a/docs/models/operations/accountingbankfeedstatementsupdateresponse.md +++ b/docs/models/operations/accountingbankfeedstatementsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBankFeedStatementsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingBankFeedStatementsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateBankFeedStatementResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "bank-feed-statements", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBankFeedStatementsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsaddglobals.md b/docs/models/operations/accountingbillpaymentsaddglobals.md index 781cd7b5..86b99c1b 100644 --- a/docs/models/operations/accountingbillpaymentsaddglobals.md +++ b/docs/models/operations/accountingbillpaymentsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillPaymentsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsAddGlobals = {}; +let value: AccountingBillPaymentsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsaddrequest.md b/docs/models/operations/accountingbillpaymentsaddrequest.md index a2826550..c473d0f7 100644 --- a/docs/models/operations/accountingbillpaymentsaddrequest.md +++ b/docs/models/operations/accountingbillpaymentsaddrequest.md @@ -7,96 +7,6 @@ import { AccountingBillPaymentsAddRequest } from "@apideck/unify/models/operatio let value: AccountingBillPaymentsAddRequest = { serviceId: "salesforce", - billPayment: { - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_payable", - allocations: [ - { - id: "12345", - type: "bill", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingbillpaymentsaddresponse.md b/docs/models/operations/accountingbillpaymentsaddresponse.md index 74c2a6e5..ffc57913 100644 --- a/docs/models/operations/accountingbillpaymentsaddresponse.md +++ b/docs/models/operations/accountingbillpaymentsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBillPaymentsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createBillPaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillPaymentsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsallglobals.md b/docs/models/operations/accountingbillpaymentsallglobals.md index 5cd33c65..3dc55092 100644 --- a/docs/models/operations/accountingbillpaymentsallglobals.md +++ b/docs/models/operations/accountingbillpaymentsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillPaymentsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsAllGlobals = {}; +let value: AccountingBillPaymentsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsallrequest.md b/docs/models/operations/accountingbillpaymentsallrequest.md index 8287c2c3..4e44fb82 100644 --- a/docs/models/operations/accountingbillpaymentsallrequest.md +++ b/docs/models/operations/accountingbillpaymentsallrequest.md @@ -13,6 +13,7 @@ let value: AccountingBillPaymentsAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingbillpaymentsallresponse.md b/docs/models/operations/accountingbillpaymentsallresponse.md index a440a70d..e25a5c62 100644 --- a/docs/models/operations/accountingbillpaymentsallresponse.md +++ b/docs/models/operations/accountingbillpaymentsallresponse.md @@ -5,146 +5,7 @@ ```typescript import { AccountingBillPaymentsAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBillPaymentsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_payable", - allocations: [ - { - id: "12345", - type: "bill", - code: "N091", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillPaymentsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsdeleteglobals.md b/docs/models/operations/accountingbillpaymentsdeleteglobals.md index 5548961e..8fc8b365 100644 --- a/docs/models/operations/accountingbillpaymentsdeleteglobals.md +++ b/docs/models/operations/accountingbillpaymentsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillPaymentsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsDeleteGlobals = {}; +let value: AccountingBillPaymentsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsdeleteresponse.md b/docs/models/operations/accountingbillpaymentsdeleteresponse.md index f7654fd5..33ad121a 100644 --- a/docs/models/operations/accountingbillpaymentsdeleteresponse.md +++ b/docs/models/operations/accountingbillpaymentsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBillPaymentsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteBillPaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillPaymentsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsoneglobals.md b/docs/models/operations/accountingbillpaymentsoneglobals.md index 35472645..1b7c2553 100644 --- a/docs/models/operations/accountingbillpaymentsoneglobals.md +++ b/docs/models/operations/accountingbillpaymentsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillPaymentsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsOneGlobals = {}; +let value: AccountingBillPaymentsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsoneresponse.md b/docs/models/operations/accountingbillpaymentsoneresponse.md index bd53c307..6b4ed26d 100644 --- a/docs/models/operations/accountingbillpaymentsoneresponse.md +++ b/docs/models/operations/accountingbillpaymentsoneresponse.md @@ -5,129 +5,7 @@ ```typescript import { AccountingBillPaymentsOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBillPaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_payable", - allocations: [ - { - id: "12345", - type: "bill", - code: "N091", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillPaymentsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsupdateglobals.md b/docs/models/operations/accountingbillpaymentsupdateglobals.md index 5d201b13..a8a0485f 100644 --- a/docs/models/operations/accountingbillpaymentsupdateglobals.md +++ b/docs/models/operations/accountingbillpaymentsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillPaymentsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsUpdateGlobals = {}; +let value: AccountingBillPaymentsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillpaymentsupdaterequest.md b/docs/models/operations/accountingbillpaymentsupdaterequest.md index 820eab42..0ef402f8 100644 --- a/docs/models/operations/accountingbillpaymentsupdaterequest.md +++ b/docs/models/operations/accountingbillpaymentsupdaterequest.md @@ -8,96 +8,6 @@ import { AccountingBillPaymentsUpdateRequest } from "@apideck/unify/models/opera let value: AccountingBillPaymentsUpdateRequest = { id: "", serviceId: "salesforce", - billPayment: { - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_payable", - allocations: [ - { - id: "12345", - type: "bill", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingbillpaymentsupdateresponse.md b/docs/models/operations/accountingbillpaymentsupdateresponse.md index 0fc53ef6..9027ef0a 100644 --- a/docs/models/operations/accountingbillpaymentsupdateresponse.md +++ b/docs/models/operations/accountingbillpaymentsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBillPaymentsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillPaymentsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateBillPaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillPaymentsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsaddglobals.md b/docs/models/operations/accountingbillsaddglobals.md index 5abb121d..35b16a45 100644 --- a/docs/models/operations/accountingbillsaddglobals.md +++ b/docs/models/operations/accountingbillsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillsAddGlobals = {}; +let value: AccountingBillsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsaddrequest.md b/docs/models/operations/accountingbillsaddrequest.md index f9188bc3..c5b750e0 100644 --- a/docs/models/operations/accountingbillsaddrequest.md +++ b/docs/models/operations/accountingbillsaddrequest.md @@ -4,156 +4,9 @@ ```typescript import { AccountingBillsAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingBillsAddRequest = { serviceId: "salesforce", - bill: { - billNumber: "10001", - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - billDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-10-30"), - paidDate: new RFCDate("2020-10-30"), - poNumber: "90000117", - reference: "123456", - lineItems: [ - { - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "expense_account", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - rowVersion: "1-12345", - }, - ], - terms: "Net 30 days", - balance: 27500, - deposit: 0, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxCode: "1234", - notes: "Some notes about this bill.", - status: "draft", - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - discountPercentage: 5.5, - sourceDocumentUrl: "https://www.invoicesolution.com/bill/123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - accountingPeriod: "01-24", - }, }; ``` diff --git a/docs/models/operations/accountingbillsaddresponse.md b/docs/models/operations/accountingbillsaddresponse.md index 23706ed4..f9154d64 100644 --- a/docs/models/operations/accountingbillsaddresponse.md +++ b/docs/models/operations/accountingbillsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBillsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createBillResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "bills", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsallglobals.md b/docs/models/operations/accountingbillsallglobals.md index 94d82e48..218b3c25 100644 --- a/docs/models/operations/accountingbillsallglobals.md +++ b/docs/models/operations/accountingbillsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillsAllGlobals = {}; +let value: AccountingBillsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsallrequest.md b/docs/models/operations/accountingbillsallrequest.md index 509db366..1a1c9cc0 100644 --- a/docs/models/operations/accountingbillsallrequest.md +++ b/docs/models/operations/accountingbillsallrequest.md @@ -12,6 +12,7 @@ let value: AccountingBillsAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingbillsallresponse.md b/docs/models/operations/accountingbillsallresponse.md index ad5ce0ad..5ed94e62 100644 --- a/docs/models/operations/accountingbillsallresponse.md +++ b/docs/models/operations/accountingbillsallresponse.md @@ -4,211 +4,8 @@ ```typescript import { AccountingBillsAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingBillsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBillsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "bills", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - billNumber: "10001", - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - billDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-10-30"), - paidDate: new RFCDate("2020-10-30"), - poNumber: "90000117", - reference: "123456", - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "expense_account", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - terms: "Net 30 days", - balance: 27500, - deposit: 0, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxCode: "1234", - notes: "Some notes about this bill.", - status: "draft", - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - discountPercentage: 5.5, - sourceDocumentUrl: "https://www.invoicesolution.com/bill/123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - accountingPeriod: "01-24", - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsdeleteglobals.md b/docs/models/operations/accountingbillsdeleteglobals.md index 00b12f9b..2c6eaa15 100644 --- a/docs/models/operations/accountingbillsdeleteglobals.md +++ b/docs/models/operations/accountingbillsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillsDeleteGlobals = {}; +let value: AccountingBillsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsdeleteresponse.md b/docs/models/operations/accountingbillsdeleteresponse.md index f84b3a53..cb74a4ad 100644 --- a/docs/models/operations/accountingbillsdeleteresponse.md +++ b/docs/models/operations/accountingbillsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBillsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteBillResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "bills", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsoneglobals.md b/docs/models/operations/accountingbillsoneglobals.md index efd12050..9233b821 100644 --- a/docs/models/operations/accountingbillsoneglobals.md +++ b/docs/models/operations/accountingbillsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillsOneGlobals = {}; +let value: AccountingBillsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsoneresponse.md b/docs/models/operations/accountingbillsoneresponse.md index fb8857cf..ea81c973 100644 --- a/docs/models/operations/accountingbillsoneresponse.md +++ b/docs/models/operations/accountingbillsoneresponse.md @@ -4,194 +4,8 @@ ```typescript import { AccountingBillsOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingBillsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getBillResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "bills", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - billNumber: "10001", - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - billDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-10-30"), - paidDate: new RFCDate("2020-10-30"), - poNumber: "90000117", - reference: "123456", - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "expense_account", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - terms: "Net 30 days", - balance: 27500, - deposit: 0, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxCode: "1234", - notes: "Some notes about this bill.", - status: "draft", - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - discountPercentage: 5.5, - sourceDocumentUrl: "https://www.invoicesolution.com/bill/123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - accountingPeriod: "01-24", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsupdateglobals.md b/docs/models/operations/accountingbillsupdateglobals.md index d858893e..97aea673 100644 --- a/docs/models/operations/accountingbillsupdateglobals.md +++ b/docs/models/operations/accountingbillsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingBillsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingBillsUpdateGlobals = {}; +let value: AccountingBillsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingbillsupdaterequest.md b/docs/models/operations/accountingbillsupdaterequest.md index e4a6f7c7..ffca007c 100644 --- a/docs/models/operations/accountingbillsupdaterequest.md +++ b/docs/models/operations/accountingbillsupdaterequest.md @@ -4,157 +4,10 @@ ```typescript import { AccountingBillsUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingBillsUpdateRequest = { id: "", serviceId: "salesforce", - bill: { - billNumber: "10001", - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - billDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-10-30"), - paidDate: new RFCDate("2020-10-30"), - poNumber: "90000117", - reference: "123456", - lineItems: [ - { - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "expense_account", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - rowVersion: "1-12345", - }, - ], - terms: "Net 30 days", - balance: 27500, - deposit: 0, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxCode: "1234", - notes: "Some notes about this bill.", - status: "draft", - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - discountPercentage: 5.5, - sourceDocumentUrl: "https://www.invoicesolution.com/bill/123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - accountingPeriod: "01-24", - }, }; ``` diff --git a/docs/models/operations/accountingbillsupdateresponse.md b/docs/models/operations/accountingbillsupdateresponse.md index 673e0868..a3ae524d 100644 --- a/docs/models/operations/accountingbillsupdateresponse.md +++ b/docs/models/operations/accountingbillsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingBillsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingBillsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateBillResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "bills", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingBillsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcompanyinfooneglobals.md b/docs/models/operations/accountingcompanyinfooneglobals.md index 5c3d1728..4d81d7ca 100644 --- a/docs/models/operations/accountingcompanyinfooneglobals.md +++ b/docs/models/operations/accountingcompanyinfooneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCompanyInfoOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCompanyInfoOneGlobals = {}; +let value: AccountingCompanyInfoOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcompanyinfooneresponse.md b/docs/models/operations/accountingcompanyinfooneresponse.md index a5930bae..eae22ab2 100644 --- a/docs/models/operations/accountingcompanyinfooneresponse.md +++ b/docs/models/operations/accountingcompanyinfooneresponse.md @@ -4,143 +4,8 @@ ```typescript import { AccountingCompanyInfoOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingCompanyInfoOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCompanyInfoResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "company-info", - operation: "one", - data: { - id: "12345", - companyName: "SpaceX", - status: "active", - legalName: "SpaceX Inc.", - country: "US", - salesTaxNumber: "111.222.333", - defaultSalesTax: { - id: "1234", - name: "GST on Purchases", - code: "ABN", - description: "Reduced rate GST Purchases", - effectiveTaxRate: 10, - totalTaxRate: 10, - taxPayableAccountId: "123456", - taxRemittedAccountId: "123456", - components: [ - { - id: "10", - name: "GST", - rate: 10, - compound: true, - }, - ], - type: "NONE", - reportTaxType: "NONE", - originalTaxRateId: "12345", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, - currency: "USD", - language: "EN", - fiscalYearStartMonth: "January", - companyStartDate: new RFCDate("2015-06-05"), - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCompanyInfoOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesaddglobals.md b/docs/models/operations/accountingcreditnotesaddglobals.md index 7f248498..65a6f284 100644 --- a/docs/models/operations/accountingcreditnotesaddglobals.md +++ b/docs/models/operations/accountingcreditnotesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCreditNotesAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesAddGlobals = {}; +let value: AccountingCreditNotesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesaddrequest.md b/docs/models/operations/accountingcreditnotesaddrequest.md index 21be8595..35981638 100644 --- a/docs/models/operations/accountingcreditnotesaddrequest.md +++ b/docs/models/operations/accountingcreditnotesaddrequest.md @@ -7,174 +7,6 @@ import { AccountingCreditNotesAddRequest } from "@apideck/unify/models/operation let value: AccountingCreditNotesAddRequest = { serviceId: "salesforce", - creditNote: { - number: "OIT00546", - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalAmount: 49.99, - totalTax: 2500, - taxCode: "1234", - balance: 27500, - remainingCredit: 27500, - status: "authorised", - reference: "123456", - dateIssued: new Date("2021-05-01T12:00:00.000Z"), - datePaid: new Date("2021-05-01T12:00:00.000Z"), - type: "accounts_receivable_credit", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - }, - ], - allocations: [ - { - id: "123456", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this credit note", - terms: "Some terms about this credit note", - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingcreditnotesaddresponse.md b/docs/models/operations/accountingcreditnotesaddresponse.md index 75b31d06..dcac13fe 100644 --- a/docs/models/operations/accountingcreditnotesaddresponse.md +++ b/docs/models/operations/accountingcreditnotesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingCreditNotesAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createCreditNoteResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "credit-notes", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCreditNotesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesallglobals.md b/docs/models/operations/accountingcreditnotesallglobals.md index fbb1c953..21fe1a2a 100644 --- a/docs/models/operations/accountingcreditnotesallglobals.md +++ b/docs/models/operations/accountingcreditnotesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCreditNotesAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesAllGlobals = {}; +let value: AccountingCreditNotesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesallrequest.md b/docs/models/operations/accountingcreditnotesallrequest.md index 376fa097..4cc0f328 100644 --- a/docs/models/operations/accountingcreditnotesallrequest.md +++ b/docs/models/operations/accountingcreditnotesallrequest.md @@ -12,6 +12,7 @@ let value: AccountingCreditNotesAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingcreditnotesallresponse.md b/docs/models/operations/accountingcreditnotesallresponse.md index 845b1c71..bcf0db14 100644 --- a/docs/models/operations/accountingcreditnotesallresponse.md +++ b/docs/models/operations/accountingcreditnotesallresponse.md @@ -5,230 +5,7 @@ ```typescript import { AccountingCreditNotesAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCreditNotesResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "credit-notes", - operation: "all", - data: [ - { - id: "123456", - number: "OIT00546", - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalAmount: 49.99, - totalTax: 2500, - taxCode: "1234", - balance: 27500, - remainingCredit: 27500, - status: "authorised", - reference: "123456", - dateIssued: new Date("2021-05-01T12:00:00.000Z"), - datePaid: new Date("2021-05-01T12:00:00.000Z"), - type: "accounts_receivable_credit", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - allocations: [ - { - id: "123456", - code: "N091", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this credit note", - terms: "Some terms about this credit note", - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCreditNotesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesdeleteglobals.md b/docs/models/operations/accountingcreditnotesdeleteglobals.md index a238b7d8..5aada890 100644 --- a/docs/models/operations/accountingcreditnotesdeleteglobals.md +++ b/docs/models/operations/accountingcreditnotesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCreditNotesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesDeleteGlobals = {}; +let value: AccountingCreditNotesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesdeleteresponse.md b/docs/models/operations/accountingcreditnotesdeleteresponse.md index 6550964a..47e78d66 100644 --- a/docs/models/operations/accountingcreditnotesdeleteresponse.md +++ b/docs/models/operations/accountingcreditnotesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingCreditNotesDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteCreditNoteResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "credit-notes", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCreditNotesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesoneglobals.md b/docs/models/operations/accountingcreditnotesoneglobals.md index 34800017..2acf995f 100644 --- a/docs/models/operations/accountingcreditnotesoneglobals.md +++ b/docs/models/operations/accountingcreditnotesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCreditNotesOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesOneGlobals = {}; +let value: AccountingCreditNotesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesoneresponse.md b/docs/models/operations/accountingcreditnotesoneresponse.md index 183b17f9..cc325e69 100644 --- a/docs/models/operations/accountingcreditnotesoneresponse.md +++ b/docs/models/operations/accountingcreditnotesoneresponse.md @@ -5,213 +5,7 @@ ```typescript import { AccountingCreditNotesOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCreditNoteResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "credit-notes", - operation: "one", - data: { - id: "123456", - number: "OIT00546", - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalAmount: 49.99, - totalTax: 2500, - taxCode: "1234", - balance: 27500, - remainingCredit: 27500, - status: "authorised", - reference: "123456", - dateIssued: new Date("2021-05-01T12:00:00.000Z"), - datePaid: new Date("2021-05-01T12:00:00.000Z"), - type: "accounts_receivable_credit", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - allocations: [ - { - id: "123456", - code: "N091", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this credit note", - terms: "Some terms about this credit note", - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCreditNotesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesupdateglobals.md b/docs/models/operations/accountingcreditnotesupdateglobals.md index 7017dfc4..391b2eac 100644 --- a/docs/models/operations/accountingcreditnotesupdateglobals.md +++ b/docs/models/operations/accountingcreditnotesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCreditNotesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesUpdateGlobals = {}; +let value: AccountingCreditNotesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcreditnotesupdaterequest.md b/docs/models/operations/accountingcreditnotesupdaterequest.md index 2f3643d8..fb86d926 100644 --- a/docs/models/operations/accountingcreditnotesupdaterequest.md +++ b/docs/models/operations/accountingcreditnotesupdaterequest.md @@ -8,174 +8,6 @@ import { AccountingCreditNotesUpdateRequest } from "@apideck/unify/models/operat let value: AccountingCreditNotesUpdateRequest = { id: "", serviceId: "salesforce", - creditNote: { - number: "OIT00546", - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - companyId: "12345", - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalAmount: 49.99, - totalTax: 2500, - taxCode: "1234", - balance: 27500, - remainingCredit: 27500, - status: "authorised", - reference: "123456", - dateIssued: new Date("2021-05-01T12:00:00.000Z"), - datePaid: new Date("2021-05-01T12:00:00.000Z"), - type: "accounts_receivable_credit", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - }, - ], - allocations: [ - { - id: "123456", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this credit note", - terms: "Some terms about this credit note", - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingcreditnotesupdateresponse.md b/docs/models/operations/accountingcreditnotesupdateresponse.md index 6d6c599a..58e6526b 100644 --- a/docs/models/operations/accountingcreditnotesupdateresponse.md +++ b/docs/models/operations/accountingcreditnotesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingCreditNotesUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingCreditNotesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateCreditNoteResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "credit-notes", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCreditNotesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersaddglobals.md b/docs/models/operations/accountingcustomersaddglobals.md index 47fa9832..0e21d97e 100644 --- a/docs/models/operations/accountingcustomersaddglobals.md +++ b/docs/models/operations/accountingcustomersaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCustomersAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCustomersAddGlobals = {}; +let value: AccountingCustomersAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersaddrequest.md b/docs/models/operations/accountingcustomersaddrequest.md index 7ee26b82..0cb54e99 100644 --- a/docs/models/operations/accountingcustomersaddrequest.md +++ b/docs/models/operations/accountingcustomersaddrequest.md @@ -7,129 +7,6 @@ import { AccountingCustomersAddRequest } from "@apideck/unify/models/operations" let value: AccountingCustomersAddRequest = { serviceId: "salesforce", - customer: { - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - project: false, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this customer", - taxRate: { - id: "123456", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - parent: { - id: "12345", - name: "Windsurf Shop", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingcustomersaddresponse.md b/docs/models/operations/accountingcustomersaddresponse.md index 31fa8073..2fb9eb16 100644 --- a/docs/models/operations/accountingcustomersaddresponse.md +++ b/docs/models/operations/accountingcustomersaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingCustomersAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingCustomersAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createCustomerResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "customers", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCustomersAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersallglobals.md b/docs/models/operations/accountingcustomersallglobals.md index d4749f28..2354a494 100644 --- a/docs/models/operations/accountingcustomersallglobals.md +++ b/docs/models/operations/accountingcustomersallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCustomersAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCustomersAllGlobals = {}; +let value: AccountingCustomersAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersallrequest.md b/docs/models/operations/accountingcustomersallrequest.md index a335799c..e043119c 100644 --- a/docs/models/operations/accountingcustomersallrequest.md +++ b/docs/models/operations/accountingcustomersallrequest.md @@ -19,6 +19,7 @@ let value: AccountingCustomersAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingcustomersallresponse.md b/docs/models/operations/accountingcustomersallresponse.md index bff67072..22a4558b 100644 --- a/docs/models/operations/accountingcustomersallresponse.md +++ b/docs/models/operations/accountingcustomersallresponse.md @@ -5,178 +5,7 @@ ```typescript import { AccountingCustomersAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingCustomersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomersResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "customers", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - project: false, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this customer", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - parent: { - id: "12345", - name: "Windsurf Shop", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCustomersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersdeleteglobals.md b/docs/models/operations/accountingcustomersdeleteglobals.md index eb68a2b3..022d8f47 100644 --- a/docs/models/operations/accountingcustomersdeleteglobals.md +++ b/docs/models/operations/accountingcustomersdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCustomersDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCustomersDeleteGlobals = {}; +let value: AccountingCustomersDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersdeleteresponse.md b/docs/models/operations/accountingcustomersdeleteresponse.md index a1b9591b..7aad37d5 100644 --- a/docs/models/operations/accountingcustomersdeleteresponse.md +++ b/docs/models/operations/accountingcustomersdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingCustomersDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingCustomersDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteCustomerResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "customers", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCustomersDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersoneglobals.md b/docs/models/operations/accountingcustomersoneglobals.md index b3a4b719..187099c2 100644 --- a/docs/models/operations/accountingcustomersoneglobals.md +++ b/docs/models/operations/accountingcustomersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCustomersOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCustomersOneGlobals = {}; +let value: AccountingCustomersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersoneresponse.md b/docs/models/operations/accountingcustomersoneresponse.md index 5b92dce5..2aeb89ea 100644 --- a/docs/models/operations/accountingcustomersoneresponse.md +++ b/docs/models/operations/accountingcustomersoneresponse.md @@ -5,161 +5,7 @@ ```typescript import { AccountingCustomersOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingCustomersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomerResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "customers", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - project: false, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this customer", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - parent: { - id: "12345", - name: "Windsurf Shop", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCustomersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersupdateglobals.md b/docs/models/operations/accountingcustomersupdateglobals.md index 55da4e27..585e3f1b 100644 --- a/docs/models/operations/accountingcustomersupdateglobals.md +++ b/docs/models/operations/accountingcustomersupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingCustomersUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingCustomersUpdateGlobals = {}; +let value: AccountingCustomersUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingcustomersupdaterequest.md b/docs/models/operations/accountingcustomersupdaterequest.md index 4c0aa5c1..1a50be0c 100644 --- a/docs/models/operations/accountingcustomersupdaterequest.md +++ b/docs/models/operations/accountingcustomersupdaterequest.md @@ -8,129 +8,6 @@ import { AccountingCustomersUpdateRequest } from "@apideck/unify/models/operatio let value: AccountingCustomersUpdateRequest = { id: "", serviceId: "salesforce", - customer: { - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - project: false, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this customer", - taxRate: { - id: "123456", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - parent: { - id: "12345", - name: "Windsurf Shop", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingcustomersupdateresponse.md b/docs/models/operations/accountingcustomersupdateresponse.md index ffcb3916..ea51892b 100644 --- a/docs/models/operations/accountingcustomersupdateresponse.md +++ b/docs/models/operations/accountingcustomersupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingCustomersUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingCustomersUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateCustomerResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "customers", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingCustomersUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsaddglobals.md b/docs/models/operations/accountingdepartmentsaddglobals.md index cc94e087..c69165af 100644 --- a/docs/models/operations/accountingdepartmentsaddglobals.md +++ b/docs/models/operations/accountingdepartmentsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingDepartmentsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsAddGlobals = {}; +let value: AccountingDepartmentsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsaddrequest.md b/docs/models/operations/accountingdepartmentsaddrequest.md index 7ffb875c..67e9c92f 100644 --- a/docs/models/operations/accountingdepartmentsaddrequest.md +++ b/docs/models/operations/accountingdepartmentsaddrequest.md @@ -7,33 +7,6 @@ import { AccountingDepartmentsAddRequest } from "@apideck/unify/models/operation let value: AccountingDepartmentsAddRequest = { serviceId: "salesforce", - accountingDepartment: { - parentId: "12345", - name: "Sales", - status: "active", - subsidiaries: [ - { - name: "SpaceX", - }, - ], - code: "123", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingdepartmentsaddresponse.md b/docs/models/operations/accountingdepartmentsaddresponse.md index 6af581c4..8a7f1f37 100644 --- a/docs/models/operations/accountingdepartmentsaddresponse.md +++ b/docs/models/operations/accountingdepartmentsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingDepartmentsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createAccountingDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "departments", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingDepartmentsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsallglobals.md b/docs/models/operations/accountingdepartmentsallglobals.md index 644f0100..c78a2623 100644 --- a/docs/models/operations/accountingdepartmentsallglobals.md +++ b/docs/models/operations/accountingdepartmentsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingDepartmentsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsAllGlobals = {}; +let value: AccountingDepartmentsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsallresponse.md b/docs/models/operations/accountingdepartmentsallresponse.md index b06f0012..a9903f6a 100644 --- a/docs/models/operations/accountingdepartmentsallresponse.md +++ b/docs/models/operations/accountingdepartmentsallresponse.md @@ -5,79 +5,7 @@ ```typescript import { AccountingDepartmentsAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAccountingDepartmentsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "subsidiaries", - operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - name: "Sales", - status: "active", - subsidiaries: [ - { - id: "12345", - name: "SpaceX", - }, - ], - code: "123", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingDepartmentsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsdeleteglobals.md b/docs/models/operations/accountingdepartmentsdeleteglobals.md index 5f7ea8c4..8957a412 100644 --- a/docs/models/operations/accountingdepartmentsdeleteglobals.md +++ b/docs/models/operations/accountingdepartmentsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingDepartmentsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsDeleteGlobals = {}; +let value: AccountingDepartmentsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsdeleteresponse.md b/docs/models/operations/accountingdepartmentsdeleteresponse.md index 0781f1fe..03857210 100644 --- a/docs/models/operations/accountingdepartmentsdeleteresponse.md +++ b/docs/models/operations/accountingdepartmentsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingDepartmentsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteAccountingDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "departments", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingDepartmentsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsoneglobals.md b/docs/models/operations/accountingdepartmentsoneglobals.md index f42716cd..9d409b76 100644 --- a/docs/models/operations/accountingdepartmentsoneglobals.md +++ b/docs/models/operations/accountingdepartmentsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingDepartmentsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsOneGlobals = {}; +let value: AccountingDepartmentsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsoneresponse.md b/docs/models/operations/accountingdepartmentsoneresponse.md index 00fa2e60..e89d67b4 100644 --- a/docs/models/operations/accountingdepartmentsoneresponse.md +++ b/docs/models/operations/accountingdepartmentsoneresponse.md @@ -5,62 +5,7 @@ ```typescript import { AccountingDepartmentsOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAccountingDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "subsidiaries", - operation: "one", - data: { - id: "12345", - parentId: "12345", - name: "Sales", - status: "active", - subsidiaries: [ - { - id: "12345", - name: "SpaceX", - }, - ], - code: "123", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingDepartmentsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsupdateglobals.md b/docs/models/operations/accountingdepartmentsupdateglobals.md index a8b0f5ed..09d08b36 100644 --- a/docs/models/operations/accountingdepartmentsupdateglobals.md +++ b/docs/models/operations/accountingdepartmentsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingDepartmentsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsUpdateGlobals = {}; +let value: AccountingDepartmentsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingdepartmentsupdaterequest.md b/docs/models/operations/accountingdepartmentsupdaterequest.md index f0495a3e..c83684a5 100644 --- a/docs/models/operations/accountingdepartmentsupdaterequest.md +++ b/docs/models/operations/accountingdepartmentsupdaterequest.md @@ -8,33 +8,6 @@ import { AccountingDepartmentsUpdateRequest } from "@apideck/unify/models/operat let value: AccountingDepartmentsUpdateRequest = { id: "", serviceId: "salesforce", - accountingDepartment: { - parentId: "12345", - name: "Sales", - status: "active", - subsidiaries: [ - { - name: "SpaceX", - }, - ], - code: "123", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingdepartmentsupdateresponse.md b/docs/models/operations/accountingdepartmentsupdateresponse.md index a1c940bd..457d37aa 100644 --- a/docs/models/operations/accountingdepartmentsupdateresponse.md +++ b/docs/models/operations/accountingdepartmentsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingDepartmentsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingDepartmentsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateAccountingDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "departments", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingDepartmentsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesaddglobals.md b/docs/models/operations/accountingexpensesaddglobals.md index dc4fa1ba..a604a118 100644 --- a/docs/models/operations/accountingexpensesaddglobals.md +++ b/docs/models/operations/accountingexpensesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingExpensesAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingExpensesAddGlobals = {}; +let value: AccountingExpensesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesaddrequest.md b/docs/models/operations/accountingexpensesaddrequest.md index 5fe0ddad..0a34e4a1 100644 --- a/docs/models/operations/accountingexpensesaddrequest.md +++ b/docs/models/operations/accountingexpensesaddrequest.md @@ -7,72 +7,6 @@ import { AccountingExpensesAddRequest } from "@apideck/unify/models/operations"; let value: AccountingExpensesAddRequest = { serviceId: "salesforce", - expense: { - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - rate: 10, - }, - totalAmount: 275, - lineItems: [ - { - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountId: "123456", - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingexpensesaddresponse.md b/docs/models/operations/accountingexpensesaddresponse.md index 3d7082ce..574080f3 100644 --- a/docs/models/operations/accountingexpensesaddresponse.md +++ b/docs/models/operations/accountingexpensesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingExpensesAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingExpensesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createExpenseResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "Expenses", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingExpensesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesallglobals.md b/docs/models/operations/accountingexpensesallglobals.md index 79d749e7..fd1e39e8 100644 --- a/docs/models/operations/accountingexpensesallglobals.md +++ b/docs/models/operations/accountingexpensesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingExpensesAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingExpensesAllGlobals = {}; +let value: AccountingExpensesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesallresponse.md b/docs/models/operations/accountingexpensesallresponse.md index 53710da5..30e8280d 100644 --- a/docs/models/operations/accountingexpensesallresponse.md +++ b/docs/models/operations/accountingexpensesallresponse.md @@ -5,122 +5,7 @@ ```typescript import { AccountingExpensesAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingExpensesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getExpensesResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "Expenses", - operation: "all", - data: [ - { - id: "12345", - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - totalAmount: 275, - lineItems: [ - { - id: "12345", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountId: "123456", - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingExpensesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesdeleteglobals.md b/docs/models/operations/accountingexpensesdeleteglobals.md index 02016017..774ca8c4 100644 --- a/docs/models/operations/accountingexpensesdeleteglobals.md +++ b/docs/models/operations/accountingexpensesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingExpensesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingExpensesDeleteGlobals = {}; +let value: AccountingExpensesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesdeleteresponse.md b/docs/models/operations/accountingexpensesdeleteresponse.md index 06c70aa0..0dbc5033 100644 --- a/docs/models/operations/accountingexpensesdeleteresponse.md +++ b/docs/models/operations/accountingexpensesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingExpensesDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingExpensesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteExpenseResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "Expenses", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingExpensesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesoneglobals.md b/docs/models/operations/accountingexpensesoneglobals.md index bf1cd5a8..191ecafe 100644 --- a/docs/models/operations/accountingexpensesoneglobals.md +++ b/docs/models/operations/accountingexpensesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingExpensesOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingExpensesOneGlobals = {}; +let value: AccountingExpensesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesoneresponse.md b/docs/models/operations/accountingexpensesoneresponse.md index 1f4e8a2e..b3c6f851 100644 --- a/docs/models/operations/accountingexpensesoneresponse.md +++ b/docs/models/operations/accountingexpensesoneresponse.md @@ -5,105 +5,7 @@ ```typescript import { AccountingExpensesOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingExpensesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getExpenseResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "Expenses", - operation: "one", - data: { - id: "12345", - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - totalAmount: 275, - lineItems: [ - { - id: "12345", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountId: "123456", - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingExpensesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesupdateglobals.md b/docs/models/operations/accountingexpensesupdateglobals.md index 56c7953b..3f132e9d 100644 --- a/docs/models/operations/accountingexpensesupdateglobals.md +++ b/docs/models/operations/accountingexpensesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingExpensesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingExpensesUpdateGlobals = {}; +let value: AccountingExpensesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingexpensesupdaterequest.md b/docs/models/operations/accountingexpensesupdaterequest.md index 413d3810..1ebe2e68 100644 --- a/docs/models/operations/accountingexpensesupdaterequest.md +++ b/docs/models/operations/accountingexpensesupdaterequest.md @@ -8,72 +8,6 @@ import { AccountingExpensesUpdateRequest } from "@apideck/unify/models/operation let value: AccountingExpensesUpdateRequest = { id: "", serviceId: "salesforce", - expense: { - number: "OIT00546", - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - accountId: "123456", - customerId: "12345", - supplierId: "12345", - companyId: "12345", - departmentId: "12345", - paymentType: "cash", - currency: "USD", - currencyRate: 0.69, - type: "expense", - memo: "For travel expenses incurred on 2024-05-15", - taxRate: { - id: "123456", - rate: 10, - }, - totalAmount: 275, - lineItems: [ - { - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountId: "123456", - customerId: "12345", - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxRate: { - id: "123456", - rate: 10, - }, - description: "Travel US.", - totalAmount: 275, - billable: true, - lineNumber: 1, - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingexpensesupdateresponse.md b/docs/models/operations/accountingexpensesupdateresponse.md index 9fb24c01..6f0e5ac9 100644 --- a/docs/models/operations/accountingexpensesupdateresponse.md +++ b/docs/models/operations/accountingexpensesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingExpensesUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingExpensesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateExpenseResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "Expenses", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingExpensesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsaddglobals.md b/docs/models/operations/accountinginvoiceitemsaddglobals.md index f0b189c3..bf781b53 100644 --- a/docs/models/operations/accountinginvoiceitemsaddglobals.md +++ b/docs/models/operations/accountinginvoiceitemsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoiceItemsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsAddGlobals = {}; +let value: AccountingInvoiceItemsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsaddrequest.md b/docs/models/operations/accountinginvoiceitemsaddrequest.md index b7fc85e5..b2957614 100644 --- a/docs/models/operations/accountinginvoiceitemsaddrequest.md +++ b/docs/models/operations/accountinginvoiceitemsaddrequest.md @@ -4,84 +4,9 @@ ```typescript import { AccountingInvoiceItemsAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingInvoiceItemsAddRequest = { serviceId: "salesforce", - invoiceItem: { - name: "Model Y", - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - code: "120-C", - sold: true, - purchased: true, - tracked: true, - taxable: true, - inventoryDate: new RFCDate("2020-10-30"), - type: "inventory", - salesDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - rate: 10, - }, - }, - purchaseDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - rate: 10, - }, - }, - quantity: 1, - unitPrice: 27500.5, - assetAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - incomeAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - expenseAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - active: true, - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxScheduleId: "123456", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountinginvoiceitemsaddresponse.md b/docs/models/operations/accountinginvoiceitemsaddresponse.md index 590be0ac..ea23a4de 100644 --- a/docs/models/operations/accountinginvoiceitemsaddresponse.md +++ b/docs/models/operations/accountinginvoiceitemsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingInvoiceItemsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createInvoiceItemResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoice-items", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoiceItemsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsallglobals.md b/docs/models/operations/accountinginvoiceitemsallglobals.md index eb336764..a5d67b08 100644 --- a/docs/models/operations/accountinginvoiceitemsallglobals.md +++ b/docs/models/operations/accountinginvoiceitemsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoiceItemsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsAllGlobals = {}; +let value: AccountingInvoiceItemsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsallrequest.md b/docs/models/operations/accountinginvoiceitemsallrequest.md index 06ad2830..1e4988b7 100644 --- a/docs/models/operations/accountinginvoiceitemsallrequest.md +++ b/docs/models/operations/accountinginvoiceitemsallrequest.md @@ -13,6 +13,7 @@ let value: AccountingInvoiceItemsAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountinginvoiceitemsallresponse.md b/docs/models/operations/accountinginvoiceitemsallresponse.md index 41f5b1c5..4e8b4166 100644 --- a/docs/models/operations/accountinginvoiceitemsallresponse.md +++ b/docs/models/operations/accountinginvoiceitemsallresponse.md @@ -4,134 +4,8 @@ ```typescript import { AccountingInvoiceItemsAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingInvoiceItemsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getInvoiceItemsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoice-items", - operation: "all", - data: [ - { - id: "123456", - name: "Model Y", - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - code: "120-C", - sold: true, - purchased: true, - tracked: true, - taxable: true, - inventoryDate: new RFCDate("2020-10-30"), - type: "inventory", - salesDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - }, - purchaseDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - }, - quantity: 1, - unitPrice: 27500.5, - assetAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - incomeAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - expenseAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - active: true, - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxScheduleId: "123456", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoiceItemsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsdeleteglobals.md b/docs/models/operations/accountinginvoiceitemsdeleteglobals.md index 3368682c..03a24cf0 100644 --- a/docs/models/operations/accountinginvoiceitemsdeleteglobals.md +++ b/docs/models/operations/accountinginvoiceitemsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoiceItemsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsDeleteGlobals = {}; +let value: AccountingInvoiceItemsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsdeleteresponse.md b/docs/models/operations/accountinginvoiceitemsdeleteresponse.md index ded7aa9f..a9e5423e 100644 --- a/docs/models/operations/accountinginvoiceitemsdeleteresponse.md +++ b/docs/models/operations/accountinginvoiceitemsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingInvoiceItemsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteTaxRateResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "tax-rates", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoiceItemsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsoneglobals.md b/docs/models/operations/accountinginvoiceitemsoneglobals.md index 62a0d160..f3b8465e 100644 --- a/docs/models/operations/accountinginvoiceitemsoneglobals.md +++ b/docs/models/operations/accountinginvoiceitemsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoiceItemsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsOneGlobals = {}; +let value: AccountingInvoiceItemsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsoneresponse.md b/docs/models/operations/accountinginvoiceitemsoneresponse.md index 8d7e650c..de030f57 100644 --- a/docs/models/operations/accountinginvoiceitemsoneresponse.md +++ b/docs/models/operations/accountinginvoiceitemsoneresponse.md @@ -4,117 +4,8 @@ ```typescript import { AccountingInvoiceItemsOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingInvoiceItemsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getInvoiceItemResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoice-items", - operation: "one", - data: { - id: "123456", - name: "Model Y", - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - code: "120-C", - sold: true, - purchased: true, - tracked: true, - taxable: true, - inventoryDate: new RFCDate("2020-10-30"), - type: "inventory", - salesDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - }, - purchaseDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - }, - quantity: 1, - unitPrice: 27500.5, - assetAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - incomeAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - expenseAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - active: true, - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxScheduleId: "123456", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoiceItemsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsupdateglobals.md b/docs/models/operations/accountinginvoiceitemsupdateglobals.md index 6fbef7ed..3b7bd26a 100644 --- a/docs/models/operations/accountinginvoiceitemsupdateglobals.md +++ b/docs/models/operations/accountinginvoiceitemsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoiceItemsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsUpdateGlobals = {}; +let value: AccountingInvoiceItemsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoiceitemsupdaterequest.md b/docs/models/operations/accountinginvoiceitemsupdaterequest.md index b8f15f6e..9edd3493 100644 --- a/docs/models/operations/accountinginvoiceitemsupdaterequest.md +++ b/docs/models/operations/accountinginvoiceitemsupdaterequest.md @@ -4,85 +4,10 @@ ```typescript import { AccountingInvoiceItemsUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingInvoiceItemsUpdateRequest = { id: "", serviceId: "salesforce", - invoiceItem: { - name: "Model Y", - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - code: "120-C", - sold: true, - purchased: true, - tracked: true, - taxable: true, - inventoryDate: new RFCDate("2020-10-30"), - type: "inventory", - salesDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - rate: 10, - }, - }, - purchaseDetails: { - unitPrice: 27500.5, - unitOfMeasure: "pc.", - taxInclusive: true, - taxRate: { - id: "123456", - rate: 10, - }, - }, - quantity: 1, - unitPrice: 27500.5, - assetAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - incomeAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - expenseAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - active: true, - departmentId: "12345", - locationId: "12345", - subsidiaryId: "12345", - taxScheduleId: "123456", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountinginvoiceitemsupdateresponse.md b/docs/models/operations/accountinginvoiceitemsupdateresponse.md index 11be2e3e..99ed50cd 100644 --- a/docs/models/operations/accountinginvoiceitemsupdateresponse.md +++ b/docs/models/operations/accountinginvoiceitemsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingInvoiceItemsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingInvoiceItemsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateInvoiceItemsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoice-items", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoiceItemsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesaddglobals.md b/docs/models/operations/accountinginvoicesaddglobals.md index a87293bc..e7cad8b1 100644 --- a/docs/models/operations/accountinginvoicesaddglobals.md +++ b/docs/models/operations/accountinginvoicesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoicesAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesAddGlobals = {}; +let value: AccountingInvoicesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesaddrequest.md b/docs/models/operations/accountinginvoicesaddrequest.md index 88fb396d..1fe0adcc 100644 --- a/docs/models/operations/accountinginvoicesaddrequest.md +++ b/docs/models/operations/accountinginvoicesaddrequest.md @@ -4,201 +4,9 @@ ```typescript import { AccountingInvoicesAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingInvoicesAddRequest = { serviceId: "salesforce", - invoice: { - type: "service", - number: "OIT00546", - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - companyId: "12345", - invoiceDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-09-30"), - terms: "Net 30 days", - poNumber: "90000117", - reference: "123456", - status: "draft", - invoiceSent: true, - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalTax: 2500, - taxCode: "1234", - discountPercentage: 5.5, - discountAmount: 25, - total: 27500, - balance: 27500, - deposit: 0, - customerMemo: "Thank you for your business and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - }, - ], - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - templateId: "123456", - sourceDocumentUrl: "https://www.invoicesolution.com/invoice/123456", - paymentAllocations: [ - { - id: "123456", - allocatedAmount: 1000, - date: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountinginvoicesaddresponse.md b/docs/models/operations/accountinginvoicesaddresponse.md index 128dc9ce..7cd5b8fa 100644 --- a/docs/models/operations/accountinginvoicesaddresponse.md +++ b/docs/models/operations/accountinginvoicesaddresponse.md @@ -5,33 +5,7 @@ ```typescript import { AccountingInvoicesAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createInvoiceResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoices", - operation: "add", - data: { - id: "12345", - downstreamId: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoicesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesallglobals.md b/docs/models/operations/accountinginvoicesallglobals.md index 3eb2cf3e..384dcdc8 100644 --- a/docs/models/operations/accountinginvoicesallglobals.md +++ b/docs/models/operations/accountinginvoicesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoicesAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesAllGlobals = {}; +let value: AccountingInvoicesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesallrequest.md b/docs/models/operations/accountinginvoicesallrequest.md index 6295cd41..0866d0a0 100644 --- a/docs/models/operations/accountinginvoicesallrequest.md +++ b/docs/models/operations/accountinginvoicesallrequest.md @@ -14,6 +14,7 @@ let value: AccountingInvoicesAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountinginvoicesallresponse.md b/docs/models/operations/accountinginvoicesallresponse.md index add71da8..081cc309 100644 --- a/docs/models/operations/accountinginvoicesallresponse.md +++ b/docs/models/operations/accountinginvoicesallresponse.md @@ -4,255 +4,8 @@ ```typescript import { AccountingInvoicesAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingInvoicesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getInvoicesResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoices", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - type: "service", - number: "OIT00546", - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - invoiceDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-09-30"), - terms: "Net 30 days", - poNumber: "90000117", - reference: "123456", - status: "draft", - invoiceSent: true, - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalTax: 2500, - taxCode: "1234", - discountPercentage: 5.5, - discountAmount: 25, - total: 27500, - balance: 27500, - deposit: 0, - customerMemo: "Thank you for your business and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - templateId: "123456", - sourceDocumentUrl: "https://www.invoicesolution.com/invoice/123456", - paymentAllocations: [ - { - id: "123456", - allocatedAmount: 1000, - date: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoicesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesdeleteglobals.md b/docs/models/operations/accountinginvoicesdeleteglobals.md index 9393a97c..d1b5d967 100644 --- a/docs/models/operations/accountinginvoicesdeleteglobals.md +++ b/docs/models/operations/accountinginvoicesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoicesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesDeleteGlobals = {}; +let value: AccountingInvoicesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesdeleteresponse.md b/docs/models/operations/accountinginvoicesdeleteresponse.md index 4c76c2aa..e79e1b5e 100644 --- a/docs/models/operations/accountinginvoicesdeleteresponse.md +++ b/docs/models/operations/accountinginvoicesdeleteresponse.md @@ -5,33 +5,7 @@ ```typescript import { AccountingInvoicesDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteInvoiceResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoices", - operation: "delete", - data: { - id: "12345", - downstreamId: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoicesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesoneglobals.md b/docs/models/operations/accountinginvoicesoneglobals.md index a7024e3d..caadbed3 100644 --- a/docs/models/operations/accountinginvoicesoneglobals.md +++ b/docs/models/operations/accountinginvoicesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoicesOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesOneGlobals = {}; +let value: AccountingInvoicesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesoneresponse.md b/docs/models/operations/accountinginvoicesoneresponse.md index 9694c5d7..d955eb03 100644 --- a/docs/models/operations/accountinginvoicesoneresponse.md +++ b/docs/models/operations/accountinginvoicesoneresponse.md @@ -4,238 +4,8 @@ ```typescript import { AccountingInvoicesOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingInvoicesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getInvoiceResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoices", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - type: "service", - number: "OIT00546", - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - invoiceDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-09-30"), - terms: "Net 30 days", - poNumber: "90000117", - reference: "123456", - status: "draft", - invoiceSent: true, - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalTax: 2500, - taxCode: "1234", - discountPercentage: 5.5, - discountAmount: 25, - total: 27500, - balance: 27500, - deposit: 0, - customerMemo: "Thank you for your business and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - templateId: "123456", - sourceDocumentUrl: "https://www.invoicesolution.com/invoice/123456", - paymentAllocations: [ - { - id: "123456", - allocatedAmount: 1000, - date: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoicesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesupdateglobals.md b/docs/models/operations/accountinginvoicesupdateglobals.md index ed8dbe98..3858e6c6 100644 --- a/docs/models/operations/accountinginvoicesupdateglobals.md +++ b/docs/models/operations/accountinginvoicesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingInvoicesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesUpdateGlobals = {}; +let value: AccountingInvoicesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinginvoicesupdaterequest.md b/docs/models/operations/accountinginvoicesupdaterequest.md index d56007e5..72cc29de 100644 --- a/docs/models/operations/accountinginvoicesupdaterequest.md +++ b/docs/models/operations/accountinginvoicesupdaterequest.md @@ -4,202 +4,10 @@ ```typescript import { AccountingInvoicesUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingInvoicesUpdateRequest = { id: "", serviceId: "salesforce", - invoice: { - type: "service", - number: "OIT00546", - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - companyId: "12345", - invoiceDate: new RFCDate("2020-09-30"), - dueDate: new RFCDate("2020-09-30"), - terms: "Net 30 days", - poNumber: "90000117", - reference: "123456", - status: "draft", - invoiceSent: true, - currency: "USD", - currencyRate: 0.69, - taxInclusive: true, - subTotal: 27500, - totalTax: 2500, - taxCode: "1234", - discountPercentage: 5.5, - discountAmount: 25, - total: 27500, - balance: 27500, - deposit: 0, - customerMemo: "Thank you for your business and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - }, - ], - billingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - templateId: "123456", - sourceDocumentUrl: "https://www.invoicesolution.com/invoice/123456", - paymentAllocations: [ - { - id: "123456", - allocatedAmount: 1000, - date: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - paymentMethod: "cash", - channel: "email", - language: "EN", - accountingByRow: false, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountinginvoicesupdateresponse.md b/docs/models/operations/accountinginvoicesupdateresponse.md index ee0770aa..d270aa1c 100644 --- a/docs/models/operations/accountinginvoicesupdateresponse.md +++ b/docs/models/operations/accountinginvoicesupdateresponse.md @@ -5,33 +5,7 @@ ```typescript import { AccountingInvoicesUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingInvoicesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateInvoiceResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "invoices", - operation: "update", - data: { - id: "12345", - downstreamId: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingInvoicesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesaddglobals.md b/docs/models/operations/accountingjournalentriesaddglobals.md index 3567ea13..61f5690d 100644 --- a/docs/models/operations/accountingjournalentriesaddglobals.md +++ b/docs/models/operations/accountingjournalentriesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingJournalEntriesAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesAddGlobals = {}; +let value: AccountingJournalEntriesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesaddrequest.md b/docs/models/operations/accountingjournalentriesaddrequest.md index 3c0bc39d..0ca17d85 100644 --- a/docs/models/operations/accountingjournalentriesaddrequest.md +++ b/docs/models/operations/accountingjournalentriesaddrequest.md @@ -7,113 +7,6 @@ import { AccountingJournalEntriesAddRequest } from "@apideck/unify/models/operat let value: AccountingJournalEntriesAddRequest = { serviceId: "salesforce", - journalEntry: { - title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", - currencyRate: 0.69, - currency: "USD", - companyId: "12345", - lineItems: [ - { - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - taxAmount: 27500, - subTotal: 27500, - totalAmount: 27500, - type: "debit", - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - departmentId: "12345", - locationId: "12345", - lineNumber: 1, - }, - ], - status: "draft", - memo: "Thank you for your business and have a great day!", - postedAt: new Date("2020-09-30T07:43:32.000Z"), - journalSymbol: "IND", - taxType: "sales", - taxCode: "1234", - number: "OIT00546", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountingPeriod: "01-24", - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingjournalentriesaddresponse.md b/docs/models/operations/accountingjournalentriesaddresponse.md index 6c4760f3..48dd21dd 100644 --- a/docs/models/operations/accountingjournalentriesaddresponse.md +++ b/docs/models/operations/accountingjournalentriesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingJournalEntriesAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createJournalEntryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "journal-entries", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingJournalEntriesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesallglobals.md b/docs/models/operations/accountingjournalentriesallglobals.md index 90a2a8c7..57fdad05 100644 --- a/docs/models/operations/accountingjournalentriesallglobals.md +++ b/docs/models/operations/accountingjournalentriesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingJournalEntriesAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesAllGlobals = {}; +let value: AccountingJournalEntriesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesallrequest.md b/docs/models/operations/accountingjournalentriesallrequest.md index b6503b16..da7be76a 100644 --- a/docs/models/operations/accountingjournalentriesallrequest.md +++ b/docs/models/operations/accountingjournalentriesallrequest.md @@ -12,6 +12,7 @@ let value: AccountingJournalEntriesAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingjournalentriesallresponse.md b/docs/models/operations/accountingjournalentriesallresponse.md index 0156372b..27c3e0f8 100644 --- a/docs/models/operations/accountingjournalentriesallresponse.md +++ b/docs/models/operations/accountingjournalentriesallresponse.md @@ -5,167 +5,7 @@ ```typescript import { AccountingJournalEntriesAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getJournalEntriesResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "journal-entries", - operation: "all", - data: [ - { - id: "12345", - title: - "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", - currencyRate: 0.69, - currency: "USD", - companyId: "12345", - lineItems: [ - { - id: "12345", - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - taxAmount: 27500, - subTotal: 27500, - totalAmount: 27500, - type: "debit", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - departmentId: "12345", - locationId: "12345", - lineNumber: 1, - }, - ], - status: "draft", - memo: "Thank you for your business and have a great day!", - postedAt: new Date("2020-09-30T07:43:32.000Z"), - journalSymbol: "IND", - taxType: "sales", - taxCode: "1234", - number: "OIT00546", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountingPeriod: "01-24", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingJournalEntriesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesdeleteglobals.md b/docs/models/operations/accountingjournalentriesdeleteglobals.md index aeb871da..28c6d069 100644 --- a/docs/models/operations/accountingjournalentriesdeleteglobals.md +++ b/docs/models/operations/accountingjournalentriesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingJournalEntriesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesDeleteGlobals = {}; +let value: AccountingJournalEntriesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesdeleteresponse.md b/docs/models/operations/accountingjournalentriesdeleteresponse.md index 73bc6969..6e50aaf7 100644 --- a/docs/models/operations/accountingjournalentriesdeleteresponse.md +++ b/docs/models/operations/accountingjournalentriesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingJournalEntriesDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteJournalEntryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "journal-entries", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingJournalEntriesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesoneglobals.md b/docs/models/operations/accountingjournalentriesoneglobals.md index 305051bc..a79d2f12 100644 --- a/docs/models/operations/accountingjournalentriesoneglobals.md +++ b/docs/models/operations/accountingjournalentriesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingJournalEntriesOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesOneGlobals = {}; +let value: AccountingJournalEntriesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesoneresponse.md b/docs/models/operations/accountingjournalentriesoneresponse.md index 59f8f226..72bd891a 100644 --- a/docs/models/operations/accountingjournalentriesoneresponse.md +++ b/docs/models/operations/accountingjournalentriesoneresponse.md @@ -5,149 +5,7 @@ ```typescript import { AccountingJournalEntriesOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getJournalEntryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "journal-entries", - operation: "one", - data: { - id: "12345", - title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", - currencyRate: 0.69, - currency: "USD", - companyId: "12345", - lineItems: [ - { - id: "12345", - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - taxAmount: 27500, - subTotal: 27500, - totalAmount: 27500, - type: "debit", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - departmentId: "12345", - locationId: "12345", - lineNumber: 1, - }, - ], - status: "draft", - memo: "Thank you for your business and have a great day!", - postedAt: new Date("2020-09-30T07:43:32.000Z"), - journalSymbol: "IND", - taxType: "sales", - taxCode: "1234", - number: "OIT00546", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountingPeriod: "01-24", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingJournalEntriesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesupdateglobals.md b/docs/models/operations/accountingjournalentriesupdateglobals.md index 1cd07315..7807a4ba 100644 --- a/docs/models/operations/accountingjournalentriesupdateglobals.md +++ b/docs/models/operations/accountingjournalentriesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingJournalEntriesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesUpdateGlobals = {}; +let value: AccountingJournalEntriesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingjournalentriesupdaterequest.md b/docs/models/operations/accountingjournalentriesupdaterequest.md index 32fbda0d..00120323 100644 --- a/docs/models/operations/accountingjournalentriesupdaterequest.md +++ b/docs/models/operations/accountingjournalentriesupdaterequest.md @@ -8,113 +8,6 @@ import { AccountingJournalEntriesUpdateRequest } from "@apideck/unify/models/ope let value: AccountingJournalEntriesUpdateRequest = { id: "", serviceId: "salesforce", - journalEntry: { - title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", - currencyRate: 0.69, - currency: "USD", - companyId: "12345", - lineItems: [ - { - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - taxAmount: 27500, - subTotal: 27500, - totalAmount: 27500, - type: "debit", - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - departmentId: "12345", - locationId: "12345", - lineNumber: 1, - }, - ], - status: "draft", - memo: "Thank you for your business and have a great day!", - postedAt: new Date("2020-09-30T07:43:32.000Z"), - journalSymbol: "IND", - taxType: "sales", - taxCode: "1234", - number: "OIT00546", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - accountingPeriod: "01-24", - rowVersion: "1-12345", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingjournalentriesupdateresponse.md b/docs/models/operations/accountingjournalentriesupdateresponse.md index 722fce56..38e74278 100644 --- a/docs/models/operations/accountingjournalentriesupdateresponse.md +++ b/docs/models/operations/accountingjournalentriesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingJournalEntriesUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingJournalEntriesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateJournalEntryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "journal-entries", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingJournalEntriesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsaddglobals.md b/docs/models/operations/accountingledgeraccountsaddglobals.md index c8d3c636..61a0bebf 100644 --- a/docs/models/operations/accountingledgeraccountsaddglobals.md +++ b/docs/models/operations/accountingledgeraccountsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLedgerAccountsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsAddGlobals = {}; +let value: AccountingLedgerAccountsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsaddrequest.md b/docs/models/operations/accountingledgeraccountsaddrequest.md index a489c5b6..52290871 100644 --- a/docs/models/operations/accountingledgeraccountsaddrequest.md +++ b/docs/models/operations/accountingledgeraccountsaddrequest.md @@ -4,76 +4,9 @@ ```typescript import { AccountingLedgerAccountsAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingLedgerAccountsAddRequest = { serviceId: "salesforce", - ledgerAccount: { - displayId: "1-12345", - code: "453", - classification: "asset", - type: "bank", - subType: "CHECKING_ACCOUNT", - name: "Bank account", - fullyQualifiedName: "Asset.Bank.Checking_Account", - description: "Main checking account", - openingBalance: 75000, - currentBalance: 20000, - currency: "USD", - taxType: "NONE", - taxRate: { - id: "123456", - rate: 10, - }, - level: 1, - active: true, - status: "active", - header: true, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - parentAccount: { - id: "12345", - name: "Bank Accounts", - displayId: "1-1100", - }, - subAccount: false, - lastReconciliationDate: new RFCDate("2020-09-30"), - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingledgeraccountsaddresponse.md b/docs/models/operations/accountingledgeraccountsaddresponse.md index c3fa2b1e..caba23fb 100644 --- a/docs/models/operations/accountingledgeraccountsaddresponse.md +++ b/docs/models/operations/accountingledgeraccountsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingLedgerAccountsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createLedgerAccountResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "ledger-accounts", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLedgerAccountsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsallglobals.md b/docs/models/operations/accountingledgeraccountsallglobals.md index d08cff0b..0f23796e 100644 --- a/docs/models/operations/accountingledgeraccountsallglobals.md +++ b/docs/models/operations/accountingledgeraccountsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLedgerAccountsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsAllGlobals = {}; +let value: AccountingLedgerAccountsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsallrequest.md b/docs/models/operations/accountingledgeraccountsallrequest.md index 557e0a5f..81838ac7 100644 --- a/docs/models/operations/accountingledgeraccountsallrequest.md +++ b/docs/models/operations/accountingledgeraccountsallrequest.md @@ -12,6 +12,7 @@ let value: AccountingLedgerAccountsAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingledgeraccountsallresponse.md b/docs/models/operations/accountingledgeraccountsallresponse.md index dcee9151..97bb6519 100644 --- a/docs/models/operations/accountingledgeraccountsallresponse.md +++ b/docs/models/operations/accountingledgeraccountsallresponse.md @@ -4,133 +4,8 @@ ```typescript import { AccountingLedgerAccountsAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingLedgerAccountsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getLedgerAccountsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "ledger-accounts", - operation: "all", - data: [ - { - id: "12345", - displayId: "1-12345", - code: "453", - classification: "asset", - type: "bank", - subType: "CHECKING_ACCOUNT", - name: "Bank account", - fullyQualifiedName: "Asset.Bank.Checking_Account", - description: "Main checking account", - openingBalance: 75000, - currentBalance: 20000, - currency: "USD", - taxType: "NONE", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - level: 1, - active: true, - status: "active", - header: true, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - categories: [ - { - id: "12345", - name: "Finance Charges Expense", - }, - ], - parentAccount: { - id: "12345", - name: "Bank Accounts", - displayId: "1-1100", - }, - subAccount: false, - subAccounts: [ - { - id: "12345", - accountSubName: "Petty Cash", - }, - ], - lastReconciliationDate: new RFCDate("2020-09-30"), - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLedgerAccountsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsdeleteglobals.md b/docs/models/operations/accountingledgeraccountsdeleteglobals.md index fbac08fe..aa881a71 100644 --- a/docs/models/operations/accountingledgeraccountsdeleteglobals.md +++ b/docs/models/operations/accountingledgeraccountsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLedgerAccountsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsDeleteGlobals = {}; +let value: AccountingLedgerAccountsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsdeleteresponse.md b/docs/models/operations/accountingledgeraccountsdeleteresponse.md index 9b1fd9fb..31eb58dc 100644 --- a/docs/models/operations/accountingledgeraccountsdeleteresponse.md +++ b/docs/models/operations/accountingledgeraccountsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingLedgerAccountsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteLedgerAccountResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "ledger-accounts", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLedgerAccountsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsoneglobals.md b/docs/models/operations/accountingledgeraccountsoneglobals.md index 580d84bd..8b0273cd 100644 --- a/docs/models/operations/accountingledgeraccountsoneglobals.md +++ b/docs/models/operations/accountingledgeraccountsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLedgerAccountsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsOneGlobals = {}; +let value: AccountingLedgerAccountsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsoneresponse.md b/docs/models/operations/accountingledgeraccountsoneresponse.md index 04c8a93b..f436d56b 100644 --- a/docs/models/operations/accountingledgeraccountsoneresponse.md +++ b/docs/models/operations/accountingledgeraccountsoneresponse.md @@ -4,116 +4,8 @@ ```typescript import { AccountingLedgerAccountsOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingLedgerAccountsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getLedgerAccountResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "ledger-accounts", - operation: "one", - data: { - id: "12345", - displayId: "1-12345", - code: "453", - classification: "asset", - type: "bank", - subType: "CHECKING_ACCOUNT", - name: "Bank account", - fullyQualifiedName: "Asset.Bank.Checking_Account", - description: "Main checking account", - openingBalance: 75000, - currentBalance: 20000, - currency: "USD", - taxType: "NONE", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - level: 1, - active: true, - status: "active", - header: true, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - categories: [ - { - id: "12345", - name: "Finance Charges Expense", - }, - ], - parentAccount: { - id: "12345", - name: "Bank Accounts", - displayId: "1-1100", - }, - subAccount: false, - subAccounts: [ - { - id: "12345", - accountSubName: "Petty Cash", - }, - ], - lastReconciliationDate: new RFCDate("2020-09-30"), - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLedgerAccountsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsupdateglobals.md b/docs/models/operations/accountingledgeraccountsupdateglobals.md index 5f5f230a..bb86ce32 100644 --- a/docs/models/operations/accountingledgeraccountsupdateglobals.md +++ b/docs/models/operations/accountingledgeraccountsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLedgerAccountsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsUpdateGlobals = {}; +let value: AccountingLedgerAccountsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingledgeraccountsupdaterequest.md b/docs/models/operations/accountingledgeraccountsupdaterequest.md index 96eebd41..3ca67617 100644 --- a/docs/models/operations/accountingledgeraccountsupdaterequest.md +++ b/docs/models/operations/accountingledgeraccountsupdaterequest.md @@ -4,77 +4,10 @@ ```typescript import { AccountingLedgerAccountsUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingLedgerAccountsUpdateRequest = { id: "", serviceId: "salesforce", - ledgerAccount: { - displayId: "1-12345", - code: "453", - classification: "asset", - type: "bank", - subType: "CHECKING_ACCOUNT", - name: "Bank account", - fullyQualifiedName: "Asset.Bank.Checking_Account", - description: "Main checking account", - openingBalance: 75000, - currentBalance: 20000, - currency: "USD", - taxType: "NONE", - taxRate: { - id: "123456", - rate: 10, - }, - level: 1, - active: true, - status: "active", - header: true, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - parentAccount: { - id: "12345", - name: "Bank Accounts", - displayId: "1-1100", - }, - subAccount: false, - lastReconciliationDate: new RFCDate("2020-09-30"), - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingledgeraccountsupdateresponse.md b/docs/models/operations/accountingledgeraccountsupdateresponse.md index 9f681b0b..a7b03526 100644 --- a/docs/models/operations/accountingledgeraccountsupdateresponse.md +++ b/docs/models/operations/accountingledgeraccountsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingLedgerAccountsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingLedgerAccountsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateLedgerAccountResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "ledger-accounts", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLedgerAccountsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsaddglobals.md b/docs/models/operations/accountinglocationsaddglobals.md index 5465ef41..1cd33836 100644 --- a/docs/models/operations/accountinglocationsaddglobals.md +++ b/docs/models/operations/accountinglocationsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLocationsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLocationsAddGlobals = {}; +let value: AccountingLocationsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsaddrequest.md b/docs/models/operations/accountinglocationsaddrequest.md index 4f2f7373..b8dfc477 100644 --- a/docs/models/operations/accountinglocationsaddrequest.md +++ b/docs/models/operations/accountinglocationsaddrequest.md @@ -7,61 +7,6 @@ import { AccountingLocationsAddRequest } from "@apideck/unify/models/operations" let value: AccountingLocationsAddRequest = { serviceId: "salesforce", - accountingLocation: { - parentId: "12345", - companyName: "SpaceX", - displayName: "11 UT - South Jordan", - status: "active", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - subsidiaries: [ - { - name: "SpaceX", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountinglocationsaddresponse.md b/docs/models/operations/accountinglocationsaddresponse.md index d92e9f61..773d06af 100644 --- a/docs/models/operations/accountinglocationsaddresponse.md +++ b/docs/models/operations/accountinglocationsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingLocationsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingLocationsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createAccountingLocationResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "locations", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLocationsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsallglobals.md b/docs/models/operations/accountinglocationsallglobals.md index e6f3fc05..e3998ff1 100644 --- a/docs/models/operations/accountinglocationsallglobals.md +++ b/docs/models/operations/accountinglocationsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLocationsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLocationsAllGlobals = {}; +let value: AccountingLocationsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsallresponse.md b/docs/models/operations/accountinglocationsallresponse.md index 9178d537..34fb7752 100644 --- a/docs/models/operations/accountinglocationsallresponse.md +++ b/docs/models/operations/accountinglocationsallresponse.md @@ -5,107 +5,7 @@ ```typescript import { AccountingLocationsAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingLocationsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAccountingLocationsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "subsidiaries", - operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - companyName: "SpaceX", - displayName: "11 UT - South Jordan", - status: "active", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - subsidiaries: [ - { - id: "12345", - name: "SpaceX", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLocationsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsdeleteglobals.md b/docs/models/operations/accountinglocationsdeleteglobals.md index 5a984555..e1dac44a 100644 --- a/docs/models/operations/accountinglocationsdeleteglobals.md +++ b/docs/models/operations/accountinglocationsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLocationsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLocationsDeleteGlobals = {}; +let value: AccountingLocationsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsdeleteresponse.md b/docs/models/operations/accountinglocationsdeleteresponse.md index 7cac45ef..448b4469 100644 --- a/docs/models/operations/accountinglocationsdeleteresponse.md +++ b/docs/models/operations/accountinglocationsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingLocationsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingLocationsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteAccountingLocationResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "locations", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLocationsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsoneglobals.md b/docs/models/operations/accountinglocationsoneglobals.md index 98e6b365..93de9264 100644 --- a/docs/models/operations/accountinglocationsoneglobals.md +++ b/docs/models/operations/accountinglocationsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLocationsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLocationsOneGlobals = {}; +let value: AccountingLocationsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsoneresponse.md b/docs/models/operations/accountinglocationsoneresponse.md index 717350e2..ea20009e 100644 --- a/docs/models/operations/accountinglocationsoneresponse.md +++ b/docs/models/operations/accountinglocationsoneresponse.md @@ -5,90 +5,7 @@ ```typescript import { AccountingLocationsOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingLocationsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getAccountingLocationResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "subsidiaries", - operation: "one", - data: { - id: "12345", - parentId: "12345", - companyName: "SpaceX", - displayName: "11 UT - South Jordan", - status: "active", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - subsidiaries: [ - { - id: "12345", - name: "SpaceX", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLocationsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsupdateglobals.md b/docs/models/operations/accountinglocationsupdateglobals.md index 1d6fd428..68007063 100644 --- a/docs/models/operations/accountinglocationsupdateglobals.md +++ b/docs/models/operations/accountinglocationsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingLocationsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingLocationsUpdateGlobals = {}; +let value: AccountingLocationsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountinglocationsupdaterequest.md b/docs/models/operations/accountinglocationsupdaterequest.md index 53c6fdb7..4c566f32 100644 --- a/docs/models/operations/accountinglocationsupdaterequest.md +++ b/docs/models/operations/accountinglocationsupdaterequest.md @@ -8,61 +8,6 @@ import { AccountingLocationsUpdateRequest } from "@apideck/unify/models/operatio let value: AccountingLocationsUpdateRequest = { id: "", serviceId: "salesforce", - accountingLocation: { - parentId: "12345", - companyName: "SpaceX", - displayName: "11 UT - South Jordan", - status: "active", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - subsidiaries: [ - { - name: "SpaceX", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountinglocationsupdateresponse.md b/docs/models/operations/accountinglocationsupdateresponse.md index 46e7cc4a..4a07056b 100644 --- a/docs/models/operations/accountinglocationsupdateresponse.md +++ b/docs/models/operations/accountinglocationsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingLocationsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingLocationsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateAccountingLocationResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "locations", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingLocationsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsaddglobals.md b/docs/models/operations/accountingpaymentsaddglobals.md index 28f78400..a08eaa85 100644 --- a/docs/models/operations/accountingpaymentsaddglobals.md +++ b/docs/models/operations/accountingpaymentsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPaymentsAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsAddGlobals = {}; +let value: AccountingPaymentsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsaddrequest.md b/docs/models/operations/accountingpaymentsaddrequest.md index 04192aa7..20fa209e 100644 --- a/docs/models/operations/accountingpaymentsaddrequest.md +++ b/docs/models/operations/accountingpaymentsaddrequest.md @@ -7,70 +7,6 @@ import { AccountingPaymentsAddRequest } from "@apideck/unify/models/operations"; let value: AccountingPaymentsAddRequest = { serviceId: "salesforce", - payment: { - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_receivable", - allocations: [ - { - id: "123456", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingpaymentsaddresponse.md b/docs/models/operations/accountingpaymentsaddresponse.md index 1f5e4943..c504fccf 100644 --- a/docs/models/operations/accountingpaymentsaddresponse.md +++ b/docs/models/operations/accountingpaymentsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingPaymentsAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createPaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPaymentsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsallglobals.md b/docs/models/operations/accountingpaymentsallglobals.md index 2687e3dc..105752f4 100644 --- a/docs/models/operations/accountingpaymentsallglobals.md +++ b/docs/models/operations/accountingpaymentsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPaymentsAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsAllGlobals = {}; +let value: AccountingPaymentsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsallrequest.md b/docs/models/operations/accountingpaymentsallrequest.md index 5e39769c..a66d19a0 100644 --- a/docs/models/operations/accountingpaymentsallrequest.md +++ b/docs/models/operations/accountingpaymentsallrequest.md @@ -13,6 +13,7 @@ let value: AccountingPaymentsAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingpaymentsallresponse.md b/docs/models/operations/accountingpaymentsallresponse.md index 0faba7de..f1ca129e 100644 --- a/docs/models/operations/accountingpaymentsallresponse.md +++ b/docs/models/operations/accountingpaymentsallresponse.md @@ -5,120 +5,7 @@ ```typescript import { AccountingPaymentsAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPaymentsResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_receivable", - allocations: [ - { - id: "123456", - code: "N091", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPaymentsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsdeleteglobals.md b/docs/models/operations/accountingpaymentsdeleteglobals.md index 858ac74d..ca037d3f 100644 --- a/docs/models/operations/accountingpaymentsdeleteglobals.md +++ b/docs/models/operations/accountingpaymentsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPaymentsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsDeleteGlobals = {}; +let value: AccountingPaymentsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsdeleteresponse.md b/docs/models/operations/accountingpaymentsdeleteresponse.md index d8146ed3..0f710413 100644 --- a/docs/models/operations/accountingpaymentsdeleteresponse.md +++ b/docs/models/operations/accountingpaymentsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingPaymentsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deletePaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPaymentsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsoneglobals.md b/docs/models/operations/accountingpaymentsoneglobals.md index 20f3f5a2..c1dfc9b7 100644 --- a/docs/models/operations/accountingpaymentsoneglobals.md +++ b/docs/models/operations/accountingpaymentsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPaymentsOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsOneGlobals = {}; +let value: AccountingPaymentsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsoneresponse.md b/docs/models/operations/accountingpaymentsoneresponse.md index d1219b01..2c74149c 100644 --- a/docs/models/operations/accountingpaymentsoneresponse.md +++ b/docs/models/operations/accountingpaymentsoneresponse.md @@ -5,103 +5,7 @@ ```typescript import { AccountingPaymentsOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - customer: { - id: "12345", - displayId: "CUST00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - email: "boring@boring.com", - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_receivable", - allocations: [ - { - id: "123456", - code: "N091", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPaymentsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsupdateglobals.md b/docs/models/operations/accountingpaymentsupdateglobals.md index 7bae76c8..1a3e4aac 100644 --- a/docs/models/operations/accountingpaymentsupdateglobals.md +++ b/docs/models/operations/accountingpaymentsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPaymentsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsUpdateGlobals = {}; +let value: AccountingPaymentsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpaymentsupdaterequest.md b/docs/models/operations/accountingpaymentsupdaterequest.md index 5521b3a3..3032a817 100644 --- a/docs/models/operations/accountingpaymentsupdaterequest.md +++ b/docs/models/operations/accountingpaymentsupdaterequest.md @@ -8,70 +8,6 @@ import { AccountingPaymentsUpdateRequest } from "@apideck/unify/models/operation let value: AccountingPaymentsUpdateRequest = { id: "", serviceId: "salesforce", - payment: { - currency: "USD", - currencyRate: 0.69, - totalAmount: 49.99, - reference: "123456", - paymentMethod: "cash", - paymentMethodReference: "123456", - paymentMethodId: "12345", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - transactionDate: new Date("2021-05-01T12:00:00.000Z"), - customer: { - id: "12345", - displayName: "Windsurf Shop", - email: "boring@boring.com", - }, - companyId: "12345", - reconciled: true, - status: "authorised", - type: "accounts_receivable", - allocations: [ - { - id: "123456", - amount: 49.99, - allocationId: "123456", - }, - ], - note: "Some notes about this transaction", - number: "123456", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - displayId: "123456", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingpaymentsupdateresponse.md b/docs/models/operations/accountingpaymentsupdateresponse.md index f287c90c..1fd2cbdf 100644 --- a/docs/models/operations/accountingpaymentsupdateresponse.md +++ b/docs/models/operations/accountingpaymentsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingPaymentsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingPaymentsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updatePaymentResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPaymentsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingprofitandlossoneglobals.md b/docs/models/operations/accountingprofitandlossoneglobals.md index cf473f14..b1db5704 100644 --- a/docs/models/operations/accountingprofitandlossoneglobals.md +++ b/docs/models/operations/accountingprofitandlossoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingProfitAndLossOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingProfitAndLossOneGlobals = {}; +let value: AccountingProfitAndLossOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingprofitandlossoneresponse.md b/docs/models/operations/accountingprofitandlossoneresponse.md index f7fd35f4..6988bed8 100644 --- a/docs/models/operations/accountingprofitandlossoneresponse.md +++ b/docs/models/operations/accountingprofitandlossoneresponse.md @@ -5,211 +5,7 @@ ```typescript import { AccountingProfitAndLossOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingProfitAndLossOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getProfitAndLossResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "ProfitAndLosses", - operation: "one", - data: { - id: "12345", - reportName: "ProfitAndLoss", - startDate: "2017-01-01", - endDate: "2017-01-31", - currency: "USD", - income: { - id: "123", - code: "123", - title: "Operating Income", - type: "Section", - total: 60000, - records: [ - { - "id": "137", - "title": "Sales of products", - "code": "137", - "type": "Section", - "total": 20000, - "records": [ - { - "id": "13701", - "title": "Sales of products", - "code": "13701", - "type": "Record", - "total": 20000, - }, - ], - }, - { - "id": "138", - "title": "Sales of services", - "code": "138", - "type": "Section", - "total": 40000, - "records": [ - { - "id": "789", - "code": "789", - "title": "Sales of External Services", - "type": "Record", - "total": 10000, - }, - { - "id": "101", - "code": "101", - "title": "Sales of Internal Services", - "type": "Record", - "total": 30000, - }, - ], - }, - ], - }, - costOfGoodsSold: { - id: "123", - code: "123", - title: "Cost of Goods Sold", - type: "Section", - total: 12000, - records: [ - { - "id": "123", - "code": "123", - "title": "COGS Sales", - "type": "Record", - "total": 12000, - }, - ], - }, - expenses: { - id: "123", - code: "123", - title: "Operating Expenses", - type: "Section", - total: 14000, - records: [ - { - "id": "137", - "title": "Maintenance", - "code": "137", - "type": "Record", - "total": 1000, - }, - { - "id": "138", - "title": "Rent", - "code": "138", - "type": "Record", - "total": 10000, - }, - { - "id": "789", - "code": "789", - "title": "Utilities", - "type": "Section", - "total": 3000, - "records": [ - { - "id": "101", - "code": "101", - "title": "Electricity", - "type": "Record", - "total": 2000, - }, - { - "id": "102", - "code": "102", - "title": "Telephone", - "type": "Record", - "total": 1000, - }, - ], - }, - ], - }, - otherIncome: { - id: "123", - code: "123", - title: "Other Income", - type: "Section", - total: 3000, - records: [ - { - "id": "123", - "code": "123", - "title": "Interest Income", - "type": "Record", - "total": 2000, - }, - { - "id": "123", - "code": "123", - "title": "Foreign Exchange Gain", - "type": "Record", - "total": 1000, - }, - ], - }, - otherExpenses: { - id: "123", - code: "123", - title: "Other Expenses", - type: "Section", - total: 1000, - records: [ - { - "id": "123", - "code": "123", - "title": "Unrealized Gain/Loss", - "type": "Record", - "total": 1000, - }, - ], - }, - uncategorizedAccounts: { - id: "123", - code: "123", - title: "Uncategorized Accounts", - type: "Section", - total: 0, - records: [ - { - "id": "123", - "code": "123", - "title": "Elimination Adjustments", - "type": "Record", - "total": 0, - }, - ], - }, - grossProfit: { - total: 10000, - }, - netOperatingIncome: { - total: 10000, - }, - netIncome: { - total: 10000, - }, - customer: "123", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingProfitAndLossOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersaddglobals.md b/docs/models/operations/accountingpurchaseordersaddglobals.md index fef5a749..68b17f9f 100644 --- a/docs/models/operations/accountingpurchaseordersaddglobals.md +++ b/docs/models/operations/accountingpurchaseordersaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPurchaseOrdersAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersAddGlobals = {}; +let value: AccountingPurchaseOrdersAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersaddrequest.md b/docs/models/operations/accountingpurchaseordersaddrequest.md index 48e8e49e..88dc7f63 100644 --- a/docs/models/operations/accountingpurchaseordersaddrequest.md +++ b/docs/models/operations/accountingpurchaseordersaddrequest.md @@ -4,187 +4,9 @@ ```typescript import { AccountingPurchaseOrdersAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingPurchaseOrdersAddRequest = { serviceId: "salesforce", - purchaseOrder: { - poNumber: "90000117", - reference: "123456", - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - subsidiaryId: "12345", - companyId: "12345", - status: "open", - issuedDate: new RFCDate("2020-09-30"), - deliveryDate: new RFCDate("2020-09-30"), - expectedArrivalDate: new RFCDate("2020-09-30"), - currency: "USD", - currencyRate: 0.69, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxInclusive: true, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - }, - ], - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - templateId: "123456", - discountPercentage: 5.5, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - accountingByRow: false, - dueDate: new RFCDate("2020-10-30"), - paymentMethod: "cash", - taxCode: "1234", - channel: "email", - memo: "Thank you for the partnership and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingpurchaseordersaddresponse.md b/docs/models/operations/accountingpurchaseordersaddresponse.md index 61aae549..1869401f 100644 --- a/docs/models/operations/accountingpurchaseordersaddresponse.md +++ b/docs/models/operations/accountingpurchaseordersaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingPurchaseOrdersAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createPurchaseOrderResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "PurchaseOrders", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPurchaseOrdersAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersallglobals.md b/docs/models/operations/accountingpurchaseordersallglobals.md index d2309e27..2635ffba 100644 --- a/docs/models/operations/accountingpurchaseordersallglobals.md +++ b/docs/models/operations/accountingpurchaseordersallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPurchaseOrdersAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersAllGlobals = {}; +let value: AccountingPurchaseOrdersAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersallrequest.md b/docs/models/operations/accountingpurchaseordersallrequest.md index ae74113d..4b6306a2 100644 --- a/docs/models/operations/accountingpurchaseordersallrequest.md +++ b/docs/models/operations/accountingpurchaseordersallrequest.md @@ -16,6 +16,7 @@ let value: AccountingPurchaseOrdersAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, }; ``` diff --git a/docs/models/operations/accountingpurchaseordersallresponse.md b/docs/models/operations/accountingpurchaseordersallresponse.md index f0ec3afc..ba898eb5 100644 --- a/docs/models/operations/accountingpurchaseordersallresponse.md +++ b/docs/models/operations/accountingpurchaseordersallresponse.md @@ -4,241 +4,8 @@ ```typescript import { AccountingPurchaseOrdersAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingPurchaseOrdersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPurchaseOrdersResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "PurchaseOrders", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - poNumber: "90000117", - reference: "123456", - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - subsidiaryId: "12345", - companyId: "12345", - status: "open", - issuedDate: new RFCDate("2020-09-30"), - deliveryDate: new RFCDate("2020-09-30"), - expectedArrivalDate: new RFCDate("2020-09-30"), - currency: "USD", - currencyRate: 0.69, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxInclusive: true, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - templateId: "123456", - discountPercentage: 5.5, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - accountingByRow: false, - dueDate: new RFCDate("2020-10-30"), - paymentMethod: "cash", - taxCode: "1234", - channel: "email", - memo: "Thank you for the partnership and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPurchaseOrdersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersdeleteglobals.md b/docs/models/operations/accountingpurchaseordersdeleteglobals.md index 35943d55..959354db 100644 --- a/docs/models/operations/accountingpurchaseordersdeleteglobals.md +++ b/docs/models/operations/accountingpurchaseordersdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPurchaseOrdersDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersDeleteGlobals = {}; +let value: AccountingPurchaseOrdersDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersdeleteresponse.md b/docs/models/operations/accountingpurchaseordersdeleteresponse.md index 76e9da35..d83fa624 100644 --- a/docs/models/operations/accountingpurchaseordersdeleteresponse.md +++ b/docs/models/operations/accountingpurchaseordersdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingPurchaseOrdersDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deletePurchaseOrderResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "PurchaseOrders", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPurchaseOrdersDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersoneglobals.md b/docs/models/operations/accountingpurchaseordersoneglobals.md index 31dc44d3..4f4d0ce1 100644 --- a/docs/models/operations/accountingpurchaseordersoneglobals.md +++ b/docs/models/operations/accountingpurchaseordersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPurchaseOrdersOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersOneGlobals = {}; +let value: AccountingPurchaseOrdersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersoneresponse.md b/docs/models/operations/accountingpurchaseordersoneresponse.md index f1b1d9d6..91a06dc5 100644 --- a/docs/models/operations/accountingpurchaseordersoneresponse.md +++ b/docs/models/operations/accountingpurchaseordersoneresponse.md @@ -4,224 +4,8 @@ ```typescript import { AccountingPurchaseOrdersOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AccountingPurchaseOrdersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPurchaseOrderResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "PurchaseOrders", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - poNumber: "90000117", - reference: "123456", - supplier: { - id: "12345", - displayId: "SUPP00101", - displayName: "Windsurf Shop", - companyName: "The boring company", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - subsidiaryId: "12345", - companyId: "12345", - status: "open", - issuedDate: new RFCDate("2020-09-30"), - deliveryDate: new RFCDate("2020-09-30"), - expectedArrivalDate: new RFCDate("2020-09-30"), - currency: "USD", - currencyRate: 0.69, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxInclusive: true, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ledgerAccount: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - templateId: "123456", - discountPercentage: 5.5, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - accountingByRow: false, - dueDate: new RFCDate("2020-10-30"), - paymentMethod: "cash", - taxCode: "1234", - channel: "email", - memo: "Thank you for the partnership and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPurchaseOrdersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersupdateglobals.md b/docs/models/operations/accountingpurchaseordersupdateglobals.md index a347b888..0a71ad59 100644 --- a/docs/models/operations/accountingpurchaseordersupdateglobals.md +++ b/docs/models/operations/accountingpurchaseordersupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingPurchaseOrdersUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersUpdateGlobals = {}; +let value: AccountingPurchaseOrdersUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingpurchaseordersupdaterequest.md b/docs/models/operations/accountingpurchaseordersupdaterequest.md index f9730561..f16e2a7c 100644 --- a/docs/models/operations/accountingpurchaseordersupdaterequest.md +++ b/docs/models/operations/accountingpurchaseordersupdaterequest.md @@ -4,188 +4,10 @@ ```typescript import { AccountingPurchaseOrdersUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AccountingPurchaseOrdersUpdateRequest = { id: "", serviceId: "salesforce", - purchaseOrder: { - poNumber: "90000117", - reference: "123456", - supplier: { - id: "12345", - displayName: "Windsurf Shop", - address: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - subsidiaryId: "12345", - companyId: "12345", - status: "open", - issuedDate: new RFCDate("2020-09-30"), - deliveryDate: new RFCDate("2020-09-30"), - expectedArrivalDate: new RFCDate("2020-09-30"), - currency: "USD", - currencyRate: 0.69, - subTotal: 27500, - totalTax: 2500, - total: 27500, - taxInclusive: true, - lineItems: [ - { - id: "12345", - rowId: "12345", - code: "120-C", - lineNumber: 1, - description: - "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", - type: "sales_item", - taxAmount: 27500, - totalAmount: 27500, - quantity: 1, - unitPrice: 27500.5, - unitOfMeasure: "pc.", - discountPercentage: 0.01, - discountAmount: 19.99, - locationId: "12345", - departmentId: "12345", - item: { - id: "12344", - code: "120-C", - name: "Model Y", - }, - taxRate: { - id: "123456", - rate: 10, - }, - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - }, - ], - shippingAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ledgerAccount: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - templateId: "123456", - discountPercentage: 5.5, - bankAccount: { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - accountingByRow: false, - dueDate: new RFCDate("2020-10-30"), - paymentMethod: "cash", - taxCode: "1234", - channel: "email", - memo: "Thank you for the partnership and have a great day!", - trackingCategories: [ - { - id: "123456", - name: "New York", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingpurchaseordersupdateresponse.md b/docs/models/operations/accountingpurchaseordersupdateresponse.md index f1dcd172..8eb4ee2b 100644 --- a/docs/models/operations/accountingpurchaseordersupdateresponse.md +++ b/docs/models/operations/accountingpurchaseordersupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingPurchaseOrdersUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingPurchaseOrdersUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updatePurchaseOrderResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "PurchaseOrders", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingPurchaseOrdersUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesaddglobals.md b/docs/models/operations/accountingsubsidiariesaddglobals.md index 7601e49a..8e954cfe 100644 --- a/docs/models/operations/accountingsubsidiariesaddglobals.md +++ b/docs/models/operations/accountingsubsidiariesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSubsidiariesAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesAddGlobals = {}; +let value: AccountingSubsidiariesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesaddrequest.md b/docs/models/operations/accountingsubsidiariesaddrequest.md index 9c7a6480..16b851c7 100644 --- a/docs/models/operations/accountingsubsidiariesaddrequest.md +++ b/docs/models/operations/accountingsubsidiariesaddrequest.md @@ -7,27 +7,6 @@ import { AccountingSubsidiariesAddRequest } from "@apideck/unify/models/operatio let value: AccountingSubsidiariesAddRequest = { serviceId: "salesforce", - subsidiary: { - parentId: "12345", - name: "SpaceX", - status: "active", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingsubsidiariesaddresponse.md b/docs/models/operations/accountingsubsidiariesaddresponse.md index fc804fca..c2a78b32 100644 --- a/docs/models/operations/accountingsubsidiariesaddresponse.md +++ b/docs/models/operations/accountingsubsidiariesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingSubsidiariesAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createSubsidiaryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "subsidiaries", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSubsidiariesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesallglobals.md b/docs/models/operations/accountingsubsidiariesallglobals.md index 13f25a44..ea1b176c 100644 --- a/docs/models/operations/accountingsubsidiariesallglobals.md +++ b/docs/models/operations/accountingsubsidiariesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSubsidiariesAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesAllGlobals = {}; +let value: AccountingSubsidiariesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesallresponse.md b/docs/models/operations/accountingsubsidiariesallresponse.md index 4d965317..36377685 100644 --- a/docs/models/operations/accountingsubsidiariesallresponse.md +++ b/docs/models/operations/accountingsubsidiariesallresponse.md @@ -5,72 +5,7 @@ ```typescript import { AccountingSubsidiariesAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getSubsidiariesResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "subsidiaries", - operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - name: "SpaceX", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSubsidiariesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesdeleteglobals.md b/docs/models/operations/accountingsubsidiariesdeleteglobals.md index 201665ff..b8321589 100644 --- a/docs/models/operations/accountingsubsidiariesdeleteglobals.md +++ b/docs/models/operations/accountingsubsidiariesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSubsidiariesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesDeleteGlobals = {}; +let value: AccountingSubsidiariesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesdeleteresponse.md b/docs/models/operations/accountingsubsidiariesdeleteresponse.md index 2d8e4be6..a07b4c9f 100644 --- a/docs/models/operations/accountingsubsidiariesdeleteresponse.md +++ b/docs/models/operations/accountingsubsidiariesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingSubsidiariesDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteSubsidiaryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "subsidiaries", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSubsidiariesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesoneglobals.md b/docs/models/operations/accountingsubsidiariesoneglobals.md index a8fe3c28..bb068975 100644 --- a/docs/models/operations/accountingsubsidiariesoneglobals.md +++ b/docs/models/operations/accountingsubsidiariesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSubsidiariesOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesOneGlobals = {}; +let value: AccountingSubsidiariesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesoneresponse.md b/docs/models/operations/accountingsubsidiariesoneresponse.md index 0faabd83..80d0f2b0 100644 --- a/docs/models/operations/accountingsubsidiariesoneresponse.md +++ b/docs/models/operations/accountingsubsidiariesoneresponse.md @@ -5,55 +5,7 @@ ```typescript import { AccountingSubsidiariesOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getSubsidiaryResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "subsidiaries", - operation: "one", - data: { - id: "12345", - parentId: "12345", - name: "SpaceX", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSubsidiariesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesupdateglobals.md b/docs/models/operations/accountingsubsidiariesupdateglobals.md index 19acdde9..496c405f 100644 --- a/docs/models/operations/accountingsubsidiariesupdateglobals.md +++ b/docs/models/operations/accountingsubsidiariesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSubsidiariesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesUpdateGlobals = {}; +let value: AccountingSubsidiariesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsubsidiariesupdaterequest.md b/docs/models/operations/accountingsubsidiariesupdaterequest.md index 097da344..03eaaa12 100644 --- a/docs/models/operations/accountingsubsidiariesupdaterequest.md +++ b/docs/models/operations/accountingsubsidiariesupdaterequest.md @@ -8,27 +8,6 @@ import { AccountingSubsidiariesUpdateRequest } from "@apideck/unify/models/opera let value: AccountingSubsidiariesUpdateRequest = { id: "", serviceId: "salesforce", - subsidiary: { - parentId: "12345", - name: "SpaceX", - status: "active", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingsubsidiariesupdateresponse.md b/docs/models/operations/accountingsubsidiariesupdateresponse.md index 1b60be69..72f14f9f 100644 --- a/docs/models/operations/accountingsubsidiariesupdateresponse.md +++ b/docs/models/operations/accountingsubsidiariesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingSubsidiariesUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingSubsidiariesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateSubsidiaryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "subsidiaries", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSubsidiariesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersaddglobals.md b/docs/models/operations/accountingsuppliersaddglobals.md index f62b0762..4b8f42f2 100644 --- a/docs/models/operations/accountingsuppliersaddglobals.md +++ b/docs/models/operations/accountingsuppliersaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSuppliersAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersAddGlobals = {}; +let value: AccountingSuppliersAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersaddrequest.md b/docs/models/operations/accountingsuppliersaddrequest.md index f89be074..e9b692ab 100644 --- a/docs/models/operations/accountingsuppliersaddrequest.md +++ b/docs/models/operations/accountingsuppliersaddrequest.md @@ -7,125 +7,6 @@ import { AccountingSuppliersAddRequest } from "@apideck/unify/models/operations" let value: AccountingSuppliersAddRequest = { serviceId: "salesforce", - supplier: { - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this supplier", - taxRate: { - id: "123456", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - subsidiaryId: "12345", - }, }; ``` diff --git a/docs/models/operations/accountingsuppliersaddresponse.md b/docs/models/operations/accountingsuppliersaddresponse.md index 6977e7ab..1f388fe1 100644 --- a/docs/models/operations/accountingsuppliersaddresponse.md +++ b/docs/models/operations/accountingsuppliersaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingSuppliersAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createSupplierResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "payments", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSuppliersAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersallglobals.md b/docs/models/operations/accountingsuppliersallglobals.md index de4d7cbe..45431da3 100644 --- a/docs/models/operations/accountingsuppliersallglobals.md +++ b/docs/models/operations/accountingsuppliersallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSuppliersAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersAllGlobals = {}; +let value: AccountingSuppliersAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersallrequest.md b/docs/models/operations/accountingsuppliersallrequest.md index 01d87051..664c731b 100644 --- a/docs/models/operations/accountingsuppliersallrequest.md +++ b/docs/models/operations/accountingsuppliersallrequest.md @@ -17,6 +17,7 @@ let value: AccountingSuppliersAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/accountingsuppliersallresponse.md b/docs/models/operations/accountingsuppliersallresponse.md index 55b5fd53..81d7e79f 100644 --- a/docs/models/operations/accountingsuppliersallresponse.md +++ b/docs/models/operations/accountingsuppliersallresponse.md @@ -5,174 +5,7 @@ ```typescript import { AccountingSuppliersAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getSuppliersResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "suppliers", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this supplier", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - subsidiaryId: "12345", - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSuppliersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersdeleteglobals.md b/docs/models/operations/accountingsuppliersdeleteglobals.md index 5dd0353b..31766a44 100644 --- a/docs/models/operations/accountingsuppliersdeleteglobals.md +++ b/docs/models/operations/accountingsuppliersdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSuppliersDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersDeleteGlobals = {}; +let value: AccountingSuppliersDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersdeleteresponse.md b/docs/models/operations/accountingsuppliersdeleteresponse.md index 6e8eed79..98f5eb89 100644 --- a/docs/models/operations/accountingsuppliersdeleteresponse.md +++ b/docs/models/operations/accountingsuppliersdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingSuppliersDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteSupplierResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "suppliers", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSuppliersDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersoneglobals.md b/docs/models/operations/accountingsuppliersoneglobals.md index c2dfe245..c07bee86 100644 --- a/docs/models/operations/accountingsuppliersoneglobals.md +++ b/docs/models/operations/accountingsuppliersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSuppliersOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersOneGlobals = {}; +let value: AccountingSuppliersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersoneresponse.md b/docs/models/operations/accountingsuppliersoneresponse.md index c4f4fc3e..1ca0ed62 100644 --- a/docs/models/operations/accountingsuppliersoneresponse.md +++ b/docs/models/operations/accountingsuppliersoneresponse.md @@ -5,157 +5,7 @@ ```typescript import { AccountingSuppliersOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getSupplierResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "suppliers", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this supplier", - taxRate: { - id: "123456", - code: "N-T", - name: "GST on Purchases", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - name: "Bank account", - nominalCode: "N091", - code: "453", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - subsidiaryId: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSuppliersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersupdateglobals.md b/docs/models/operations/accountingsuppliersupdateglobals.md index 0e62b982..ab814a48 100644 --- a/docs/models/operations/accountingsuppliersupdateglobals.md +++ b/docs/models/operations/accountingsuppliersupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingSuppliersUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersUpdateGlobals = {}; +let value: AccountingSuppliersUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingsuppliersupdaterequest.md b/docs/models/operations/accountingsuppliersupdaterequest.md index ba987654..40a19000 100644 --- a/docs/models/operations/accountingsuppliersupdaterequest.md +++ b/docs/models/operations/accountingsuppliersupdaterequest.md @@ -8,125 +8,6 @@ import { AccountingSuppliersUpdateRequest } from "@apideck/unify/models/operatio let value: AccountingSuppliersUpdateRequest = { id: "", serviceId: "salesforce", - supplier: { - displayId: "EMP00101", - displayName: "Windsurf Shop", - companyName: "SpaceX", - companyId: "12345", - title: "CEO", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - suffix: "Jr.", - individual: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - notes: "Some notes about this supplier", - taxRate: { - id: "123456", - rate: 10, - }, - taxNumber: "US123945459", - currency: "USD", - account: { - id: "123456", - nominalCode: "N091", - code: "453", - }, - status: "active", - paymentMethod: "cash", - channel: "email", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - subsidiaryId: "12345", - }, }; ``` diff --git a/docs/models/operations/accountingsuppliersupdateresponse.md b/docs/models/operations/accountingsuppliersupdateresponse.md index e88522d8..ad826faf 100644 --- a/docs/models/operations/accountingsuppliersupdateresponse.md +++ b/docs/models/operations/accountingsuppliersupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingSuppliersUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingSuppliersUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateSupplierResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "suppliers", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingSuppliersUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesaddglobals.md b/docs/models/operations/accountingtaxratesaddglobals.md index 460d8869..66e4f62a 100644 --- a/docs/models/operations/accountingtaxratesaddglobals.md +++ b/docs/models/operations/accountingtaxratesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTaxRatesAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesAddGlobals = {}; +let value: AccountingTaxRatesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesaddrequest.md b/docs/models/operations/accountingtaxratesaddrequest.md index d23ca02d..a8face94 100644 --- a/docs/models/operations/accountingtaxratesaddrequest.md +++ b/docs/models/operations/accountingtaxratesaddrequest.md @@ -7,52 +7,6 @@ import { AccountingTaxRatesAddRequest } from "@apideck/unify/models/operations"; let value: AccountingTaxRatesAddRequest = { serviceId: "salesforce", - taxRate: { - id: "1234", - name: "GST on Purchases", - code: "ABN", - description: "Reduced rate GST Purchases", - effectiveTaxRate: 10, - totalTaxRate: 10, - taxPayableAccountId: "123456", - taxRemittedAccountId: "123456", - components: [ - { - id: "10", - name: "GST", - rate: 10, - compound: true, - }, - ], - type: "NONE", - reportTaxType: "NONE", - originalTaxRateId: "12345", - status: "active", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingtaxratesaddresponse.md b/docs/models/operations/accountingtaxratesaddresponse.md index f1c893e0..cb354396 100644 --- a/docs/models/operations/accountingtaxratesaddresponse.md +++ b/docs/models/operations/accountingtaxratesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingTaxRatesAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createTaxRateResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "tax-rates", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTaxRatesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesallglobals.md b/docs/models/operations/accountingtaxratesallglobals.md index b4c226b3..0429acb3 100644 --- a/docs/models/operations/accountingtaxratesallglobals.md +++ b/docs/models/operations/accountingtaxratesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTaxRatesAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesAllGlobals = {}; +let value: AccountingTaxRatesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesallresponse.md b/docs/models/operations/accountingtaxratesallresponse.md index 33a14da5..511c8d00 100644 --- a/docs/models/operations/accountingtaxratesallresponse.md +++ b/docs/models/operations/accountingtaxratesallresponse.md @@ -5,96 +5,7 @@ ```typescript import { AccountingTaxRatesAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTaxRatesResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "tax-rates", - operation: "all", - data: [ - { - id: "1234", - name: "GST on Purchases", - code: "ABN", - description: "Reduced rate GST Purchases", - effectiveTaxRate: 10, - totalTaxRate: 10, - taxPayableAccountId: "123456", - taxRemittedAccountId: "123456", - components: [ - { - id: "10", - name: "GST", - rate: 10, - compound: true, - }, - ], - type: "NONE", - reportTaxType: "NONE", - originalTaxRateId: "12345", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTaxRatesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesdeleteglobals.md b/docs/models/operations/accountingtaxratesdeleteglobals.md index 80a5a625..c6cb1f84 100644 --- a/docs/models/operations/accountingtaxratesdeleteglobals.md +++ b/docs/models/operations/accountingtaxratesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTaxRatesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesDeleteGlobals = {}; +let value: AccountingTaxRatesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesdeleteresponse.md b/docs/models/operations/accountingtaxratesdeleteresponse.md index e2ca8d02..5189021a 100644 --- a/docs/models/operations/accountingtaxratesdeleteresponse.md +++ b/docs/models/operations/accountingtaxratesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingTaxRatesDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteTaxRateResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "tax-rates", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTaxRatesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesoneglobals.md b/docs/models/operations/accountingtaxratesoneglobals.md index aa4d2e51..b80a0432 100644 --- a/docs/models/operations/accountingtaxratesoneglobals.md +++ b/docs/models/operations/accountingtaxratesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTaxRatesOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesOneGlobals = {}; +let value: AccountingTaxRatesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesoneresponse.md b/docs/models/operations/accountingtaxratesoneresponse.md index eec391a5..15454be8 100644 --- a/docs/models/operations/accountingtaxratesoneresponse.md +++ b/docs/models/operations/accountingtaxratesoneresponse.md @@ -5,79 +5,7 @@ ```typescript import { AccountingTaxRatesOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTaxRateResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "tax-rates", - operation: "one", - data: { - id: "1234", - name: "GST on Purchases", - code: "ABN", - description: "Reduced rate GST Purchases", - effectiveTaxRate: 10, - totalTaxRate: 10, - taxPayableAccountId: "123456", - taxRemittedAccountId: "123456", - components: [ - { - id: "10", - name: "GST", - rate: 10, - compound: true, - }, - ], - type: "NONE", - reportTaxType: "NONE", - originalTaxRateId: "12345", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTaxRatesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesupdateglobals.md b/docs/models/operations/accountingtaxratesupdateglobals.md index e306e91b..ec588d66 100644 --- a/docs/models/operations/accountingtaxratesupdateglobals.md +++ b/docs/models/operations/accountingtaxratesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTaxRatesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesUpdateGlobals = {}; +let value: AccountingTaxRatesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtaxratesupdaterequest.md b/docs/models/operations/accountingtaxratesupdaterequest.md index e632dc23..b94033e8 100644 --- a/docs/models/operations/accountingtaxratesupdaterequest.md +++ b/docs/models/operations/accountingtaxratesupdaterequest.md @@ -8,52 +8,6 @@ import { AccountingTaxRatesUpdateRequest } from "@apideck/unify/models/operation let value: AccountingTaxRatesUpdateRequest = { id: "", serviceId: "salesforce", - taxRate: { - id: "1234", - name: "GST on Purchases", - code: "ABN", - description: "Reduced rate GST Purchases", - effectiveTaxRate: 10, - totalTaxRate: 10, - taxPayableAccountId: "123456", - taxRemittedAccountId: "123456", - components: [ - { - id: "10", - name: "GST", - rate: 10, - compound: true, - }, - ], - type: "NONE", - reportTaxType: "NONE", - originalTaxRateId: "12345", - status: "active", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingtaxratesupdateresponse.md b/docs/models/operations/accountingtaxratesupdateresponse.md index b9ec1732..f181a119 100644 --- a/docs/models/operations/accountingtaxratesupdateresponse.md +++ b/docs/models/operations/accountingtaxratesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingTaxRatesUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingTaxRatesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateTaxRateResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "tax-rates", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTaxRatesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesaddglobals.md b/docs/models/operations/accountingtrackingcategoriesaddglobals.md index 346bbcd1..31e61056 100644 --- a/docs/models/operations/accountingtrackingcategoriesaddglobals.md +++ b/docs/models/operations/accountingtrackingcategoriesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTrackingCategoriesAddGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesAddGlobals = {}; +let value: AccountingTrackingCategoriesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesaddrequest.md b/docs/models/operations/accountingtrackingcategoriesaddrequest.md index b68a585b..03150b4e 100644 --- a/docs/models/operations/accountingtrackingcategoriesaddrequest.md +++ b/docs/models/operations/accountingtrackingcategoriesaddrequest.md @@ -7,28 +7,6 @@ import { AccountingTrackingCategoriesAddRequest } from "@apideck/unify/models/op let value: AccountingTrackingCategoriesAddRequest = { serviceId: "salesforce", - trackingCategory: { - parentId: "12345", - name: "Department", - code: "100", - status: "active", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingtrackingcategoriesaddresponse.md b/docs/models/operations/accountingtrackingcategoriesaddresponse.md index 7e1f7951..39d62c94 100644 --- a/docs/models/operations/accountingtrackingcategoriesaddresponse.md +++ b/docs/models/operations/accountingtrackingcategoriesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingTrackingCategoriesAddResponse } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createTrackingCategoryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "tracking-categories", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTrackingCategoriesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesallglobals.md b/docs/models/operations/accountingtrackingcategoriesallglobals.md index d4f49c67..ecd244e9 100644 --- a/docs/models/operations/accountingtrackingcategoriesallglobals.md +++ b/docs/models/operations/accountingtrackingcategoriesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTrackingCategoriesAllGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesAllGlobals = {}; +let value: AccountingTrackingCategoriesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesallresponse.md b/docs/models/operations/accountingtrackingcategoriesallresponse.md index 393ff743..64164012 100644 --- a/docs/models/operations/accountingtrackingcategoriesallresponse.md +++ b/docs/models/operations/accountingtrackingcategoriesallresponse.md @@ -5,73 +5,7 @@ ```typescript import { AccountingTrackingCategoriesAllResponse } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTrackingCategoriesResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "tracking-categories", - operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - name: "Department", - code: "100", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTrackingCategoriesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesdeleteglobals.md b/docs/models/operations/accountingtrackingcategoriesdeleteglobals.md index aba1c46b..30d3f9fa 100644 --- a/docs/models/operations/accountingtrackingcategoriesdeleteglobals.md +++ b/docs/models/operations/accountingtrackingcategoriesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTrackingCategoriesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesDeleteGlobals = {}; +let value: AccountingTrackingCategoriesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesdeleteresponse.md b/docs/models/operations/accountingtrackingcategoriesdeleteresponse.md index ea08f985..7d7ececf 100644 --- a/docs/models/operations/accountingtrackingcategoriesdeleteresponse.md +++ b/docs/models/operations/accountingtrackingcategoriesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingTrackingCategoriesDeleteResponse } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteTrackingCategoryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "tracking-categories", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTrackingCategoriesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesoneglobals.md b/docs/models/operations/accountingtrackingcategoriesoneglobals.md index 35f15b40..d6898465 100644 --- a/docs/models/operations/accountingtrackingcategoriesoneglobals.md +++ b/docs/models/operations/accountingtrackingcategoriesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTrackingCategoriesOneGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesOneGlobals = {}; +let value: AccountingTrackingCategoriesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesoneresponse.md b/docs/models/operations/accountingtrackingcategoriesoneresponse.md index 8a0309ae..51e1584d 100644 --- a/docs/models/operations/accountingtrackingcategoriesoneresponse.md +++ b/docs/models/operations/accountingtrackingcategoriesoneresponse.md @@ -5,56 +5,7 @@ ```typescript import { AccountingTrackingCategoriesOneResponse } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTrackingCategoryResponse: { - statusCode: 200, - status: "OK", - service: "xero", - resource: "tracking-categories", - operation: "one", - data: { - id: "12345", - parentId: "12345", - name: "Department", - code: "100", - status: "active", - rowVersion: "1-12345", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTrackingCategoriesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesupdateglobals.md b/docs/models/operations/accountingtrackingcategoriesupdateglobals.md index 195b6e42..a407c37c 100644 --- a/docs/models/operations/accountingtrackingcategoriesupdateglobals.md +++ b/docs/models/operations/accountingtrackingcategoriesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AccountingTrackingCategoriesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesUpdateGlobals = {}; +let value: AccountingTrackingCategoriesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/accountingtrackingcategoriesupdaterequest.md b/docs/models/operations/accountingtrackingcategoriesupdaterequest.md index fe2d11ad..7923dc4a 100644 --- a/docs/models/operations/accountingtrackingcategoriesupdaterequest.md +++ b/docs/models/operations/accountingtrackingcategoriesupdaterequest.md @@ -8,28 +8,6 @@ import { AccountingTrackingCategoriesUpdateRequest } from "@apideck/unify/models let value: AccountingTrackingCategoriesUpdateRequest = { id: "", serviceId: "salesforce", - trackingCategory: { - parentId: "12345", - name: "Department", - code: "100", - status: "active", - rowVersion: "1-12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/accountingtrackingcategoriesupdateresponse.md b/docs/models/operations/accountingtrackingcategoriesupdateresponse.md index f3c6ce9a..b5db8f2d 100644 --- a/docs/models/operations/accountingtrackingcategoriesupdateresponse.md +++ b/docs/models/operations/accountingtrackingcategoriesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AccountingTrackingCategoriesUpdateResponse } from "@apideck/unify/models/operations"; -let value: AccountingTrackingCategoriesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateTrackingCategoryResponse: { - statusCode: 200, - status: "OK", - service: "quickbooks", - resource: "tracking-categories", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AccountingTrackingCategoriesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsaddglobals.md b/docs/models/operations/atsapplicantsaddglobals.md index 5c85374e..a2ae11a7 100644 --- a/docs/models/operations/atsapplicantsaddglobals.md +++ b/docs/models/operations/atsapplicantsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicantsAddGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicantsAddGlobals = {}; +let value: AtsApplicantsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsaddrequest.md b/docs/models/operations/atsapplicantsaddrequest.md index 98363a1e..e10f9d8f 100644 --- a/docs/models/operations/atsapplicantsaddrequest.md +++ b/docs/models/operations/atsapplicantsaddrequest.md @@ -4,132 +4,9 @@ ```typescript import { AtsApplicantsAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AtsApplicantsAddRequest = { serviceId: "salesforce", - applicant: { - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - coverLetter: - "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", - photoUrl: "https://unavatar.io/elon-musk", - headline: "PepsiCo, Inc, Central Perk", - title: "CEO", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - stageId: "12345", - recruiterId: "12345", - coordinatorId: "12345", - applicationIds: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - applications: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - sources: [ - "Job site", - ], - confidential: false, - anonymized: true, - tags: [ - "New", - ], - archived: false, - ownerId: "54321", - recordUrl: "https://app.intercom.io/contacts/12345", - deleted: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/atsapplicantsaddresponse.md b/docs/models/operations/atsapplicantsaddresponse.md index 1764f827..8fe27baf 100644 --- a/docs/models/operations/atsapplicantsaddresponse.md +++ b/docs/models/operations/atsapplicantsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AtsApplicantsAddResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicantsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createApplicantResponse: { - statusCode: 200, - status: "OK", - service: "lever", - resource: "Applicants", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicantsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsallglobals.md b/docs/models/operations/atsapplicantsallglobals.md index 06f834a6..8560fbba 100644 --- a/docs/models/operations/atsapplicantsallglobals.md +++ b/docs/models/operations/atsapplicantsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicantsAllGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicantsAllGlobals = {}; +let value: AtsApplicantsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsallresponse.md b/docs/models/operations/atsapplicantsallresponse.md index 48f26b37..5ffc1ec8 100644 --- a/docs/models/operations/atsapplicantsallresponse.md +++ b/docs/models/operations/atsapplicantsallresponse.md @@ -4,184 +4,8 @@ ```typescript import { AtsApplicantsAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AtsApplicantsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApplicantsResponse: { - statusCode: 200, - status: "OK", - service: "lever", - resource: "Applicants", - operation: "all", - data: [ - { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - coverLetter: - "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", - jobUrl: "https://democompany.recruitee.com/o/example-talent-pool", - photoUrl: "https://unavatar.io/elon-musk", - headline: "PepsiCo, Inc, Central Perk", - title: "CEO", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - stageId: "12345", - recruiterId: "12345", - coordinatorId: "12345", - applicationIds: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - applications: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - sources: [ - "Job site", - ], - sourceId: "12345", - confidential: false, - anonymized: true, - tags: [ - "New", - ], - archived: false, - lastInteractionAt: new Date("2020-09-30T07:43:32.000Z"), - ownerId: "54321", - sourcedBy: "12345", - cvUrl: - "https://recruitee-main.s3.eu-central-1.amazonaws.com/candidates/36615291/pdf_cv_38swhu4w42k1.pdf?response-content-disposition=inline&response-content-type=application%2Fpdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQYHB7CA5RLR4Y3ON%2F20220514%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20220514T235654Z&X-Amz-Expires=36000&X-Amz-SignedHeaders=host&X-Amz-Signature=72c0621f5976db75b54de487eb821a8e73480d7f2a6a4a9713ab997944b0561f", - recordUrl: "https://app.intercom.io/contacts/12345", - rejectedAt: new Date("2020-09-30T07:43:32.000Z"), - deleted: true, - deletedBy: "12345", - deletedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicantsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsdeleteglobals.md b/docs/models/operations/atsapplicantsdeleteglobals.md index 3c6839ee..b80dfa6b 100644 --- a/docs/models/operations/atsapplicantsdeleteglobals.md +++ b/docs/models/operations/atsapplicantsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicantsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicantsDeleteGlobals = {}; +let value: AtsApplicantsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsdeleteresponse.md b/docs/models/operations/atsapplicantsdeleteresponse.md index 36a398ec..d0c5fade 100644 --- a/docs/models/operations/atsapplicantsdeleteresponse.md +++ b/docs/models/operations/atsapplicantsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AtsApplicantsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicantsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteApplicantResponse: { - statusCode: 200, - status: "OK", - service: "lever", - resource: "Applicants", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicantsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsoneglobals.md b/docs/models/operations/atsapplicantsoneglobals.md index 43c52cfb..e01ceb1b 100644 --- a/docs/models/operations/atsapplicantsoneglobals.md +++ b/docs/models/operations/atsapplicantsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicantsOneGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicantsOneGlobals = {}; +let value: AtsApplicantsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsoneresponse.md b/docs/models/operations/atsapplicantsoneresponse.md index b7548a95..c3270498 100644 --- a/docs/models/operations/atsapplicantsoneresponse.md +++ b/docs/models/operations/atsapplicantsoneresponse.md @@ -4,167 +4,8 @@ ```typescript import { AtsApplicantsOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AtsApplicantsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApplicantResponse: { - statusCode: 200, - status: "OK", - service: "lever", - resource: "Applicants", - operation: "one", - data: { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - coverLetter: - "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", - jobUrl: "https://democompany.recruitee.com/o/example-talent-pool", - photoUrl: "https://unavatar.io/elon-musk", - headline: "PepsiCo, Inc, Central Perk", - title: "CEO", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - stageId: "12345", - recruiterId: "12345", - coordinatorId: "12345", - applicationIds: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - applications: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - sources: [ - "Job site", - ], - sourceId: "12345", - confidential: false, - anonymized: true, - tags: [ - "New", - ], - archived: false, - lastInteractionAt: new Date("2020-09-30T07:43:32.000Z"), - ownerId: "54321", - sourcedBy: "12345", - cvUrl: - "https://recruitee-main.s3.eu-central-1.amazonaws.com/candidates/36615291/pdf_cv_38swhu4w42k1.pdf?response-content-disposition=inline&response-content-type=application%2Fpdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQYHB7CA5RLR4Y3ON%2F20220514%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20220514T235654Z&X-Amz-Expires=36000&X-Amz-SignedHeaders=host&X-Amz-Signature=72c0621f5976db75b54de487eb821a8e73480d7f2a6a4a9713ab997944b0561f", - recordUrl: "https://app.intercom.io/contacts/12345", - rejectedAt: new Date("2020-09-30T07:43:32.000Z"), - deleted: true, - deletedBy: "12345", - deletedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicantsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsupdateglobals.md b/docs/models/operations/atsapplicantsupdateglobals.md index bf2b5118..2b5c94ce 100644 --- a/docs/models/operations/atsapplicantsupdateglobals.md +++ b/docs/models/operations/atsapplicantsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicantsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicantsUpdateGlobals = {}; +let value: AtsApplicantsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicantsupdaterequest.md b/docs/models/operations/atsapplicantsupdaterequest.md index 251a23fc..1b51f99e 100644 --- a/docs/models/operations/atsapplicantsupdaterequest.md +++ b/docs/models/operations/atsapplicantsupdaterequest.md @@ -4,133 +4,10 @@ ```typescript import { AtsApplicantsUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: AtsApplicantsUpdateRequest = { id: "", serviceId: "salesforce", - applicant: { - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - coverLetter: - "I submit this application to express my sincere interest in the API developer position. In the previous role, I was responsible for leadership and ...", - photoUrl: "https://unavatar.io/elon-musk", - headline: "PepsiCo, Inc, Central Perk", - title: "CEO", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - stageId: "12345", - recruiterId: "12345", - coordinatorId: "12345", - applicationIds: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - applications: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - sources: [ - "Job site", - ], - confidential: false, - anonymized: true, - tags: [ - "New", - ], - archived: false, - ownerId: "54321", - recordUrl: "https://app.intercom.io/contacts/12345", - deleted: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/atsapplicantsupdateresponse.md b/docs/models/operations/atsapplicantsupdateresponse.md index a13ce360..56d44eee 100644 --- a/docs/models/operations/atsapplicantsupdateresponse.md +++ b/docs/models/operations/atsapplicantsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AtsApplicantsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicantsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateApplicantResponse: { - statusCode: 200, - status: "OK", - service: "lever", - resource: "Applicants", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicantsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsaddglobals.md b/docs/models/operations/atsapplicationsaddglobals.md index 08022f7a..2c032bfd 100644 --- a/docs/models/operations/atsapplicationsaddglobals.md +++ b/docs/models/operations/atsapplicationsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicationsAddGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicationsAddGlobals = {}; +let value: AtsApplicationsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsaddrequest.md b/docs/models/operations/atsapplicationsaddrequest.md index e7c73fc5..0a736864 100644 --- a/docs/models/operations/atsapplicationsaddrequest.md +++ b/docs/models/operations/atsapplicationsaddrequest.md @@ -7,30 +7,6 @@ import { AtsApplicationsAddRequest } from "@apideck/unify/models/operations"; let value: AtsApplicationsAddRequest = { serviceId: "salesforce", - application: { - applicantId: "12345", - jobId: "12345", - status: "open", - stage: { - id: "12345", - name: "12345", - }, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/atsapplicationsaddresponse.md b/docs/models/operations/atsapplicationsaddresponse.md index 466a364b..48b1f6e2 100644 --- a/docs/models/operations/atsapplicationsaddresponse.md +++ b/docs/models/operations/atsapplicationsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { AtsApplicationsAddResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicationsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createApplicationResponse: { - statusCode: 200, - status: "OK", - service: "sap-successfactors", - resource: "Applications", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicationsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsallglobals.md b/docs/models/operations/atsapplicationsallglobals.md index d489df15..2f09a79b 100644 --- a/docs/models/operations/atsapplicationsallglobals.md +++ b/docs/models/operations/atsapplicationsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicationsAllGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicationsAllGlobals = {}; +let value: AtsApplicationsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsallresponse.md b/docs/models/operations/atsapplicationsallresponse.md index cbe314c7..e21e9697 100644 --- a/docs/models/operations/atsapplicationsallresponse.md +++ b/docs/models/operations/atsapplicationsallresponse.md @@ -5,75 +5,7 @@ ```typescript import { AtsApplicationsAllResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicationsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApplicationsResponse: { - statusCode: 200, - status: "OK", - service: "sap-successfactors", - resource: "Applications", - operation: "all", - data: [ - { - id: "12345", - applicantId: "12345", - jobId: "12345", - status: "open", - stage: { - id: "12345", - name: "12345", - }, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicationsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsdeleteglobals.md b/docs/models/operations/atsapplicationsdeleteglobals.md index 3ecda15f..fca01cc4 100644 --- a/docs/models/operations/atsapplicationsdeleteglobals.md +++ b/docs/models/operations/atsapplicationsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicationsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicationsDeleteGlobals = {}; +let value: AtsApplicationsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsdeleteresponse.md b/docs/models/operations/atsapplicationsdeleteresponse.md index d6538d63..75e91486 100644 --- a/docs/models/operations/atsapplicationsdeleteresponse.md +++ b/docs/models/operations/atsapplicationsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { AtsApplicationsDeleteResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicationsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteApplicationResponse: { - statusCode: 200, - status: "OK", - service: "sap-successfactors", - resource: "Applications", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicationsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsoneglobals.md b/docs/models/operations/atsapplicationsoneglobals.md index bd05ef5b..9dcc7708 100644 --- a/docs/models/operations/atsapplicationsoneglobals.md +++ b/docs/models/operations/atsapplicationsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicationsOneGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicationsOneGlobals = {}; +let value: AtsApplicationsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsoneresponse.md b/docs/models/operations/atsapplicationsoneresponse.md index 3cc38a68..4d027e22 100644 --- a/docs/models/operations/atsapplicationsoneresponse.md +++ b/docs/models/operations/atsapplicationsoneresponse.md @@ -5,58 +5,7 @@ ```typescript import { AtsApplicationsOneResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicationsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApplicationResponse: { - statusCode: 200, - status: "OK", - service: "sap-successfactors", - resource: "Applications", - operation: "one", - data: { - id: "12345", - applicantId: "12345", - jobId: "12345", - status: "open", - stage: { - id: "12345", - name: "12345", - }, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicationsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsupdateglobals.md b/docs/models/operations/atsapplicationsupdateglobals.md index 6ec6a61b..32170b73 100644 --- a/docs/models/operations/atsapplicationsupdateglobals.md +++ b/docs/models/operations/atsapplicationsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsApplicationsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: AtsApplicationsUpdateGlobals = {}; +let value: AtsApplicationsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsapplicationsupdaterequest.md b/docs/models/operations/atsapplicationsupdaterequest.md index 17518682..adf87d1f 100644 --- a/docs/models/operations/atsapplicationsupdaterequest.md +++ b/docs/models/operations/atsapplicationsupdaterequest.md @@ -8,30 +8,6 @@ import { AtsApplicationsUpdateRequest } from "@apideck/unify/models/operations"; let value: AtsApplicationsUpdateRequest = { id: "", serviceId: "salesforce", - application: { - applicantId: "12345", - jobId: "12345", - status: "open", - stage: { - id: "12345", - name: "12345", - }, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/atsapplicationsupdateresponse.md b/docs/models/operations/atsapplicationsupdateresponse.md index e2f4e8a7..4128e6bc 100644 --- a/docs/models/operations/atsapplicationsupdateresponse.md +++ b/docs/models/operations/atsapplicationsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { AtsApplicationsUpdateResponse } from "@apideck/unify/models/operations"; -let value: AtsApplicationsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateApplicationResponse: { - statusCode: 200, - status: "OK", - service: "sap-successfactors", - resource: "Applications", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsApplicationsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsjobsallglobals.md b/docs/models/operations/atsjobsallglobals.md index ad8a49eb..ac382bdb 100644 --- a/docs/models/operations/atsjobsallglobals.md +++ b/docs/models/operations/atsjobsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsJobsAllGlobals } from "@apideck/unify/models/operations"; -let value: AtsJobsAllGlobals = {}; +let value: AtsJobsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsjobsallresponse.md b/docs/models/operations/atsjobsallresponse.md index 1827ecdd..33c3587b 100644 --- a/docs/models/operations/atsjobsallresponse.md +++ b/docs/models/operations/atsjobsallresponse.md @@ -4,172 +4,8 @@ ```typescript import { AtsJobsAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AtsJobsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getJobsResponse: { - statusCode: 200, - status: "OK", - service: "lever", - resource: "Jobs", - operation: "all", - data: [ - { - id: "12345", - slug: "ceo", - title: "CEO", - sequence: 3, - visibility: "internal", - status: "completed", - code: "123-OC", - language: "EN", - employmentTerms: "full-time", - experience: "Director/ Vice President", - location: "San Francisco", - remote: true, - requisitionId: "abc123", - department: { - id: "12345", - parentId: "22345", - name: "R&D", - code: "2", - description: "R&D", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - branch: { - id: "123", - name: "HQ NY", - }, - recruiters: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - ], - hiringManagers: [ - "123456", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - description: "A description", - blocks: [ - { - title: "string", - content: "string", - }, - ], - closing: "The closing section of the job description", - closingDate: new RFCDate("2020-10-30"), - salary: { - min: 8000, - max: 10000, - currency: "USD", - interval: "year", - }, - links: [ - { - type: "job_portal", - url: "https://app.intercom.io/contacts/12345", - }, - ], - confidential: false, - availableToEmployees: false, - tags: [ - "New", - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - deleted: true, - ownerId: "54321", - publishedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsJobsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/atsjobsoneglobals.md b/docs/models/operations/atsjobsoneglobals.md index 8d2a2858..30cdb0f8 100644 --- a/docs/models/operations/atsjobsoneglobals.md +++ b/docs/models/operations/atsjobsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { AtsJobsOneGlobals } from "@apideck/unify/models/operations"; -let value: AtsJobsOneGlobals = {}; +let value: AtsJobsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/atsjobsoneresponse.md b/docs/models/operations/atsjobsoneresponse.md index c2d636d4..3a72c551 100644 --- a/docs/models/operations/atsjobsoneresponse.md +++ b/docs/models/operations/atsjobsoneresponse.md @@ -4,155 +4,8 @@ ```typescript import { AtsJobsOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: AtsJobsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getJobResponse: { - statusCode: 200, - status: "OK", - service: "lever", - resource: "Jobs", - operation: "one", - data: { - id: "12345", - slug: "ceo", - title: "CEO", - sequence: 3, - visibility: "internal", - status: "completed", - code: "123-OC", - language: "EN", - employmentTerms: "full-time", - experience: "Director/ Vice President", - location: "San Francisco", - remote: true, - requisitionId: "abc123", - department: { - id: "12345", - parentId: "22345", - name: "R&D", - code: "2", - description: "R&D", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - branch: { - id: "123", - name: "HQ NY", - }, - recruiters: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - ], - hiringManagers: [ - "123456", - ], - followers: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - description: "A description", - blocks: [ - { - title: "string", - content: "string", - }, - ], - closing: "The closing section of the job description", - closingDate: new RFCDate("2020-10-30"), - salary: { - min: 8000, - max: 10000, - currency: "USD", - interval: "year", - }, - links: [ - { - type: "job_portal", - url: "https://app.intercom.io/contacts/12345", - }, - ], - confidential: false, - availableToEmployees: false, - tags: [ - "New", - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - deleted: true, - ownerId: "54321", - publishedAt: new Date("2020-09-30T07:43:32.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: AtsJobsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorapiresourcecoverageoneglobals.md b/docs/models/operations/connectorapiresourcecoverageoneglobals.md index fdc3ec99..3d726617 100644 --- a/docs/models/operations/connectorapiresourcecoverageoneglobals.md +++ b/docs/models/operations/connectorapiresourcecoverageoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorApiResourceCoverageOneGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorApiResourceCoverageOneGlobals = {}; +let value: ConnectorApiResourceCoverageOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorapiresourcecoverageoneresponse.md b/docs/models/operations/connectorapiresourcecoverageoneresponse.md index a54a51cc..6adbb06a 100644 --- a/docs/models/operations/connectorapiresourcecoverageoneresponse.md +++ b/docs/models/operations/connectorapiresourcecoverageoneresponse.md @@ -5,81 +5,7 @@ ```typescript import { ConnectorApiResourceCoverageOneResponse } from "@apideck/unify/models/operations"; -let value: ConnectorApiResourceCoverageOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApiResourceCoverageResponse: { - statusCode: 200, - status: "OK", - data: { - id: "companies", - name: "Companies", - coverage: [ - { - downstreamId: "accounts", - downstreamName: "Accounts", - pagination: { - mode: "native", - }, - supportedOperations: [ - "all", - "one", - "add", - "update", - "delete", - ], - supportedFilters: [ - "name", - "email", - ], - supportedSortBy: [ - "updated_at", - "created_at", - "name", - ], - supportedFields: [ - { - unifiedProperty: "owner_id", - childProperties: [], - }, - ], - supportedListFields: [ - { - unifiedProperty: "owner_id", - }, - ], - }, - ], - }, - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorApiResourceCoverageOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorapiresourcesoneglobals.md b/docs/models/operations/connectorapiresourcesoneglobals.md index a5ec60e2..e4d16674 100644 --- a/docs/models/operations/connectorapiresourcesoneglobals.md +++ b/docs/models/operations/connectorapiresourcesoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorApiResourcesOneGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorApiResourcesOneGlobals = {}; +let value: ConnectorApiResourcesOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorapiresourcesoneresponse.md b/docs/models/operations/connectorapiresourcesoneresponse.md index b027ca39..96ff61f0 100644 --- a/docs/models/operations/connectorapiresourcesoneresponse.md +++ b/docs/models/operations/connectorapiresourcesoneresponse.md @@ -5,52 +5,7 @@ ```typescript import { ConnectorApiResourcesOneResponse } from "@apideck/unify/models/operations"; -let value: ConnectorApiResourcesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApiResourceResponse: { - statusCode: 200, - status: "OK", - data: { - id: "companies", - name: "Companies", - linkedResources: [ - { - id: "companies", - unifiedProperty: "owner_id", - }, - ], - schema: {}, - }, - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorApiResourcesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorapisallglobals.md b/docs/models/operations/connectorapisallglobals.md index be83b643..4340077f 100644 --- a/docs/models/operations/connectorapisallglobals.md +++ b/docs/models/operations/connectorapisallglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorApisAllGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorApisAllGlobals = {}; +let value: ConnectorApisAllGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorapisallresponse.md b/docs/models/operations/connectorapisallresponse.md index 56e2c3c7..47095b84 100644 --- a/docs/models/operations/connectorapisallresponse.md +++ b/docs/models/operations/connectorapisallresponse.md @@ -5,70 +5,7 @@ ```typescript import { ConnectorApisAllResponse } from "@apideck/unify/models/operations"; -let value: ConnectorApisAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApisResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "file-storage", - name: "File Storage API", - description: - "Manage API keys, access tokens, OAuth flows and integrations.", - specUrl: "https://specs.apideck.com/file-storage.yml", - apiReferenceUrl: - "https://developers.apideck.com/apis/file-storage/reference", - postmanCollectionId: "1311564-00e7266b-a3d6-4f40-b172-baaa66a3ed6f", - categories: [ - "files", - "file-storage", - "cloud-storage", - "object-storage", - ], - resources: [ - { - id: "companies", - name: "Companies", - excludedFromCoverage: false, - }, - ], - events: [ - "crm.contact.updated", - "accounting.invoice.created", - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorApisAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorapisoneglobals.md b/docs/models/operations/connectorapisoneglobals.md index 72bf7d51..e46f3753 100644 --- a/docs/models/operations/connectorapisoneglobals.md +++ b/docs/models/operations/connectorapisoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorApisOneGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorApisOneGlobals = {}; +let value: ConnectorApisOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorapisoneresponse.md b/docs/models/operations/connectorapisoneresponse.md index a5d4572b..7f3455c1 100644 --- a/docs/models/operations/connectorapisoneresponse.md +++ b/docs/models/operations/connectorapisoneresponse.md @@ -5,68 +5,7 @@ ```typescript import { ConnectorApisOneResponse } from "@apideck/unify/models/operations"; -let value: ConnectorApisOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getApiResponse: { - statusCode: 200, - status: "OK", - data: { - id: "file-storage", - name: "File Storage API", - description: - "Manage API keys, access tokens, OAuth flows and integrations.", - specUrl: "https://specs.apideck.com/file-storage.yml", - apiReferenceUrl: - "https://developers.apideck.com/apis/file-storage/reference", - postmanCollectionId: "1311564-00e7266b-a3d6-4f40-b172-baaa66a3ed6f", - categories: [ - "files", - "file-storage", - "cloud-storage", - "object-storage", - ], - resources: [ - { - id: "companies", - name: "Companies", - excludedFromCoverage: false, - }, - ], - events: [ - "crm.contact.updated", - "accounting.invoice.created", - ], - }, - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorApisOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectordocsoneglobals.md b/docs/models/operations/connectorconnectordocsoneglobals.md index 5131d93c..4d8e5e26 100644 --- a/docs/models/operations/connectorconnectordocsoneglobals.md +++ b/docs/models/operations/connectorconnectordocsoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorConnectorDocsOneGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorDocsOneGlobals = {}; +let value: ConnectorConnectorDocsOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectordocsoneresponse.md b/docs/models/operations/connectorconnectordocsoneresponse.md index 0f593ca6..bdc7fae9 100644 --- a/docs/models/operations/connectorconnectordocsoneresponse.md +++ b/docs/models/operations/connectorconnectordocsoneresponse.md @@ -5,22 +5,7 @@ ```typescript import { ConnectorConnectorDocsOneResponse } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorDocsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorConnectorDocsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectorresourcesoneglobals.md b/docs/models/operations/connectorconnectorresourcesoneglobals.md index ce04ac95..0028089e 100644 --- a/docs/models/operations/connectorconnectorresourcesoneglobals.md +++ b/docs/models/operations/connectorconnectorresourcesoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorConnectorResourcesOneGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorResourcesOneGlobals = {}; +let value: ConnectorConnectorResourcesOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectorresourcesoneresponse.md b/docs/models/operations/connectorconnectorresourcesoneresponse.md index c0423b7f..bfcdb263 100644 --- a/docs/models/operations/connectorconnectorresourcesoneresponse.md +++ b/docs/models/operations/connectorconnectorresourcesoneresponse.md @@ -5,80 +5,7 @@ ```typescript import { ConnectorConnectorResourcesOneResponse } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorResourcesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConnectorResourceResponse: { - statusCode: 200, - status: "OK", - data: { - id: "companies", - name: "Companies", - downstreamId: "accounts", - downstreamName: "Accounts", - pagination: { - mode: "native", - }, - supportedOperations: [ - "all", - "one", - "add", - "update", - "delete", - ], - downstreamUnsupportedOperations: [ - "upload", - ], - supportedFilters: [ - "name", - "email", - ], - supportedSortBy: [ - "updated_at", - "created_at", - "name", - ], - supportedFields: [ - { - unifiedProperty: "owner_id", - childProperties: [], - }, - ], - supportedListFields: [ - { - unifiedProperty: "owner_id", - }, - ], - }, - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorConnectorResourcesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectorsallglobals.md b/docs/models/operations/connectorconnectorsallglobals.md index 65c95bd5..c6f12120 100644 --- a/docs/models/operations/connectorconnectorsallglobals.md +++ b/docs/models/operations/connectorconnectorsallglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorConnectorsAllGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorsAllGlobals = {}; +let value: ConnectorConnectorsAllGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectorsallresponse.md b/docs/models/operations/connectorconnectorsallresponse.md index ebad81e5..2bd0c16d 100644 --- a/docs/models/operations/connectorconnectorsallresponse.md +++ b/docs/models/operations/connectorconnectorsallresponse.md @@ -5,153 +5,7 @@ ```typescript import { ConnectorConnectorsAllResponse } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConnectorsResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "crm+salesforce", - name: "Salesforce", - description: "A description", - iconUrl: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logoUrl: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - websiteUrl: "https://www.salesforce.com", - signupUrl: "https://www.salesforce.com/signup", - partnerSignupUrl: "https://www.salesforce.com/partners", - authType: "oauth2", - authOnly: true, - blindMapped: true, - oauthGrantType: "authorization_code", - oauthCredentialsSource: "integration", - oauthScopes: [ - { - id: "contacts:all", - label: "Read/write on the Contacts resource", - defaultApis: [ - "crm", - ], - }, - ], - customScopes: true, - hasSandboxCredentials: true, - settings: [ - { - id: "pipeline_id", - label: "Pipeline", - type: "select", - }, - ], - serviceId: "close", - unifiedApis: [ - { - id: "crm", - name: "File Storage API", - authOnly: true, - oauthScopes: [ - { - id: "contacts:all", - label: "Read/write on the Contacts resource", - }, - ], - supportedResources: [ - { - id: "companies", - name: "Companies", - downstreamId: "accounts", - downstreamName: "Accounts", - }, - ], - downstreamUnsupportedResources: [ - "companies", - ], - supportedEvents: [ - { - eventType: "employee.created", - eventSource: "native", - downstreamEventType: "person_created", - resources: [ - "companies", - ], - entityType: "employee", - }, - ], - }, - ], - supportedResources: [ - { - id: "companies", - name: "Companies", - downstreamId: "accounts", - downstreamName: "Accounts", - }, - ], - configurableResources: [ - "leads", - "companies", - ], - supportedEvents: [ - { - eventType: "employee.created", - eventSource: "native", - downstreamEventType: "person_created", - resources: [ - "companies", - ], - entityType: "employee", - }, - ], - webhookSupport: { - mode: "native", - subscriptionLevel: "integration", - managedVia: "api", - }, - schemaSupport: { - supported: true, - }, - docs: [ - { - id: "12345", - name: "connection", - url: - "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection", - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorConnectorsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectorsoneglobals.md b/docs/models/operations/connectorconnectorsoneglobals.md index 67c79221..7778aa73 100644 --- a/docs/models/operations/connectorconnectorsoneglobals.md +++ b/docs/models/operations/connectorconnectorsoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { ConnectorConnectorsOneGlobals } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorsOneGlobals = {}; +let value: ConnectorConnectorsOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/connectorconnectorsoneresponse.md b/docs/models/operations/connectorconnectorsoneresponse.md index f08358e6..d389c525 100644 --- a/docs/models/operations/connectorconnectorsoneresponse.md +++ b/docs/models/operations/connectorconnectorsoneresponse.md @@ -5,151 +5,7 @@ ```typescript import { ConnectorConnectorsOneResponse } from "@apideck/unify/models/operations"; -let value: ConnectorConnectorsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConnectorResponse: { - statusCode: 200, - status: "OK", - data: { - id: "crm+salesforce", - name: "Salesforce", - description: "A description", - iconUrl: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logoUrl: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - websiteUrl: "https://www.salesforce.com", - signupUrl: "https://www.salesforce.com/signup", - partnerSignupUrl: "https://www.salesforce.com/partners", - authType: "oauth2", - authOnly: true, - blindMapped: true, - oauthGrantType: "authorization_code", - oauthCredentialsSource: "integration", - oauthScopes: [ - { - id: "contacts:all", - label: "Read/write on the Contacts resource", - defaultApis: [ - "crm", - ], - }, - ], - customScopes: true, - hasSandboxCredentials: true, - settings: [ - { - id: "pipeline_id", - label: "Pipeline", - type: "select", - }, - ], - serviceId: "close", - unifiedApis: [ - { - id: "crm", - name: "File Storage API", - authOnly: true, - oauthScopes: [ - { - id: "contacts:all", - label: "Read/write on the Contacts resource", - }, - ], - supportedResources: [ - { - id: "companies", - name: "Companies", - downstreamId: "accounts", - downstreamName: "Accounts", - }, - ], - downstreamUnsupportedResources: [ - "companies", - ], - supportedEvents: [ - { - eventType: "employee.created", - eventSource: "native", - downstreamEventType: "person_created", - resources: [ - "companies", - ], - entityType: "employee", - }, - ], - }, - ], - supportedResources: [ - { - id: "companies", - name: "Companies", - downstreamId: "accounts", - downstreamName: "Accounts", - }, - ], - configurableResources: [ - "leads", - "companies", - ], - supportedEvents: [ - { - eventType: "employee.created", - eventSource: "native", - downstreamEventType: "person_created", - resources: [ - "companies", - ], - entityType: "employee", - }, - ], - webhookSupport: { - mode: "native", - subscriptionLevel: "integration", - managedVia: "api", - }, - schemaSupport: { - supported: true, - }, - docs: [ - { - id: "12345", - name: "connection", - url: - "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection", - }, - ], - }, - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: ConnectorConnectorsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesaddglobals.md b/docs/models/operations/crmactivitiesaddglobals.md index ca4041f7..a5341cd4 100644 --- a/docs/models/operations/crmactivitiesaddglobals.md +++ b/docs/models/operations/crmactivitiesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmActivitiesAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmActivitiesAddGlobals = {}; +let value: CrmActivitiesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesaddrequest.md b/docs/models/operations/crmactivitiesaddrequest.md index 4b2c7663..1d0dec28 100644 --- a/docs/models/operations/crmactivitiesaddrequest.md +++ b/docs/models/operations/crmactivitiesaddrequest.md @@ -7,110 +7,6 @@ import { CrmActivitiesAddRequest } from "@apideck/unify/models/operations"; let value: CrmActivitiesAddRequest = { serviceId: "salesforce", - activity: { - activityDatetime: "2021-05-01T12:00:00.000Z", - durationSeconds: 1800, - userId: "12345", - accountId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - leadId: "12345", - ownerId: "12345", - campaignId: "12345", - caseId: "12345", - assetId: "12345", - contractId: "12345", - productId: "12345", - solutionId: "12345", - customObjectId: "12345", - type: "meeting", - title: "Meeting", - description: "More info about the meeting", - note: "An internal note about the meeting", - location: "Space", - locationAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - allDayEvent: false, - private: true, - groupEvent: true, - eventSubType: "debrief", - groupEventType: "Proposed", - child: false, - archived: false, - deleted: false, - showAs: "busy", - done: false, - startDatetime: "2021-05-01T12:00:00.000Z", - endDatetime: "2021-05-01T12:30:00.000Z", - activityDate: "2021-05-01", - endDate: "2021-05-01", - recurrent: false, - reminderDatetime: "2021-05-01T17:00:00.000Z", - reminderSet: false, - videoConferenceUrl: "https://us02web.zoom.us/j/88120759396", - videoConferenceId: "zoom:88120759396", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - attendees: [ - { - name: "Elon Musk", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - emailAddress: "elon@musk.com", - isOrganizer: true, - status: "accepted", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmactivitiesaddresponse.md b/docs/models/operations/crmactivitiesaddresponse.md index 23b910dc..c468192e 100644 --- a/docs/models/operations/crmactivitiesaddresponse.md +++ b/docs/models/operations/crmactivitiesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmActivitiesAddResponse } from "@apideck/unify/models/operations"; -let value: CrmActivitiesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createActivityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "activities", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmActivitiesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesallglobals.md b/docs/models/operations/crmactivitiesallglobals.md index bc474bee..0f140307 100644 --- a/docs/models/operations/crmactivitiesallglobals.md +++ b/docs/models/operations/crmactivitiesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmActivitiesAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmActivitiesAllGlobals = {}; +let value: CrmActivitiesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesallrequest.md b/docs/models/operations/crmactivitiesallrequest.md index 8a9b36e6..a2b955f9 100644 --- a/docs/models/operations/crmactivitiesallrequest.md +++ b/docs/models/operations/crmactivitiesallrequest.md @@ -12,6 +12,7 @@ let value: CrmActivitiesAllRequest = { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/crmactivitiesallresponse.md b/docs/models/operations/crmactivitiesallresponse.md index aea49f32..0b63f3e0 100644 --- a/docs/models/operations/crmactivitiesallresponse.md +++ b/docs/models/operations/crmactivitiesallresponse.md @@ -5,162 +5,7 @@ ```typescript import { CrmActivitiesAllResponse } from "@apideck/unify/models/operations"; -let value: CrmActivitiesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getActivitiesResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "activities", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - activityDatetime: "2021-05-01T12:00:00.000Z", - durationSeconds: 1800, - userId: "12345", - accountId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - leadId: "12345", - ownerId: "12345", - campaignId: "12345", - caseId: "12345", - assetId: "12345", - contractId: "12345", - productId: "12345", - solutionId: "12345", - customObjectId: "12345", - type: "meeting", - title: "Meeting", - description: "More info about the meeting", - note: "An internal note about the meeting", - location: "Space", - locationAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - allDayEvent: false, - private: true, - groupEvent: true, - eventSubType: "debrief", - groupEventType: "Proposed", - child: false, - archived: false, - deleted: false, - showAs: "busy", - done: false, - startDatetime: "2021-05-01T12:00:00.000Z", - endDatetime: "2021-05-01T12:30:00.000Z", - durationMinutes: 30, - activityDate: "2021-05-01", - endDate: "2021-05-01", - recurrent: false, - reminderDatetime: "2021-05-01T17:00:00.000Z", - reminderSet: false, - videoConferenceUrl: "https://us02web.zoom.us/j/88120759396", - videoConferenceId: "zoom:88120759396", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - attendees: [ - { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - emailAddress: "elon@musk.com", - isOrganizer: true, - status: "accepted", - userId: "12345", - contactId: "12345", - updatedAt: new Date("2017-08-12T20:43:21.291Z"), - createdAt: new Date("2017-08-12T20:43:21.291Z"), - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmActivitiesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesdeleteglobals.md b/docs/models/operations/crmactivitiesdeleteglobals.md index bf136a05..083abd15 100644 --- a/docs/models/operations/crmactivitiesdeleteglobals.md +++ b/docs/models/operations/crmactivitiesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmActivitiesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmActivitiesDeleteGlobals = {}; +let value: CrmActivitiesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesdeleteresponse.md b/docs/models/operations/crmactivitiesdeleteresponse.md index e6510b84..c2995532 100644 --- a/docs/models/operations/crmactivitiesdeleteresponse.md +++ b/docs/models/operations/crmactivitiesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmActivitiesDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmActivitiesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteActivityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "activities", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmActivitiesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesoneglobals.md b/docs/models/operations/crmactivitiesoneglobals.md index a296d03e..dd6c7e9d 100644 --- a/docs/models/operations/crmactivitiesoneglobals.md +++ b/docs/models/operations/crmactivitiesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmActivitiesOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmActivitiesOneGlobals = {}; +let value: CrmActivitiesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesoneresponse.md b/docs/models/operations/crmactivitiesoneresponse.md index 8039d9e5..866086c2 100644 --- a/docs/models/operations/crmactivitiesoneresponse.md +++ b/docs/models/operations/crmactivitiesoneresponse.md @@ -5,145 +5,7 @@ ```typescript import { CrmActivitiesOneResponse } from "@apideck/unify/models/operations"; -let value: CrmActivitiesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getActivityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "activities", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - activityDatetime: "2021-05-01T12:00:00.000Z", - durationSeconds: 1800, - userId: "12345", - accountId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - leadId: "12345", - ownerId: "12345", - campaignId: "12345", - caseId: "12345", - assetId: "12345", - contractId: "12345", - productId: "12345", - solutionId: "12345", - customObjectId: "12345", - type: "meeting", - title: "Meeting", - description: "More info about the meeting", - note: "An internal note about the meeting", - location: "Space", - locationAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - allDayEvent: false, - private: true, - groupEvent: true, - eventSubType: "debrief", - groupEventType: "Proposed", - child: false, - archived: false, - deleted: false, - showAs: "busy", - done: false, - startDatetime: "2021-05-01T12:00:00.000Z", - endDatetime: "2021-05-01T12:30:00.000Z", - durationMinutes: 30, - activityDate: "2021-05-01", - endDate: "2021-05-01", - recurrent: false, - reminderDatetime: "2021-05-01T17:00:00.000Z", - reminderSet: false, - videoConferenceUrl: "https://us02web.zoom.us/j/88120759396", - videoConferenceId: "zoom:88120759396", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - attendees: [ - { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - emailAddress: "elon@musk.com", - isOrganizer: true, - status: "accepted", - userId: "12345", - contactId: "12345", - updatedAt: new Date("2017-08-12T20:43:21.291Z"), - createdAt: new Date("2017-08-12T20:43:21.291Z"), - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmActivitiesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesupdateglobals.md b/docs/models/operations/crmactivitiesupdateglobals.md index 5054c22d..24f00346 100644 --- a/docs/models/operations/crmactivitiesupdateglobals.md +++ b/docs/models/operations/crmactivitiesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmActivitiesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmActivitiesUpdateGlobals = {}; +let value: CrmActivitiesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmactivitiesupdaterequest.md b/docs/models/operations/crmactivitiesupdaterequest.md index 6cba403c..9a93e5d5 100644 --- a/docs/models/operations/crmactivitiesupdaterequest.md +++ b/docs/models/operations/crmactivitiesupdaterequest.md @@ -8,110 +8,6 @@ import { CrmActivitiesUpdateRequest } from "@apideck/unify/models/operations"; let value: CrmActivitiesUpdateRequest = { id: "", serviceId: "salesforce", - activity: { - activityDatetime: "2021-05-01T12:00:00.000Z", - durationSeconds: 1800, - userId: "12345", - accountId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - leadId: "12345", - ownerId: "12345", - campaignId: "12345", - caseId: "12345", - assetId: "12345", - contractId: "12345", - productId: "12345", - solutionId: "12345", - customObjectId: "12345", - type: "meeting", - title: "Meeting", - description: "More info about the meeting", - note: "An internal note about the meeting", - location: "Space", - locationAddress: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - allDayEvent: false, - private: true, - groupEvent: true, - eventSubType: "debrief", - groupEventType: "Proposed", - child: false, - archived: false, - deleted: false, - showAs: "busy", - done: false, - startDatetime: "2021-05-01T12:00:00.000Z", - endDatetime: "2021-05-01T12:30:00.000Z", - activityDate: "2021-05-01", - endDate: "2021-05-01", - recurrent: false, - reminderDatetime: "2021-05-01T17:00:00.000Z", - reminderSet: false, - videoConferenceUrl: "https://us02web.zoom.us/j/88120759396", - videoConferenceId: "zoom:88120759396", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - attendees: [ - { - name: "Elon Musk", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - emailAddress: "elon@musk.com", - isOrganizer: true, - status: "accepted", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmactivitiesupdateresponse.md b/docs/models/operations/crmactivitiesupdateresponse.md index 1de9d9cc..24b2db57 100644 --- a/docs/models/operations/crmactivitiesupdateresponse.md +++ b/docs/models/operations/crmactivitiesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmActivitiesUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmActivitiesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateActivityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "activities", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmActivitiesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesaddglobals.md b/docs/models/operations/crmcompaniesaddglobals.md index f5ce048c..3ddf6bbf 100644 --- a/docs/models/operations/crmcompaniesaddglobals.md +++ b/docs/models/operations/crmcompaniesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCompaniesAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmCompaniesAddGlobals = {}; +let value: CrmCompaniesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesaddrequest.md b/docs/models/operations/crmcompaniesaddrequest.md index 5bd8c9aa..4fafaa34 100644 --- a/docs/models/operations/crmcompaniesaddrequest.md +++ b/docs/models/operations/crmcompaniesaddrequest.md @@ -4,139 +4,9 @@ ```typescript import { CrmCompaniesAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: CrmCompaniesAddRequest = { serviceId: "salesforce", - company: { - name: "SpaceX", - ownerId: "12345", - image: "https://www.spacex.com/static/images/share.jpg", - description: - "Space Exploration Technologies Corp. is an American aerospace manufacturer, space transportation services and communications company headquartered in Hawthorne, California.", - vatNumber: "BE0689615164", - currency: "USD", - status: "Open", - fax: "+12129876543", - annualRevenue: "+$35m", - numberOfEmployees: "500-1000", - industry: "Apparel", - ownership: "Public", - salesTaxNumber: "12456EN", - payeeNumber: "78932EN", - abnOrTfn: "46 115 614 695", - abnBranch: "123", - acn: "XXX XXX XXX", - firstName: "Elon", - lastName: "Musk", - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - rowType: { - id: "12345", - name: "Customer Account", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - readOnly: false, - salutation: "Mr", - birthday: new RFCDate("2000-08-12"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcompaniesaddresponse.md b/docs/models/operations/crmcompaniesaddresponse.md index 25cc2e35..1060c163 100644 --- a/docs/models/operations/crmcompaniesaddresponse.md +++ b/docs/models/operations/crmcompaniesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCompaniesAddResponse } from "@apideck/unify/models/operations"; -let value: CrmCompaniesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createCompanyResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCompaniesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesallglobals.md b/docs/models/operations/crmcompaniesallglobals.md index 65f53053..0f22709b 100644 --- a/docs/models/operations/crmcompaniesallglobals.md +++ b/docs/models/operations/crmcompaniesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCompaniesAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmCompaniesAllGlobals = {}; +let value: CrmCompaniesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesallrequest.md b/docs/models/operations/crmcompaniesallrequest.md index ce18eee2..d2ac44a5 100644 --- a/docs/models/operations/crmcompaniesallrequest.md +++ b/docs/models/operations/crmcompaniesallrequest.md @@ -12,6 +12,7 @@ let value: CrmCompaniesAllRequest = { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/crmcompaniesallresponse.md b/docs/models/operations/crmcompaniesallresponse.md index a5d474cd..e8a60689 100644 --- a/docs/models/operations/crmcompaniesallresponse.md +++ b/docs/models/operations/crmcompaniesallresponse.md @@ -4,186 +4,8 @@ ```typescript import { CrmCompaniesAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: CrmCompaniesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCompaniesResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "all", - data: [ - { - id: "12345", - name: "SpaceX", - interactionCount: 1, - ownerId: "12345", - image: "https://www.spacex.com/static/images/share.jpg", - description: - "Space Exploration Technologies Corp. is an American aerospace manufacturer, space transportation services and communications company headquartered in Hawthorne, California.", - vatNumber: "BE0689615164", - currency: "USD", - status: "Open", - fax: "+12129876543", - annualRevenue: "+$35m", - numberOfEmployees: "500-1000", - industry: "Apparel", - ownership: "Public", - salesTaxNumber: "12456EN", - payeeNumber: "78932EN", - abnOrTfn: "46 115 614 695", - abnBranch: "123", - acn: "XXX XXX XXX", - firstName: "Elon", - lastName: "Musk", - parentId: "22345", - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - rowType: { - id: "12345", - name: "Customer Account", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - readOnly: false, - lastActivityAt: new Date("2020-09-30T07:43:32.000Z"), - deleted: false, - salutation: "Mr", - birthday: new RFCDate("2000-08-12"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCompaniesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesdeleteglobals.md b/docs/models/operations/crmcompaniesdeleteglobals.md index 2173763c..17eae44c 100644 --- a/docs/models/operations/crmcompaniesdeleteglobals.md +++ b/docs/models/operations/crmcompaniesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCompaniesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmCompaniesDeleteGlobals = {}; +let value: CrmCompaniesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesdeleteresponse.md b/docs/models/operations/crmcompaniesdeleteresponse.md index 76738ec8..dc474c4a 100644 --- a/docs/models/operations/crmcompaniesdeleteresponse.md +++ b/docs/models/operations/crmcompaniesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCompaniesDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmCompaniesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteCompanyResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCompaniesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesoneglobals.md b/docs/models/operations/crmcompaniesoneglobals.md index fe9665cc..3c873579 100644 --- a/docs/models/operations/crmcompaniesoneglobals.md +++ b/docs/models/operations/crmcompaniesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCompaniesOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmCompaniesOneGlobals = {}; +let value: CrmCompaniesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesoneresponse.md b/docs/models/operations/crmcompaniesoneresponse.md index b319ccbe..aa093997 100644 --- a/docs/models/operations/crmcompaniesoneresponse.md +++ b/docs/models/operations/crmcompaniesoneresponse.md @@ -4,169 +4,8 @@ ```typescript import { CrmCompaniesOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: CrmCompaniesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCompanyResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "one", - data: { - id: "12345", - name: "SpaceX", - interactionCount: 1, - ownerId: "12345", - image: "https://www.spacex.com/static/images/share.jpg", - description: - "Space Exploration Technologies Corp. is an American aerospace manufacturer, space transportation services and communications company headquartered in Hawthorne, California.", - vatNumber: "BE0689615164", - currency: "USD", - status: "Open", - fax: "+12129876543", - annualRevenue: "+$35m", - numberOfEmployees: "500-1000", - industry: "Apparel", - ownership: "Public", - salesTaxNumber: "12456EN", - payeeNumber: "78932EN", - abnOrTfn: "46 115 614 695", - abnBranch: "123", - acn: "XXX XXX XXX", - firstName: "Elon", - lastName: "Musk", - parentId: "22345", - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - rowType: { - id: "12345", - name: "Customer Account", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - readOnly: false, - lastActivityAt: new Date("2020-09-30T07:43:32.000Z"), - deleted: false, - salutation: "Mr", - birthday: new RFCDate("2000-08-12"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCompaniesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesupdateglobals.md b/docs/models/operations/crmcompaniesupdateglobals.md index 3c559b19..dad97d70 100644 --- a/docs/models/operations/crmcompaniesupdateglobals.md +++ b/docs/models/operations/crmcompaniesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCompaniesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmCompaniesUpdateGlobals = {}; +let value: CrmCompaniesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcompaniesupdaterequest.md b/docs/models/operations/crmcompaniesupdaterequest.md index 2c33f930..c71fbb90 100644 --- a/docs/models/operations/crmcompaniesupdaterequest.md +++ b/docs/models/operations/crmcompaniesupdaterequest.md @@ -4,140 +4,10 @@ ```typescript import { CrmCompaniesUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: CrmCompaniesUpdateRequest = { id: "", serviceId: "salesforce", - company: { - name: "SpaceX", - ownerId: "12345", - image: "https://www.spacex.com/static/images/share.jpg", - description: - "Space Exploration Technologies Corp. is an American aerospace manufacturer, space transportation services and communications company headquartered in Hawthorne, California.", - vatNumber: "BE0689615164", - currency: "USD", - status: "Open", - fax: "+12129876543", - annualRevenue: "+$35m", - numberOfEmployees: "500-1000", - industry: "Apparel", - ownership: "Public", - salesTaxNumber: "12456EN", - payeeNumber: "78932EN", - abnOrTfn: "46 115 614 695", - abnBranch: "123", - acn: "XXX XXX XXX", - firstName: "Elon", - lastName: "Musk", - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - rowType: { - id: "12345", - name: "Customer Account", - }, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - readOnly: false, - salutation: "Mr", - birthday: new RFCDate("2000-08-12"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcompaniesupdateresponse.md b/docs/models/operations/crmcompaniesupdateresponse.md index a420e7f7..3a487a24 100644 --- a/docs/models/operations/crmcompaniesupdateresponse.md +++ b/docs/models/operations/crmcompaniesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCompaniesUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmCompaniesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateCompanyResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCompaniesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsaddglobals.md b/docs/models/operations/crmcontactsaddglobals.md index 98ce16e6..e5694ca3 100644 --- a/docs/models/operations/crmcontactsaddglobals.md +++ b/docs/models/operations/crmcontactsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmContactsAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmContactsAddGlobals = {}; +let value: CrmContactsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsaddrequest.md b/docs/models/operations/crmcontactsaddrequest.md index f8520c67..5c9b8ec9 100644 --- a/docs/models/operations/crmcontactsaddrequest.md +++ b/docs/models/operations/crmcontactsaddrequest.md @@ -7,120 +7,6 @@ import { CrmContactsAddRequest } from "@apideck/unify/models/operations"; let value: CrmContactsAddRequest = { serviceId: "salesforce", - contact: { - name: "Elon Musk", - ownerId: "54321", - type: "personal", - companyId: "23456", - companyName: "23456", - leadId: "34567", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - title: "CEO", - department: "Engineering", - language: "EN", - gender: "female", - birthday: "2000-08-12", - photoUrl: "https://unavatar.io/elon-musk", - leadSource: "Cold Call", - fax: "+12129876543", - description: "Internal champion", - currentBalance: 10.5, - status: "open", - active: true, - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - emailDomain: "gmail.com", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - opportunityIds: [ - "12345", - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcontactsaddresponse.md b/docs/models/operations/crmcontactsaddresponse.md index d94ec584..0629939a 100644 --- a/docs/models/operations/crmcontactsaddresponse.md +++ b/docs/models/operations/crmcontactsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmContactsAddResponse } from "@apideck/unify/models/operations"; -let value: CrmContactsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createContactResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "contacts", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmContactsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsallglobals.md b/docs/models/operations/crmcontactsallglobals.md index c21d5e29..d471c24b 100644 --- a/docs/models/operations/crmcontactsallglobals.md +++ b/docs/models/operations/crmcontactsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmContactsAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmContactsAllGlobals = {}; +let value: CrmContactsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsallrequest.md b/docs/models/operations/crmcontactsallrequest.md index d984cdee..42d68ee3 100644 --- a/docs/models/operations/crmcontactsallrequest.md +++ b/docs/models/operations/crmcontactsallrequest.md @@ -16,6 +16,7 @@ let value: CrmContactsAllRequest = { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/crmcontactsallresponse.md b/docs/models/operations/crmcontactsallresponse.md index b56ce8b4..679f33fc 100644 --- a/docs/models/operations/crmcontactsallresponse.md +++ b/docs/models/operations/crmcontactsallresponse.md @@ -5,166 +5,7 @@ ```typescript import { CrmContactsAllResponse } from "@apideck/unify/models/operations"; -let value: CrmContactsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getContactsResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "contacts", - operation: "all", - data: [ - { - id: "12345", - name: "Elon Musk", - ownerId: "54321", - type: "personal", - companyId: "23456", - companyName: "23456", - leadId: "34567", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - title: "CEO", - department: "Engineering", - language: "EN", - gender: "female", - birthday: "2000-08-12", - photoUrl: "https://unavatar.io/elon-musk", - leadSource: "Cold Call", - fax: "+12129876543", - description: "Internal champion", - currentBalance: 10.5, - status: "open", - active: true, - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - emailDomain: "gmail.com", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - firstCallAt: new Date("2020-09-30T07:43:32.000Z"), - firstEmailAt: new Date("2020-09-30T07:43:32.000Z"), - lastActivityAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2017-08-12T20:43:21.291Z"), - createdAt: new Date("2017-08-12T20:43:21.291Z"), - opportunityIds: [ - "12345", - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmContactsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsdeleteglobals.md b/docs/models/operations/crmcontactsdeleteglobals.md index 94b8e1b5..2a379f77 100644 --- a/docs/models/operations/crmcontactsdeleteglobals.md +++ b/docs/models/operations/crmcontactsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmContactsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmContactsDeleteGlobals = {}; +let value: CrmContactsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsdeleteresponse.md b/docs/models/operations/crmcontactsdeleteresponse.md index a2149141..96538833 100644 --- a/docs/models/operations/crmcontactsdeleteresponse.md +++ b/docs/models/operations/crmcontactsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmContactsDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmContactsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteContactResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "contacts", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmContactsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsoneglobals.md b/docs/models/operations/crmcontactsoneglobals.md index 14c504c0..4832bc4e 100644 --- a/docs/models/operations/crmcontactsoneglobals.md +++ b/docs/models/operations/crmcontactsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmContactsOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmContactsOneGlobals = {}; +let value: CrmContactsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsoneresponse.md b/docs/models/operations/crmcontactsoneresponse.md index a3430376..ebb63376 100644 --- a/docs/models/operations/crmcontactsoneresponse.md +++ b/docs/models/operations/crmcontactsoneresponse.md @@ -5,149 +5,7 @@ ```typescript import { CrmContactsOneResponse } from "@apideck/unify/models/operations"; -let value: CrmContactsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getContactResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "one", - data: { - id: "12345", - name: "Elon Musk", - ownerId: "54321", - type: "personal", - companyId: "23456", - companyName: "23456", - leadId: "34567", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - title: "CEO", - department: "Engineering", - language: "EN", - gender: "female", - birthday: "2000-08-12", - photoUrl: "https://unavatar.io/elon-musk", - leadSource: "Cold Call", - fax: "+12129876543", - description: "Internal champion", - currentBalance: 10.5, - status: "open", - active: true, - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - emailDomain: "gmail.com", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - firstCallAt: new Date("2020-09-30T07:43:32.000Z"), - firstEmailAt: new Date("2020-09-30T07:43:32.000Z"), - lastActivityAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2017-08-12T20:43:21.291Z"), - createdAt: new Date("2017-08-12T20:43:21.291Z"), - opportunityIds: [ - "12345", - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmContactsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsupdateglobals.md b/docs/models/operations/crmcontactsupdateglobals.md index a9c1b530..332df142 100644 --- a/docs/models/operations/crmcontactsupdateglobals.md +++ b/docs/models/operations/crmcontactsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmContactsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmContactsUpdateGlobals = {}; +let value: CrmContactsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcontactsupdaterequest.md b/docs/models/operations/crmcontactsupdaterequest.md index ae3aaf29..259573fa 100644 --- a/docs/models/operations/crmcontactsupdaterequest.md +++ b/docs/models/operations/crmcontactsupdaterequest.md @@ -8,120 +8,6 @@ import { CrmContactsUpdateRequest } from "@apideck/unify/models/operations"; let value: CrmContactsUpdateRequest = { id: "", serviceId: "salesforce", - contact: { - name: "Elon Musk", - ownerId: "54321", - type: "personal", - companyId: "23456", - companyName: "23456", - leadId: "34567", - firstName: "Elon", - middleName: "D.", - lastName: "Musk", - prefix: "Mr.", - suffix: "PhD", - title: "CEO", - department: "Engineering", - language: "EN", - gender: "female", - birthday: "2000-08-12", - photoUrl: "https://unavatar.io/elon-musk", - leadSource: "Cold Call", - fax: "+12129876543", - description: "Internal champion", - currentBalance: 10.5, - status: "open", - active: true, - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - emailDomain: "gmail.com", - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - opportunityIds: [ - "12345", - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcontactsupdateresponse.md b/docs/models/operations/crmcontactsupdateresponse.md index 3ef7fc28..e2d032bc 100644 --- a/docs/models/operations/crmcontactsupdateresponse.md +++ b/docs/models/operations/crmcontactsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmContactsUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmContactsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateContactResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "contacts", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmContactsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsaddglobals.md b/docs/models/operations/crmcustomobjectsaddglobals.md index 2b135997..b8ed568b 100644 --- a/docs/models/operations/crmcustomobjectsaddglobals.md +++ b/docs/models/operations/crmcustomobjectsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectsAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsAddGlobals = {}; +let value: CrmCustomObjectsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsaddrequest.md b/docs/models/operations/crmcustomobjectsaddrequest.md index 164be5d5..f8df34c8 100644 --- a/docs/models/operations/crmcustomobjectsaddrequest.md +++ b/docs/models/operations/crmcustomobjectsaddrequest.md @@ -8,30 +8,6 @@ import { CrmCustomObjectsAddRequest } from "@apideck/unify/models/operations"; let value: CrmCustomObjectsAddRequest = { serviceId: "salesforce", objectId: "", - customObject: { - name: "project", - fields: [ - { - name: "name", - value: "string", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcustomobjectsaddresponse.md b/docs/models/operations/crmcustomobjectsaddresponse.md index b411799f..b44c56b1 100644 --- a/docs/models/operations/crmcustomobjectsaddresponse.md +++ b/docs/models/operations/crmcustomobjectsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCustomObjectsAddResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createCustomObjectResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-objects", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsallglobals.md b/docs/models/operations/crmcustomobjectsallglobals.md index 6fed4e8f..59b6f067 100644 --- a/docs/models/operations/crmcustomobjectsallglobals.md +++ b/docs/models/operations/crmcustomobjectsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectsAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsAllGlobals = {}; +let value: CrmCustomObjectsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsallresponse.md b/docs/models/operations/crmcustomobjectsallresponse.md index 0a1f4a82..4d7dccc1 100644 --- a/docs/models/operations/crmcustomobjectsallresponse.md +++ b/docs/models/operations/crmcustomobjectsallresponse.md @@ -5,76 +5,7 @@ ```typescript import { CrmCustomObjectsAllResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomObjectsResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-objects", - operation: "all", - data: [ - { - id: "co_12345", - ownerId: "user_12345", - name: "project", - fields: [ - { - name: "name", - value: "string", - }, - ], - updatedBy: "user_12345", - createdBy: "user_12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasaddglobals.md b/docs/models/operations/crmcustomobjectschemasaddglobals.md index 6cd17b84..7477fdd6 100644 --- a/docs/models/operations/crmcustomobjectschemasaddglobals.md +++ b/docs/models/operations/crmcustomobjectschemasaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectSchemasAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasAddGlobals = {}; +let value: CrmCustomObjectSchemasAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasaddrequest.md b/docs/models/operations/crmcustomobjectschemasaddrequest.md index 919f03a6..df14c374 100644 --- a/docs/models/operations/crmcustomobjectschemasaddrequest.md +++ b/docs/models/operations/crmcustomobjectschemasaddrequest.md @@ -7,43 +7,6 @@ import { CrmCustomObjectSchemasAddRequest } from "@apideck/unify/models/operatio let value: CrmCustomObjectSchemasAddRequest = { serviceId: "salesforce", - customObjectSchema: { - name: "project", - description: "This schema defines a project custom object", - fields: [ - { - id: "field_123", - name: "project_name", - description: "Name of the project", - type: "string", - required: true, - options: [ - { - value: "option1", - label: "Option 1", - }, - ], - defaultValue: "New Project", - }, - ], - visible: true, - active: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcustomobjectschemasaddresponse.md b/docs/models/operations/crmcustomobjectschemasaddresponse.md index 26c771d4..80c2cfa5 100644 --- a/docs/models/operations/crmcustomobjectschemasaddresponse.md +++ b/docs/models/operations/crmcustomobjectschemasaddresponse.md @@ -5,71 +5,7 @@ ```typescript import { CrmCustomObjectSchemasAddResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createCustomObjectSchemaResponse: { - statusCode: 201, - status: "Created", - service: "zoho-crm", - resource: "custom-object-schemas", - operation: "add", - data: { - id: "cos_12345", - name: "project", - description: "This schema defines a project custom object", - fields: [ - { - id: "field_123", - name: "project_name", - description: "Name of the project", - type: "string", - required: true, - options: [ - { - value: "option1", - label: "Option 1", - }, - ], - defaultValue: "New Project", - }, - ], - visible: true, - active: true, - createdBy: "12345", - updatedBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectSchemasAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasallglobals.md b/docs/models/operations/crmcustomobjectschemasallglobals.md index 4c577fe9..b191ccdb 100644 --- a/docs/models/operations/crmcustomobjectschemasallglobals.md +++ b/docs/models/operations/crmcustomobjectschemasallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectSchemasAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasAllGlobals = {}; +let value: CrmCustomObjectSchemasAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasallresponse.md b/docs/models/operations/crmcustomobjectschemasallresponse.md index 6c75ead6..2bfeba0e 100644 --- a/docs/models/operations/crmcustomobjectschemasallresponse.md +++ b/docs/models/operations/crmcustomobjectschemasallresponse.md @@ -5,88 +5,7 @@ ```typescript import { CrmCustomObjectSchemasAllResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomObjectSchemasResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-object-schemas", - operation: "all", - data: [ - { - id: "cos_12345", - name: "project", - description: "This schema defines a project custom object", - fields: [ - { - id: "field_123", - name: "project_name", - description: "Name of the project", - type: "string", - required: true, - options: [ - { - value: "option1", - label: "Option 1", - }, - ], - defaultValue: "New Project", - }, - ], - visible: true, - active: true, - createdBy: "12345", - updatedBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectSchemasAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasdeleteglobals.md b/docs/models/operations/crmcustomobjectschemasdeleteglobals.md index e8d7af3d..dcaab1a3 100644 --- a/docs/models/operations/crmcustomobjectschemasdeleteglobals.md +++ b/docs/models/operations/crmcustomobjectschemasdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectSchemasDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasDeleteGlobals = {}; +let value: CrmCustomObjectSchemasDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasdeleteresponse.md b/docs/models/operations/crmcustomobjectschemasdeleteresponse.md index d1433ea4..d0830df9 100644 --- a/docs/models/operations/crmcustomobjectschemasdeleteresponse.md +++ b/docs/models/operations/crmcustomobjectschemasdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCustomObjectSchemasDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteCustomObjectSchemaResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-object-schemas", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectSchemasDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasoneglobals.md b/docs/models/operations/crmcustomobjectschemasoneglobals.md index b4996ffa..6ced6817 100644 --- a/docs/models/operations/crmcustomobjectschemasoneglobals.md +++ b/docs/models/operations/crmcustomobjectschemasoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectSchemasOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasOneGlobals = {}; +let value: CrmCustomObjectSchemasOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasoneresponse.md b/docs/models/operations/crmcustomobjectschemasoneresponse.md index 8b6c65b9..9527c442 100644 --- a/docs/models/operations/crmcustomobjectschemasoneresponse.md +++ b/docs/models/operations/crmcustomobjectschemasoneresponse.md @@ -5,71 +5,7 @@ ```typescript import { CrmCustomObjectSchemasOneResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomObjectSchemaResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-object-schemas", - operation: "one", - data: { - id: "cos_12345", - name: "project", - description: "This schema defines a project custom object", - fields: [ - { - id: "field_123", - name: "project_name", - description: "Name of the project", - type: "string", - required: true, - options: [ - { - value: "option1", - label: "Option 1", - }, - ], - defaultValue: "New Project", - }, - ], - visible: true, - active: true, - createdBy: "12345", - updatedBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectSchemasOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasupdateglobals.md b/docs/models/operations/crmcustomobjectschemasupdateglobals.md index 143c1c26..0df3456d 100644 --- a/docs/models/operations/crmcustomobjectschemasupdateglobals.md +++ b/docs/models/operations/crmcustomobjectschemasupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectSchemasUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasUpdateGlobals = {}; +let value: CrmCustomObjectSchemasUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectschemasupdaterequest.md b/docs/models/operations/crmcustomobjectschemasupdaterequest.md index 16ffde8a..f5480c4c 100644 --- a/docs/models/operations/crmcustomobjectschemasupdaterequest.md +++ b/docs/models/operations/crmcustomobjectschemasupdaterequest.md @@ -8,43 +8,6 @@ import { CrmCustomObjectSchemasUpdateRequest } from "@apideck/unify/models/opera let value: CrmCustomObjectSchemasUpdateRequest = { id: "", serviceId: "salesforce", - customObjectSchema: { - name: "project", - description: "This schema defines a project custom object", - fields: [ - { - id: "field_123", - name: "project_name", - description: "Name of the project", - type: "string", - required: true, - options: [ - { - value: "option1", - label: "Option 1", - }, - ], - defaultValue: "New Project", - }, - ], - visible: true, - active: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcustomobjectschemasupdateresponse.md b/docs/models/operations/crmcustomobjectschemasupdateresponse.md index 23a69672..618fd363 100644 --- a/docs/models/operations/crmcustomobjectschemasupdateresponse.md +++ b/docs/models/operations/crmcustomobjectschemasupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCustomObjectSchemasUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectSchemasUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateCustomObjectSchemaResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-object-schemas", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectSchemasUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsdeleteglobals.md b/docs/models/operations/crmcustomobjectsdeleteglobals.md index 7e77caae..b4092ebf 100644 --- a/docs/models/operations/crmcustomobjectsdeleteglobals.md +++ b/docs/models/operations/crmcustomobjectsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsDeleteGlobals = {}; +let value: CrmCustomObjectsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsdeleteresponse.md b/docs/models/operations/crmcustomobjectsdeleteresponse.md index 4ba45a3d..ed0164ec 100644 --- a/docs/models/operations/crmcustomobjectsdeleteresponse.md +++ b/docs/models/operations/crmcustomobjectsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCustomObjectsDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteCustomObjectResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-objects", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsoneglobals.md b/docs/models/operations/crmcustomobjectsoneglobals.md index f388cb50..30b5a69f 100644 --- a/docs/models/operations/crmcustomobjectsoneglobals.md +++ b/docs/models/operations/crmcustomobjectsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectsOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsOneGlobals = {}; +let value: CrmCustomObjectsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsoneresponse.md b/docs/models/operations/crmcustomobjectsoneresponse.md index d9a6cbef..6719fe85 100644 --- a/docs/models/operations/crmcustomobjectsoneresponse.md +++ b/docs/models/operations/crmcustomobjectsoneresponse.md @@ -5,59 +5,7 @@ ```typescript import { CrmCustomObjectsOneResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomObjectResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-objects", - operation: "one", - data: { - id: "co_12345", - ownerId: "user_12345", - name: "project", - fields: [ - { - name: "name", - value: "string", - }, - ], - updatedBy: "user_12345", - createdBy: "user_12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsupdateglobals.md b/docs/models/operations/crmcustomobjectsupdateglobals.md index 60f93609..dbaef91c 100644 --- a/docs/models/operations/crmcustomobjectsupdateglobals.md +++ b/docs/models/operations/crmcustomobjectsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmCustomObjectsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsUpdateGlobals = {}; +let value: CrmCustomObjectsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmcustomobjectsupdaterequest.md b/docs/models/operations/crmcustomobjectsupdaterequest.md index 77f314d9..9139545c 100644 --- a/docs/models/operations/crmcustomobjectsupdaterequest.md +++ b/docs/models/operations/crmcustomobjectsupdaterequest.md @@ -9,30 +9,6 @@ let value: CrmCustomObjectsUpdateRequest = { id: "", objectId: "", serviceId: "salesforce", - customObject: { - name: "project", - fields: [ - { - name: "name", - value: "string", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmcustomobjectsupdateresponse.md b/docs/models/operations/crmcustomobjectsupdateresponse.md index ee1b47f7..fdd0e020 100644 --- a/docs/models/operations/crmcustomobjectsupdateresponse.md +++ b/docs/models/operations/crmcustomobjectsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmCustomObjectsUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmCustomObjectsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateCustomObjectResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "custom-objects", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmCustomObjectsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmleadsaddglobals.md b/docs/models/operations/crmleadsaddglobals.md index 6cf2e4fb..187681b0 100644 --- a/docs/models/operations/crmleadsaddglobals.md +++ b/docs/models/operations/crmleadsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmLeadsAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmLeadsAddGlobals = {}; +let value: CrmLeadsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmleadsaddrequest.md b/docs/models/operations/crmleadsaddrequest.md index 7c069587..653540bc 100644 --- a/docs/models/operations/crmleadsaddrequest.md +++ b/docs/models/operations/crmleadsaddrequest.md @@ -7,110 +7,6 @@ import { CrmLeadsAddRequest } from "@apideck/unify/models/operations"; let value: CrmLeadsAddRequest = { serviceId: "salesforce", - lead: { - name: "Elon Musk", - companyName: "Spacex", - ownerId: "54321", - ownerName: "John Doe", - companyId: "2", - leadId: "2", - leadSource: "Cold Call", - firstName: "Elon", - lastName: "Musk", - description: "A thinker", - prefix: "Sir", - title: "CEO", - language: "EN", - status: "New", - monetaryAmount: 75000, - currency: "USD", - fax: "+12129876543", - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmleadsaddresponse.md b/docs/models/operations/crmleadsaddresponse.md index f4515ea9..7d180758 100644 --- a/docs/models/operations/crmleadsaddresponse.md +++ b/docs/models/operations/crmleadsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmLeadsAddResponse } from "@apideck/unify/models/operations"; -let value: CrmLeadsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createLeadResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmLeadsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmleadsallglobals.md b/docs/models/operations/crmleadsallglobals.md index ebc978b9..0d800b11 100644 --- a/docs/models/operations/crmleadsallglobals.md +++ b/docs/models/operations/crmleadsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmLeadsAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmLeadsAllGlobals = {}; +let value: CrmLeadsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmleadsallrequest.md b/docs/models/operations/crmleadsallrequest.md index d3d803c3..afcfb201 100644 --- a/docs/models/operations/crmleadsallrequest.md +++ b/docs/models/operations/crmleadsallrequest.md @@ -15,6 +15,7 @@ let value: CrmLeadsAllRequest = { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/crmleadsallresponse.md b/docs/models/operations/crmleadsallresponse.md index c573d98f..45c14618 100644 --- a/docs/models/operations/crmleadsallresponse.md +++ b/docs/models/operations/crmleadsallresponse.md @@ -5,153 +5,7 @@ ```typescript import { CrmLeadsAllResponse } from "@apideck/unify/models/operations"; -let value: CrmLeadsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getLeadsResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "all", - data: [ - { - id: "12345", - name: "Elon Musk", - companyName: "Spacex", - ownerId: "54321", - ownerName: "John Doe", - companyId: "2", - leadId: "2", - leadSource: "Cold Call", - firstName: "Elon", - lastName: "Musk", - description: "A thinker", - prefix: "Sir", - title: "CEO", - language: "EN", - status: "New", - monetaryAmount: 75000, - currency: "USD", - fax: "+12129876543", - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmLeadsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmleadsdeleteglobals.md b/docs/models/operations/crmleadsdeleteglobals.md index c6ba4bf7..082f7632 100644 --- a/docs/models/operations/crmleadsdeleteglobals.md +++ b/docs/models/operations/crmleadsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmLeadsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmLeadsDeleteGlobals = {}; +let value: CrmLeadsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmleadsdeleteresponse.md b/docs/models/operations/crmleadsdeleteresponse.md index 2587061f..cf0cac13 100644 --- a/docs/models/operations/crmleadsdeleteresponse.md +++ b/docs/models/operations/crmleadsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmLeadsDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmLeadsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteLeadResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmLeadsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmleadsoneglobals.md b/docs/models/operations/crmleadsoneglobals.md index 219dbf93..80effb7b 100644 --- a/docs/models/operations/crmleadsoneglobals.md +++ b/docs/models/operations/crmleadsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmLeadsOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmLeadsOneGlobals = {}; +let value: CrmLeadsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmleadsoneresponse.md b/docs/models/operations/crmleadsoneresponse.md index 906aa787..3cc8ee2d 100644 --- a/docs/models/operations/crmleadsoneresponse.md +++ b/docs/models/operations/crmleadsoneresponse.md @@ -5,136 +5,7 @@ ```typescript import { CrmLeadsOneResponse } from "@apideck/unify/models/operations"; -let value: CrmLeadsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getLeadResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "one", - data: { - id: "12345", - name: "Elon Musk", - companyName: "Spacex", - ownerId: "54321", - ownerName: "John Doe", - companyId: "2", - leadId: "2", - leadSource: "Cold Call", - firstName: "Elon", - lastName: "Musk", - description: "A thinker", - prefix: "Sir", - title: "CEO", - language: "EN", - status: "New", - monetaryAmount: 75000, - currency: "USD", - fax: "+12129876543", - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmLeadsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmleadsupdateglobals.md b/docs/models/operations/crmleadsupdateglobals.md index 2f55dd2f..2fccd28b 100644 --- a/docs/models/operations/crmleadsupdateglobals.md +++ b/docs/models/operations/crmleadsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmLeadsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmLeadsUpdateGlobals = {}; +let value: CrmLeadsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmleadsupdaterequest.md b/docs/models/operations/crmleadsupdaterequest.md index a9fc5521..de96d7e0 100644 --- a/docs/models/operations/crmleadsupdaterequest.md +++ b/docs/models/operations/crmleadsupdaterequest.md @@ -8,110 +8,6 @@ import { CrmLeadsUpdateRequest } from "@apideck/unify/models/operations"; let value: CrmLeadsUpdateRequest = { id: "", serviceId: "salesforce", - lead: { - name: "Elon Musk", - companyName: "Spacex", - ownerId: "54321", - ownerName: "John Doe", - companyId: "2", - leadId: "2", - leadSource: "Cold Call", - firstName: "Elon", - lastName: "Musk", - description: "A thinker", - prefix: "Sir", - title: "CEO", - language: "EN", - status: "New", - monetaryAmount: 75000, - currency: "USD", - fax: "+12129876543", - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - tags: [ - "New", - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmleadsupdateresponse.md b/docs/models/operations/crmleadsupdateresponse.md index 3a7aa667..1185811a 100644 --- a/docs/models/operations/crmleadsupdateresponse.md +++ b/docs/models/operations/crmleadsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmLeadsUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmLeadsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateLeadResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmLeadsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmnotesaddglobals.md b/docs/models/operations/crmnotesaddglobals.md index 386b6367..4489adb3 100644 --- a/docs/models/operations/crmnotesaddglobals.md +++ b/docs/models/operations/crmnotesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmNotesAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmNotesAddGlobals = {}; +let value: CrmNotesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmnotesaddrequest.md b/docs/models/operations/crmnotesaddrequest.md index ba4b037a..37ed7ac9 100644 --- a/docs/models/operations/crmnotesaddrequest.md +++ b/docs/models/operations/crmnotesaddrequest.md @@ -7,32 +7,6 @@ import { CrmNotesAddRequest } from "@apideck/unify/models/operations"; let value: CrmNotesAddRequest = { serviceId: "salesforce", - note: { - title: "Meeting Notes", - content: "Office hours are 9AM-6PM", - ownerId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - activityId: "12345", - leadId: "12345", - active: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmnotesaddresponse.md b/docs/models/operations/crmnotesaddresponse.md index c4577c16..9404c286 100644 --- a/docs/models/operations/crmnotesaddresponse.md +++ b/docs/models/operations/crmnotesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmNotesAddResponse } from "@apideck/unify/models/operations"; -let value: CrmNotesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createNoteResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "notes", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmNotesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmnotesallglobals.md b/docs/models/operations/crmnotesallglobals.md index a9716d66..a3d5942f 100644 --- a/docs/models/operations/crmnotesallglobals.md +++ b/docs/models/operations/crmnotesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmNotesAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmNotesAllGlobals = {}; +let value: CrmNotesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmnotesallresponse.md b/docs/models/operations/crmnotesallresponse.md index d0c26a35..06fcea77 100644 --- a/docs/models/operations/crmnotesallresponse.md +++ b/docs/models/operations/crmnotesallresponse.md @@ -5,77 +5,7 @@ ```typescript import { CrmNotesAllResponse } from "@apideck/unify/models/operations"; -let value: CrmNotesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getNotesResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "notes", - operation: "all", - data: [ - { - id: "12345", - title: "Meeting Notes", - content: "Office hours are 9AM-6PM", - ownerId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - activityId: "12345", - leadId: "12345", - active: true, - updatedBy: "12345", - createdBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmNotesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmnotesdeleteglobals.md b/docs/models/operations/crmnotesdeleteglobals.md index 8061969b..33f60429 100644 --- a/docs/models/operations/crmnotesdeleteglobals.md +++ b/docs/models/operations/crmnotesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmNotesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmNotesDeleteGlobals = {}; +let value: CrmNotesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmnotesdeleteresponse.md b/docs/models/operations/crmnotesdeleteresponse.md index 780beea2..f6171be3 100644 --- a/docs/models/operations/crmnotesdeleteresponse.md +++ b/docs/models/operations/crmnotesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmNotesDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmNotesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteNoteResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "notes", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmNotesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmnotesoneglobals.md b/docs/models/operations/crmnotesoneglobals.md index d162058f..7c6accf3 100644 --- a/docs/models/operations/crmnotesoneglobals.md +++ b/docs/models/operations/crmnotesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmNotesOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmNotesOneGlobals = {}; +let value: CrmNotesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmnotesoneresponse.md b/docs/models/operations/crmnotesoneresponse.md index 0d9a2391..a3bca0f5 100644 --- a/docs/models/operations/crmnotesoneresponse.md +++ b/docs/models/operations/crmnotesoneresponse.md @@ -5,60 +5,7 @@ ```typescript import { CrmNotesOneResponse } from "@apideck/unify/models/operations"; -let value: CrmNotesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getNoteResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "notes", - operation: "one", - data: { - id: "12345", - title: "Meeting Notes", - content: "Office hours are 9AM-6PM", - ownerId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - activityId: "12345", - leadId: "12345", - active: true, - updatedBy: "12345", - createdBy: "12345", - updatedAt: "2020-09-30T07:43:32.000Z", - createdAt: "2020-09-30T07:43:32.000Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmNotesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmnotesupdateglobals.md b/docs/models/operations/crmnotesupdateglobals.md index ee7c0da8..21d5bc81 100644 --- a/docs/models/operations/crmnotesupdateglobals.md +++ b/docs/models/operations/crmnotesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmNotesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmNotesUpdateGlobals = {}; +let value: CrmNotesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmnotesupdaterequest.md b/docs/models/operations/crmnotesupdaterequest.md index 57c31224..50bf7f9c 100644 --- a/docs/models/operations/crmnotesupdaterequest.md +++ b/docs/models/operations/crmnotesupdaterequest.md @@ -8,32 +8,6 @@ import { CrmNotesUpdateRequest } from "@apideck/unify/models/operations"; let value: CrmNotesUpdateRequest = { id: "", serviceId: "salesforce", - note: { - title: "Meeting Notes", - content: "Office hours are 9AM-6PM", - ownerId: "12345", - contactId: "12345", - companyId: "12345", - opportunityId: "12345", - activityId: "12345", - leadId: "12345", - active: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmnotesupdateresponse.md b/docs/models/operations/crmnotesupdateresponse.md index 8b1ce94a..013757f3 100644 --- a/docs/models/operations/crmnotesupdateresponse.md +++ b/docs/models/operations/crmnotesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmNotesUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmNotesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateNoteResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "notes", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmNotesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesaddglobals.md b/docs/models/operations/crmopportunitiesaddglobals.md index 25d0641b..3677cecf 100644 --- a/docs/models/operations/crmopportunitiesaddglobals.md +++ b/docs/models/operations/crmopportunitiesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmOpportunitiesAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesAddGlobals = {}; +let value: CrmOpportunitiesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesaddrequest.md b/docs/models/operations/crmopportunitiesaddrequest.md index 338f6c3f..7c3495fa 100644 --- a/docs/models/operations/crmopportunitiesaddrequest.md +++ b/docs/models/operations/crmopportunitiesaddrequest.md @@ -4,67 +4,9 @@ ```typescript import { CrmOpportunitiesAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: CrmOpportunitiesAddRequest = { serviceId: "salesforce", - opportunity: { - title: "New Rocket", - primaryContactId: "12345", - description: - "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", - type: "Existing Customer - Upgrade", - monetaryAmount: 75000, - currency: "USD", - winProbability: 40, - closeDate: new RFCDate("2020-10-30"), - lossReasonId: "12345", - lossReason: "No budget", - wonReasonId: "12345", - wonReason: "Best pitch", - pipelineId: "12345", - pipelineStageId: "12345", - sourceId: "12345", - leadId: "12345", - leadSource: "Website", - contactId: "12345", - contactIds: [ - "12345", - ], - companyId: "12345", - companyName: "Copper", - ownerId: "12345", - priority: "None", - status: "Open", - statusId: "12345", - tags: [ - "New", - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - stageLastChangedAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmopportunitiesaddresponse.md b/docs/models/operations/crmopportunitiesaddresponse.md index 55692303..60d5b2df 100644 --- a/docs/models/operations/crmopportunitiesaddresponse.md +++ b/docs/models/operations/crmopportunitiesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmOpportunitiesAddResponse } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createOpportunityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "opportunities", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmOpportunitiesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesallglobals.md b/docs/models/operations/crmopportunitiesallglobals.md index 523d4061..74c21c42 100644 --- a/docs/models/operations/crmopportunitiesallglobals.md +++ b/docs/models/operations/crmopportunitiesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmOpportunitiesAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesAllGlobals = {}; +let value: CrmOpportunitiesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesallrequest.md b/docs/models/operations/crmopportunitiesallrequest.md index b2a925f9..e986b90b 100644 --- a/docs/models/operations/crmopportunitiesallrequest.md +++ b/docs/models/operations/crmopportunitiesallrequest.md @@ -13,6 +13,7 @@ let value: CrmOpportunitiesAllRequest = { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/crmopportunitiesallresponse.md b/docs/models/operations/crmopportunitiesallresponse.md index 62de676b..6b8302e0 100644 --- a/docs/models/operations/crmopportunitiesallresponse.md +++ b/docs/models/operations/crmopportunitiesallresponse.md @@ -4,117 +4,8 @@ ```typescript import { CrmOpportunitiesAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: CrmOpportunitiesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getOpportunitiesResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "opportunities", - operation: "all", - data: [ - { - id: "12345", - title: "New Rocket", - primaryContactId: "12345", - description: - "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", - type: "Existing Customer - Upgrade", - monetaryAmount: 75000, - currency: "USD", - winProbability: 40, - expectedRevenue: 75000, - closeDate: new RFCDate("2020-10-30"), - lossReasonId: "12345", - lossReason: "No budget", - wonReasonId: "12345", - wonReason: "Best pitch", - pipelineId: "12345", - pipelineStageId: "12345", - sourceId: "12345", - leadId: "12345", - leadSource: "Website", - contactId: "12345", - contactIds: [ - "12345", - ], - companyId: "12345", - companyName: "Copper", - ownerId: "12345", - priority: "None", - status: "Open", - statusId: "12345", - tags: [ - "New", - ], - interactionCount: 0, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - stageLastChangedAt: new Date("2020-09-30T07:43:32.000Z"), - lastActivityAt: "2020-09-30T07:43:32.000Z", - deleted: false, - dateStageChanged: new Date("2020-09-30T00:00:00.000Z"), - dateLastContacted: new Date("2020-09-30T00:00:00.000Z"), - dateLeadCreated: new Date("2020-09-30T00:00:00.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmOpportunitiesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesdeleteglobals.md b/docs/models/operations/crmopportunitiesdeleteglobals.md index bfd9133d..c18ae851 100644 --- a/docs/models/operations/crmopportunitiesdeleteglobals.md +++ b/docs/models/operations/crmopportunitiesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmOpportunitiesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesDeleteGlobals = {}; +let value: CrmOpportunitiesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesdeleteresponse.md b/docs/models/operations/crmopportunitiesdeleteresponse.md index b3713fe7..b036a5dd 100644 --- a/docs/models/operations/crmopportunitiesdeleteresponse.md +++ b/docs/models/operations/crmopportunitiesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmOpportunitiesDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteOpportunityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmOpportunitiesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesoneglobals.md b/docs/models/operations/crmopportunitiesoneglobals.md index 988cb24b..5c280183 100644 --- a/docs/models/operations/crmopportunitiesoneglobals.md +++ b/docs/models/operations/crmopportunitiesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmOpportunitiesOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesOneGlobals = {}; +let value: CrmOpportunitiesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesoneresponse.md b/docs/models/operations/crmopportunitiesoneresponse.md index 685d2769..f5d3367d 100644 --- a/docs/models/operations/crmopportunitiesoneresponse.md +++ b/docs/models/operations/crmopportunitiesoneresponse.md @@ -4,100 +4,8 @@ ```typescript import { CrmOpportunitiesOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: CrmOpportunitiesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getOpportunityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "opportunities", - operation: "one", - data: { - id: "12345", - title: "New Rocket", - primaryContactId: "12345", - description: - "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", - type: "Existing Customer - Upgrade", - monetaryAmount: 75000, - currency: "USD", - winProbability: 40, - expectedRevenue: 75000, - closeDate: new RFCDate("2020-10-30"), - lossReasonId: "12345", - lossReason: "No budget", - wonReasonId: "12345", - wonReason: "Best pitch", - pipelineId: "12345", - pipelineStageId: "12345", - sourceId: "12345", - leadId: "12345", - leadSource: "Website", - contactId: "12345", - contactIds: [ - "12345", - ], - companyId: "12345", - companyName: "Copper", - ownerId: "12345", - priority: "None", - status: "Open", - statusId: "12345", - tags: [ - "New", - ], - interactionCount: 0, - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - stageLastChangedAt: new Date("2020-09-30T07:43:32.000Z"), - lastActivityAt: "2020-09-30T07:43:32.000Z", - deleted: false, - dateStageChanged: new Date("2020-09-30T00:00:00.000Z"), - dateLastContacted: new Date("2020-09-30T00:00:00.000Z"), - dateLeadCreated: new Date("2020-09-30T00:00:00.000Z"), - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmOpportunitiesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesupdateglobals.md b/docs/models/operations/crmopportunitiesupdateglobals.md index e78ddbb8..e8b2751c 100644 --- a/docs/models/operations/crmopportunitiesupdateglobals.md +++ b/docs/models/operations/crmopportunitiesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmOpportunitiesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesUpdateGlobals = {}; +let value: CrmOpportunitiesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmopportunitiesupdaterequest.md b/docs/models/operations/crmopportunitiesupdaterequest.md index 39e5e079..a44fe13d 100644 --- a/docs/models/operations/crmopportunitiesupdaterequest.md +++ b/docs/models/operations/crmopportunitiesupdaterequest.md @@ -4,68 +4,10 @@ ```typescript import { CrmOpportunitiesUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: CrmOpportunitiesUpdateRequest = { id: "", serviceId: "salesforce", - opportunity: { - title: "New Rocket", - primaryContactId: "12345", - description: - "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", - type: "Existing Customer - Upgrade", - monetaryAmount: 75000, - currency: "USD", - winProbability: 40, - closeDate: new RFCDate("2020-10-30"), - lossReasonId: "12345", - lossReason: "No budget", - wonReasonId: "12345", - wonReason: "Best pitch", - pipelineId: "12345", - pipelineStageId: "12345", - sourceId: "12345", - leadId: "12345", - leadSource: "Website", - contactId: "12345", - contactIds: [ - "12345", - ], - companyId: "12345", - companyName: "Copper", - ownerId: "12345", - priority: "None", - status: "Open", - statusId: "12345", - tags: [ - "New", - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - stageLastChangedAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmopportunitiesupdateresponse.md b/docs/models/operations/crmopportunitiesupdateresponse.md index b188ab64..dbb828f8 100644 --- a/docs/models/operations/crmopportunitiesupdateresponse.md +++ b/docs/models/operations/crmopportunitiesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmOpportunitiesUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmOpportunitiesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateOpportunityResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmOpportunitiesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesaddglobals.md b/docs/models/operations/crmpipelinesaddglobals.md index 1e190a44..0f421dc1 100644 --- a/docs/models/operations/crmpipelinesaddglobals.md +++ b/docs/models/operations/crmpipelinesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmPipelinesAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmPipelinesAddGlobals = {}; +let value: CrmPipelinesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesaddrequest.md b/docs/models/operations/crmpipelinesaddrequest.md index fde64842..9c157aea 100644 --- a/docs/models/operations/crmpipelinesaddrequest.md +++ b/docs/models/operations/crmpipelinesaddrequest.md @@ -7,38 +7,6 @@ import { CrmPipelinesAddRequest } from "@apideck/unify/models/operations"; let value: CrmPipelinesAddRequest = { serviceId: "salesforce", - pipeline: { - id: "default", - name: "Sales Pipeline", - currency: "USD", - archived: false, - active: false, - displayOrder: 1, - winProbabilityEnabled: true, - stages: [ - { - name: "Contract Sent", - value: "CONTRACT_SENT", - winProbability: 50, - displayOrder: 1, - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmpipelinesaddresponse.md b/docs/models/operations/crmpipelinesaddresponse.md index 289fef32..b5ed5abb 100644 --- a/docs/models/operations/crmpipelinesaddresponse.md +++ b/docs/models/operations/crmpipelinesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmPipelinesAddResponse } from "@apideck/unify/models/operations"; -let value: CrmPipelinesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createPipelineResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "pipelines", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmPipelinesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesallglobals.md b/docs/models/operations/crmpipelinesallglobals.md index f27a4bd7..3290ae06 100644 --- a/docs/models/operations/crmpipelinesallglobals.md +++ b/docs/models/operations/crmpipelinesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmPipelinesAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmPipelinesAllGlobals = {}; +let value: CrmPipelinesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesallresponse.md b/docs/models/operations/crmpipelinesallresponse.md index 1b5b1488..cb9a2fdf 100644 --- a/docs/models/operations/crmpipelinesallresponse.md +++ b/docs/models/operations/crmpipelinesallresponse.md @@ -5,81 +5,7 @@ ```typescript import { CrmPipelinesAllResponse } from "@apideck/unify/models/operations"; -let value: CrmPipelinesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPipelinesResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "pipelines", - operation: "all", - data: [ - { - id: "default", - name: "Sales Pipeline", - currency: "USD", - archived: false, - active: false, - displayOrder: 1, - winProbabilityEnabled: true, - stages: [ - { - id: "contractsent", - name: "Contract Sent", - value: "CONTRACT_SENT", - winProbability: 50, - displayOrder: 1, - }, - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmPipelinesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesdeleteglobals.md b/docs/models/operations/crmpipelinesdeleteglobals.md index 84119ab3..9c367c9f 100644 --- a/docs/models/operations/crmpipelinesdeleteglobals.md +++ b/docs/models/operations/crmpipelinesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmPipelinesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmPipelinesDeleteGlobals = {}; +let value: CrmPipelinesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesdeleteresponse.md b/docs/models/operations/crmpipelinesdeleteresponse.md index 7768cb22..393cb81f 100644 --- a/docs/models/operations/crmpipelinesdeleteresponse.md +++ b/docs/models/operations/crmpipelinesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmPipelinesDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmPipelinesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deletePipelineResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmPipelinesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesoneglobals.md b/docs/models/operations/crmpipelinesoneglobals.md index b128c36b..fda64fd1 100644 --- a/docs/models/operations/crmpipelinesoneglobals.md +++ b/docs/models/operations/crmpipelinesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmPipelinesOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmPipelinesOneGlobals = {}; +let value: CrmPipelinesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesoneresponse.md b/docs/models/operations/crmpipelinesoneresponse.md index 205ee8c6..ed688168 100644 --- a/docs/models/operations/crmpipelinesoneresponse.md +++ b/docs/models/operations/crmpipelinesoneresponse.md @@ -5,64 +5,7 @@ ```typescript import { CrmPipelinesOneResponse } from "@apideck/unify/models/operations"; -let value: CrmPipelinesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPipelineResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "pipelines", - operation: "one", - data: { - id: "default", - name: "Sales Pipeline", - currency: "USD", - archived: false, - active: false, - displayOrder: 1, - winProbabilityEnabled: true, - stages: [ - { - id: "contractsent", - name: "Contract Sent", - value: "CONTRACT_SENT", - winProbability: 50, - displayOrder: 1, - }, - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmPipelinesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesupdateglobals.md b/docs/models/operations/crmpipelinesupdateglobals.md index e86caceb..1d0f12f2 100644 --- a/docs/models/operations/crmpipelinesupdateglobals.md +++ b/docs/models/operations/crmpipelinesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmPipelinesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmPipelinesUpdateGlobals = {}; +let value: CrmPipelinesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmpipelinesupdaterequest.md b/docs/models/operations/crmpipelinesupdaterequest.md index 9361156c..13d69db4 100644 --- a/docs/models/operations/crmpipelinesupdaterequest.md +++ b/docs/models/operations/crmpipelinesupdaterequest.md @@ -8,38 +8,6 @@ import { CrmPipelinesUpdateRequest } from "@apideck/unify/models/operations"; let value: CrmPipelinesUpdateRequest = { id: "", serviceId: "salesforce", - pipeline: { - id: "default", - name: "Sales Pipeline", - currency: "USD", - archived: false, - active: false, - displayOrder: 1, - winProbabilityEnabled: true, - stages: [ - { - name: "Contract Sent", - value: "CONTRACT_SENT", - winProbability: 50, - displayOrder: 1, - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmpipelinesupdateresponse.md b/docs/models/operations/crmpipelinesupdateresponse.md index 6fd88499..7ef26ec2 100644 --- a/docs/models/operations/crmpipelinesupdateresponse.md +++ b/docs/models/operations/crmpipelinesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmPipelinesUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmPipelinesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updatePipelineResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "pipelines", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmPipelinesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmusersaddglobals.md b/docs/models/operations/crmusersaddglobals.md index 159f1714..07264159 100644 --- a/docs/models/operations/crmusersaddglobals.md +++ b/docs/models/operations/crmusersaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmUsersAddGlobals } from "@apideck/unify/models/operations"; -let value: CrmUsersAddGlobals = {}; +let value: CrmUsersAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmusersaddrequest.md b/docs/models/operations/crmusersaddrequest.md index 356a1f10..3f2fe532 100644 --- a/docs/models/operations/crmusersaddrequest.md +++ b/docs/models/operations/crmusersaddrequest.md @@ -7,81 +7,6 @@ import { CrmUsersAddRequest } from "@apideck/unify/models/operations"; let value: CrmUsersAddRequest = { serviceId: "salesforce", - user: { - parentId: "54321", - username: "masterofcoin", - firstName: "Elon", - lastName: "Musk", - title: "CEO", - division: "Europe", - companyName: "SpaceX", - employeeNumber: "123456-AB", - description: "A description", - image: "https://logo.clearbit.com/spacex.com?s=128", - language: "EN", - status: "active", - password: "supersecretpassword", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmusersaddresponse.md b/docs/models/operations/crmusersaddresponse.md index ad76b13f..dc3d74ae 100644 --- a/docs/models/operations/crmusersaddresponse.md +++ b/docs/models/operations/crmusersaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmUsersAddResponse } from "@apideck/unify/models/operations"; -let value: CrmUsersAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createUserResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "users", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmUsersAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmusersallglobals.md b/docs/models/operations/crmusersallglobals.md index 13dd695e..840a2140 100644 --- a/docs/models/operations/crmusersallglobals.md +++ b/docs/models/operations/crmusersallglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmUsersAllGlobals } from "@apideck/unify/models/operations"; -let value: CrmUsersAllGlobals = {}; +let value: CrmUsersAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmusersallresponse.md b/docs/models/operations/crmusersallresponse.md index 93ce77f8..f1e0a772 100644 --- a/docs/models/operations/crmusersallresponse.md +++ b/docs/models/operations/crmusersallresponse.md @@ -5,123 +5,7 @@ ```typescript import { CrmUsersAllResponse } from "@apideck/unify/models/operations"; -let value: CrmUsersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getUsersResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "users", - operation: "all", - data: [ - { - id: "12345", - parentId: "54321", - username: "masterofcoin", - firstName: "Elon", - lastName: "Musk", - title: "CEO", - division: "Europe", - companyName: "SpaceX", - employeeNumber: "123456-AB", - description: "A description", - image: "https://logo.clearbit.com/spacex.com?s=128", - language: "EN", - status: "active", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - updatedAt: "2017-08-12T20:43:21.291Z", - createdAt: "2017-08-12T20:43:21.291Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmUsersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmusersdeleteglobals.md b/docs/models/operations/crmusersdeleteglobals.md index 9c967dfe..e0380ead 100644 --- a/docs/models/operations/crmusersdeleteglobals.md +++ b/docs/models/operations/crmusersdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmUsersDeleteGlobals } from "@apideck/unify/models/operations"; -let value: CrmUsersDeleteGlobals = {}; +let value: CrmUsersDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmusersdeleteresponse.md b/docs/models/operations/crmusersdeleteresponse.md index 26b90b77..4be54dbf 100644 --- a/docs/models/operations/crmusersdeleteresponse.md +++ b/docs/models/operations/crmusersdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmUsersDeleteResponse } from "@apideck/unify/models/operations"; -let value: CrmUsersDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteUserResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "users", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmUsersDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmusersoneglobals.md b/docs/models/operations/crmusersoneglobals.md index 74029328..ce07b7ed 100644 --- a/docs/models/operations/crmusersoneglobals.md +++ b/docs/models/operations/crmusersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmUsersOneGlobals } from "@apideck/unify/models/operations"; -let value: CrmUsersOneGlobals = {}; +let value: CrmUsersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmusersoneresponse.md b/docs/models/operations/crmusersoneresponse.md index e8ca2e69..2a9748a1 100644 --- a/docs/models/operations/crmusersoneresponse.md +++ b/docs/models/operations/crmusersoneresponse.md @@ -5,106 +5,7 @@ ```typescript import { CrmUsersOneResponse } from "@apideck/unify/models/operations"; -let value: CrmUsersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getUserResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "one", - data: { - id: "12345", - parentId: "54321", - username: "masterofcoin", - firstName: "Elon", - lastName: "Musk", - title: "CEO", - division: "Europe", - companyName: "SpaceX", - employeeNumber: "123456-AB", - description: "A description", - image: "https://logo.clearbit.com/spacex.com?s=128", - language: "EN", - status: "active", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - updatedAt: "2017-08-12T20:43:21.291Z", - createdAt: "2017-08-12T20:43:21.291Z", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmUsersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/crmusersupdateglobals.md b/docs/models/operations/crmusersupdateglobals.md index 5855cf62..f457cec2 100644 --- a/docs/models/operations/crmusersupdateglobals.md +++ b/docs/models/operations/crmusersupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { CrmUsersUpdateGlobals } from "@apideck/unify/models/operations"; -let value: CrmUsersUpdateGlobals = {}; +let value: CrmUsersUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/crmusersupdaterequest.md b/docs/models/operations/crmusersupdaterequest.md index f088098f..07280f93 100644 --- a/docs/models/operations/crmusersupdaterequest.md +++ b/docs/models/operations/crmusersupdaterequest.md @@ -8,81 +8,6 @@ import { CrmUsersUpdateRequest } from "@apideck/unify/models/operations"; let value: CrmUsersUpdateRequest = { id: "", serviceId: "salesforce", - user: { - parentId: "54321", - username: "masterofcoin", - firstName: "Elon", - lastName: "Musk", - title: "CEO", - division: "Europe", - companyName: "SpaceX", - employeeNumber: "123456-AB", - description: "A description", - image: "https://logo.clearbit.com/spacex.com?s=128", - language: "EN", - status: "active", - password: "supersecretpassword", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/crmusersupdateresponse.md b/docs/models/operations/crmusersupdateresponse.md index 7cfd0580..2a2f6a88 100644 --- a/docs/models/operations/crmusersupdateresponse.md +++ b/docs/models/operations/crmusersupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { CrmUsersUpdateResponse } from "@apideck/unify/models/operations"; -let value: CrmUsersUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateUserResponse: { - statusCode: 200, - status: "OK", - service: "zoho-crm", - resource: "companies", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: CrmUsersUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/ecommercecustomersallglobals.md b/docs/models/operations/ecommercecustomersallglobals.md index 182d4ded..5dee305d 100644 --- a/docs/models/operations/ecommercecustomersallglobals.md +++ b/docs/models/operations/ecommercecustomersallglobals.md @@ -5,7 +5,10 @@ ```typescript import { EcommerceCustomersAllGlobals } from "@apideck/unify/models/operations"; -let value: EcommerceCustomersAllGlobals = {}; +let value: EcommerceCustomersAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/ecommercecustomersallresponse.md b/docs/models/operations/ecommercecustomersallresponse.md index b593f1c3..12c6af47 100644 --- a/docs/models/operations/ecommercecustomersallresponse.md +++ b/docs/models/operations/ecommercecustomersallresponse.md @@ -5,93 +5,7 @@ ```typescript import { EcommerceCustomersAllResponse } from "@apideck/unify/models/operations"; -let value: EcommerceCustomersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEcommerceCustomersResponse: { - statusCode: 200, - status: "OK", - service: "shopify", - resource: "customers", - operation: "all", - data: [ - { - id: "12345", - name: "John Doe", - firstName: "John", - lastName: "Doe", - companyName: "Acme Inc.", - status: "active", - currency: "USD", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - type: "billing", - id: "12345", - line1: "Main street", - line2: "apt #", - city: "Anytown", - state: "Ohio", - postalCode: "12345", - country: "US", - }, - ], - orders: [ - { - id: "12345", - total: "199.99", - status: "active", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: EcommerceCustomersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/ecommercecustomersoneglobals.md b/docs/models/operations/ecommercecustomersoneglobals.md index ad62f0c6..35a4c517 100644 --- a/docs/models/operations/ecommercecustomersoneglobals.md +++ b/docs/models/operations/ecommercecustomersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { EcommerceCustomersOneGlobals } from "@apideck/unify/models/operations"; -let value: EcommerceCustomersOneGlobals = {}; +let value: EcommerceCustomersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/ecommercecustomersoneresponse.md b/docs/models/operations/ecommercecustomersoneresponse.md index ddf42b48..10d86ee0 100644 --- a/docs/models/operations/ecommercecustomersoneresponse.md +++ b/docs/models/operations/ecommercecustomersoneresponse.md @@ -5,76 +5,7 @@ ```typescript import { EcommerceCustomersOneResponse } from "@apideck/unify/models/operations"; -let value: EcommerceCustomersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEcommerceCustomerResponse: { - statusCode: 200, - status: "OK", - service: "shopify", - resource: "customers", - operation: "one", - data: { - id: "12345", - name: "John Doe", - firstName: "John", - lastName: "Doe", - companyName: "Acme Inc.", - status: "active", - currency: "USD", - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - addresses: [ - { - type: "billing", - id: "12345", - line1: "Main street", - line2: "apt #", - city: "Anytown", - state: "Ohio", - postalCode: "12345", - country: "US", - }, - ], - orders: [ - { - id: "12345", - total: "199.99", - status: "active", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: EcommerceCustomersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/ecommerceordersallglobals.md b/docs/models/operations/ecommerceordersallglobals.md index 15c8b9f2..bd488dfa 100644 --- a/docs/models/operations/ecommerceordersallglobals.md +++ b/docs/models/operations/ecommerceordersallglobals.md @@ -5,7 +5,10 @@ ```typescript import { EcommerceOrdersAllGlobals } from "@apideck/unify/models/operations"; -let value: EcommerceOrdersAllGlobals = {}; +let value: EcommerceOrdersAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/ecommerceordersallrequest.md b/docs/models/operations/ecommerceordersallrequest.md index b85ece7d..f9ccecf9 100644 --- a/docs/models/operations/ecommerceordersallrequest.md +++ b/docs/models/operations/ecommerceordersallrequest.md @@ -15,6 +15,7 @@ let value: EcommerceOrdersAllRequest = { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/ecommerceordersallresponse.md b/docs/models/operations/ecommerceordersallresponse.md index aee86b34..f68d98c9 100644 --- a/docs/models/operations/ecommerceordersallresponse.md +++ b/docs/models/operations/ecommerceordersallresponse.md @@ -5,165 +5,7 @@ ```typescript import { EcommerceOrdersAllResponse } from "@apideck/unify/models/operations"; -let value: EcommerceOrdersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEcommerceOrdersResponse: { - statusCode: 200, - status: "OK", - service: "shopify", - resource: "orders", - operation: "all", - data: [ - { - id: "12345", - orderNumber: "123456789", - currency: "USD", - discounts: [ - { - code: "SUMMER20", - amount: "5.99", - percentage: "0.1", - }, - ], - subTotal: "45.17", - shippingCost: "5.17", - couponDiscount: "5.5", - totalDiscount: "5.5", - totalTax: "5.16", - totalAmount: "50.17", - refundedAmount: "5.5", - status: "active", - paymentStatus: "paid", - fulfillmentStatus: "shipped", - paymentMethod: "credit_card", - customer: { - id: "12345", - name: "John Doe", - firstName: "John", - lastName: "Doe", - companyName: "Acme Inc.", - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - }, - billingAddress: { - line1: "123 Main Street", - line2: "Apt 1", - companyName: "Acme Inc.", - city: "New York", - state: "NY", - postalCode: "10001", - country: "US", - }, - shippingAddress: { - line1: "123 Main Street", - line2: "Apt 1", - companyName: "Acme Inc.", - city: "New York", - state: "NY", - postalCode: "10001", - country: "US", - }, - tracking: [ - { - provider: "UPS", - number: "1Z9999999999999999", - url: "https://www.ups.com/track?tracknum=1Z9999999999999999", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - lineItems: [ - { - id: "12345", - productId: "def456", - variantId: "ghi789", - sku: "MBP123-16GB-SILVER-13", - name: "Midnight 16inch MacBook Pro", - description: - "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", - options: [ - { - id: "jkl012", - name: "Color", - value: "Silver", - }, - ], - quantity: "2", - unitPrice: "19.99", - taxRate: "0.08", - taxAmount: "1.6", - isRefunded: false, - refundedAmount: "0", - refundedQuantity: "0", - subTotal: "43.18", - totalAmount: "43.18", - discounts: [ - { - code: "SUMMER20", - amount: "5.99", - percentage: "0.1", - }, - ], - }, - ], - note: "Special instructions for delivery", - refunds: [ - { - id: "12345", - amount: "100", - currency: "USD", - reason: "Customer requested a refund", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: EcommerceOrdersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/ecommerceordersoneglobals.md b/docs/models/operations/ecommerceordersoneglobals.md index 8d9b062b..babfd69e 100644 --- a/docs/models/operations/ecommerceordersoneglobals.md +++ b/docs/models/operations/ecommerceordersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { EcommerceOrdersOneGlobals } from "@apideck/unify/models/operations"; -let value: EcommerceOrdersOneGlobals = {}; +let value: EcommerceOrdersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/ecommerceordersoneresponse.md b/docs/models/operations/ecommerceordersoneresponse.md index 45306140..4197539b 100644 --- a/docs/models/operations/ecommerceordersoneresponse.md +++ b/docs/models/operations/ecommerceordersoneresponse.md @@ -5,148 +5,7 @@ ```typescript import { EcommerceOrdersOneResponse } from "@apideck/unify/models/operations"; -let value: EcommerceOrdersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEcommerceOrderResponse: { - statusCode: 200, - status: "OK", - service: "shopify", - resource: "orders", - operation: "one", - data: { - id: "12345", - orderNumber: "123456789", - currency: "USD", - discounts: [ - { - code: "SUMMER20", - amount: "5.99", - percentage: "0.1", - }, - ], - subTotal: "45.17", - shippingCost: "5.17", - couponDiscount: "5.5", - totalDiscount: "5.5", - totalTax: "5.16", - totalAmount: "50.17", - refundedAmount: "5.5", - status: "active", - paymentStatus: "paid", - fulfillmentStatus: "shipped", - paymentMethod: "credit_card", - customer: { - id: "12345", - name: "John Doe", - firstName: "John", - lastName: "Doe", - companyName: "Acme Inc.", - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - }, - billingAddress: { - line1: "123 Main Street", - line2: "Apt 1", - companyName: "Acme Inc.", - city: "New York", - state: "NY", - postalCode: "10001", - country: "US", - }, - shippingAddress: { - line1: "123 Main Street", - line2: "Apt 1", - companyName: "Acme Inc.", - city: "New York", - state: "NY", - postalCode: "10001", - country: "US", - }, - tracking: [ - { - provider: "UPS", - number: "1Z9999999999999999", - url: "https://www.ups.com/track?tracknum=1Z9999999999999999", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - lineItems: [ - { - id: "12345", - productId: "def456", - variantId: "ghi789", - sku: "MBP123-16GB-SILVER-13", - name: "Midnight 16inch MacBook Pro", - description: - "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", - options: [ - { - id: "jkl012", - name: "Color", - value: "Silver", - }, - ], - quantity: "2", - unitPrice: "19.99", - taxRate: "0.08", - taxAmount: "1.6", - isRefunded: false, - refundedAmount: "0", - refundedQuantity: "0", - subTotal: "43.18", - totalAmount: "43.18", - discounts: [ - { - code: "SUMMER20", - amount: "5.99", - percentage: "0.1", - }, - ], - }, - ], - note: "Special instructions for delivery", - refunds: [ - { - id: "12345", - amount: "100", - currency: "USD", - reason: "Customer requested a refund", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: EcommerceOrdersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/ecommerceproductsallglobals.md b/docs/models/operations/ecommerceproductsallglobals.md index 40e39ca0..5f4d63f8 100644 --- a/docs/models/operations/ecommerceproductsallglobals.md +++ b/docs/models/operations/ecommerceproductsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { EcommerceProductsAllGlobals } from "@apideck/unify/models/operations"; -let value: EcommerceProductsAllGlobals = {}; +let value: EcommerceProductsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/ecommerceproductsallresponse.md b/docs/models/operations/ecommerceproductsallresponse.md index d946d1cb..e072db71 100644 --- a/docs/models/operations/ecommerceproductsallresponse.md +++ b/docs/models/operations/ecommerceproductsallresponse.md @@ -5,108 +5,7 @@ ```typescript import { EcommerceProductsAllResponse } from "@apideck/unify/models/operations"; -let value: EcommerceProductsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getProductsResponse: { - statusCode: 200, - status: "OK", - service: "shopify", - resource: "products", - operation: "all", - data: [ - { - id: "12345", - name: "MacBook Pro", - description: - "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", - status: "active", - price: "1999.99", - sku: "MBP123", - inventoryQuantity: "10", - images: [ - { - id: "12345", - url: "https://example.com/macbook-pro.jpg", - }, - ], - weight: "1.25", - weightUnit: "lb", - options: [ - { - id: "1", - name: "Color", - values: [ - "Red", - ], - }, - ], - variants: [ - { - id: "1", - name: "Midnight 16inch MacBook Pro", - price: "1999.99", - sku: "MBP123-16GB-SILVER-13", - inventoryQuantity: "5", - weight: "1.25", - weightUnit: "lb", - options: [ - { - id: "1", - name: "Color", - value: "Silver", - }, - ], - images: [ - { - id: "12345", - url: "https://example.com/macbook-pro.jpg", - }, - ], - }, - ], - tags: [ - "Apple", - ], - categories: [ - { - id: "12345", - name: "Laptops", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: EcommerceProductsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/ecommerceproductsoneglobals.md b/docs/models/operations/ecommerceproductsoneglobals.md index 3a7a5558..206c0ee4 100644 --- a/docs/models/operations/ecommerceproductsoneglobals.md +++ b/docs/models/operations/ecommerceproductsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { EcommerceProductsOneGlobals } from "@apideck/unify/models/operations"; -let value: EcommerceProductsOneGlobals = {}; +let value: EcommerceProductsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/ecommerceproductsoneresponse.md b/docs/models/operations/ecommerceproductsoneresponse.md index 491e5ebd..4514d799 100644 --- a/docs/models/operations/ecommerceproductsoneresponse.md +++ b/docs/models/operations/ecommerceproductsoneresponse.md @@ -5,91 +5,7 @@ ```typescript import { EcommerceProductsOneResponse } from "@apideck/unify/models/operations"; -let value: EcommerceProductsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getProductResponse: { - statusCode: 200, - status: "OK", - service: "shopify", - resource: "products", - operation: "one", - data: { - id: "12345", - name: "MacBook Pro", - description: - "Powerful and portable, the MacBook Pro is perfect for professionals and creatives.", - status: "active", - price: "1999.99", - sku: "MBP123", - inventoryQuantity: "10", - images: [ - { - id: "12345", - url: "https://example.com/macbook-pro.jpg", - }, - ], - weight: "1.25", - weightUnit: "lb", - options: [ - { - id: "1", - name: "Color", - values: [ - "Red", - ], - }, - ], - variants: [ - { - id: "1", - name: "Midnight 16inch MacBook Pro", - price: "1999.99", - sku: "MBP123-16GB-SILVER-13", - inventoryQuantity: "5", - weight: "1.25", - weightUnit: "lb", - options: [ - { - id: "1", - name: "Color", - value: "Silver", - }, - ], - images: [ - { - id: "12345", - url: "https://example.com/macbook-pro.jpg", - }, - ], - }, - ], - tags: [ - "Apple", - ], - categories: [ - { - id: "12345", - name: "Laptops", - }, - ], - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: EcommerceProductsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/ecommercestoresoneglobals.md b/docs/models/operations/ecommercestoresoneglobals.md index 8f1dc2e4..36fb70d2 100644 --- a/docs/models/operations/ecommercestoresoneglobals.md +++ b/docs/models/operations/ecommercestoresoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { EcommerceStoresOneGlobals } from "@apideck/unify/models/operations"; -let value: EcommerceStoresOneGlobals = {}; +let value: EcommerceStoresOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/ecommercestoresoneresponse.md b/docs/models/operations/ecommercestoresoneresponse.md index 50271b78..5e0a82e6 100644 --- a/docs/models/operations/ecommercestoresoneresponse.md +++ b/docs/models/operations/ecommercestoresoneresponse.md @@ -5,37 +5,7 @@ ```typescript import { EcommerceStoresOneResponse } from "@apideck/unify/models/operations"; -let value: EcommerceStoresOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getStoreResponse: { - statusCode: 200, - status: "OK", - service: "shopify", - resource: "stores", - operation: "one", - data: { - id: "12345", - name: "My Store", - storeUrl: "https://mybrand.com/shop", - adminUrl: "https://mybrand.com/admin", - createdAt: new Date("2020-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: EcommerceStoresOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsaddglobals.md b/docs/models/operations/filestoragedrivegroupsaddglobals.md index 31f1a752..fc90f6ce 100644 --- a/docs/models/operations/filestoragedrivegroupsaddglobals.md +++ b/docs/models/operations/filestoragedrivegroupsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDriveGroupsAddGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsAddGlobals = {}; +let value: FileStorageDriveGroupsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsaddrequest.md b/docs/models/operations/filestoragedrivegroupsaddrequest.md index da98f347..b4b755ca 100644 --- a/docs/models/operations/filestoragedrivegroupsaddrequest.md +++ b/docs/models/operations/filestoragedrivegroupsaddrequest.md @@ -7,26 +7,6 @@ import { FileStorageDriveGroupsAddRequest } from "@apideck/unify/models/operatio let value: FileStorageDriveGroupsAddRequest = { serviceId: "salesforce", - driveGroup: { - name: "accounting", - displayName: "accounting", - description: "A description", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragedrivegroupsaddresponse.md b/docs/models/operations/filestoragedrivegroupsaddresponse.md index 0aeabf2e..22212d84 100644 --- a/docs/models/operations/filestoragedrivegroupsaddresponse.md +++ b/docs/models/operations/filestoragedrivegroupsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageDriveGroupsAddResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createDriveGroupResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "DriveGroups", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDriveGroupsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsallglobals.md b/docs/models/operations/filestoragedrivegroupsallglobals.md index 25c0472e..bd720336 100644 --- a/docs/models/operations/filestoragedrivegroupsallglobals.md +++ b/docs/models/operations/filestoragedrivegroupsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDriveGroupsAllGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsAllGlobals = {}; +let value: FileStorageDriveGroupsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsallresponse.md b/docs/models/operations/filestoragedrivegroupsallresponse.md index 716e1dfd..9f30d0c6 100644 --- a/docs/models/operations/filestoragedrivegroupsallresponse.md +++ b/docs/models/operations/filestoragedrivegroupsallresponse.md @@ -5,71 +5,7 @@ ```typescript import { FileStorageDriveGroupsAllResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getDriveGroupsResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "DriveGroups", - operation: "all", - data: [ - { - id: "12345", - name: "accounting", - displayName: "accounting", - description: "A description", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDriveGroupsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsdeleteglobals.md b/docs/models/operations/filestoragedrivegroupsdeleteglobals.md index 3a696da4..6fd4cf19 100644 --- a/docs/models/operations/filestoragedrivegroupsdeleteglobals.md +++ b/docs/models/operations/filestoragedrivegroupsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDriveGroupsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsDeleteGlobals = {}; +let value: FileStorageDriveGroupsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsdeleteresponse.md b/docs/models/operations/filestoragedrivegroupsdeleteresponse.md index a02a8609..48cae1cd 100644 --- a/docs/models/operations/filestoragedrivegroupsdeleteresponse.md +++ b/docs/models/operations/filestoragedrivegroupsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageDriveGroupsDeleteResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteDriveGroupResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "DriveGroups", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDriveGroupsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsoneglobals.md b/docs/models/operations/filestoragedrivegroupsoneglobals.md index f8724588..6d89f94f 100644 --- a/docs/models/operations/filestoragedrivegroupsoneglobals.md +++ b/docs/models/operations/filestoragedrivegroupsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDriveGroupsOneGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsOneGlobals = {}; +let value: FileStorageDriveGroupsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsoneresponse.md b/docs/models/operations/filestoragedrivegroupsoneresponse.md index 7876c03c..43ea8807 100644 --- a/docs/models/operations/filestoragedrivegroupsoneresponse.md +++ b/docs/models/operations/filestoragedrivegroupsoneresponse.md @@ -5,54 +5,7 @@ ```typescript import { FileStorageDriveGroupsOneResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getDriveGroupResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "DriveGroups", - operation: "one", - data: { - id: "12345", - name: "accounting", - displayName: "accounting", - description: "A description", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDriveGroupsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsupdateglobals.md b/docs/models/operations/filestoragedrivegroupsupdateglobals.md index ca894395..fa1e742c 100644 --- a/docs/models/operations/filestoragedrivegroupsupdateglobals.md +++ b/docs/models/operations/filestoragedrivegroupsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDriveGroupsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsUpdateGlobals = {}; +let value: FileStorageDriveGroupsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivegroupsupdaterequest.md b/docs/models/operations/filestoragedrivegroupsupdaterequest.md index 345b6e9f..d3d04fcb 100644 --- a/docs/models/operations/filestoragedrivegroupsupdaterequest.md +++ b/docs/models/operations/filestoragedrivegroupsupdaterequest.md @@ -8,26 +8,6 @@ import { FileStorageDriveGroupsUpdateRequest } from "@apideck/unify/models/opera let value: FileStorageDriveGroupsUpdateRequest = { id: "", serviceId: "salesforce", - driveGroup: { - name: "accounting", - displayName: "accounting", - description: "A description", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragedrivegroupsupdateresponse.md b/docs/models/operations/filestoragedrivegroupsupdateresponse.md index 0dbd14cf..e4204bca 100644 --- a/docs/models/operations/filestoragedrivegroupsupdateresponse.md +++ b/docs/models/operations/filestoragedrivegroupsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageDriveGroupsUpdateResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDriveGroupsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateDriveGroupResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "DriveGroups", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDriveGroupsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesaddglobals.md b/docs/models/operations/filestoragedrivesaddglobals.md index 9639a943..02e62c69 100644 --- a/docs/models/operations/filestoragedrivesaddglobals.md +++ b/docs/models/operations/filestoragedrivesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDrivesAddGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesAddGlobals = {}; +let value: FileStorageDrivesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesaddrequest.md b/docs/models/operations/filestoragedrivesaddrequest.md index a9c0fa33..e159c9f2 100644 --- a/docs/models/operations/filestoragedrivesaddrequest.md +++ b/docs/models/operations/filestoragedrivesaddrequest.md @@ -7,25 +7,6 @@ import { FileStorageDrivesAddRequest } from "@apideck/unify/models/operations"; let value: FileStorageDrivesAddRequest = { serviceId: "salesforce", - drive: { - name: "Project Resources", - description: "A description", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragedrivesaddresponse.md b/docs/models/operations/filestoragedrivesaddresponse.md index caa3908f..64464ca0 100644 --- a/docs/models/operations/filestoragedrivesaddresponse.md +++ b/docs/models/operations/filestoragedrivesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageDrivesAddResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createDriveResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "Drives", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDrivesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesallglobals.md b/docs/models/operations/filestoragedrivesallglobals.md index bd0dd1f0..6f12bfe3 100644 --- a/docs/models/operations/filestoragedrivesallglobals.md +++ b/docs/models/operations/filestoragedrivesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDrivesAllGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesAllGlobals = {}; +let value: FileStorageDrivesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesallresponse.md b/docs/models/operations/filestoragedrivesallresponse.md index a9c53874..2307869c 100644 --- a/docs/models/operations/filestoragedrivesallresponse.md +++ b/docs/models/operations/filestoragedrivesallresponse.md @@ -5,70 +5,7 @@ ```typescript import { FileStorageDrivesAllResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getDrivesResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "Drives", - operation: "all", - data: [ - { - id: "12345", - name: "Project Resources", - description: "A description", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDrivesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesdeleteglobals.md b/docs/models/operations/filestoragedrivesdeleteglobals.md index 43794270..877b4d9b 100644 --- a/docs/models/operations/filestoragedrivesdeleteglobals.md +++ b/docs/models/operations/filestoragedrivesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDrivesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesDeleteGlobals = {}; +let value: FileStorageDrivesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesdeleteresponse.md b/docs/models/operations/filestoragedrivesdeleteresponse.md index ee2d9b9f..f8898195 100644 --- a/docs/models/operations/filestoragedrivesdeleteresponse.md +++ b/docs/models/operations/filestoragedrivesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageDrivesDeleteResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteDriveResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "Drives", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDrivesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesoneglobals.md b/docs/models/operations/filestoragedrivesoneglobals.md index a4a57aae..588dd858 100644 --- a/docs/models/operations/filestoragedrivesoneglobals.md +++ b/docs/models/operations/filestoragedrivesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDrivesOneGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesOneGlobals = {}; +let value: FileStorageDrivesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesoneresponse.md b/docs/models/operations/filestoragedrivesoneresponse.md index aa692fcc..224b6443 100644 --- a/docs/models/operations/filestoragedrivesoneresponse.md +++ b/docs/models/operations/filestoragedrivesoneresponse.md @@ -5,53 +5,7 @@ ```typescript import { FileStorageDrivesOneResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getDriveResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "Drives", - operation: "one", - data: { - id: "12345", - name: "Project Resources", - description: "A description", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDrivesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesupdateglobals.md b/docs/models/operations/filestoragedrivesupdateglobals.md index 0dac8c07..e9b08505 100644 --- a/docs/models/operations/filestoragedrivesupdateglobals.md +++ b/docs/models/operations/filestoragedrivesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageDrivesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesUpdateGlobals = {}; +let value: FileStorageDrivesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragedrivesupdaterequest.md b/docs/models/operations/filestoragedrivesupdaterequest.md index 01de94ea..508fdcce 100644 --- a/docs/models/operations/filestoragedrivesupdaterequest.md +++ b/docs/models/operations/filestoragedrivesupdaterequest.md @@ -8,25 +8,6 @@ import { FileStorageDrivesUpdateRequest } from "@apideck/unify/models/operations let value: FileStorageDrivesUpdateRequest = { id: "", serviceId: "salesforce", - drive: { - name: "Project Resources", - description: "A description", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragedrivesupdateresponse.md b/docs/models/operations/filestoragedrivesupdateresponse.md index 79cea334..d55d7d42 100644 --- a/docs/models/operations/filestoragedrivesupdateresponse.md +++ b/docs/models/operations/filestoragedrivesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageDrivesUpdateResponse } from "@apideck/unify/models/operations"; -let value: FileStorageDrivesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateDriveResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "Drives", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageDrivesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesallglobals.md b/docs/models/operations/filestoragefilesallglobals.md index 78aeb45d..edd27de0 100644 --- a/docs/models/operations/filestoragefilesallglobals.md +++ b/docs/models/operations/filestoragefilesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFilesAllGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFilesAllGlobals = {}; +let value: FileStorageFilesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesallrequest.md b/docs/models/operations/filestoragefilesallrequest.md index abd6e41d..b47c1532 100644 --- a/docs/models/operations/filestoragefilesallrequest.md +++ b/docs/models/operations/filestoragefilesallrequest.md @@ -14,6 +14,7 @@ let value: FileStorageFilesAllRequest = { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/filestoragefilesallresponse.md b/docs/models/operations/filestoragefilesallresponse.md index 874a6499..d4ca9373 100644 --- a/docs/models/operations/filestoragefilesallresponse.md +++ b/docs/models/operations/filestoragefilesallresponse.md @@ -5,76 +5,7 @@ ```typescript import { FileStorageFilesAllResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFilesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getFilesResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - name: "sample.jpg", - description: "A sample image", - type: "file", - path: "/Documents/sample.jpg", - mimeType: "image/jpeg", - size: 1810673, - owner: { - id: "12345", - email: "hello@apideck.com", - name: "Elon Musk", - }, - parentFolders: [ - { - id: "12345", - name: "Personal", - }, - ], - exportFormats: [ - "application/pdf", - "application/vnd.oasis.opendocument.presentation", - "text/plain", - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFilesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesdeleteglobals.md b/docs/models/operations/filestoragefilesdeleteglobals.md index 4700ff62..1bcf29b8 100644 --- a/docs/models/operations/filestoragefilesdeleteglobals.md +++ b/docs/models/operations/filestoragefilesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFilesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFilesDeleteGlobals = {}; +let value: FileStorageFilesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesdeleteresponse.md b/docs/models/operations/filestoragefilesdeleteresponse.md index f617bb15..c46945c5 100644 --- a/docs/models/operations/filestoragefilesdeleteresponse.md +++ b/docs/models/operations/filestoragefilesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageFilesDeleteResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFilesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteFileResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFilesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesdownloadglobals.md b/docs/models/operations/filestoragefilesdownloadglobals.md index be210d75..454e0e66 100644 --- a/docs/models/operations/filestoragefilesdownloadglobals.md +++ b/docs/models/operations/filestoragefilesdownloadglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFilesDownloadGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFilesDownloadGlobals = {}; +let value: FileStorageFilesDownloadGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesexportglobals.md b/docs/models/operations/filestoragefilesexportglobals.md index 284f8dda..e980b52d 100644 --- a/docs/models/operations/filestoragefilesexportglobals.md +++ b/docs/models/operations/filestoragefilesexportglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFilesExportGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFilesExportGlobals = {}; +let value: FileStorageFilesExportGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesoneglobals.md b/docs/models/operations/filestoragefilesoneglobals.md index 8186d976..e8b95b44 100644 --- a/docs/models/operations/filestoragefilesoneglobals.md +++ b/docs/models/operations/filestoragefilesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFilesOneGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFilesOneGlobals = {}; +let value: FileStorageFilesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesoneresponse.md b/docs/models/operations/filestoragefilesoneresponse.md index 747db243..829dfb69 100644 --- a/docs/models/operations/filestoragefilesoneresponse.md +++ b/docs/models/operations/filestoragefilesoneresponse.md @@ -5,59 +5,7 @@ ```typescript import { FileStorageFilesOneResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFilesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getFileResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - name: "sample.jpg", - description: "A sample image", - type: "file", - path: "/Documents/sample.jpg", - mimeType: "image/jpeg", - size: 1810673, - owner: { - id: "12345", - email: "hello@apideck.com", - name: "Elon Musk", - }, - parentFolders: [ - { - id: "12345", - name: "Personal", - }, - ], - exportFormats: [ - "application/pdf", - "application/vnd.oasis.opendocument.presentation", - "text/plain", - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFilesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilessearchglobals.md b/docs/models/operations/filestoragefilessearchglobals.md index 424ff8e5..25c7f526 100644 --- a/docs/models/operations/filestoragefilessearchglobals.md +++ b/docs/models/operations/filestoragefilessearchglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFilesSearchGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFilesSearchGlobals = {}; +let value: FileStorageFilesSearchGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilessearchrequest.md b/docs/models/operations/filestoragefilessearchrequest.md index edee9054..bb164dea 100644 --- a/docs/models/operations/filestoragefilessearchrequest.md +++ b/docs/models/operations/filestoragefilessearchrequest.md @@ -16,9 +16,6 @@ let value: FileStorageFilesSearchRequest = { folderId: "root", shared: true, }, - filesSearch: { - query: "logo jpg", - }, }; ``` diff --git a/docs/models/operations/filestoragefilessearchresponse.md b/docs/models/operations/filestoragefilessearchresponse.md index e80e627d..d4f649d6 100644 --- a/docs/models/operations/filestoragefilessearchresponse.md +++ b/docs/models/operations/filestoragefilessearchresponse.md @@ -5,76 +5,7 @@ ```typescript import { FileStorageFilesSearchResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFilesSearchResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getFilesResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - name: "sample.jpg", - description: "A sample image", - type: "file", - path: "/Documents/sample.jpg", - mimeType: "image/jpeg", - size: 1810673, - owner: { - id: "12345", - email: "hello@apideck.com", - name: "Elon Musk", - }, - parentFolders: [ - { - id: "12345", - name: "Personal", - }, - ], - exportFormats: [ - "application/pdf", - "application/vnd.oasis.opendocument.presentation", - "text/plain", - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFilesSearchResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesupdateglobals.md b/docs/models/operations/filestoragefilesupdateglobals.md index 3754f3d6..aca84e72 100644 --- a/docs/models/operations/filestoragefilesupdateglobals.md +++ b/docs/models/operations/filestoragefilesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFilesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFilesUpdateGlobals = {}; +let value: FileStorageFilesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefilesupdaterequest.md b/docs/models/operations/filestoragefilesupdaterequest.md index 92bd16b7..d9949402 100644 --- a/docs/models/operations/filestoragefilesupdaterequest.md +++ b/docs/models/operations/filestoragefilesupdaterequest.md @@ -8,26 +8,6 @@ import { FileStorageFilesUpdateRequest } from "@apideck/unify/models/operations" let value: FileStorageFilesUpdateRequest = { id: "", serviceId: "salesforce", - updateFileRequest: { - name: "New Name.pdf", - description: "Renamed PDF Document", - parentFolderId: "1234", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragefilesupdateresponse.md b/docs/models/operations/filestoragefilesupdateresponse.md index 5fc11f7a..886fd246 100644 --- a/docs/models/operations/filestoragefilesupdateresponse.md +++ b/docs/models/operations/filestoragefilesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageFilesUpdateResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFilesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateFileResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFilesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersaddglobals.md b/docs/models/operations/filestoragefoldersaddglobals.md index 28fda1dc..0fb6c542 100644 --- a/docs/models/operations/filestoragefoldersaddglobals.md +++ b/docs/models/operations/filestoragefoldersaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFoldersAddGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersAddGlobals = {}; +let value: FileStorageFoldersAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersaddrequest.md b/docs/models/operations/filestoragefoldersaddrequest.md index a95ff7ae..967077c6 100644 --- a/docs/models/operations/filestoragefoldersaddrequest.md +++ b/docs/models/operations/filestoragefoldersaddrequest.md @@ -8,27 +8,6 @@ import { FileStorageFoldersAddRequest } from "@apideck/unify/models/operations"; let value: FileStorageFoldersAddRequest = { serviceId: "salesforce", fields: "id,updated_at", - createFolderRequest: { - name: "Documents", - description: "My Personal Documents", - parentFolderId: "1234", - driveId: "1234", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragefoldersaddresponse.md b/docs/models/operations/filestoragefoldersaddresponse.md index c9806862..4204e3e1 100644 --- a/docs/models/operations/filestoragefoldersaddresponse.md +++ b/docs/models/operations/filestoragefoldersaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageFoldersAddResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createFolderResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Folders", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFoldersAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefolderscopyglobals.md b/docs/models/operations/filestoragefolderscopyglobals.md index 8e21a0c0..a7236caa 100644 --- a/docs/models/operations/filestoragefolderscopyglobals.md +++ b/docs/models/operations/filestoragefolderscopyglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFoldersCopyGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersCopyGlobals = {}; +let value: FileStorageFoldersCopyGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefolderscopyrequest.md b/docs/models/operations/filestoragefolderscopyrequest.md index 8a759b62..7ca960b1 100644 --- a/docs/models/operations/filestoragefolderscopyrequest.md +++ b/docs/models/operations/filestoragefolderscopyrequest.md @@ -9,25 +9,6 @@ let value: FileStorageFoldersCopyRequest = { id: "", serviceId: "salesforce", fields: "id,updated_at", - copyFolderRequest: { - name: "Documents", - parentFolderId: "1234", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragefolderscopyresponse.md b/docs/models/operations/filestoragefolderscopyresponse.md index 02fb001e..ebbd7495 100644 --- a/docs/models/operations/filestoragefolderscopyresponse.md +++ b/docs/models/operations/filestoragefolderscopyresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageFoldersCopyResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersCopyResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateFolderResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Folders", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFoldersCopyResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersdeleteglobals.md b/docs/models/operations/filestoragefoldersdeleteglobals.md index 44aa7f44..c65f2179 100644 --- a/docs/models/operations/filestoragefoldersdeleteglobals.md +++ b/docs/models/operations/filestoragefoldersdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFoldersDeleteGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersDeleteGlobals = {}; +let value: FileStorageFoldersDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersdeleteresponse.md b/docs/models/operations/filestoragefoldersdeleteresponse.md index c15d6d58..6eca89a1 100644 --- a/docs/models/operations/filestoragefoldersdeleteresponse.md +++ b/docs/models/operations/filestoragefoldersdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageFoldersDeleteResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteFolderResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Folders", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFoldersDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersoneglobals.md b/docs/models/operations/filestoragefoldersoneglobals.md index 73e70931..3c7906a3 100644 --- a/docs/models/operations/filestoragefoldersoneglobals.md +++ b/docs/models/operations/filestoragefoldersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFoldersOneGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersOneGlobals = {}; +let value: FileStorageFoldersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersoneresponse.md b/docs/models/operations/filestoragefoldersoneresponse.md index 97696733..2b4e4c48 100644 --- a/docs/models/operations/filestoragefoldersoneresponse.md +++ b/docs/models/operations/filestoragefoldersoneresponse.md @@ -5,51 +5,7 @@ ```typescript import { FileStorageFoldersOneResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getFolderResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Folders", - operation: "one", - data: { - id: "12345", - name: "Documents", - description: "My Personal Documents", - path: "/Personal/Documents", - size: 1810673, - owner: { - id: "12345", - email: "hello@apideck.com", - name: "Elon Musk", - }, - parentFolders: [ - { - id: "12345", - name: "Personal", - }, - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFoldersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersupdateglobals.md b/docs/models/operations/filestoragefoldersupdateglobals.md index 0d0cf2c9..71ad3709 100644 --- a/docs/models/operations/filestoragefoldersupdateglobals.md +++ b/docs/models/operations/filestoragefoldersupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageFoldersUpdateGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersUpdateGlobals = {}; +let value: FileStorageFoldersUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragefoldersupdaterequest.md b/docs/models/operations/filestoragefoldersupdaterequest.md index f610a105..2a3fe720 100644 --- a/docs/models/operations/filestoragefoldersupdaterequest.md +++ b/docs/models/operations/filestoragefoldersupdaterequest.md @@ -8,26 +8,6 @@ import { FileStorageFoldersUpdateRequest } from "@apideck/unify/models/operation let value: FileStorageFoldersUpdateRequest = { id: "", serviceId: "salesforce", - updateFolderRequest: { - name: "Documents", - description: "My Personal Documents", - parentFolderId: "1234", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragefoldersupdateresponse.md b/docs/models/operations/filestoragefoldersupdateresponse.md index 5e0c7509..8a0bc308 100644 --- a/docs/models/operations/filestoragefoldersupdateresponse.md +++ b/docs/models/operations/filestoragefoldersupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageFoldersUpdateResponse } from "@apideck/unify/models/operations"; -let value: FileStorageFoldersUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateFolderResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Folders", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageFoldersUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksaddglobals.md b/docs/models/operations/filestoragesharedlinksaddglobals.md index 52e946ff..c03331bf 100644 --- a/docs/models/operations/filestoragesharedlinksaddglobals.md +++ b/docs/models/operations/filestoragesharedlinksaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageSharedLinksAddGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksAddGlobals = {}; +let value: FileStorageSharedLinksAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksaddrequest.md b/docs/models/operations/filestoragesharedlinksaddrequest.md index aa8b61ae..e27f3e0b 100644 --- a/docs/models/operations/filestoragesharedlinksaddrequest.md +++ b/docs/models/operations/filestoragesharedlinksaddrequest.md @@ -7,26 +7,6 @@ import { FileStorageSharedLinksAddRequest } from "@apideck/unify/models/operatio let value: FileStorageSharedLinksAddRequest = { serviceId: "salesforce", - sharedLink: { - downloadUrl: "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", - targetId: "", - scope: "company", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragesharedlinksaddresponse.md b/docs/models/operations/filestoragesharedlinksaddresponse.md index 421623d9..20cdc4d0 100644 --- a/docs/models/operations/filestoragesharedlinksaddresponse.md +++ b/docs/models/operations/filestoragesharedlinksaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageSharedLinksAddResponse } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createSharedLinkResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "Shared Links", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageSharedLinksAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksallglobals.md b/docs/models/operations/filestoragesharedlinksallglobals.md index da6ff50f..6949a9a6 100644 --- a/docs/models/operations/filestoragesharedlinksallglobals.md +++ b/docs/models/operations/filestoragesharedlinksallglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageSharedLinksAllGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksAllGlobals = {}; +let value: FileStorageSharedLinksAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksallresponse.md b/docs/models/operations/filestoragesharedlinksallresponse.md index de471091..ed3fdb89 100644 --- a/docs/models/operations/filestoragesharedlinksallresponse.md +++ b/docs/models/operations/filestoragesharedlinksallresponse.md @@ -5,75 +5,7 @@ ```typescript import { FileStorageSharedLinksAllResponse } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getSharedLinksResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "Shared Links", - operation: "all", - data: [ - { - url: "https://www.box.com/s/vspke7y05sb214wjokpk", - downloadUrl: - "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", - target: { - id: "12345", - name: "sample.jpg", - type: "file", - }, - scope: "company", - expiresAt: new Date("2022-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageSharedLinksAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksdeleteglobals.md b/docs/models/operations/filestoragesharedlinksdeleteglobals.md index 6aed1f2f..e4670c3c 100644 --- a/docs/models/operations/filestoragesharedlinksdeleteglobals.md +++ b/docs/models/operations/filestoragesharedlinksdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageSharedLinksDeleteGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksDeleteGlobals = {}; +let value: FileStorageSharedLinksDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksdeleteresponse.md b/docs/models/operations/filestoragesharedlinksdeleteresponse.md index 93018b2a..43f3fca2 100644 --- a/docs/models/operations/filestoragesharedlinksdeleteresponse.md +++ b/docs/models/operations/filestoragesharedlinksdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageSharedLinksDeleteResponse } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteSharedLinkResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "Shared Links", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageSharedLinksDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksoneglobals.md b/docs/models/operations/filestoragesharedlinksoneglobals.md index ae470c11..1a7dc1f3 100644 --- a/docs/models/operations/filestoragesharedlinksoneglobals.md +++ b/docs/models/operations/filestoragesharedlinksoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageSharedLinksOneGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksOneGlobals = {}; +let value: FileStorageSharedLinksOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksoneresponse.md b/docs/models/operations/filestoragesharedlinksoneresponse.md index eb28adbb..1c8cb88f 100644 --- a/docs/models/operations/filestoragesharedlinksoneresponse.md +++ b/docs/models/operations/filestoragesharedlinksoneresponse.md @@ -5,58 +5,7 @@ ```typescript import { FileStorageSharedLinksOneResponse } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getSharedLinkResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "Shared Links", - operation: "one", - data: { - url: "https://www.box.com/s/vspke7y05sb214wjokpk", - downloadUrl: - "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", - target: { - id: "12345", - name: "sample.jpg", - type: "file", - }, - scope: "company", - expiresAt: new Date("2022-09-30T07:43:32.000Z"), - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageSharedLinksOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksupdateglobals.md b/docs/models/operations/filestoragesharedlinksupdateglobals.md index 73a50a97..0b21a4b4 100644 --- a/docs/models/operations/filestoragesharedlinksupdateglobals.md +++ b/docs/models/operations/filestoragesharedlinksupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageSharedLinksUpdateGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksUpdateGlobals = {}; +let value: FileStorageSharedLinksUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestoragesharedlinksupdaterequest.md b/docs/models/operations/filestoragesharedlinksupdaterequest.md index 9c79236a..73003afc 100644 --- a/docs/models/operations/filestoragesharedlinksupdaterequest.md +++ b/docs/models/operations/filestoragesharedlinksupdaterequest.md @@ -8,26 +8,6 @@ import { FileStorageSharedLinksUpdateRequest } from "@apideck/unify/models/opera let value: FileStorageSharedLinksUpdateRequest = { id: "", serviceId: "salesforce", - sharedLink: { - downloadUrl: "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg", - targetId: "", - scope: "company", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestoragesharedlinksupdateresponse.md b/docs/models/operations/filestoragesharedlinksupdateresponse.md index 0e8d9dfd..353e0327 100644 --- a/docs/models/operations/filestoragesharedlinksupdateresponse.md +++ b/docs/models/operations/filestoragesharedlinksupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageSharedLinksUpdateResponse } from "@apideck/unify/models/operations"; -let value: FileStorageSharedLinksUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateSharedLinkResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "Shared Links", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageSharedLinksUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsaddglobals.md b/docs/models/operations/filestorageuploadsessionsaddglobals.md index 563ae58c..62a70f5c 100644 --- a/docs/models/operations/filestorageuploadsessionsaddglobals.md +++ b/docs/models/operations/filestorageuploadsessionsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageUploadSessionsAddGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsAddGlobals = {}; +let value: FileStorageUploadSessionsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsaddrequest.md b/docs/models/operations/filestorageuploadsessionsaddrequest.md index 502aa553..8474fdfd 100644 --- a/docs/models/operations/filestorageuploadsessionsaddrequest.md +++ b/docs/models/operations/filestorageuploadsessionsaddrequest.md @@ -7,27 +7,6 @@ import { FileStorageUploadSessionsAddRequest } from "@apideck/unify/models/opera let value: FileStorageUploadSessionsAddRequest = { serviceId: "salesforce", - createUploadSessionRequest: { - name: "Documents", - parentFolderId: "1234", - driveId: "1234", - size: 1810673, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/filestorageuploadsessionsaddresponse.md b/docs/models/operations/filestorageuploadsessionsaddresponse.md index db207c8d..dc680820 100644 --- a/docs/models/operations/filestorageuploadsessionsaddresponse.md +++ b/docs/models/operations/filestorageuploadsessionsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageUploadSessionsAddResponse } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createUploadSessionResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "UploadSessions", - operation: "one", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageUploadSessionsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsdeleteglobals.md b/docs/models/operations/filestorageuploadsessionsdeleteglobals.md index cf4f5dc4..f6e77861 100644 --- a/docs/models/operations/filestorageuploadsessionsdeleteglobals.md +++ b/docs/models/operations/filestorageuploadsessionsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageUploadSessionsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsDeleteGlobals = {}; +let value: FileStorageUploadSessionsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsdeleteresponse.md b/docs/models/operations/filestorageuploadsessionsdeleteresponse.md index 50b11bfe..e8bf8a79 100644 --- a/docs/models/operations/filestorageuploadsessionsdeleteresponse.md +++ b/docs/models/operations/filestorageuploadsessionsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageUploadSessionsDeleteResponse } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteUploadSessionResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "UploadSessions", - operation: "one", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageUploadSessionsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsfinishglobals.md b/docs/models/operations/filestorageuploadsessionsfinishglobals.md index efe3f328..c1b41996 100644 --- a/docs/models/operations/filestorageuploadsessionsfinishglobals.md +++ b/docs/models/operations/filestorageuploadsessionsfinishglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageUploadSessionsFinishGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsFinishGlobals = {}; +let value: FileStorageUploadSessionsFinishGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsfinishresponse.md b/docs/models/operations/filestorageuploadsessionsfinishresponse.md index fdb3b7c8..ff95d8ba 100644 --- a/docs/models/operations/filestorageuploadsessionsfinishresponse.md +++ b/docs/models/operations/filestorageuploadsessionsfinishresponse.md @@ -5,59 +5,7 @@ ```typescript import { FileStorageUploadSessionsFinishResponse } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsFinishResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getFileResponse: { - statusCode: 200, - status: "OK", - service: "google-drive", - resource: "files", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - name: "sample.jpg", - description: "A sample image", - type: "file", - path: "/Documents/sample.jpg", - mimeType: "image/jpeg", - size: 1810673, - owner: { - id: "12345", - email: "hello@apideck.com", - name: "Elon Musk", - }, - parentFolders: [ - { - id: "12345", - name: "Personal", - }, - ], - exportFormats: [ - "application/pdf", - "application/vnd.oasis.opendocument.presentation", - "text/plain", - ], - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageUploadSessionsFinishResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsoneglobals.md b/docs/models/operations/filestorageuploadsessionsoneglobals.md index 86ee764c..07ede8fb 100644 --- a/docs/models/operations/filestorageuploadsessionsoneglobals.md +++ b/docs/models/operations/filestorageuploadsessionsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageUploadSessionsOneGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsOneGlobals = {}; +let value: FileStorageUploadSessionsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsoneresponse.md b/docs/models/operations/filestorageuploadsessionsoneresponse.md index 8e68860f..62463c75 100644 --- a/docs/models/operations/filestorageuploadsessionsoneresponse.md +++ b/docs/models/operations/filestorageuploadsessionsoneresponse.md @@ -5,37 +5,7 @@ ```typescript import { FileStorageUploadSessionsOneResponse } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getUploadSessionResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "UploadSessions", - operation: "one", - data: { - id: "12345", - success: true, - partSize: 1000000, - parallelUploadSupported: true, - uploadedByteRange: "0-42", - expiresAt: new Date("2022-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageUploadSessionsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsuploadglobals.md b/docs/models/operations/filestorageuploadsessionsuploadglobals.md index 2e73f122..70dc1abb 100644 --- a/docs/models/operations/filestorageuploadsessionsuploadglobals.md +++ b/docs/models/operations/filestorageuploadsessionsuploadglobals.md @@ -5,7 +5,10 @@ ```typescript import { FileStorageUploadSessionsUploadGlobals } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsUploadGlobals = {}; +let value: FileStorageUploadSessionsUploadGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/filestorageuploadsessionsuploadresponse.md b/docs/models/operations/filestorageuploadsessionsuploadresponse.md index 3c0d783e..c341423a 100644 --- a/docs/models/operations/filestorageuploadsessionsuploadresponse.md +++ b/docs/models/operations/filestorageuploadsessionsuploadresponse.md @@ -5,32 +5,7 @@ ```typescript import { FileStorageUploadSessionsUploadResponse } from "@apideck/unify/models/operations"; -let value: FileStorageUploadSessionsUploadResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateUploadSessionResponse: { - statusCode: 200, - status: "OK", - service: "dropbox", - resource: "UploadSessions", - operation: "one", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: FileStorageUploadSessionsUploadResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesaddglobals.md b/docs/models/operations/hriscompaniesaddglobals.md index b417a2cd..e41ef2e1 100644 --- a/docs/models/operations/hriscompaniesaddglobals.md +++ b/docs/models/operations/hriscompaniesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisCompaniesAddGlobals } from "@apideck/unify/models/operations"; -let value: HrisCompaniesAddGlobals = {}; +let value: HrisCompaniesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesaddrequest.md b/docs/models/operations/hriscompaniesaddrequest.md index a2ac7254..aab5e2a7 100644 --- a/docs/models/operations/hriscompaniesaddrequest.md +++ b/docs/models/operations/hriscompaniesaddrequest.md @@ -7,82 +7,6 @@ import { HrisCompaniesAddRequest } from "@apideck/unify/models/operations"; let value: HrisCompaniesAddRequest = { serviceId: "salesforce", - hrisCompany: { - legalName: "SpaceX", - displayName: "SpaceX", - subdomain: "company", - status: "active", - companyNumber: "123456-AB", - currency: "USD", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - debtorId: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/hriscompaniesaddresponse.md b/docs/models/operations/hriscompaniesaddresponse.md index 5356c5ad..0e3a32f4 100644 --- a/docs/models/operations/hriscompaniesaddresponse.md +++ b/docs/models/operations/hriscompaniesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisCompaniesAddResponse } from "@apideck/unify/models/operations"; -let value: HrisCompaniesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createHrisCompanyResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Companies", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisCompaniesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesallglobals.md b/docs/models/operations/hriscompaniesallglobals.md index 3e008eb7..a4973342 100644 --- a/docs/models/operations/hriscompaniesallglobals.md +++ b/docs/models/operations/hriscompaniesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisCompaniesAllGlobals } from "@apideck/unify/models/operations"; -let value: HrisCompaniesAllGlobals = {}; +let value: HrisCompaniesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesallresponse.md b/docs/models/operations/hriscompaniesallresponse.md index 269f58b1..e00d4702 100644 --- a/docs/models/operations/hriscompaniesallresponse.md +++ b/docs/models/operations/hriscompaniesallresponse.md @@ -5,128 +5,7 @@ ```typescript import { HrisCompaniesAllResponse } from "@apideck/unify/models/operations"; -let value: HrisCompaniesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getHrisCompaniesResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Companies", - operation: "all", - data: [ - { - id: "12345", - legalName: "SpaceX", - displayName: "SpaceX", - subdomain: "company", - status: "active", - companyNumber: "123456-AB", - currency: "USD", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - debtorId: "12345", - deleted: false, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisCompaniesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesdeleteglobals.md b/docs/models/operations/hriscompaniesdeleteglobals.md index db5ad674..0011d84b 100644 --- a/docs/models/operations/hriscompaniesdeleteglobals.md +++ b/docs/models/operations/hriscompaniesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisCompaniesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: HrisCompaniesDeleteGlobals = {}; +let value: HrisCompaniesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesdeleteresponse.md b/docs/models/operations/hriscompaniesdeleteresponse.md index a4818dd9..a0b23d60 100644 --- a/docs/models/operations/hriscompaniesdeleteresponse.md +++ b/docs/models/operations/hriscompaniesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisCompaniesDeleteResponse } from "@apideck/unify/models/operations"; -let value: HrisCompaniesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteHrisCompanyResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Companies", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisCompaniesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesoneglobals.md b/docs/models/operations/hriscompaniesoneglobals.md index 92a2224f..f1d3bdac 100644 --- a/docs/models/operations/hriscompaniesoneglobals.md +++ b/docs/models/operations/hriscompaniesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisCompaniesOneGlobals } from "@apideck/unify/models/operations"; -let value: HrisCompaniesOneGlobals = {}; +let value: HrisCompaniesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesoneresponse.md b/docs/models/operations/hriscompaniesoneresponse.md index 277e2fc3..3daadb5c 100644 --- a/docs/models/operations/hriscompaniesoneresponse.md +++ b/docs/models/operations/hriscompaniesoneresponse.md @@ -5,111 +5,7 @@ ```typescript import { HrisCompaniesOneResponse } from "@apideck/unify/models/operations"; -let value: HrisCompaniesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getHrisCompanyResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Companies", - operation: "one", - data: { - id: "12345", - legalName: "SpaceX", - displayName: "SpaceX", - subdomain: "company", - status: "active", - companyNumber: "123456-AB", - currency: "USD", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - debtorId: "12345", - deleted: false, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisCompaniesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesupdateglobals.md b/docs/models/operations/hriscompaniesupdateglobals.md index dd88c59c..a887e431 100644 --- a/docs/models/operations/hriscompaniesupdateglobals.md +++ b/docs/models/operations/hriscompaniesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisCompaniesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: HrisCompaniesUpdateGlobals = {}; +let value: HrisCompaniesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hriscompaniesupdaterequest.md b/docs/models/operations/hriscompaniesupdaterequest.md index 7510ec47..53897efd 100644 --- a/docs/models/operations/hriscompaniesupdaterequest.md +++ b/docs/models/operations/hriscompaniesupdaterequest.md @@ -8,82 +8,6 @@ import { HrisCompaniesUpdateRequest } from "@apideck/unify/models/operations"; let value: HrisCompaniesUpdateRequest = { id: "", serviceId: "salesforce", - hrisCompany: { - legalName: "SpaceX", - displayName: "SpaceX", - subdomain: "company", - status: "active", - companyNumber: "123456-AB", - currency: "USD", - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - websites: [ - { - id: "12345", - url: "http://example.com", - type: "primary", - }, - ], - debtorId: "12345", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/hriscompaniesupdateresponse.md b/docs/models/operations/hriscompaniesupdateresponse.md index 40b62665..d96e4ac4 100644 --- a/docs/models/operations/hriscompaniesupdateresponse.md +++ b/docs/models/operations/hriscompaniesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisCompaniesUpdateResponse } from "@apideck/unify/models/operations"; -let value: HrisCompaniesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateHrisCompanyResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Companies", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisCompaniesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsaddglobals.md b/docs/models/operations/hrisdepartmentsaddglobals.md index 333c9d30..0fcdbea2 100644 --- a/docs/models/operations/hrisdepartmentsaddglobals.md +++ b/docs/models/operations/hrisdepartmentsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisDepartmentsAddGlobals } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsAddGlobals = {}; +let value: HrisDepartmentsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsaddrequest.md b/docs/models/operations/hrisdepartmentsaddrequest.md index ba70bed2..4c285a62 100644 --- a/docs/models/operations/hrisdepartmentsaddrequest.md +++ b/docs/models/operations/hrisdepartmentsaddrequest.md @@ -7,26 +7,6 @@ import { HrisDepartmentsAddRequest } from "@apideck/unify/models/operations"; let value: HrisDepartmentsAddRequest = { serviceId: "salesforce", - department: { - name: "R&D", - code: "2", - description: "R&D", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/hrisdepartmentsaddresponse.md b/docs/models/operations/hrisdepartmentsaddresponse.md index d72d9627..a14c655e 100644 --- a/docs/models/operations/hrisdepartmentsaddresponse.md +++ b/docs/models/operations/hrisdepartmentsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisDepartmentsAddResponse } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "workday", - resource: "Departments", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisDepartmentsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsallglobals.md b/docs/models/operations/hrisdepartmentsallglobals.md index eb5b3289..524f4f16 100644 --- a/docs/models/operations/hrisdepartmentsallglobals.md +++ b/docs/models/operations/hrisdepartmentsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisDepartmentsAllGlobals } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsAllGlobals = {}; +let value: HrisDepartmentsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsallresponse.md b/docs/models/operations/hrisdepartmentsallresponse.md index 18ad4f15..baaefdf9 100644 --- a/docs/models/operations/hrisdepartmentsallresponse.md +++ b/docs/models/operations/hrisdepartmentsallresponse.md @@ -5,72 +5,7 @@ ```typescript import { HrisDepartmentsAllResponse } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getDepartmentsResponse: { - statusCode: 200, - status: "OK", - service: "workday", - resource: "Departments", - operation: "all", - data: [ - { - id: "12345", - parentId: "22345", - name: "R&D", - code: "2", - description: "R&D", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisDepartmentsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsdeleteglobals.md b/docs/models/operations/hrisdepartmentsdeleteglobals.md index c0ec3a75..22abbcd6 100644 --- a/docs/models/operations/hrisdepartmentsdeleteglobals.md +++ b/docs/models/operations/hrisdepartmentsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisDepartmentsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsDeleteGlobals = {}; +let value: HrisDepartmentsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsdeleteresponse.md b/docs/models/operations/hrisdepartmentsdeleteresponse.md index 76e6eead..4f9b0918 100644 --- a/docs/models/operations/hrisdepartmentsdeleteresponse.md +++ b/docs/models/operations/hrisdepartmentsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisDepartmentsDeleteResponse } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "workday", - resource: "Departments", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisDepartmentsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsoneglobals.md b/docs/models/operations/hrisdepartmentsoneglobals.md index fb53dea8..6a3ba077 100644 --- a/docs/models/operations/hrisdepartmentsoneglobals.md +++ b/docs/models/operations/hrisdepartmentsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisDepartmentsOneGlobals } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsOneGlobals = {}; +let value: HrisDepartmentsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsoneresponse.md b/docs/models/operations/hrisdepartmentsoneresponse.md index 54fcd1af..79923d60 100644 --- a/docs/models/operations/hrisdepartmentsoneresponse.md +++ b/docs/models/operations/hrisdepartmentsoneresponse.md @@ -5,55 +5,7 @@ ```typescript import { HrisDepartmentsOneResponse } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "workday", - resource: "Departments", - operation: "one", - data: { - id: "12345", - parentId: "22345", - name: "R&D", - code: "2", - description: "R&D", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisDepartmentsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsupdateglobals.md b/docs/models/operations/hrisdepartmentsupdateglobals.md index d4f18a7f..83c20789 100644 --- a/docs/models/operations/hrisdepartmentsupdateglobals.md +++ b/docs/models/operations/hrisdepartmentsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisDepartmentsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsUpdateGlobals = {}; +let value: HrisDepartmentsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisdepartmentsupdaterequest.md b/docs/models/operations/hrisdepartmentsupdaterequest.md index 038766bf..35864add 100644 --- a/docs/models/operations/hrisdepartmentsupdaterequest.md +++ b/docs/models/operations/hrisdepartmentsupdaterequest.md @@ -8,26 +8,6 @@ import { HrisDepartmentsUpdateRequest } from "@apideck/unify/models/operations"; let value: HrisDepartmentsUpdateRequest = { id: "", serviceId: "salesforce", - department: { - name: "R&D", - code: "2", - description: "R&D", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/hrisdepartmentsupdateresponse.md b/docs/models/operations/hrisdepartmentsupdateresponse.md index 2e05934b..0124a2ea 100644 --- a/docs/models/operations/hrisdepartmentsupdateresponse.md +++ b/docs/models/operations/hrisdepartmentsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisDepartmentsUpdateResponse } from "@apideck/unify/models/operations"; -let value: HrisDepartmentsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateDepartmentResponse: { - statusCode: 200, - status: "OK", - service: "workday", - resource: "Departments", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisDepartmentsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeepayrollsallglobals.md b/docs/models/operations/hrisemployeepayrollsallglobals.md index aafe8e71..0690e319 100644 --- a/docs/models/operations/hrisemployeepayrollsallglobals.md +++ b/docs/models/operations/hrisemployeepayrollsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeePayrollsAllGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeePayrollsAllGlobals = {}; +let value: HrisEmployeePayrollsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeepayrollsallresponse.md b/docs/models/operations/hrisemployeepayrollsallresponse.md index 62f27538..415c8ecc 100644 --- a/docs/models/operations/hrisemployeepayrollsallresponse.md +++ b/docs/models/operations/hrisemployeepayrollsallresponse.md @@ -5,79 +5,7 @@ ```typescript import { HrisEmployeePayrollsAllResponse } from "@apideck/unify/models/operations"; -let value: HrisEmployeePayrollsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEmployeePayrollsResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "all", - data: [ - { - id: "12345", - employeeId: "12345", - companyId: "23456", - processed: false, - processedDate: "2022-04-08", - checkDate: "2022-04-08", - startDate: "2022-04-08", - endDate: "2022-04-21", - totals: { - companyDebit: 27992.49, - taxDebit: 8655.32, - checkAmount: 27966.23, - netPay: 19337.17, - grossPay: 27966.23, - employerTaxes: 2038.93, - employeeTaxes: 6616.39, - employerBenefitContributions: 0, - employeeBenefitDeductions: 0, - }, - compensations: [ - { - employeeId: "12345", - netPay: 2199.93, - grossPay: 3000, - taxes: [ - { - name: "CA State Income Tax", - employer: false, - amount: 1.97, - }, - ], - deductions: [ - { - name: "Company Car", - amount: 10.97, - }, - ], - benefits: [ - { - name: "Health Insurance", - employeeDeduction: 142.94, - employerContribution: 141.14, - }, - ], - }, - ], - }, - ], - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeePayrollsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeepayrollsoneglobals.md b/docs/models/operations/hrisemployeepayrollsoneglobals.md index ce95781b..ba6bb29a 100644 --- a/docs/models/operations/hrisemployeepayrollsoneglobals.md +++ b/docs/models/operations/hrisemployeepayrollsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeePayrollsOneGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeePayrollsOneGlobals = {}; +let value: HrisEmployeePayrollsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeepayrollsoneresponse.md b/docs/models/operations/hrisemployeepayrollsoneresponse.md index bb408eea..d1d00233 100644 --- a/docs/models/operations/hrisemployeepayrollsoneresponse.md +++ b/docs/models/operations/hrisemployeepayrollsoneresponse.md @@ -5,77 +5,7 @@ ```typescript import { HrisEmployeePayrollsOneResponse } from "@apideck/unify/models/operations"; -let value: HrisEmployeePayrollsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEmployeePayrollResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Companies", - operation: "one", - data: { - id: "12345", - employeeId: "12345", - companyId: "23456", - processed: false, - processedDate: "2022-04-08", - checkDate: "2022-04-08", - startDate: "2022-04-08", - endDate: "2022-04-21", - totals: { - companyDebit: 27992.49, - taxDebit: 8655.32, - checkAmount: 27966.23, - netPay: 19337.17, - grossPay: 27966.23, - employerTaxes: 2038.93, - employeeTaxes: 6616.39, - employerBenefitContributions: 0, - employeeBenefitDeductions: 0, - }, - compensations: [ - { - employeeId: "12345", - netPay: 2199.93, - grossPay: 3000, - taxes: [ - { - name: "CA State Income Tax", - employer: false, - amount: 1.97, - }, - ], - deductions: [ - { - name: "Company Car", - amount: 10.97, - }, - ], - benefits: [ - { - name: "Health Insurance", - employeeDeduction: 142.94, - employerContribution: 141.14, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeePayrollsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesaddglobals.md b/docs/models/operations/hrisemployeesaddglobals.md index 11350cb6..be38980e 100644 --- a/docs/models/operations/hrisemployeesaddglobals.md +++ b/docs/models/operations/hrisemployeesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeesAddGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeesAddGlobals = {}; +let value: HrisEmployeesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesaddrequest.md b/docs/models/operations/hrisemployeesaddrequest.md index ba62a194..8cbdac81 100644 --- a/docs/models/operations/hrisemployeesaddrequest.md +++ b/docs/models/operations/hrisemployeesaddrequest.md @@ -4,233 +4,9 @@ ```typescript import { HrisEmployeesAddRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: HrisEmployeesAddRequest = { serviceId: "salesforce", - employee: { - id: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - displayName: "Technoking", - preferredName: "Elon Musk", - initials: "EM", - salutation: "Mr", - title: "CEO", - maritalStatus: "married", - partner: { - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - gender: "male", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - }, - division: "Europe", - divisionId: "12345", - departmentId: "12345", - departmentName: "12345", - team: { - id: "1234", - name: "Full Stack Engineers", - }, - companyId: "23456", - companyName: "SpaceX", - employmentStartDate: "2021-10-26", - employmentEndDate: "2028-10-26", - leavingReason: "resigned", - employeeNumber: "123456-AB", - employmentStatus: "active", - ethnicity: "African American", - manager: { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - employmentStatus: "active", - }, - directReports: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - socialSecurityNumber: "123456789", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - countryOfBirth: "US", - description: "A description", - gender: "male", - pronouns: "she,her", - preferredLanguage: "EN", - languages: [ - "EN", - ], - nationalities: [ - "US", - ], - photoUrl: "https://unavatar.io/elon-musk", - timezone: "Europe/London", - source: "lever", - sourceId: "12345", - recordUrl: "https://app.intercom.io/contacts/12345", - jobs: [ - { - title: "CEO", - role: "Sales", - startDate: new RFCDate("2020-08-12"), - endDate: new RFCDate("2020-08-12"), - compensationRate: 72000, - currency: "USD", - paymentUnit: "year", - hiredAt: new RFCDate("2020-08-12"), - isPrimary: true, - isManager: true, - status: "active", - location: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - ], - compensations: [ - { - rate: 50, - paymentUnit: "hour", - flsaStatus: "nonexempt", - effectiveDate: "2021-06-11", - }, - ], - worksRemote: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - taxCode: "1111", - taxId: "234-32-0000", - dietaryPreference: "Veggie", - foodAllergies: [ - "No allergies", - ], - probationPeriod: { - startDate: new RFCDate("2021-10-01"), - endDate: new RFCDate("2021-11-28"), - }, - tags: [ - "New", - ], - rowVersion: "1-12345", - deleted: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/hrisemployeesaddresponse.md b/docs/models/operations/hrisemployeesaddresponse.md index 6d5227a7..c858ae8f 100644 --- a/docs/models/operations/hrisemployeesaddresponse.md +++ b/docs/models/operations/hrisemployeesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisEmployeesAddResponse } from "@apideck/unify/models/operations"; -let value: HrisEmployeesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createEmployeeResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesallglobals.md b/docs/models/operations/hrisemployeesallglobals.md index 1f5eee13..20e290cd 100644 --- a/docs/models/operations/hrisemployeesallglobals.md +++ b/docs/models/operations/hrisemployeesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeesAllGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeesAllGlobals = {}; +let value: HrisEmployeesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesallrequest.md b/docs/models/operations/hrisemployeesallrequest.md index e96bc79f..69279072 100644 --- a/docs/models/operations/hrisemployeesallrequest.md +++ b/docs/models/operations/hrisemployeesallrequest.md @@ -22,6 +22,7 @@ let value: HrisEmployeesAllRequest = { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/hrisemployeesallresponse.md b/docs/models/operations/hrisemployeesallresponse.md index 131fb020..3781e533 100644 --- a/docs/models/operations/hrisemployeesallresponse.md +++ b/docs/models/operations/hrisemployeesallresponse.md @@ -4,281 +4,8 @@ ```typescript import { HrisEmployeesAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: HrisEmployeesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEmployeesResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "all", - data: [ - { - id: "12345", - downstreamId: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - displayName: "Technoking", - preferredName: "Elon Musk", - initials: "EM", - salutation: "Mr", - title: "CEO", - maritalStatus: "married", - partner: { - id: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - gender: "male", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - }, - division: "Europe", - divisionId: "12345", - departmentId: "12345", - departmentName: "12345", - team: { - id: "1234", - name: "Full Stack Engineers", - }, - companyId: "23456", - companyName: "SpaceX", - employmentStartDate: "2021-10-26", - employmentEndDate: "2028-10-26", - leavingReason: "resigned", - employeeNumber: "123456-AB", - employmentStatus: "active", - ethnicity: "African American", - manager: { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - employmentStatus: "active", - }, - directReports: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - socialSecurityNumber: "123456789", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - countryOfBirth: "US", - description: "A description", - gender: "male", - pronouns: "she,her", - preferredLanguage: "EN", - languages: [ - "EN", - ], - nationalities: [ - "US", - ], - photoUrl: "https://unavatar.io/elon-musk", - timezone: "Europe/London", - source: "lever", - sourceId: "12345", - recordUrl: "https://app.intercom.io/contacts/12345", - jobs: [ - { - id: "12345", - employeeId: "12345", - title: "CEO", - role: "Sales", - startDate: new RFCDate("2020-08-12"), - endDate: new RFCDate("2020-08-12"), - compensationRate: 72000, - currency: "USD", - paymentUnit: "year", - hiredAt: new RFCDate("2020-08-12"), - isPrimary: true, - isManager: true, - status: "active", - location: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - ], - compensations: [ - { - id: "3404301363494309004", - jobId: "3490439050957906679", - rate: 50, - paymentUnit: "hour", - flsaStatus: "nonexempt", - effectiveDate: "2021-06-11", - }, - ], - worksRemote: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - taxCode: "1111", - taxId: "234-32-0000", - dietaryPreference: "Veggie", - foodAllergies: [ - "No allergies", - ], - probationPeriod: { - startDate: new RFCDate("2021-10-01"), - endDate: new RFCDate("2021-11-28"), - }, - tags: [ - "New", - ], - rowVersion: "1-12345", - deleted: true, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeeschedulesallglobals.md b/docs/models/operations/hrisemployeeschedulesallglobals.md index 5aa28824..8febae46 100644 --- a/docs/models/operations/hrisemployeeschedulesallglobals.md +++ b/docs/models/operations/hrisemployeeschedulesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeeSchedulesAllGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeeSchedulesAllGlobals = {}; +let value: HrisEmployeeSchedulesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeeschedulesallresponse.md b/docs/models/operations/hrisemployeeschedulesallresponse.md index b71a653e..f282d831 100644 --- a/docs/models/operations/hrisemployeeschedulesallresponse.md +++ b/docs/models/operations/hrisemployeeschedulesallresponse.md @@ -4,293 +4,8 @@ ```typescript import { HrisEmployeeSchedulesAllResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: HrisEmployeeSchedulesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEmployeeSchedulesResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "all", - data: { - employee: { - id: "12345", - downstreamId: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - displayName: "Technoking", - preferredName: "Elon Musk", - initials: "EM", - salutation: "Mr", - title: "CEO", - maritalStatus: "married", - partner: { - id: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - gender: "male", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - }, - division: "Europe", - divisionId: "12345", - departmentId: "12345", - departmentName: "12345", - team: { - id: "1234", - name: "Full Stack Engineers", - }, - companyId: "23456", - companyName: "SpaceX", - employmentStartDate: "2021-10-26", - employmentEndDate: "2028-10-26", - leavingReason: "resigned", - employeeNumber: "123456-AB", - employmentStatus: "active", - ethnicity: "African American", - manager: { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - employmentStatus: "active", - }, - directReports: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - socialSecurityNumber: "123456789", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - countryOfBirth: "US", - description: "A description", - gender: "male", - pronouns: "she,her", - preferredLanguage: "EN", - languages: [ - "EN", - ], - nationalities: [ - "US", - ], - photoUrl: "https://unavatar.io/elon-musk", - timezone: "Europe/London", - source: "lever", - sourceId: "12345", - recordUrl: "https://app.intercom.io/contacts/12345", - jobs: [ - { - id: "12345", - employeeId: "12345", - title: "CEO", - role: "Sales", - startDate: new RFCDate("2020-08-12"), - endDate: new RFCDate("2020-08-12"), - compensationRate: 72000, - currency: "USD", - paymentUnit: "year", - hiredAt: new RFCDate("2020-08-12"), - isPrimary: true, - isManager: true, - status: "active", - location: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - ], - compensations: [ - { - id: "3404301363494309004", - jobId: "3490439050957906679", - rate: 50, - paymentUnit: "hour", - flsaStatus: "nonexempt", - effectiveDate: "2021-06-11", - }, - ], - worksRemote: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - taxCode: "1111", - taxId: "234-32-0000", - dietaryPreference: "Veggie", - foodAllergies: [ - "No allergies", - ], - probationPeriod: { - startDate: new RFCDate("2021-10-01"), - endDate: new RFCDate("2021-11-28"), - }, - tags: [ - "New", - ], - rowVersion: "1-12345", - deleted: true, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - schedules: [ - { - id: "12345", - startDate: "2022-04-08", - endDate: "2022-04-21", - workPattern: { - oddWeeks: { - hoursMonday: 8, - hoursTuesday: 8, - hoursWednesday: 4, - hoursThursday: 7.5, - hoursFriday: 4, - hoursSaturday: 0, - hoursSunday: 0, - }, - evenWeeks: { - hoursMonday: 8, - hoursTuesday: 8, - hoursWednesday: 4, - hoursThursday: 7.5, - hoursFriday: 4, - hoursSaturday: 0, - hoursSunday: 0, - }, - }, - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeeSchedulesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesdeleteglobals.md b/docs/models/operations/hrisemployeesdeleteglobals.md index a3fdd66a..729dcff1 100644 --- a/docs/models/operations/hrisemployeesdeleteglobals.md +++ b/docs/models/operations/hrisemployeesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeesDeleteGlobals = {}; +let value: HrisEmployeesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesdeleteresponse.md b/docs/models/operations/hrisemployeesdeleteresponse.md index da1fc10f..f49daeb4 100644 --- a/docs/models/operations/hrisemployeesdeleteresponse.md +++ b/docs/models/operations/hrisemployeesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisEmployeesDeleteResponse } from "@apideck/unify/models/operations"; -let value: HrisEmployeesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteEmployeeResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesoneglobals.md b/docs/models/operations/hrisemployeesoneglobals.md index 8db81a2a..0047e610 100644 --- a/docs/models/operations/hrisemployeesoneglobals.md +++ b/docs/models/operations/hrisemployeesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeesOneGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeesOneGlobals = {}; +let value: HrisEmployeesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesoneresponse.md b/docs/models/operations/hrisemployeesoneresponse.md index e5e437d4..919bc6ae 100644 --- a/docs/models/operations/hrisemployeesoneresponse.md +++ b/docs/models/operations/hrisemployeesoneresponse.md @@ -4,264 +4,8 @@ ```typescript import { HrisEmployeesOneResponse } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; -let value: HrisEmployeesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getEmployeeResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "one", - data: { - id: "12345", - downstreamId: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - displayName: "Technoking", - preferredName: "Elon Musk", - initials: "EM", - salutation: "Mr", - title: "CEO", - maritalStatus: "married", - partner: { - id: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - gender: "male", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - }, - division: "Europe", - divisionId: "12345", - departmentId: "12345", - departmentName: "12345", - team: { - id: "1234", - name: "Full Stack Engineers", - }, - companyId: "23456", - companyName: "SpaceX", - employmentStartDate: "2021-10-26", - employmentEndDate: "2028-10-26", - leavingReason: "resigned", - employeeNumber: "123456-AB", - employmentStatus: "active", - ethnicity: "African American", - manager: { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - employmentStatus: "active", - }, - directReports: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - socialSecurityNumber: "123456789", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - countryOfBirth: "US", - description: "A description", - gender: "male", - pronouns: "she,her", - preferredLanguage: "EN", - languages: [ - "EN", - ], - nationalities: [ - "US", - ], - photoUrl: "https://unavatar.io/elon-musk", - timezone: "Europe/London", - source: "lever", - sourceId: "12345", - recordUrl: "https://app.intercom.io/contacts/12345", - jobs: [ - { - id: "12345", - employeeId: "12345", - title: "CEO", - role: "Sales", - startDate: new RFCDate("2020-08-12"), - endDate: new RFCDate("2020-08-12"), - compensationRate: 72000, - currency: "USD", - paymentUnit: "year", - hiredAt: new RFCDate("2020-08-12"), - isPrimary: true, - isManager: true, - status: "active", - location: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - ], - compensations: [ - { - id: "3404301363494309004", - jobId: "3490439050957906679", - rate: 50, - paymentUnit: "hour", - flsaStatus: "nonexempt", - effectiveDate: "2021-06-11", - }, - ], - worksRemote: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - taxCode: "1111", - taxId: "234-32-0000", - dietaryPreference: "Veggie", - foodAllergies: [ - "No allergies", - ], - probationPeriod: { - startDate: new RFCDate("2021-10-01"), - endDate: new RFCDate("2021-11-28"), - }, - tags: [ - "New", - ], - rowVersion: "1-12345", - deleted: true, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesupdateglobals.md b/docs/models/operations/hrisemployeesupdateglobals.md index 790aa7b1..e0a877ce 100644 --- a/docs/models/operations/hrisemployeesupdateglobals.md +++ b/docs/models/operations/hrisemployeesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisEmployeesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: HrisEmployeesUpdateGlobals = {}; +let value: HrisEmployeesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrisemployeesupdaterequest.md b/docs/models/operations/hrisemployeesupdaterequest.md index 050b896f..03014007 100644 --- a/docs/models/operations/hrisemployeesupdaterequest.md +++ b/docs/models/operations/hrisemployeesupdaterequest.md @@ -4,234 +4,10 @@ ```typescript import { HrisEmployeesUpdateRequest } from "@apideck/unify/models/operations"; -import { RFCDate } from "@apideck/unify/types"; let value: HrisEmployeesUpdateRequest = { id: "", serviceId: "salesforce", - employee: { - id: "12345", - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - displayName: "Technoking", - preferredName: "Elon Musk", - initials: "EM", - salutation: "Mr", - title: "CEO", - maritalStatus: "married", - partner: { - firstName: "Elon", - lastName: "Musk", - middleName: "D.", - gender: "male", - initials: "EM", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - }, - division: "Europe", - divisionId: "12345", - departmentId: "12345", - departmentName: "12345", - team: { - id: "1234", - name: "Full Stack Engineers", - }, - companyId: "23456", - companyName: "SpaceX", - employmentStartDate: "2021-10-26", - employmentEndDate: "2028-10-26", - leavingReason: "resigned", - employeeNumber: "123456-AB", - employmentStatus: "active", - ethnicity: "African American", - manager: { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - employmentStatus: "active", - }, - directReports: [ - "a0d636c6-43b3-4bde-8c70-85b707d992f4", - "a98lfd96-43b3-4bde-8c70-85b707d992e6", - ], - socialSecurityNumber: "123456789", - birthday: new RFCDate("2000-08-12"), - deceasedOn: new RFCDate("2000-08-12"), - countryOfBirth: "US", - description: "A description", - gender: "male", - pronouns: "she,her", - preferredLanguage: "EN", - languages: [ - "EN", - ], - nationalities: [ - "US", - ], - photoUrl: "https://unavatar.io/elon-musk", - timezone: "Europe/London", - source: "lever", - sourceId: "12345", - recordUrl: "https://app.intercom.io/contacts/12345", - jobs: [ - { - title: "CEO", - role: "Sales", - startDate: new RFCDate("2020-08-12"), - endDate: new RFCDate("2020-08-12"), - compensationRate: 72000, - currency: "USD", - paymentUnit: "year", - hiredAt: new RFCDate("2020-08-12"), - isPrimary: true, - isManager: true, - status: "active", - location: { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - }, - ], - compensations: [ - { - rate: 50, - paymentUnit: "hour", - flsaStatus: "nonexempt", - effectiveDate: "2021-06-11", - }, - ], - worksRemote: true, - addresses: [ - { - id: "123", - type: "primary", - string: "25 Spring Street, Blackburn, VIC 3130", - name: "HQ US", - line1: "Main street", - line2: "apt #", - line3: "Suite #", - line4: "delivery instructions", - streetNumber: "25", - city: "San Francisco", - state: "CA", - postalCode: "94104", - country: "US", - latitude: "40.759211", - longitude: "-73.984638", - county: "Santa Clara", - contactName: "Elon Musk", - salutation: "Mr", - phoneNumber: "111-111-1111", - fax: "122-111-1111", - email: "elon@musk.com", - website: "https://elonmusk.com", - notes: "Address notes or delivery instructions.", - rowVersion: "1-12345", - }, - ], - phoneNumbers: [ - { - id: "12345", - countryCode: "1", - areaCode: "323", - number: "111-111-1111", - extension: "105", - type: "primary", - }, - ], - emails: [ - { - id: "123", - email: "elon@musk.com", - type: "primary", - }, - ], - customFields: [ - { - id: "2389328923893298", - name: "employee_level", - description: "Employee Level", - value: "Uses Salesforce and Marketo", - }, - ], - socialLinks: [ - { - id: "12345", - url: "https://www.twitter.com/apideck", - type: "twitter", - }, - ], - bankAccounts: [ - { - bankName: "Monzo", - accountNumber: "123465", - accountName: "SPACEX LLC", - accountType: "credit_card", - iban: "CH2989144532982975332", - bic: "AUDSCHGGXXX", - routingNumber: "012345678", - bsbNumber: "062-001", - branchIdentifier: "001", - bankCode: "BNH", - currency: "USD", - }, - ], - taxCode: "1111", - taxId: "234-32-0000", - dietaryPreference: "Veggie", - foodAllergies: [ - "No allergies", - ], - probationPeriod: { - startDate: new RFCDate("2021-10-01"), - endDate: new RFCDate("2021-11-28"), - }, - tags: [ - "New", - ], - rowVersion: "1-12345", - deleted: true, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/hrisemployeesupdateresponse.md b/docs/models/operations/hrisemployeesupdateresponse.md index 246d14bd..a7b32788 100644 --- a/docs/models/operations/hrisemployeesupdateresponse.md +++ b/docs/models/operations/hrisemployeesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisEmployeesUpdateResponse } from "@apideck/unify/models/operations"; -let value: HrisEmployeesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateEmployeeResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisEmployeesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrispayrollsallglobals.md b/docs/models/operations/hrispayrollsallglobals.md index d42f71d9..5e41fb4b 100644 --- a/docs/models/operations/hrispayrollsallglobals.md +++ b/docs/models/operations/hrispayrollsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisPayrollsAllGlobals } from "@apideck/unify/models/operations"; -let value: HrisPayrollsAllGlobals = {}; +let value: HrisPayrollsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrispayrollsallresponse.md b/docs/models/operations/hrispayrollsallresponse.md index 1844567f..4a3044f1 100644 --- a/docs/models/operations/hrispayrollsallresponse.md +++ b/docs/models/operations/hrispayrollsallresponse.md @@ -5,78 +5,7 @@ ```typescript import { HrisPayrollsAllResponse } from "@apideck/unify/models/operations"; -let value: HrisPayrollsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPayrollsResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Employees", - operation: "all", - data: [ - { - id: "12345", - companyId: "23456", - processed: false, - processedDate: "2022-04-08", - checkDate: "2022-04-08", - startDate: "2022-04-08", - endDate: "2022-04-21", - totals: { - companyDebit: 27992.49, - taxDebit: 8655.32, - checkAmount: 27966.23, - netPay: 19337.17, - grossPay: 27966.23, - employerTaxes: 2038.93, - employeeTaxes: 6616.39, - employerBenefitContributions: 0, - employeeBenefitDeductions: 0, - }, - compensations: [ - { - employeeId: "12345", - netPay: 2199.93, - grossPay: 3000, - taxes: [ - { - name: "CA State Income Tax", - employer: false, - amount: 1.97, - }, - ], - deductions: [ - { - name: "Company Car", - amount: 10.97, - }, - ], - benefits: [ - { - name: "Health Insurance", - employeeDeduction: 142.94, - employerContribution: 141.14, - }, - ], - }, - ], - }, - ], - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisPayrollsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hrispayrollsoneglobals.md b/docs/models/operations/hrispayrollsoneglobals.md index b49c4cba..4a821cc1 100644 --- a/docs/models/operations/hrispayrollsoneglobals.md +++ b/docs/models/operations/hrispayrollsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisPayrollsOneGlobals } from "@apideck/unify/models/operations"; -let value: HrisPayrollsOneGlobals = {}; +let value: HrisPayrollsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hrispayrollsoneresponse.md b/docs/models/operations/hrispayrollsoneresponse.md index b274ddd2..856da2e9 100644 --- a/docs/models/operations/hrispayrollsoneresponse.md +++ b/docs/models/operations/hrispayrollsoneresponse.md @@ -5,76 +5,7 @@ ```typescript import { HrisPayrollsOneResponse } from "@apideck/unify/models/operations"; -let value: HrisPayrollsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getPayrollResponse: { - statusCode: 200, - status: "OK", - service: "undefined", - resource: "Companies", - operation: "one", - data: { - id: "12345", - companyId: "23456", - processed: false, - processedDate: "2022-04-08", - checkDate: "2022-04-08", - startDate: "2022-04-08", - endDate: "2022-04-21", - totals: { - companyDebit: 27992.49, - taxDebit: 8655.32, - checkAmount: 27966.23, - netPay: 19337.17, - grossPay: 27966.23, - employerTaxes: 2038.93, - employeeTaxes: 6616.39, - employerBenefitContributions: 0, - employeeBenefitDeductions: 0, - }, - compensations: [ - { - employeeId: "12345", - netPay: 2199.93, - grossPay: 3000, - taxes: [ - { - name: "CA State Income Tax", - employer: false, - amount: 1.97, - }, - ], - deductions: [ - { - name: "Company Car", - amount: 10.97, - }, - ], - benefits: [ - { - name: "Health Insurance", - employeeDeduction: 142.94, - employerContribution: 141.14, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisPayrollsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsaddglobals.md b/docs/models/operations/hristimeoffrequestsaddglobals.md index 6add133b..275c61a9 100644 --- a/docs/models/operations/hristimeoffrequestsaddglobals.md +++ b/docs/models/operations/hristimeoffrequestsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisTimeOffRequestsAddGlobals } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsAddGlobals = {}; +let value: HrisTimeOffRequestsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsaddrequest.md b/docs/models/operations/hristimeoffrequestsaddrequest.md index 9d80c9c0..084f4968 100644 --- a/docs/models/operations/hristimeoffrequestsaddrequest.md +++ b/docs/models/operations/hristimeoffrequestsaddrequest.md @@ -7,40 +7,6 @@ import { HrisTimeOffRequestsAddRequest } from "@apideck/unify/models/operations" let value: HrisTimeOffRequestsAddRequest = { serviceId: "salesforce", - timeOffRequest: { - employeeId: "12345", - policyId: "12345", - status: "approved", - description: "Enjoying some sun.", - startDate: "2022-04-01", - endDate: "2022-04-01", - requestDate: "2022-03-21", - requestType: "vacation", - approvalDate: "2022-03-21", - units: "hours", - amount: 3.5, - dayPart: "morning", - notes: { - employee: "Relaxing on the beach for a few hours.", - manager: "Enjoy!", - }, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - policyType: "sick", - }, }; ``` diff --git a/docs/models/operations/hristimeoffrequestsaddresponse.md b/docs/models/operations/hristimeoffrequestsaddresponse.md index 5074f422..ae2b74f4 100644 --- a/docs/models/operations/hristimeoffrequestsaddresponse.md +++ b/docs/models/operations/hristimeoffrequestsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisTimeOffRequestsAddResponse } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createTimeOffRequestResponse: { - statusCode: 200, - status: "OK", - service: "bamboohr", - resource: "time-off-requests", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisTimeOffRequestsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsallglobals.md b/docs/models/operations/hristimeoffrequestsallglobals.md index a2242055..16382694 100644 --- a/docs/models/operations/hristimeoffrequestsallglobals.md +++ b/docs/models/operations/hristimeoffrequestsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisTimeOffRequestsAllGlobals } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsAllGlobals = {}; +let value: HrisTimeOffRequestsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsallresponse.md b/docs/models/operations/hristimeoffrequestsallresponse.md index 50193ab7..78c65106 100644 --- a/docs/models/operations/hristimeoffrequestsallresponse.md +++ b/docs/models/operations/hristimeoffrequestsallresponse.md @@ -5,85 +5,7 @@ ```typescript import { HrisTimeOffRequestsAllResponse } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTimeOffRequestsResponse: { - statusCode: 200, - status: "OK", - service: "bamboohr", - resource: "time-off-requests", - operation: "all", - data: [ - { - id: "12345", - employeeId: "12345", - policyId: "12345", - status: "approved", - description: "Enjoying some sun.", - startDate: "2022-04-01", - endDate: "2022-04-01", - requestDate: "2022-03-21", - requestType: "vacation", - approvalDate: "2022-03-21", - units: "hours", - amount: 3.5, - dayPart: "morning", - notes: { - employee: "Relaxing on the beach for a few hours.", - manager: "Enjoy!", - }, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - policyType: "sick", - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisTimeOffRequestsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsdeleteglobals.md b/docs/models/operations/hristimeoffrequestsdeleteglobals.md index 616cfb38..c55d1657 100644 --- a/docs/models/operations/hristimeoffrequestsdeleteglobals.md +++ b/docs/models/operations/hristimeoffrequestsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisTimeOffRequestsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsDeleteGlobals = {}; +let value: HrisTimeOffRequestsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsdeleteresponse.md b/docs/models/operations/hristimeoffrequestsdeleteresponse.md index d12ca5c0..b32ff658 100644 --- a/docs/models/operations/hristimeoffrequestsdeleteresponse.md +++ b/docs/models/operations/hristimeoffrequestsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisTimeOffRequestsDeleteResponse } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteTimeOffRequestResponse: { - statusCode: 200, - status: "OK", - service: "bamboohr", - resource: "time-off-requests", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisTimeOffRequestsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsoneglobals.md b/docs/models/operations/hristimeoffrequestsoneglobals.md index 02a22971..697eabc8 100644 --- a/docs/models/operations/hristimeoffrequestsoneglobals.md +++ b/docs/models/operations/hristimeoffrequestsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisTimeOffRequestsOneGlobals } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsOneGlobals = {}; +let value: HrisTimeOffRequestsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsoneresponse.md b/docs/models/operations/hristimeoffrequestsoneresponse.md index a85d24cd..124f15d6 100644 --- a/docs/models/operations/hristimeoffrequestsoneresponse.md +++ b/docs/models/operations/hristimeoffrequestsoneresponse.md @@ -5,68 +5,7 @@ ```typescript import { HrisTimeOffRequestsOneResponse } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTimeOffRequestResponse: { - statusCode: 200, - status: "OK", - service: "bamboohr", - resource: "time-off-requests", - operation: "one", - data: { - id: "12345", - employeeId: "12345", - policyId: "12345", - status: "approved", - description: "Enjoying some sun.", - startDate: "2022-04-01", - endDate: "2022-04-01", - requestDate: "2022-03-21", - requestType: "vacation", - approvalDate: "2022-03-21", - units: "hours", - amount: 3.5, - dayPart: "morning", - notes: { - employee: "Relaxing on the beach for a few hours.", - manager: "Enjoy!", - }, - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - policyType: "sick", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisTimeOffRequestsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsupdateglobals.md b/docs/models/operations/hristimeoffrequestsupdateglobals.md index 5be89167..cdc3fb06 100644 --- a/docs/models/operations/hristimeoffrequestsupdateglobals.md +++ b/docs/models/operations/hristimeoffrequestsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { HrisTimeOffRequestsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsUpdateGlobals = {}; +let value: HrisTimeOffRequestsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/hristimeoffrequestsupdaterequest.md b/docs/models/operations/hristimeoffrequestsupdaterequest.md index b21555b0..f05cd10f 100644 --- a/docs/models/operations/hristimeoffrequestsupdaterequest.md +++ b/docs/models/operations/hristimeoffrequestsupdaterequest.md @@ -9,40 +9,6 @@ let value: HrisTimeOffRequestsUpdateRequest = { id: "", serviceId: "salesforce", employeeId: "", - timeOffRequest: { - employeeId: "12345", - policyId: "12345", - status: "approved", - description: "Enjoying some sun.", - startDate: "2022-04-01", - endDate: "2022-04-01", - requestDate: "2022-03-21", - requestType: "vacation", - approvalDate: "2022-03-21", - units: "hours", - amount: 3.5, - dayPart: "morning", - notes: { - employee: "Relaxing on the beach for a few hours.", - manager: "Enjoy!", - }, - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - policyType: "sick", - }, }; ``` diff --git a/docs/models/operations/hristimeoffrequestsupdateresponse.md b/docs/models/operations/hristimeoffrequestsupdateresponse.md index 2f3743a6..51596a14 100644 --- a/docs/models/operations/hristimeoffrequestsupdateresponse.md +++ b/docs/models/operations/hristimeoffrequestsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { HrisTimeOffRequestsUpdateResponse } from "@apideck/unify/models/operations"; -let value: HrisTimeOffRequestsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateTimeOffRequestResponse: { - statusCode: 200, - status: "OK", - service: "bamboohr", - resource: "time-off-requests", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: HrisTimeOffRequestsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionsallglobals.md b/docs/models/operations/issuetrackingcollectionsallglobals.md index c4b0a457..374f39c3 100644 --- a/docs/models/operations/issuetrackingcollectionsallglobals.md +++ b/docs/models/operations/issuetrackingcollectionsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionsAllGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionsAllGlobals = {}; +let value: IssueTrackingCollectionsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionsallrequest.md b/docs/models/operations/issuetrackingcollectionsallrequest.md index 1174baf0..00e72e1c 100644 --- a/docs/models/operations/issuetrackingcollectionsallrequest.md +++ b/docs/models/operations/issuetrackingcollectionsallrequest.md @@ -9,6 +9,7 @@ let value: IssueTrackingCollectionsAllRequest = { serviceId: "salesforce", sort: { by: "name", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/issuetrackingcollectionsallresponse.md b/docs/models/operations/issuetrackingcollectionsallresponse.md index 240e98ca..55dcdc10 100644 --- a/docs/models/operations/issuetrackingcollectionsallresponse.md +++ b/docs/models/operations/issuetrackingcollectionsallresponse.md @@ -5,55 +5,7 @@ ```typescript import { IssueTrackingCollectionsAllResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCollectionsResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - type: "Technical", - name: "Main IT Issues", - description: "IT Issues", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionsoneglobals.md b/docs/models/operations/issuetrackingcollectionsoneglobals.md index 440985a2..3babd199 100644 --- a/docs/models/operations/issuetrackingcollectionsoneglobals.md +++ b/docs/models/operations/issuetrackingcollectionsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionsOneGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionsOneGlobals = {}; +let value: IssueTrackingCollectionsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionsoneresponse.md b/docs/models/operations/issuetrackingcollectionsoneresponse.md index 6eaf5171..5660ef82 100644 --- a/docs/models/operations/issuetrackingcollectionsoneresponse.md +++ b/docs/models/operations/issuetrackingcollectionsoneresponse.md @@ -5,38 +5,7 @@ ```typescript import { IssueTrackingCollectionsOneResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCollectionResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "one", - data: { - id: "12345", - parentId: "12345", - type: "Technical", - name: "Main IT Issues", - description: "IT Issues", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectiontagsallglobals.md b/docs/models/operations/issuetrackingcollectiontagsallglobals.md index 67d433e8..e23879ea 100644 --- a/docs/models/operations/issuetrackingcollectiontagsallglobals.md +++ b/docs/models/operations/issuetrackingcollectiontagsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTagsAllGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTagsAllGlobals = {}; +let value: IssueTrackingCollectionTagsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectiontagsallresponse.md b/docs/models/operations/issuetrackingcollectiontagsallresponse.md index fac8f80c..df56c722 100644 --- a/docs/models/operations/issuetrackingcollectiontagsallresponse.md +++ b/docs/models/operations/issuetrackingcollectiontagsallresponse.md @@ -5,50 +5,7 @@ ```typescript import { IssueTrackingCollectionTagsAllResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTagsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCollectionTagsResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "all", - data: [ - { - id: "12345", - name: "User Experience", - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTagsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsaddglobals.md b/docs/models/operations/issuetrackingcollectionticketcommentsaddglobals.md index 3c9d23d8..fd39716b 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsaddglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketCommentsAddGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsAddGlobals = {}; +let value: IssueTrackingCollectionTicketCommentsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsaddrequest.md b/docs/models/operations/issuetrackingcollectionticketcommentsaddrequest.md index 1291613f..0752a396 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsaddrequest.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsaddrequest.md @@ -9,24 +9,6 @@ let value: IssueTrackingCollectionTicketCommentsAddRequest = { serviceId: "salesforce", collectionId: "apideck-io", ticketId: "", - collectionTicketComment: { - body: "What internet provider do you use?", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsaddresponse.md b/docs/models/operations/issuetrackingcollectionticketcommentsaddresponse.md index 61a39ef9..b887f424 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsaddresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketCommentsAddResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createCommentResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketCommentsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsallglobals.md b/docs/models/operations/issuetrackingcollectionticketcommentsallglobals.md index 22ede466..bf9f2177 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsallglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketCommentsAllGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsAllGlobals = {}; +let value: IssueTrackingCollectionTicketCommentsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsallrequest.md b/docs/models/operations/issuetrackingcollectionticketcommentsallrequest.md index 65cda556..a9f53fe6 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsallrequest.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsallrequest.md @@ -11,6 +11,7 @@ let value: IssueTrackingCollectionTicketCommentsAllRequest = { ticketId: "", sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsallresponse.md b/docs/models/operations/issuetrackingcollectionticketcommentsallresponse.md index 8d6f3b5c..006dabf1 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsallresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsallresponse.md @@ -5,68 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketCommentsAllResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCommentsResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "all", - data: [ - { - id: "12345", - body: "What internet provider do you use?", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketCommentsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsdeleteglobals.md b/docs/models/operations/issuetrackingcollectionticketcommentsdeleteglobals.md index 846681c8..e7004885 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsdeleteglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketCommentsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsDeleteGlobals = {}; +let value: IssueTrackingCollectionTicketCommentsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsdeleteresponse.md b/docs/models/operations/issuetrackingcollectionticketcommentsdeleteresponse.md index db6a50ce..51733cee 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsdeleteresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketCommentsDeleteResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteCommentResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketCommentsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsoneglobals.md b/docs/models/operations/issuetrackingcollectionticketcommentsoneglobals.md index 0a9049e0..7e909aa4 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsoneglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketCommentsOneGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsOneGlobals = {}; +let value: IssueTrackingCollectionTicketCommentsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsoneresponse.md b/docs/models/operations/issuetrackingcollectionticketcommentsoneresponse.md index 8c812dab..a4441d67 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsoneresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsoneresponse.md @@ -5,51 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketCommentsOneResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCommentResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Tickets", - operation: "one", - data: { - id: "12345", - body: "What internet provider do you use?", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketCommentsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsupdateglobals.md b/docs/models/operations/issuetrackingcollectionticketcommentsupdateglobals.md index 1501e051..d3e55851 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsupdateglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketCommentsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsUpdateGlobals = {}; +let value: IssueTrackingCollectionTicketCommentsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsupdaterequest.md b/docs/models/operations/issuetrackingcollectionticketcommentsupdaterequest.md index 74437133..9858d5c5 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsupdaterequest.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsupdaterequest.md @@ -10,24 +10,6 @@ let value: IssueTrackingCollectionTicketCommentsUpdateRequest = { serviceId: "salesforce", collectionId: "apideck-io", ticketId: "", - collectionTicketComment: { - body: "What internet provider do you use?", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/issuetrackingcollectionticketcommentsupdateresponse.md b/docs/models/operations/issuetrackingcollectionticketcommentsupdateresponse.md index 8c5830bc..557af8d8 100644 --- a/docs/models/operations/issuetrackingcollectionticketcommentsupdateresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketcommentsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketCommentsUpdateResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketCommentsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateCommentResponse: { - statusCode: 200, - status: "OK", - service: "github", - resource: "Tickets", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketCommentsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsaddglobals.md b/docs/models/operations/issuetrackingcollectionticketsaddglobals.md index 615e1c52..a221f144 100644 --- a/docs/models/operations/issuetrackingcollectionticketsaddglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketsaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketsAddGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsAddGlobals = {}; +let value: IssueTrackingCollectionTicketsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsaddrequest.md b/docs/models/operations/issuetrackingcollectionticketsaddrequest.md index e394f4a6..2ad84457 100644 --- a/docs/models/operations/issuetrackingcollectionticketsaddrequest.md +++ b/docs/models/operations/issuetrackingcollectionticketsaddrequest.md @@ -8,40 +8,6 @@ import { IssueTrackingCollectionTicketsAddRequest } from "@apideck/unify/models/ let value: IssueTrackingCollectionTicketsAddRequest = { serviceId: "salesforce", collectionId: "apideck-io", - ticket: { - parentId: "12345", - type: "Technical", - subject: "Technical Support Request", - description: "I am facing issues with my internet connection", - status: "open", - priority: "high", - assignees: [ - { - id: "12345", - }, - ], - dueDate: new Date("2020-09-30T07:43:32.000Z"), - tags: [ - { - id: "12345", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/issuetrackingcollectionticketsaddresponse.md b/docs/models/operations/issuetrackingcollectionticketsaddresponse.md index e4f85e91..e5fe41c7 100644 --- a/docs/models/operations/issuetrackingcollectionticketsaddresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketsaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketsAddResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createTicketResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketsAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsallglobals.md b/docs/models/operations/issuetrackingcollectionticketsallglobals.md index 86534126..c2857b21 100644 --- a/docs/models/operations/issuetrackingcollectionticketsallglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketsAllGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsAllGlobals = {}; +let value: IssueTrackingCollectionTicketsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsallrequest.md b/docs/models/operations/issuetrackingcollectionticketsallrequest.md index a558bfcc..471b9049 100644 --- a/docs/models/operations/issuetrackingcollectionticketsallrequest.md +++ b/docs/models/operations/issuetrackingcollectionticketsallrequest.md @@ -10,6 +10,7 @@ let value: IssueTrackingCollectionTicketsAllRequest = { collectionId: "apideck-io", sort: { by: "created_at", + direction: "desc", }, filter: { status: [ diff --git a/docs/models/operations/issuetrackingcollectionticketsallresponse.md b/docs/models/operations/issuetrackingcollectionticketsallresponse.md index 659f0fd8..8e15761c 100644 --- a/docs/models/operations/issuetrackingcollectionticketsallresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketsallresponse.md @@ -5,88 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketsAllResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTicketsResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "all", - data: [ - { - id: "12345", - parentId: "12345", - collectionId: "12345", - type: "Technical", - subject: "Technical Support Request", - description: "I am facing issues with my internet connection", - status: "open", - priority: "high", - assignees: [ - { - id: "12345", - username: "Cocoa", - }, - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - createdBy: "12345", - dueDate: new Date("2020-09-30T07:43:32.000Z"), - completedAt: new Date("2020-09-30T07:43:32.000Z"), - tags: [ - { - id: "12345", - name: "User Experience", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsdeleteglobals.md b/docs/models/operations/issuetrackingcollectionticketsdeleteglobals.md index eebc5fba..60b9cb88 100644 --- a/docs/models/operations/issuetrackingcollectionticketsdeleteglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsDeleteGlobals = {}; +let value: IssueTrackingCollectionTicketsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsdeleteresponse.md b/docs/models/operations/issuetrackingcollectionticketsdeleteresponse.md index 3344e37c..c6adc5eb 100644 --- a/docs/models/operations/issuetrackingcollectionticketsdeleteresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketsdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketsDeleteResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteTicketResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsoneglobals.md b/docs/models/operations/issuetrackingcollectionticketsoneglobals.md index 98f772e0..38c6b588 100644 --- a/docs/models/operations/issuetrackingcollectionticketsoneglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketsOneGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsOneGlobals = {}; +let value: IssueTrackingCollectionTicketsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsoneresponse.md b/docs/models/operations/issuetrackingcollectionticketsoneresponse.md index 2288718e..2ec56673 100644 --- a/docs/models/operations/issuetrackingcollectionticketsoneresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketsoneresponse.md @@ -5,71 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketsOneResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getTicketResponse: { - statusCode: 200, - status: "OK", - service: "sage-hr", - resource: "Tickets", - operation: "one", - data: { - id: "12345", - parentId: "12345", - collectionId: "12345", - type: "Technical", - subject: "Technical Support Request", - description: "I am facing issues with my internet connection", - status: "open", - priority: "high", - assignees: [ - { - id: "12345", - username: "Cocoa", - }, - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - createdBy: "12345", - dueDate: new Date("2020-09-30T07:43:32.000Z"), - completedAt: new Date("2020-09-30T07:43:32.000Z"), - tags: [ - { - id: "12345", - name: "User Experience", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsupdateglobals.md b/docs/models/operations/issuetrackingcollectionticketsupdateglobals.md index 00fb9da7..dae02c4e 100644 --- a/docs/models/operations/issuetrackingcollectionticketsupdateglobals.md +++ b/docs/models/operations/issuetrackingcollectionticketsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionTicketsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsUpdateGlobals = {}; +let value: IssueTrackingCollectionTicketsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionticketsupdaterequest.md b/docs/models/operations/issuetrackingcollectionticketsupdaterequest.md index 9eef1815..fa8ded0c 100644 --- a/docs/models/operations/issuetrackingcollectionticketsupdaterequest.md +++ b/docs/models/operations/issuetrackingcollectionticketsupdaterequest.md @@ -9,40 +9,6 @@ let value: IssueTrackingCollectionTicketsUpdateRequest = { ticketId: "", serviceId: "salesforce", collectionId: "apideck-io", - ticket: { - parentId: "12345", - type: "Technical", - subject: "Technical Support Request", - description: "I am facing issues with my internet connection", - status: "open", - priority: "high", - assignees: [ - { - id: "12345", - }, - ], - dueDate: new Date("2020-09-30T07:43:32.000Z"), - tags: [ - { - id: "12345", - }, - ], - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/issuetrackingcollectionticketsupdateresponse.md b/docs/models/operations/issuetrackingcollectionticketsupdateresponse.md index fafd26ad..03a0b49f 100644 --- a/docs/models/operations/issuetrackingcollectionticketsupdateresponse.md +++ b/docs/models/operations/issuetrackingcollectionticketsupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { IssueTrackingCollectionTicketsUpdateResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionTicketsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateTicketResponse: { - statusCode: 200, - status: "OK", - service: "github", - resource: "Tickets", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionTicketsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionusersallglobals.md b/docs/models/operations/issuetrackingcollectionusersallglobals.md index e8f543d8..8e4bd268 100644 --- a/docs/models/operations/issuetrackingcollectionusersallglobals.md +++ b/docs/models/operations/issuetrackingcollectionusersallglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionUsersAllGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionUsersAllGlobals = {}; +let value: IssueTrackingCollectionUsersAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionusersallresponse.md b/docs/models/operations/issuetrackingcollectionusersallresponse.md index 6f193b98..33dbe375 100644 --- a/docs/models/operations/issuetrackingcollectionusersallresponse.md +++ b/docs/models/operations/issuetrackingcollectionusersallresponse.md @@ -5,56 +5,7 @@ ```typescript import { IssueTrackingCollectionUsersAllResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionUsersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCollectionUsersResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "all", - data: [ - { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - photoUrl: "https://unavatar.io/elon-musk", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionUsersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionusersoneglobals.md b/docs/models/operations/issuetrackingcollectionusersoneglobals.md index b5b234d6..8b4febcc 100644 --- a/docs/models/operations/issuetrackingcollectionusersoneglobals.md +++ b/docs/models/operations/issuetrackingcollectionusersoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { IssueTrackingCollectionUsersOneGlobals } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionUsersOneGlobals = {}; +let value: IssueTrackingCollectionUsersOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/issuetrackingcollectionusersoneresponse.md b/docs/models/operations/issuetrackingcollectionusersoneresponse.md index 7aed4875..5ca87c26 100644 --- a/docs/models/operations/issuetrackingcollectionusersoneresponse.md +++ b/docs/models/operations/issuetrackingcollectionusersoneresponse.md @@ -5,39 +5,7 @@ ```typescript import { IssueTrackingCollectionUsersOneResponse } from "@apideck/unify/models/operations"; -let value: IssueTrackingCollectionUsersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCollectionUserResponse: { - statusCode: 200, - status: "OK", - service: "jira", - resource: "Tickets", - operation: "one", - data: { - id: "12345", - name: "Elon Musk", - firstName: "Elon", - lastName: "Musk", - email: "elon@musk.com", - photoUrl: "https://unavatar.io/elon-musk", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: IssueTrackingCollectionUsersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesaddglobals.md b/docs/models/operations/smsmessagesaddglobals.md index 4c4f8710..dfac3e6e 100644 --- a/docs/models/operations/smsmessagesaddglobals.md +++ b/docs/models/operations/smsmessagesaddglobals.md @@ -5,7 +5,10 @@ ```typescript import { SmsMessagesAddGlobals } from "@apideck/unify/models/operations"; -let value: SmsMessagesAddGlobals = {}; +let value: SmsMessagesAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesaddrequest.md b/docs/models/operations/smsmessagesaddrequest.md index a50665d4..31b11acc 100644 --- a/docs/models/operations/smsmessagesaddrequest.md +++ b/docs/models/operations/smsmessagesaddrequest.md @@ -7,33 +7,6 @@ import { SmsMessagesAddRequest } from "@apideck/unify/models/operations"; let value: SmsMessagesAddRequest = { serviceId: "salesforce", - message: { - from: "+15017122661", - to: "+15017122662", - subject: "Picture", - body: "Hi! How are you doing?", - type: "sms", - scheduledAt: new Date("2020-09-30T07:43:32.000Z"), - webhookUrl: - "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", - reference: "CUST001", - messagingServiceId: "123456", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/smsmessagesaddresponse.md b/docs/models/operations/smsmessagesaddresponse.md index d25e81bc..6d11fd32 100644 --- a/docs/models/operations/smsmessagesaddresponse.md +++ b/docs/models/operations/smsmessagesaddresponse.md @@ -5,32 +5,7 @@ ```typescript import { SmsMessagesAddResponse } from "@apideck/unify/models/operations"; -let value: SmsMessagesAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createMessageResponse: { - statusCode: 200, - status: "OK", - service: "twilio", - resource: "Messages", - operation: "add", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: SmsMessagesAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesallglobals.md b/docs/models/operations/smsmessagesallglobals.md index 05616816..f8ec7dac 100644 --- a/docs/models/operations/smsmessagesallglobals.md +++ b/docs/models/operations/smsmessagesallglobals.md @@ -5,7 +5,10 @@ ```typescript import { SmsMessagesAllGlobals } from "@apideck/unify/models/operations"; -let value: SmsMessagesAllGlobals = {}; +let value: SmsMessagesAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesallresponse.md b/docs/models/operations/smsmessagesallresponse.md index 2d212840..ac61006d 100644 --- a/docs/models/operations/smsmessagesallresponse.md +++ b/docs/models/operations/smsmessagesallresponse.md @@ -5,92 +5,7 @@ ```typescript import { SmsMessagesAllResponse } from "@apideck/unify/models/operations"; -let value: SmsMessagesAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getMessagesResponse: { - statusCode: 200, - status: "OK", - service: "twilio", - resource: "Messages", - operation: "all", - data: [ - { - id: "12345", - from: "+15017122661", - to: "+15017122662", - subject: "Picture", - body: "Hi! How are you doing?", - type: "sms", - numberOfUnits: 1, - numberOfMediaFiles: 1, - direction: "outbound-api", - status: "sent", - scheduledAt: new Date("2020-09-30T07:43:32.000Z"), - sentAt: new Date("2020-09-30T07:43:32.000Z"), - webhookUrl: - "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", - reference: "CUST001", - price: { - perUnit: "0.01", - totalAmount: "0.01", - currency: "USD", - }, - error: { - code: "X1", - message: "Something went wrong", - }, - messagingServiceId: "123456", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: SmsMessagesAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesdeleteglobals.md b/docs/models/operations/smsmessagesdeleteglobals.md index efd2a84e..142997f3 100644 --- a/docs/models/operations/smsmessagesdeleteglobals.md +++ b/docs/models/operations/smsmessagesdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { SmsMessagesDeleteGlobals } from "@apideck/unify/models/operations"; -let value: SmsMessagesDeleteGlobals = {}; +let value: SmsMessagesDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesdeleteresponse.md b/docs/models/operations/smsmessagesdeleteresponse.md index 27452522..171cd234 100644 --- a/docs/models/operations/smsmessagesdeleteresponse.md +++ b/docs/models/operations/smsmessagesdeleteresponse.md @@ -5,32 +5,7 @@ ```typescript import { SmsMessagesDeleteResponse } from "@apideck/unify/models/operations"; -let value: SmsMessagesDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteMessageResponse: { - statusCode: 200, - status: "OK", - service: "twilio", - resource: "Messages", - operation: "delete", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: SmsMessagesDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesoneglobals.md b/docs/models/operations/smsmessagesoneglobals.md index cd9a977c..b9497a67 100644 --- a/docs/models/operations/smsmessagesoneglobals.md +++ b/docs/models/operations/smsmessagesoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { SmsMessagesOneGlobals } from "@apideck/unify/models/operations"; -let value: SmsMessagesOneGlobals = {}; +let value: SmsMessagesOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesoneresponse.md b/docs/models/operations/smsmessagesoneresponse.md index 8119400c..9b0c36f1 100644 --- a/docs/models/operations/smsmessagesoneresponse.md +++ b/docs/models/operations/smsmessagesoneresponse.md @@ -5,75 +5,7 @@ ```typescript import { SmsMessagesOneResponse } from "@apideck/unify/models/operations"; -let value: SmsMessagesOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getMessageResponse: { - statusCode: 200, - status: "OK", - service: "twilio", - resource: "Messages", - operation: "one", - data: { - id: "12345", - from: "+15017122661", - to: "+15017122662", - subject: "Picture", - body: "Hi! How are you doing?", - type: "sms", - numberOfUnits: 1, - numberOfMediaFiles: 1, - direction: "outbound-api", - status: "sent", - scheduledAt: new Date("2020-09-30T07:43:32.000Z"), - sentAt: new Date("2020-09-30T07:43:32.000Z"), - webhookUrl: - "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", - reference: "CUST001", - price: { - perUnit: "0.01", - totalAmount: "0.01", - currency: "USD", - }, - error: { - code: "X1", - message: "Something went wrong", - }, - messagingServiceId: "123456", - updatedBy: "12345", - createdBy: "12345", - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: SmsMessagesOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesupdateglobals.md b/docs/models/operations/smsmessagesupdateglobals.md index 42795cb7..47470167 100644 --- a/docs/models/operations/smsmessagesupdateglobals.md +++ b/docs/models/operations/smsmessagesupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { SmsMessagesUpdateGlobals } from "@apideck/unify/models/operations"; -let value: SmsMessagesUpdateGlobals = {}; +let value: SmsMessagesUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/smsmessagesupdaterequest.md b/docs/models/operations/smsmessagesupdaterequest.md index 3f14fa05..84d6feec 100644 --- a/docs/models/operations/smsmessagesupdaterequest.md +++ b/docs/models/operations/smsmessagesupdaterequest.md @@ -8,33 +8,6 @@ import { SmsMessagesUpdateRequest } from "@apideck/unify/models/operations"; let value: SmsMessagesUpdateRequest = { id: "", serviceId: "salesforce", - message: { - from: "+15017122661", - to: "+15017122662", - subject: "Picture", - body: "Hi! How are you doing?", - type: "sms", - scheduledAt: new Date("2020-09-30T07:43:32.000Z"), - webhookUrl: - "https://unify.apideck.com/webhook/webhooks/eyz329dkffdl4949/x/sms", - reference: "CUST001", - messagingServiceId: "123456", - passThrough: [ - { - serviceId: "", - extendPaths: [ - { - path: "$.nested.property", - value: { - "TaxClassificationRef": { - "value": "EUC-99990201-V1-00020000", - }, - }, - }, - ], - }, - ], - }, }; ``` diff --git a/docs/models/operations/smsmessagesupdateresponse.md b/docs/models/operations/smsmessagesupdateresponse.md index f50cd634..d5288458 100644 --- a/docs/models/operations/smsmessagesupdateresponse.md +++ b/docs/models/operations/smsmessagesupdateresponse.md @@ -5,32 +5,7 @@ ```typescript import { SmsMessagesUpdateResponse } from "@apideck/unify/models/operations"; -let value: SmsMessagesUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateMessageResponse: { - statusCode: 200, - status: "OK", - service: "twilio", - resource: "Messages", - operation: "update", - data: { - id: "12345", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: SmsMessagesUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectioncustommappingsallglobals.md b/docs/models/operations/vaultconnectioncustommappingsallglobals.md index 713fe951..23837706 100644 --- a/docs/models/operations/vaultconnectioncustommappingsallglobals.md +++ b/docs/models/operations/vaultconnectioncustommappingsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionCustomMappingsAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionCustomMappingsAllGlobals = {}; +let value: VaultConnectionCustomMappingsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectioncustommappingsallresponse.md b/docs/models/operations/vaultconnectioncustommappingsallresponse.md index a4d4a33e..00fa9361 100644 --- a/docs/models/operations/vaultconnectioncustommappingsallresponse.md +++ b/docs/models/operations/vaultconnectioncustommappingsallresponse.md @@ -5,39 +5,7 @@ ```typescript import { VaultConnectionCustomMappingsAllResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionCustomMappingsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomMappingsResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionCustomMappingsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsallglobals.md b/docs/models/operations/vaultconnectionsallglobals.md index f591804b..3fd1a033 100644 --- a/docs/models/operations/vaultconnectionsallglobals.md +++ b/docs/models/operations/vaultconnectionsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionsAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionsAllGlobals = {}; +let value: VaultConnectionsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsallresponse.md b/docs/models/operations/vaultconnectionsallresponse.md index 79021cb3..7ef742be 100644 --- a/docs/models/operations/vaultconnectionsallresponse.md +++ b/docs/models/operations/vaultconnectionsallresponse.md @@ -5,147 +5,7 @@ ```typescript import { VaultConnectionsAllResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConnectionsResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - optionType: "simple", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - ], - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsdeleteglobals.md b/docs/models/operations/vaultconnectionsdeleteglobals.md index c69b17ff..8680f3a1 100644 --- a/docs/models/operations/vaultconnectionsdeleteglobals.md +++ b/docs/models/operations/vaultconnectionsdeleteglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionsDeleteGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionsDeleteGlobals = {}; +let value: VaultConnectionsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsdeleteresponse.md b/docs/models/operations/vaultconnectionsdeleteresponse.md index 31614cad..4788b51e 100644 --- a/docs/models/operations/vaultconnectionsdeleteresponse.md +++ b/docs/models/operations/vaultconnectionsdeleteresponse.md @@ -5,22 +5,7 @@ ```typescript import { VaultConnectionsDeleteResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionsDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionsDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsettingsallglobals.md b/docs/models/operations/vaultconnectionsettingsallglobals.md index aac3352d..2e662d3a 100644 --- a/docs/models/operations/vaultconnectionsettingsallglobals.md +++ b/docs/models/operations/vaultconnectionsettingsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionSettingsAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionSettingsAllGlobals = {}; +let value: VaultConnectionSettingsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsettingsallresponse.md b/docs/models/operations/vaultconnectionsettingsallresponse.md index 84fd7beb..d3b6b5b0 100644 --- a/docs/models/operations/vaultconnectionsettingsallresponse.md +++ b/docs/models/operations/vaultconnectionsettingsallresponse.md @@ -5,145 +5,7 @@ ```typescript import { VaultConnectionSettingsAllResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionSettingsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConnectionResponse: { - statusCode: 200, - status: "OK", - data: { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - optionType: "simple", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionSettingsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsettingsupdateglobals.md b/docs/models/operations/vaultconnectionsettingsupdateglobals.md index 4e3b6732..563369c9 100644 --- a/docs/models/operations/vaultconnectionsettingsupdateglobals.md +++ b/docs/models/operations/vaultconnectionsettingsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionSettingsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionSettingsUpdateGlobals = {}; +let value: VaultConnectionSettingsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsettingsupdaterequest.md b/docs/models/operations/vaultconnectionsettingsupdaterequest.md index 08ed88e9..e88b58fa 100644 --- a/docs/models/operations/vaultconnectionsettingsupdaterequest.md +++ b/docs/models/operations/vaultconnectionsettingsupdaterequest.md @@ -9,42 +9,6 @@ let value: VaultConnectionSettingsUpdateRequest = { serviceId: "pipedrive", unifiedApi: "crm", resource: "leads", - connection: { - enabled: true, - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - configuration: [ - { - resource: "leads", - defaults: [ - { - id: "ProductInterest", - options: [ - { - label: "General Channel", - optionType: "simple", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - customMappings: [ - { - value: "$.root.training.first_aid", - }, - ], - }, }; ``` diff --git a/docs/models/operations/vaultconnectionsettingsupdateresponse.md b/docs/models/operations/vaultconnectionsettingsupdateresponse.md index 42e68c05..992ed4e1 100644 --- a/docs/models/operations/vaultconnectionsettingsupdateresponse.md +++ b/docs/models/operations/vaultconnectionsettingsupdateresponse.md @@ -5,145 +5,7 @@ ```typescript import { VaultConnectionSettingsUpdateResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionSettingsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateConnectionResponse: { - statusCode: 200, - status: "OK", - data: { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - optionType: "simple", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionSettingsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsimportglobals.md b/docs/models/operations/vaultconnectionsimportglobals.md index b524398c..39512b09 100644 --- a/docs/models/operations/vaultconnectionsimportglobals.md +++ b/docs/models/operations/vaultconnectionsimportglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionsImportGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionsImportGlobals = {}; +let value: VaultConnectionsImportGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsimportrequest.md b/docs/models/operations/vaultconnectionsimportrequest.md index 8efcc62f..0c5eeac0 100644 --- a/docs/models/operations/vaultconnectionsimportrequest.md +++ b/docs/models/operations/vaultconnectionsimportrequest.md @@ -8,22 +8,6 @@ import { VaultConnectionsImportRequest } from "@apideck/unify/models/operations" let value: VaultConnectionsImportRequest = { serviceId: "pipedrive", unifiedApi: "crm", - connectionImportData: { - credentials: { - refreshToken: - "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ", - accessToken: - "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", - }, - settings: {}, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - }, }; ``` diff --git a/docs/models/operations/vaultconnectionsimportresponse.md b/docs/models/operations/vaultconnectionsimportresponse.md index 08b1d8c7..9078c8c5 100644 --- a/docs/models/operations/vaultconnectionsimportresponse.md +++ b/docs/models/operations/vaultconnectionsimportresponse.md @@ -5,152 +5,7 @@ ```typescript import { VaultConnectionsImportResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionsImportResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createConnectionResponse: { - statusCode: 201, - status: "OK", - data: { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionsImportResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsoneglobals.md b/docs/models/operations/vaultconnectionsoneglobals.md index 86cec369..b2a0a364 100644 --- a/docs/models/operations/vaultconnectionsoneglobals.md +++ b/docs/models/operations/vaultconnectionsoneglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionsOneGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionsOneGlobals = {}; +let value: VaultConnectionsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsoneresponse.md b/docs/models/operations/vaultconnectionsoneresponse.md index a6d888b4..2f37762a 100644 --- a/docs/models/operations/vaultconnectionsoneresponse.md +++ b/docs/models/operations/vaultconnectionsoneresponse.md @@ -5,145 +5,7 @@ ```typescript import { VaultConnectionsOneResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionsOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConnectionResponse: { - statusCode: 200, - status: "OK", - data: { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - optionType: "simple", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionsOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionstokenglobals.md b/docs/models/operations/vaultconnectionstokenglobals.md index b99fd0ea..4143702f 100644 --- a/docs/models/operations/vaultconnectionstokenglobals.md +++ b/docs/models/operations/vaultconnectionstokenglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionsTokenGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionsTokenGlobals = {}; +let value: VaultConnectionsTokenGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionstokenresponse.md b/docs/models/operations/vaultconnectionstokenresponse.md index ca4f31b7..0fcd2bd5 100644 --- a/docs/models/operations/vaultconnectionstokenresponse.md +++ b/docs/models/operations/vaultconnectionstokenresponse.md @@ -5,145 +5,7 @@ ```typescript import { VaultConnectionsTokenResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionsTokenResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConnectionResponse: { - statusCode: 200, - status: "OK", - data: { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - optionType: "simple", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionsTokenResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsupdateglobals.md b/docs/models/operations/vaultconnectionsupdateglobals.md index e0ce9c9b..41b33a4a 100644 --- a/docs/models/operations/vaultconnectionsupdateglobals.md +++ b/docs/models/operations/vaultconnectionsupdateglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultConnectionsUpdateGlobals } from "@apideck/unify/models/operations"; -let value: VaultConnectionsUpdateGlobals = {}; +let value: VaultConnectionsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconnectionsupdaterequest.md b/docs/models/operations/vaultconnectionsupdaterequest.md index ceda81cd..9617381a 100644 --- a/docs/models/operations/vaultconnectionsupdaterequest.md +++ b/docs/models/operations/vaultconnectionsupdaterequest.md @@ -8,49 +8,6 @@ import { VaultConnectionsUpdateRequest } from "@apideck/unify/models/operations" let value: VaultConnectionsUpdateRequest = { serviceId: "pipedrive", unifiedApi: "crm", - connection: { - enabled: true, - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - configuration: [ - { - resource: "leads", - defaults: [ - { - id: "ProductInterest", - options: [ - { - label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - customMappings: [ - { - value: "$.root.training.first_aid", - }, - ], - }, }; ``` diff --git a/docs/models/operations/vaultconnectionsupdateresponse.md b/docs/models/operations/vaultconnectionsupdateresponse.md index bd1c6c5e..d73558e9 100644 --- a/docs/models/operations/vaultconnectionsupdateresponse.md +++ b/docs/models/operations/vaultconnectionsupdateresponse.md @@ -5,152 +5,7 @@ ```typescript import { VaultConnectionsUpdateResponse } from "@apideck/unify/models/operations"; -let value: VaultConnectionsUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateConnectionResponse: { - statusCode: 200, - status: "OK", - data: { - id: "crm+salesforce", - serviceId: "salesforce", - name: "Salesforce", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - unifiedApi: "crm", - state: "authorized", - integrationState: "configured", - authType: "oauth2", - oauthGrantType: "authorization_code", - enabled: true, - website: "https://www.salesforce.com", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - authorizeUrl: - "https://unify.apideck.com/vault/authorize/salesforce/?state=", - revokeUrl: - "https://unify.apideck.com/vault/revoke/salesforce/?state=", - settings: { - "instance_url": "https://eu28.salesforce.com", - "api_key": "12345xxxxxx", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - formFields: [ - { - id: "instance_url", - label: "Instance url", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: false, - }, - { - id: "api_key", - label: "API Key", - placeholder: "", - type: "text", - required: true, - customField: false, - disabled: false, - sensitive: true, - }, - ], - configuration: [ - { - resource: "leads", - defaults: [ - { - target: "custom_fields", - id: "ProductInterest", - options: [ - { - label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", - }, - ], - value: "GC5000 series", - }, - ], - }, - ], - configurableResources: [ - "opportunities", - "companies", - "contacts", - "leads", - ], - resourceSchemaSupport: [ - "leads", - ], - resourceSettingsSupport: [ - "leads", - ], - settingsRequiredForAuthorization: [ - "client_id", - "client_secret", - ], - subscriptions: [ - { - downstreamId: "5f5f5f5f5f5f5f5f5f5f5f5f", - unifyEventTypes: [ - "crm.contact.created", - ], - downstreamEventTypes: [ - "contacts.CREATED", - ], - executeUrl: - "https://unify.apideck.com/webhook/w/{lookupIdToken}/{serviceId}?e={downstreamEventType}", - createdAt: "2020-10-01T12:00:00.000Z", - }, - ], - hasGuide: true, - createdAt: 1615563533390, - customMappings: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - updatedAt: 1616662325753, - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConnectionsUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumerrequestcountsallglobals.md b/docs/models/operations/vaultconsumerrequestcountsallglobals.md index fca33563..966cf700 100644 --- a/docs/models/operations/vaultconsumerrequestcountsallglobals.md +++ b/docs/models/operations/vaultconsumerrequestcountsallglobals.md @@ -5,7 +5,9 @@ ```typescript import { VaultConsumerRequestCountsAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultConsumerRequestCountsAllGlobals = {}; +let value: VaultConsumerRequestCountsAllGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumerrequestcountsallresponse.md b/docs/models/operations/vaultconsumerrequestcountsallresponse.md index b62f646f..d0bf1f05 100644 --- a/docs/models/operations/vaultconsumerrequestcountsallresponse.md +++ b/docs/models/operations/vaultconsumerrequestcountsallresponse.md @@ -5,38 +5,7 @@ ```typescript import { VaultConsumerRequestCountsAllResponse } from "@apideck/unify/models/operations"; -let value: VaultConsumerRequestCountsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - consumerRequestCountsInDateRangeResponse: { - statusCode: 200, - status: "OK", - data: { - applicationId: "1111", - consumerId: "test_user_id", - startDatetime: "2021-05-01T12:00:00.000Z", - endDatetime: "2021-05-10T12:00:00.000Z", - aggregatedRequestCount: 40, - requestCounts: { - unify: 100, - proxy: 10, - vault: 21, - }, - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConsumerRequestCountsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersaddglobals.md b/docs/models/operations/vaultconsumersaddglobals.md index 8c8f09a4..2c793640 100644 --- a/docs/models/operations/vaultconsumersaddglobals.md +++ b/docs/models/operations/vaultconsumersaddglobals.md @@ -5,7 +5,9 @@ ```typescript import { VaultConsumersAddGlobals } from "@apideck/unify/models/operations"; -let value: VaultConsumersAddGlobals = {}; +let value: VaultConsumersAddGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersaddrequest.md b/docs/models/operations/vaultconsumersaddrequest.md index 0c098cf5..9c5c474f 100644 --- a/docs/models/operations/vaultconsumersaddrequest.md +++ b/docs/models/operations/vaultconsumersaddrequest.md @@ -5,17 +5,7 @@ ```typescript import { VaultConsumersAddRequest } from "@apideck/unify/models/operations"; -let value: VaultConsumersAddRequest = { - consumer: { - consumerId: "test_consumer_id", - metadata: { - accountName: "SpaceX", - userName: "Elon Musk", - email: "elon@musk.com", - image: "https://www.spacex.com/static/images/share.jpg", - }, - }, -}; +let value: VaultConsumersAddRequest = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersaddresponse.md b/docs/models/operations/vaultconsumersaddresponse.md index 4e9a9784..ef66d720 100644 --- a/docs/models/operations/vaultconsumersaddresponse.md +++ b/docs/models/operations/vaultconsumersaddresponse.md @@ -5,80 +5,7 @@ ```typescript import { VaultConsumersAddResponse } from "@apideck/unify/models/operations"; -let value: VaultConsumersAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createConsumerResponse: { - statusCode: 200, - status: "OK", - data: { - consumerId: "test_consumer_id", - applicationId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", - metadata: { - accountName: "SpaceX", - userName: "Elon Musk", - email: "elon@musk.com", - image: "https://www.spacex.com/static/images/share.jpg", - }, - connections: [ - { - id: "1111+test_user_id", - name: "Salesforce", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - website: "https://www.salesforce.com", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - serviceId: "teamleader", - unifiedApi: "crm", - consumerId: "test_user_id", - authType: "oauth2", - enabled: true, - settings: { - "instance_url": "https://eu28.salesforce.com", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - createdAt: "2020-09-19T12:18:37.071Z", - updatedAt: "2020-09-19T12:18:37.071Z", - state: "authorized", - }, - ], - services: [ - "salesforce", - "stripe", - ], - aggregatedRequestCount: 101, - requestCounts: { - unify: 100, - proxy: 10, - vault: 21, - }, - created: "2021-05-07T12:55:42.242Z", - modified: "2021-05-07T12:55:42.242Z", - requestCountUpdated: "2021-05-07T12:55:42.242Z", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConsumersAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersallglobals.md b/docs/models/operations/vaultconsumersallglobals.md index e1175ae7..b321a500 100644 --- a/docs/models/operations/vaultconsumersallglobals.md +++ b/docs/models/operations/vaultconsumersallglobals.md @@ -5,7 +5,9 @@ ```typescript import { VaultConsumersAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultConsumersAllGlobals = {}; +let value: VaultConsumersAllGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersallresponse.md b/docs/models/operations/vaultconsumersallresponse.md index b18b7234..cab05b9e 100644 --- a/docs/models/operations/vaultconsumersallresponse.md +++ b/docs/models/operations/vaultconsumersallresponse.md @@ -5,66 +5,7 @@ ```typescript import { VaultConsumersAllResponse } from "@apideck/unify/models/operations"; -let value: VaultConsumersAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConsumersResponse: { - statusCode: 200, - status: "OK", - data: [ - { - consumerId: "test_consumer_id", - applicationId: "1111", - metadata: { - accountName: "SpaceX", - userName: "Elon Musk", - email: "elon@musk.com", - image: "https://www.spacex.com/static/images/share.jpg", - }, - aggregatedRequestCount: 101, - requestCounts: { - unify: 100, - proxy: 10, - vault: 21, - }, - created: "2021-05-07T12:55:42.242Z", - modified: "2021-05-07T12:55:42.242Z", - requestCountUpdated: "2021-05-07T12:55:42.242Z", - services: [ - "salesforce", - "stripe", - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConsumersAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersdeleteglobals.md b/docs/models/operations/vaultconsumersdeleteglobals.md index ae95b163..360287b4 100644 --- a/docs/models/operations/vaultconsumersdeleteglobals.md +++ b/docs/models/operations/vaultconsumersdeleteglobals.md @@ -5,7 +5,9 @@ ```typescript import { VaultConsumersDeleteGlobals } from "@apideck/unify/models/operations"; -let value: VaultConsumersDeleteGlobals = {}; +let value: VaultConsumersDeleteGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersdeleteresponse.md b/docs/models/operations/vaultconsumersdeleteresponse.md index 563fe34b..52d26763 100644 --- a/docs/models/operations/vaultconsumersdeleteresponse.md +++ b/docs/models/operations/vaultconsumersdeleteresponse.md @@ -5,29 +5,7 @@ ```typescript import { VaultConsumersDeleteResponse } from "@apideck/unify/models/operations"; -let value: VaultConsumersDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteConsumerResponse: { - statusCode: 200, - status: "OK", - data: { - consumerId: "test_consumer_id", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConsumersDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersoneglobals.md b/docs/models/operations/vaultconsumersoneglobals.md index ebca9bff..b53e6624 100644 --- a/docs/models/operations/vaultconsumersoneglobals.md +++ b/docs/models/operations/vaultconsumersoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { VaultConsumersOneGlobals } from "@apideck/unify/models/operations"; -let value: VaultConsumersOneGlobals = {}; +let value: VaultConsumersOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersoneresponse.md b/docs/models/operations/vaultconsumersoneresponse.md index 2010415c..9c1c30d0 100644 --- a/docs/models/operations/vaultconsumersoneresponse.md +++ b/docs/models/operations/vaultconsumersoneresponse.md @@ -5,80 +5,7 @@ ```typescript import { VaultConsumersOneResponse } from "@apideck/unify/models/operations"; -let value: VaultConsumersOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getConsumerResponse: { - statusCode: 200, - status: "OK", - data: { - consumerId: "test_consumer_id", - applicationId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", - metadata: { - accountName: "SpaceX", - userName: "Elon Musk", - email: "elon@musk.com", - image: "https://www.spacex.com/static/images/share.jpg", - }, - connections: [ - { - id: "1111+test_user_id", - name: "Salesforce", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - website: "https://www.salesforce.com", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - serviceId: "teamleader", - unifiedApi: "crm", - consumerId: "test_user_id", - authType: "oauth2", - enabled: true, - settings: { - "instance_url": "https://eu28.salesforce.com", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - createdAt: "2020-09-19T12:18:37.071Z", - updatedAt: "2020-09-19T12:18:37.071Z", - state: "authorized", - }, - ], - services: [ - "salesforce", - "stripe", - ], - aggregatedRequestCount: 101, - requestCounts: { - unify: 100, - proxy: 10, - vault: 21, - }, - created: "2021-05-07T12:55:42.242Z", - modified: "2021-05-07T12:55:42.242Z", - requestCountUpdated: "2021-05-07T12:55:42.242Z", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConsumersOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersupdateglobals.md b/docs/models/operations/vaultconsumersupdateglobals.md index de0e99e4..4a25bfea 100644 --- a/docs/models/operations/vaultconsumersupdateglobals.md +++ b/docs/models/operations/vaultconsumersupdateglobals.md @@ -5,7 +5,9 @@ ```typescript import { VaultConsumersUpdateGlobals } from "@apideck/unify/models/operations"; -let value: VaultConsumersUpdateGlobals = {}; +let value: VaultConsumersUpdateGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultconsumersupdaterequest.md b/docs/models/operations/vaultconsumersupdaterequest.md index 35c60117..0c48af86 100644 --- a/docs/models/operations/vaultconsumersupdaterequest.md +++ b/docs/models/operations/vaultconsumersupdaterequest.md @@ -7,14 +7,6 @@ import { VaultConsumersUpdateRequest } from "@apideck/unify/models/operations"; let value: VaultConsumersUpdateRequest = { consumerId: "test_user_id", - updateConsumerRequest: { - metadata: { - accountName: "SpaceX", - userName: "Elon Musk", - email: "elon@musk.com", - image: "https://www.spacex.com/static/images/share.jpg", - }, - }, }; ``` diff --git a/docs/models/operations/vaultconsumersupdateresponse.md b/docs/models/operations/vaultconsumersupdateresponse.md index ded58174..3264b9cb 100644 --- a/docs/models/operations/vaultconsumersupdateresponse.md +++ b/docs/models/operations/vaultconsumersupdateresponse.md @@ -5,80 +5,7 @@ ```typescript import { VaultConsumersUpdateResponse } from "@apideck/unify/models/operations"; -let value: VaultConsumersUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateConsumerResponse: { - statusCode: 200, - status: "OK", - data: { - consumerId: "test_consumer_id", - applicationId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", - metadata: { - accountName: "SpaceX", - userName: "Elon Musk", - email: "elon@musk.com", - image: "https://www.spacex.com/static/images/share.jpg", - }, - connections: [ - { - id: "1111+test_user_id", - name: "Salesforce", - icon: - "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png", - logo: - "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg", - website: "https://www.salesforce.com", - tagLine: - "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.", - serviceId: "teamleader", - unifiedApi: "crm", - consumerId: "test_user_id", - authType: "oauth2", - enabled: true, - settings: { - "instance_url": "https://eu28.salesforce.com", - }, - metadata: { - "account": { - "name": "My Company", - "id": "c01458a5-7276-41ce-bc19-639906b0450a", - }, - "plan": "enterprise", - }, - createdAt: "2020-09-19T12:18:37.071Z", - updatedAt: "2020-09-19T12:18:37.071Z", - state: "authorized", - }, - ], - services: [ - "salesforce", - "stripe", - ], - aggregatedRequestCount: 101, - requestCounts: { - unify: 100, - proxy: 10, - vault: 21, - }, - created: "2021-05-07T12:55:42.242Z", - modified: "2021-05-07T12:55:42.242Z", - requestCountUpdated: "2021-05-07T12:55:42.242Z", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultConsumersUpdateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultcreatecallbackstateglobals.md b/docs/models/operations/vaultcreatecallbackstateglobals.md index c51b4316..7793ec5b 100644 --- a/docs/models/operations/vaultcreatecallbackstateglobals.md +++ b/docs/models/operations/vaultcreatecallbackstateglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultCreateCallbackStateGlobals } from "@apideck/unify/models/operations"; -let value: VaultCreateCallbackStateGlobals = {}; +let value: VaultCreateCallbackStateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultcreatecallbackstaterequest.md b/docs/models/operations/vaultcreatecallbackstaterequest.md index 5f8904fb..a2d34f06 100644 --- a/docs/models/operations/vaultcreatecallbackstaterequest.md +++ b/docs/models/operations/vaultcreatecallbackstaterequest.md @@ -8,9 +8,6 @@ import { VaultCreateCallbackStateRequest } from "@apideck/unify/models/operation let value: VaultCreateCallbackStateRequest = { serviceId: "pipedrive", unifiedApi: "crm", - createCallbackState: { - redirectUri: "https://example.com/callback", - }, }; ``` diff --git a/docs/models/operations/vaultcreatecallbackstateresponse.md b/docs/models/operations/vaultcreatecallbackstateresponse.md index 0a5f18fc..6089f862 100644 --- a/docs/models/operations/vaultcreatecallbackstateresponse.md +++ b/docs/models/operations/vaultcreatecallbackstateresponse.md @@ -5,29 +5,7 @@ ```typescript import { VaultCreateCallbackStateResponse } from "@apideck/unify/models/operations"; -let value: VaultCreateCallbackStateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createCallbackStateResponse: { - statusCode: 200, - status: "OK", - data: { - state: "123e4567-e89b-12d3-a456-426614174000", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultCreateCallbackStateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultcustomfieldsallglobals.md b/docs/models/operations/vaultcustomfieldsallglobals.md index d52d0562..a02b82f8 100644 --- a/docs/models/operations/vaultcustomfieldsallglobals.md +++ b/docs/models/operations/vaultcustomfieldsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultCustomFieldsAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultCustomFieldsAllGlobals = {}; +let value: VaultCustomFieldsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultcustomfieldsallresponse.md b/docs/models/operations/vaultcustomfieldsallresponse.md index 171d0162..636353e7 100644 --- a/docs/models/operations/vaultcustomfieldsallresponse.md +++ b/docs/models/operations/vaultcustomfieldsallresponse.md @@ -5,34 +5,7 @@ ```typescript import { VaultCustomFieldsAllResponse } from "@apideck/unify/models/operations"; -let value: VaultCustomFieldsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomFieldsResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "123456", - name: "SSN", - description: "Employee Level", - value: "495172776", - }, - ], - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultCustomFieldsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultcustommappingsallglobals.md b/docs/models/operations/vaultcustommappingsallglobals.md index 5fff1dea..6cc93e98 100644 --- a/docs/models/operations/vaultcustommappingsallglobals.md +++ b/docs/models/operations/vaultcustommappingsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultCustomMappingsAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultCustomMappingsAllGlobals = {}; +let value: VaultCustomMappingsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultcustommappingsallresponse.md b/docs/models/operations/vaultcustommappingsallresponse.md index e5c9a782..d034ef2a 100644 --- a/docs/models/operations/vaultcustommappingsallresponse.md +++ b/docs/models/operations/vaultcustommappingsallresponse.md @@ -5,39 +5,7 @@ ```typescript import { VaultCustomMappingsAllResponse } from "@apideck/unify/models/operations"; -let value: VaultCustomMappingsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getCustomMappingsResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "hris+employees+first_aid_training", - label: "First Aid Training", - description: "First Aid Training completed after 2019-01-01", - value: "$.root.training.first_aid", - key: "first_aid_training", - required: false, - customField: true, - consumerId: "test_user_id", - example: "Some value", - }, - ], - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultCustomMappingsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultlogsallglobals.md b/docs/models/operations/vaultlogsallglobals.md index bee8a3e6..136363ff 100644 --- a/docs/models/operations/vaultlogsallglobals.md +++ b/docs/models/operations/vaultlogsallglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultLogsAllGlobals } from "@apideck/unify/models/operations"; -let value: VaultLogsAllGlobals = {}; +let value: VaultLogsAllGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + consumerId: "test-consumer", +}; ``` ## Fields diff --git a/docs/models/operations/vaultlogsallresponse.md b/docs/models/operations/vaultlogsallresponse.md index 88655e0e..1ed7e24e 100644 --- a/docs/models/operations/vaultlogsallresponse.md +++ b/docs/models/operations/vaultlogsallresponse.md @@ -5,72 +5,7 @@ ```typescript import { VaultLogsAllResponse } from "@apideck/unify/models/operations"; -let value: VaultLogsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getLogsResponse: { - statusCode: 200, - status: "OK", - data: [ - { - apiStyle: "REST", - baseUrl: "unify.apideck.com", - childRequest: false, - consumerId: "test-consumer", - duration: 2220.379304, - errorMessage: "Refresh token is invalid", - execution: 2248, - hasChildren: false, - httpMethod: "GET", - id: "0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f", - latency: 27.620695999999953, - operation: { - id: "connectionsAll", - name: "Get All Connections", - }, - parentId: "0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f", - path: "/vault/connections", - sandbox: false, - service: { - id: "apideck-vault", - name: "Apideck Vault", - }, - sourceIp: "94.227.131.238", - statusCode: 200, - success: true, - timestamp: "2021-07-12T14:26:17.420Z", - unifiedApi: "vault", - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultLogsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultsessionscreateglobals.md b/docs/models/operations/vaultsessionscreateglobals.md index 6e617604..7201c1c4 100644 --- a/docs/models/operations/vaultsessionscreateglobals.md +++ b/docs/models/operations/vaultsessionscreateglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultSessionsCreateGlobals } from "@apideck/unify/models/operations"; -let value: VaultSessionsCreateGlobals = {}; +let value: VaultSessionsCreateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultsessionscreaterequest.md b/docs/models/operations/vaultsessionscreaterequest.md index 8a47868a..9bbfa6a7 100644 --- a/docs/models/operations/vaultsessionscreaterequest.md +++ b/docs/models/operations/vaultsessionscreaterequest.md @@ -5,46 +5,7 @@ ```typescript import { VaultSessionsCreateRequest } from "@apideck/unify/models/operations"; -let value: VaultSessionsCreateRequest = { - session: { - consumerMetadata: { - accountName: "SpaceX", - userName: "Elon Musk", - email: "elon@musk.com", - image: "https://www.spacex.com/static/images/share.jpg", - }, - redirectUri: "https://mysaas.com/dashboard", - settings: { - unifiedApis: [ - "crm", - ], - }, - theme: { - favicon: "https://res.cloudinary.com/apideck/icons/intercom", - logo: "https://res.cloudinary.com/apideck/icons/intercom", - primaryColor: "#286efa", - sidepanelBackgroundColor: "#286efa", - sidepanelTextColor: "#FFFFFF", - vaultName: "Intercom", - privacyUrl: "https://compliance.apideck.com/privacy-policy", - termsUrl: - "https://www.termsfeed.com/terms-conditions/957c85c1b089ae9e3219c83eff65377e", - }, - customConsumerSettings: { - "feature_flag_1": true, - "tax_rates": [ - { - "id": "6", - "label": "6%", - }, - { - "id": "21", - "label": "21%", - }, - ], - }, - }, -}; +let value: VaultSessionsCreateRequest = {}; ``` ## Fields diff --git a/docs/models/operations/vaultsessionscreateresponse.md b/docs/models/operations/vaultsessionscreateresponse.md index a9b4887d..eeda2a80 100644 --- a/docs/models/operations/vaultsessionscreateresponse.md +++ b/docs/models/operations/vaultsessionscreateresponse.md @@ -5,32 +5,7 @@ ```typescript import { VaultSessionsCreateResponse } from "@apideck/unify/models/operations"; -let value: VaultSessionsCreateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createSessionResponse: { - statusCode: 200, - status: "OK", - data: { - sessionUri: - "http://vault.apideck.com/session/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb25zdW1lcl9pZCI6InRlc3RfdXNlcl9pZCIsImFwcGxpY2F0aW9uX2lkIj", - sessionToken: - "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb25zdW1lcl9pZCI6InRlc3RfdXNlcl9pZCIsImFwcGxpY2F0aW9uX2lkIj", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultSessionsCreateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/vaultvalidateconnectionstateglobals.md b/docs/models/operations/vaultvalidateconnectionstateglobals.md index e422664e..1ae18961 100644 --- a/docs/models/operations/vaultvalidateconnectionstateglobals.md +++ b/docs/models/operations/vaultvalidateconnectionstateglobals.md @@ -5,7 +5,10 @@ ```typescript import { VaultValidateConnectionStateGlobals } from "@apideck/unify/models/operations"; -let value: VaultValidateConnectionStateGlobals = {}; +let value: VaultValidateConnectionStateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/vaultvalidateconnectionstateresponse.md b/docs/models/operations/vaultvalidateconnectionstateresponse.md index 5b4deee7..77613549 100644 --- a/docs/models/operations/vaultvalidateconnectionstateresponse.md +++ b/docs/models/operations/vaultvalidateconnectionstateresponse.md @@ -5,30 +5,7 @@ ```typescript import { VaultValidateConnectionStateResponse } from "@apideck/unify/models/operations"; -let value: VaultValidateConnectionStateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - validateConnectionStateResponse: { - statusCode: 200, - status: "OK", - data: { - id: "crm+salesforce", - state: "authorized", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: VaultValidateConnectionStateResponse = {}; ``` ## Fields diff --git a/docs/models/operations/webhookeventlogsallglobals.md b/docs/models/operations/webhookeventlogsallglobals.md index 3c24d343..8f08b9d9 100644 --- a/docs/models/operations/webhookeventlogsallglobals.md +++ b/docs/models/operations/webhookeventlogsallglobals.md @@ -5,7 +5,9 @@ ```typescript import { WebhookEventLogsAllGlobals } from "@apideck/unify/models/operations"; -let value: WebhookEventLogsAllGlobals = {}; +let value: WebhookEventLogsAllGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/webhookeventlogsallresponse.md b/docs/models/operations/webhookeventlogsallresponse.md index af7f63ac..096b4de0 100644 --- a/docs/models/operations/webhookeventlogsallresponse.md +++ b/docs/models/operations/webhookeventlogsallresponse.md @@ -5,73 +5,7 @@ ```typescript import { WebhookEventLogsAllResponse } from "@apideck/unify/models/operations"; -let value: WebhookEventLogsAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getWebhookEventLogsResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "1d174c4d-fe9e-4377-a76c-6da22fe9cd87", - statusCode: 200, - success: true, - applicationId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", - consumerId: "test_consumer_id", - unifiedApi: "crm", - service: { - id: "101-data-solution", - name: "101 Data Solution", - }, - endpoint: "https://example.com/my/webhook/endpoint", - eventType: "vault.connection.updated", - executionAttempt: 3, - httpMethod: "GET", - timestamp: "2021-07-12T14:26:17.420Z", - entityType: "Connection", - requestBody: - "{\"entity\":{\"id\":\"2222+test_user_id\",\"application_id\":\"2222\",\"consumer_id\":\"test_user_id\",\"name\":\"ActiveCampaign\",\"icon\":\"https://res.cloudinary.com/apideck/image/upload/v1529455970/catalog/activecampaign/icon128x128.png\",\"logo\":\"https://www.activecampaign.com/site/assets/social-2x.png\",\"unified_api\":\"crm\",\"service_id\":\"activecampaign\",\"auth_type\":\"apiKey\",\"enabled\":true,\"tag_line\":\"Integrated email marketing, marketing automation, and small business CRM. Save time while growing your business with sales automation.\",\"website\":\"https://www.activecampaign.com/\",\"settings\":{\"instance_url\":\"https://eu28.salesforce.com\",\"base_url\":\"https://updated.api-us1.com\"},\"metadata\":{\"plan\":\"enterprise\",\"account\":{\"name\":\"My Company\"}},\"state\":\"callable\",\"created_at\":\"2021-09-10T10:39:49.628Z\",\"updated_at\":\"2021-09-10T10:39:52.715Z\"},\"entityType\":\"Connection\"}", - responseBody: "{\"status\":\"OK\"}", - retryScheduled: true, - attempts: [ - { - timestamp: "2021-07-12T14:26:17.420Z", - executionAttempt: 3, - statusCode: 200, - success: true, - }, - ], - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: WebhookEventLogsAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksaddglobals.md b/docs/models/operations/webhookwebhooksaddglobals.md index 4cfbd07f..0126f181 100644 --- a/docs/models/operations/webhookwebhooksaddglobals.md +++ b/docs/models/operations/webhookwebhooksaddglobals.md @@ -5,7 +5,9 @@ ```typescript import { WebhookWebhooksAddGlobals } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksAddGlobals = {}; +let value: WebhookWebhooksAddGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksaddrequest.md b/docs/models/operations/webhookwebhooksaddrequest.md index 4251201e..cd50543c 100644 --- a/docs/models/operations/webhookwebhooksaddrequest.md +++ b/docs/models/operations/webhookwebhooksaddrequest.md @@ -5,18 +5,7 @@ ```typescript import { WebhookWebhooksAddRequest } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksAddRequest = { - createWebhookRequest: { - description: "A description", - unifiedApi: "crm", - status: "enabled", - deliveryUrl: "https://example.com/my/webhook/endpoint", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - }, -}; +let value: WebhookWebhooksAddRequest = {}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksaddresponse.md b/docs/models/operations/webhookwebhooksaddresponse.md index b3fcfefa..7b3a15ea 100644 --- a/docs/models/operations/webhookwebhooksaddresponse.md +++ b/docs/models/operations/webhookwebhooksaddresponse.md @@ -5,41 +5,7 @@ ```typescript import { WebhookWebhooksAddResponse } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksAddResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - createWebhookResponse: { - statusCode: 200, - status: "OK", - data: { - id: "1234", - description: "A description", - unifiedApi: "crm", - status: "enabled", - disabledReason: "retry_limit", - deliveryUrl: "https://example.com/my/webhook/endpoint", - executeBaseUrl: "https://unify.apideck.com/webhook/webhooks/1234/execute", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: WebhookWebhooksAddResponse = {}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksallglobals.md b/docs/models/operations/webhookwebhooksallglobals.md index 381e7714..9439bf5b 100644 --- a/docs/models/operations/webhookwebhooksallglobals.md +++ b/docs/models/operations/webhookwebhooksallglobals.md @@ -5,7 +5,9 @@ ```typescript import { WebhookWebhooksAllGlobals } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksAllGlobals = {}; +let value: WebhookWebhooksAllGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksallresponse.md b/docs/models/operations/webhookwebhooksallresponse.md index 3aa4f9bf..137a912e 100644 --- a/docs/models/operations/webhookwebhooksallresponse.md +++ b/docs/models/operations/webhookwebhooksallresponse.md @@ -5,59 +5,7 @@ ```typescript import { WebhookWebhooksAllResponse } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksAllResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getWebhooksResponse: { - statusCode: 200, - status: "OK", - data: [ - { - id: "1234", - description: "A description", - unifiedApi: "crm", - status: "enabled", - disabledReason: "retry_limit", - deliveryUrl: "https://example.com/my/webhook/endpoint", - executeBaseUrl: - "https://unify.apideck.com/webhook/webhooks/1234/execute", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - ], - meta: { - itemsOnPage: 50, - cursors: { - previous: "em9oby1jcm06OnBhZ2U6OjE=", - current: "em9oby1jcm06OnBhZ2U6OjI=", - next: "em9oby1jcm06OnBhZ2U6OjM=", - }, - }, - links: { - previous: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", - current: "https://unify.apideck.com/crm/companies", - next: - "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: WebhookWebhooksAllResponse = {}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksdeleteglobals.md b/docs/models/operations/webhookwebhooksdeleteglobals.md index 3c5cc3ae..a6e2d94c 100644 --- a/docs/models/operations/webhookwebhooksdeleteglobals.md +++ b/docs/models/operations/webhookwebhooksdeleteglobals.md @@ -5,7 +5,9 @@ ```typescript import { WebhookWebhooksDeleteGlobals } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksDeleteGlobals = {}; +let value: WebhookWebhooksDeleteGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksdeleteresponse.md b/docs/models/operations/webhookwebhooksdeleteresponse.md index c38ffb0d..d5f40f2f 100644 --- a/docs/models/operations/webhookwebhooksdeleteresponse.md +++ b/docs/models/operations/webhookwebhooksdeleteresponse.md @@ -5,41 +5,7 @@ ```typescript import { WebhookWebhooksDeleteResponse } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksDeleteResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - deleteWebhookResponse: { - statusCode: 200, - status: "OK", - data: { - id: "1234", - description: "A description", - unifiedApi: "crm", - status: "enabled", - disabledReason: "retry_limit", - deliveryUrl: "https://example.com/my/webhook/endpoint", - executeBaseUrl: "https://unify.apideck.com/webhook/webhooks/1234/execute", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: WebhookWebhooksDeleteResponse = {}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksoneglobals.md b/docs/models/operations/webhookwebhooksoneglobals.md index b874d0f8..2ab357a5 100644 --- a/docs/models/operations/webhookwebhooksoneglobals.md +++ b/docs/models/operations/webhookwebhooksoneglobals.md @@ -5,7 +5,9 @@ ```typescript import { WebhookWebhooksOneGlobals } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksOneGlobals = {}; +let value: WebhookWebhooksOneGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksoneresponse.md b/docs/models/operations/webhookwebhooksoneresponse.md index 7f809fd8..8f356377 100644 --- a/docs/models/operations/webhookwebhooksoneresponse.md +++ b/docs/models/operations/webhookwebhooksoneresponse.md @@ -5,41 +5,7 @@ ```typescript import { WebhookWebhooksOneResponse } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksOneResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - getWebhookResponse: { - statusCode: 200, - status: "OK", - data: { - id: "1234", - description: "A description", - unifiedApi: "crm", - status: "enabled", - disabledReason: "retry_limit", - deliveryUrl: "https://example.com/my/webhook/endpoint", - executeBaseUrl: "https://unify.apideck.com/webhook/webhooks/1234/execute", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: WebhookWebhooksOneResponse = {}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksupdateglobals.md b/docs/models/operations/webhookwebhooksupdateglobals.md index 66b2d583..0b9bac6c 100644 --- a/docs/models/operations/webhookwebhooksupdateglobals.md +++ b/docs/models/operations/webhookwebhooksupdateglobals.md @@ -5,7 +5,9 @@ ```typescript import { WebhookWebhooksUpdateGlobals } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksUpdateGlobals = {}; +let value: WebhookWebhooksUpdateGlobals = { + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; ``` ## Fields diff --git a/docs/models/operations/webhookwebhooksupdaterequest.md b/docs/models/operations/webhookwebhooksupdaterequest.md index ed7b99ce..60dbf23f 100644 --- a/docs/models/operations/webhookwebhooksupdaterequest.md +++ b/docs/models/operations/webhookwebhooksupdaterequest.md @@ -7,15 +7,6 @@ import { WebhookWebhooksUpdateRequest } from "@apideck/unify/models/operations"; let value: WebhookWebhooksUpdateRequest = { id: "", - updateWebhookRequest: { - description: "A description", - status: "enabled", - deliveryUrl: "https://example.com/my/webhook/endpoint", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - }, }; ``` diff --git a/docs/models/operations/webhookwebhooksupdateresponse.md b/docs/models/operations/webhookwebhooksupdateresponse.md index bf311409..c48e7411 100644 --- a/docs/models/operations/webhookwebhooksupdateresponse.md +++ b/docs/models/operations/webhookwebhooksupdateresponse.md @@ -5,41 +5,7 @@ ```typescript import { WebhookWebhooksUpdateResponse } from "@apideck/unify/models/operations"; -let value: WebhookWebhooksUpdateResponse = { - httpMeta: { - response: new Response("{\"message\": \"hello world\"}", { - headers: { "Content-Type": "application/json" }, - }), - request: new Request("https://example.com"), - }, - updateWebhookResponse: { - statusCode: 200, - status: "OK", - data: { - id: "1234", - description: "A description", - unifiedApi: "crm", - status: "enabled", - disabledReason: "retry_limit", - deliveryUrl: "https://example.com/my/webhook/endpoint", - executeBaseUrl: "https://unify.apideck.com/webhook/webhooks/1234/execute", - events: [ - "vault.connection.created", - "vault.connection.updated", - ], - updatedAt: new Date("2020-09-30T07:43:32.000Z"), - createdAt: new Date("2020-09-30T07:43:32.000Z"), - }, - }, - unexpectedErrorResponse: { - statusCode: 400, - error: "Bad Request", - typeName: "RequestHeadersValidationError", - message: "Invalid Params", - detail: "Missing Header: x-apideck-consumer-id", - ref: "https://developers.apideck.com/errors#unauthorizederror", - }, -}; +let value: WebhookWebhooksUpdateResponse = {}; ``` ## Fields diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 6a46ee3b..96bc938e 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -21,9 +21,9 @@ List activities import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,6 +34,7 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -42,7 +43,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { crmActivitiesList } from "@apideck/unify/funcs/crmActivitiesList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,23 +74,21 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmActivitiesList failed:", res.error); + } } run(); @@ -130,9 +128,9 @@ Create activity import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -210,7 +208,7 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: 10, + value: null, }, ], attendees: [ @@ -244,7 +242,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -262,9 +259,9 @@ import { crmActivitiesCreate } from "@apideck/unify/funcs/crmActivitiesCreate.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -342,7 +339,7 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: 10, + value: null, }, ], attendees: [ @@ -375,15 +372,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmActivitiesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -423,9 +417,9 @@ Get activity import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -435,7 +429,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -453,9 +446,9 @@ import { crmActivitiesGet } from "@apideck/unify/funcs/crmActivitiesGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -464,15 +457,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmActivitiesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -512,9 +502,9 @@ Update activity import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -705,7 +695,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -723,9 +712,9 @@ import { crmActivitiesUpdate } from "@apideck/unify/funcs/crmActivitiesUpdate.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -915,15 +904,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmActivitiesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -963,9 +949,9 @@ Delete activity import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -974,7 +960,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -992,9 +977,9 @@ import { crmActivitiesDelete } from "@apideck/unify/funcs/crmActivitiesDelete.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1002,15 +987,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmActivitiesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/agedcreditors/README.md b/docs/sdks/agedcreditors/README.md index 29374e45..228e28e4 100644 --- a/docs/sdks/agedcreditors/README.md +++ b/docs/sdks/agedcreditors/README.md @@ -17,9 +17,9 @@ Get Aged Creditors import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -38,7 +38,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -56,9 +55,9 @@ import { accountingAgedCreditorsGet } from "@apideck/unify/funcs/accountingAgedC // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -76,15 +75,12 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingAgedCreditorsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/ageddebtors/README.md b/docs/sdks/ageddebtors/README.md index 0c4d6481..300d1aad 100644 --- a/docs/sdks/ageddebtors/README.md +++ b/docs/sdks/ageddebtors/README.md @@ -17,9 +17,9 @@ Get Aged Debtors import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -38,7 +38,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -56,9 +55,9 @@ import { accountingAgedDebtorsGet } from "@apideck/unify/funcs/accountingAgedDeb // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -76,15 +75,12 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingAgedDebtorsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/apideckcompanies/README.md b/docs/sdks/apideckcompanies/README.md index 18298a14..08c5443c 100644 --- a/docs/sdks/apideckcompanies/README.md +++ b/docs/sdks/apideckcompanies/README.md @@ -21,9 +21,9 @@ List Companies import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { hrisCompaniesList } from "@apideck/unify/funcs/hrisCompaniesList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("hrisCompaniesList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Company import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -290,7 +286,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -308,9 +303,9 @@ import { hrisCompaniesCreate } from "@apideck/unify/funcs/hrisCompaniesCreate.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -479,15 +474,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisCompaniesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -527,9 +519,9 @@ Get Company import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -539,7 +531,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -557,9 +548,9 @@ import { hrisCompaniesGet } from "@apideck/unify/funcs/hrisCompaniesGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -568,15 +559,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisCompaniesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -616,9 +604,9 @@ Update Company import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -789,7 +777,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -807,9 +794,9 @@ import { hrisCompaniesUpdate } from "@apideck/unify/funcs/hrisCompaniesUpdate.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -979,15 +966,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisCompaniesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1027,9 +1011,9 @@ Delete Company import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1038,7 +1022,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1056,9 +1039,9 @@ import { hrisCompaniesDelete } from "@apideck/unify/funcs/hrisCompaniesDelete.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1066,15 +1049,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisCompaniesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/apideckcustomers/README.md b/docs/sdks/apideckcustomers/README.md index af113472..4fbfbe2a 100644 --- a/docs/sdks/apideckcustomers/README.md +++ b/docs/sdks/apideckcustomers/README.md @@ -18,9 +18,9 @@ List Customers import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -37,7 +37,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -56,9 +55,9 @@ import { ecommerceCustomersList } from "@apideck/unify/funcs/ecommerceCustomersL // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -73,17 +72,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("ecommerceCustomersList failed:", res.error); + } } run(); @@ -123,9 +119,9 @@ Get Customer import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -135,7 +131,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -153,9 +148,9 @@ import { ecommerceCustomersGet } from "@apideck/unify/funcs/ecommerceCustomersGe // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -164,15 +159,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("ecommerceCustomersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/apideckdepartments/README.md b/docs/sdks/apideckdepartments/README.md index 208307f1..0f204da4 100644 --- a/docs/sdks/apideckdepartments/README.md +++ b/docs/sdks/apideckdepartments/README.md @@ -21,9 +21,9 @@ List Departments import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { hrisDepartmentsList } from "@apideck/unify/funcs/hrisDepartmentsList.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("hrisDepartmentsList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -174,7 +170,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -192,9 +187,9 @@ import { hrisDepartmentsCreate } from "@apideck/unify/funcs/hrisDepartmentsCreat // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -247,15 +242,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisDepartmentsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -295,9 +287,9 @@ Get Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -307,7 +299,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -325,9 +316,9 @@ import { hrisDepartmentsGet } from "@apideck/unify/funcs/hrisDepartmentsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -336,15 +327,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisDepartmentsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -384,9 +372,9 @@ Update Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -415,7 +403,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -433,9 +420,9 @@ import { hrisDepartmentsUpdate } from "@apideck/unify/funcs/hrisDepartmentsUpdat // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -463,15 +450,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisDepartmentsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -511,9 +495,9 @@ Delete Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -522,7 +506,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -540,9 +523,9 @@ import { hrisDepartmentsDelete } from "@apideck/unify/funcs/hrisDepartmentsDelet // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -550,15 +533,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisDepartmentsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/apiresourcecoverage/README.md b/docs/sdks/apiresourcecoverage/README.md index 46065951..e085d3c9 100644 --- a/docs/sdks/apiresourcecoverage/README.md +++ b/docs/sdks/apiresourcecoverage/README.md @@ -17,9 +17,8 @@ Get API Resource Coverage import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -28,7 +27,6 @@ async function run() { resourceId: "", }); - // Handle the result console.log(result); } @@ -46,9 +44,8 @@ import { connectorApiResourceCoverageGet } from "@apideck/unify/funcs/connectorA // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -56,15 +53,12 @@ async function run() { id: "", resourceId: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("connectorApiResourceCoverageGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/apiresources/README.md b/docs/sdks/apiresources/README.md index 8d9d1fe1..81684c70 100644 --- a/docs/sdks/apiresources/README.md +++ b/docs/sdks/apiresources/README.md @@ -17,9 +17,8 @@ Get API Resource import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -28,7 +27,6 @@ async function run() { resourceId: "", }); - // Handle the result console.log(result); } @@ -46,9 +44,8 @@ import { connectorApiResourcesGet } from "@apideck/unify/funcs/connectorApiResou // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -56,15 +53,12 @@ async function run() { id: "", resourceId: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("connectorApiResourcesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/apis/README.md b/docs/sdks/apis/README.md index 2a7d3ba6..eef50ef6 100644 --- a/docs/sdks/apis/README.md +++ b/docs/sdks/apis/README.md @@ -18,9 +18,8 @@ List APIs import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -31,7 +30,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -50,9 +48,8 @@ import { connectorApisList } from "@apideck/unify/funcs/connectorApisList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -61,17 +58,14 @@ async function run() { status: "beta", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("connectorApisList failed:", res.error); + } } run(); @@ -109,9 +103,8 @@ Get API import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -119,7 +112,6 @@ async function run() { id: "", }); - // Handle the result console.log(result); } @@ -137,24 +129,20 @@ import { connectorApisGet } from "@apideck/unify/funcs/connectorApisGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await connectorApisGet(apideck, { id: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("connectorApisGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/applicants/README.md b/docs/sdks/applicants/README.md index cc02ca30..b21ef908 100644 --- a/docs/sdks/applicants/README.md +++ b/docs/sdks/applicants/README.md @@ -21,9 +21,9 @@ List Applicants import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -39,7 +39,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -58,9 +57,9 @@ import { atsApplicantsList } from "@apideck/unify/funcs/atsApplicantsList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,17 +73,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("atsApplicantsList failed:", res.error); + } } run(); @@ -125,9 +121,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -348,7 +344,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -367,9 +362,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -589,15 +584,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicantsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -637,9 +629,9 @@ Get Applicant import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -649,7 +641,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -667,9 +658,9 @@ import { atsApplicantsGet } from "@apideck/unify/funcs/atsApplicantsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -678,15 +669,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicantsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -727,9 +715,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -960,7 +948,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -979,9 +966,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1211,15 +1198,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicantsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1259,9 +1243,9 @@ Delete Applicant import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1270,7 +1254,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1288,9 +1271,9 @@ import { atsApplicantsDelete } from "@apideck/unify/funcs/atsApplicantsDelete.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1298,15 +1281,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicantsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/applications/README.md b/docs/sdks/applications/README.md index 15b3e206..d76623e1 100644 --- a/docs/sdks/applications/README.md +++ b/docs/sdks/applications/README.md @@ -21,9 +21,9 @@ List Applications import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -35,7 +35,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -54,9 +53,9 @@ import { atsApplicationsList } from "@apideck/unify/funcs/atsApplicationsList.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -66,17 +65,14 @@ async function run() { "search": "San Francisco", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("atsApplicationsList failed:", res.error); + } } run(); @@ -116,9 +112,9 @@ Create Application import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -158,7 +154,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -176,9 +171,9 @@ import { atsApplicationsCreate } from "@apideck/unify/funcs/atsApplicationsCreat // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -217,15 +212,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicationsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -265,9 +257,9 @@ Get Application import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -276,7 +268,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -294,9 +285,9 @@ import { atsApplicationsGet } from "@apideck/unify/funcs/atsApplicationsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -304,15 +295,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicationsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -352,9 +340,9 @@ Update Application import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -461,7 +449,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -479,9 +466,9 @@ import { atsApplicationsUpdate } from "@apideck/unify/funcs/atsApplicationsUpdat // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -587,15 +574,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicationsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -635,9 +619,9 @@ Delete Application import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -646,7 +630,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -664,9 +647,9 @@ import { atsApplicationsDelete } from "@apideck/unify/funcs/atsApplicationsDelet // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -674,15 +657,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsApplicationsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index ff1df1ab..c760039a 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -21,9 +21,9 @@ List Attachments import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -35,7 +35,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -54,9 +53,9 @@ import { accountingAttachmentsList } from "@apideck/unify/funcs/accountingAttach // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -66,17 +65,14 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingAttachmentsList failed:", res.error); + } } run(); @@ -117,9 +113,9 @@ import { Apideck } from "@apideck/unify"; import { openAsBlob } from "node:fs"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -131,7 +127,6 @@ async function run() { requestBody: await openAsBlob("example.file"), }); - // Handle the result console.log(result); } @@ -150,9 +145,9 @@ import { openAsBlob } from "node:fs"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -163,15 +158,12 @@ async function run() { serviceId: "salesforce", requestBody: await openAsBlob("example.file"), }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingAttachmentsUpload failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -212,9 +204,9 @@ Get Attachment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -226,7 +218,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -244,9 +235,9 @@ import { accountingAttachmentsGet } from "@apideck/unify/funcs/accountingAttachm // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -257,15 +248,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingAttachmentsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -305,9 +293,9 @@ Delete Attachment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -318,7 +306,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -336,9 +323,9 @@ import { accountingAttachmentsDelete } from "@apideck/unify/funcs/accountingAtta // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -348,15 +335,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingAttachmentsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -396,9 +380,9 @@ Download Attachment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -410,7 +394,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -428,9 +411,9 @@ import { accountingAttachmentsDownload } from "@apideck/unify/funcs/accountingAt // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -441,15 +424,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingAttachmentsDownload failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/balancesheet/README.md b/docs/sdks/balancesheet/README.md index bc58734e..38ffde7a 100644 --- a/docs/sdks/balancesheet/README.md +++ b/docs/sdks/balancesheet/README.md @@ -17,9 +17,9 @@ Get BalanceSheet import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -54,9 +53,9 @@ import { accountingBalanceSheetGet } from "@apideck/unify/funcs/accountingBalanc // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -72,15 +71,12 @@ async function run() { periodType: "month", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBalanceSheetGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/bankfeedaccounts/README.md b/docs/sdks/bankfeedaccounts/README.md index 2ab4bdf3..8da1d75e 100644 --- a/docs/sdks/bankfeedaccounts/README.md +++ b/docs/sdks/bankfeedaccounts/README.md @@ -21,9 +21,9 @@ List Bank Feed Accounts import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { accountingBankFeedAccountsList } from "@apideck/unify/funcs/accountingB // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingBankFeedAccountsList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Bank Feed Account import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -158,7 +154,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -176,9 +171,9 @@ import { accountingBankFeedAccountsCreate } from "@apideck/unify/funcs/accountin // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -215,15 +210,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedAccountsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -263,9 +255,9 @@ Get Bank Feed Account import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -275,7 +267,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -293,9 +284,9 @@ import { accountingBankFeedAccountsGet } from "@apideck/unify/funcs/accountingBa // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -304,15 +295,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedAccountsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -352,9 +340,9 @@ Update Bank Feed Account import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -387,7 +375,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -405,9 +392,9 @@ import { accountingBankFeedAccountsUpdate } from "@apideck/unify/funcs/accountin // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -439,15 +426,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedAccountsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -487,9 +471,9 @@ Delete Bank Feed Account import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -498,7 +482,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -516,9 +499,9 @@ import { accountingBankFeedAccountsDelete } from "@apideck/unify/funcs/accountin // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -526,15 +509,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedAccountsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/bankfeedstatements/README.md b/docs/sdks/bankfeedstatements/README.md index 54d15157..153ca82b 100644 --- a/docs/sdks/bankfeedstatements/README.md +++ b/docs/sdks/bankfeedstatements/README.md @@ -21,9 +21,9 @@ List Bank Feed Statements import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { accountingBankFeedStatementsList } from "@apideck/unify/funcs/accountin // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingBankFeedStatementsList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Bank Feed Statement import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -170,7 +166,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -188,9 +183,9 @@ import { accountingBankFeedStatementsCreate } from "@apideck/unify/funcs/account // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -239,15 +234,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedStatementsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -287,9 +279,9 @@ Get Bank Feed Statement import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -299,7 +291,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -317,9 +308,9 @@ import { accountingBankFeedStatementsGet } from "@apideck/unify/funcs/accounting // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -328,15 +319,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedStatementsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -376,9 +364,9 @@ Update Bank Feed Statement import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -419,7 +407,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -437,9 +424,9 @@ import { accountingBankFeedStatementsUpdate } from "@apideck/unify/funcs/account // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -479,15 +466,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedStatementsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -527,9 +511,9 @@ Delete Bank Feed Statement import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -538,7 +522,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -556,9 +539,9 @@ import { accountingBankFeedStatementsDelete } from "@apideck/unify/funcs/account // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -566,15 +549,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBankFeedStatementsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/billpayments/README.md b/docs/sdks/billpayments/README.md index 62213c64..959c301f 100644 --- a/docs/sdks/billpayments/README.md +++ b/docs/sdks/billpayments/README.md @@ -21,9 +21,9 @@ List Bill Payments import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -35,6 +35,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -43,7 +44,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -62,9 +62,9 @@ import { accountingBillPaymentsList } from "@apideck/unify/funcs/accountingBillP // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -76,23 +76,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingBillPaymentsList failed:", res.error); + } } run(); @@ -132,9 +130,9 @@ Create Bill Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -272,7 +270,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -290,9 +287,9 @@ import { accountingBillPaymentsCreate } from "@apideck/unify/funcs/accountingBil // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -429,15 +426,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillPaymentsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -477,9 +471,9 @@ Get Bill Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -489,7 +483,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -507,9 +500,9 @@ import { accountingBillPaymentsGet } from "@apideck/unify/funcs/accountingBillPa // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -518,15 +511,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillPaymentsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -566,9 +556,9 @@ Update Bill Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -687,7 +677,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -705,9 +694,9 @@ import { accountingBillPaymentsUpdate } from "@apideck/unify/funcs/accountingBil // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -825,15 +814,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillPaymentsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -873,9 +859,9 @@ Delete Bill Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -884,7 +870,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -902,9 +887,9 @@ import { accountingBillPaymentsDelete } from "@apideck/unify/funcs/accountingBil // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -912,15 +897,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillPaymentsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/bills/README.md b/docs/sdks/bills/README.md index 9ccfaeb2..24e7beff 100644 --- a/docs/sdks/bills/README.md +++ b/docs/sdks/bills/README.md @@ -21,9 +21,9 @@ List Bills import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,6 +34,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -42,7 +43,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { accountingBillsList } from "@apideck/unify/funcs/accountingBillsList.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,23 +74,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingBillsList failed:", res.error); + } } run(); @@ -131,9 +129,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -375,7 +373,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -394,9 +391,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -637,15 +634,12 @@ async function run() { accountingPeriod: "01-24", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -685,9 +679,9 @@ Get Bill import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -697,7 +691,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -715,9 +708,9 @@ import { accountingBillsGet } from "@apideck/unify/funcs/accountingBillsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -726,15 +719,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -775,9 +765,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -987,7 +977,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -1006,9 +995,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1217,15 +1206,12 @@ async function run() { accountingPeriod: "01-24", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1265,9 +1251,9 @@ Delete Bill import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1276,7 +1262,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1294,9 +1279,9 @@ import { accountingBillsDelete } from "@apideck/unify/funcs/accountingBillsDelet // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1304,15 +1289,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingBillsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 2da0a601..a04f34bc 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -18,9 +18,9 @@ List Collections import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -28,6 +28,7 @@ async function run() { serviceId: "salesforce", sort: { by: "name", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -36,7 +37,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +55,9 @@ import { issueTrackingCollectionsList } from "@apideck/unify/funcs/issueTracking // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -65,23 +65,21 @@ async function run() { serviceId: "salesforce", sort: { by: "name", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("issueTrackingCollectionsList failed:", res.error); + } } run(); @@ -121,9 +119,9 @@ Get Collection import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -133,7 +131,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -151,9 +148,9 @@ import { issueTrackingCollectionsGet } from "@apideck/unify/funcs/issueTrackingC // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -162,15 +159,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/collectiontags/README.md b/docs/sdks/collectiontags/README.md index fc3729f0..2844b756 100644 --- a/docs/sdks/collectiontags/README.md +++ b/docs/sdks/collectiontags/README.md @@ -17,9 +17,9 @@ List Tags import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,7 +33,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -52,9 +51,9 @@ import { issueTrackingCollectionTagsList } from "@apideck/unify/funcs/issueTrack // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -66,17 +65,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("issueTrackingCollectionTagsList failed:", res.error); + } } run(); diff --git a/docs/sdks/collectionticketcomments/README.md b/docs/sdks/collectionticketcomments/README.md index f95602ae..9e78b301 100644 --- a/docs/sdks/collectionticketcomments/README.md +++ b/docs/sdks/collectionticketcomments/README.md @@ -21,9 +21,9 @@ List Comments import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,6 +33,7 @@ async function run() { ticketId: "", sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -41,7 +42,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -60,9 +60,9 @@ import { issueTrackingCollectionTicketCommentsList } from "@apideck/unify/funcs/ // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -72,23 +72,21 @@ async function run() { ticketId: "", sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("issueTrackingCollectionTicketCommentsList failed:", res.error); + } } run(); @@ -128,9 +126,9 @@ Create Comment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -203,7 +201,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -221,9 +218,9 @@ import { issueTrackingCollectionTicketCommentsCreate } from "@apideck/unify/func // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -295,15 +292,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionTicketCommentsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -343,9 +337,9 @@ Get Comment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -358,7 +352,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -377,9 +370,9 @@ import { issueTrackingCollectionTicketCommentsGet } from "@apideck/unify/funcs/i // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -390,17 +383,14 @@ async function run() { ticketId: "", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("issueTrackingCollectionTicketCommentsGet failed:", res.error); + } } run(); @@ -440,9 +430,9 @@ Update Comment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -479,7 +469,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -497,9 +486,9 @@ import { issueTrackingCollectionTicketCommentsUpdate } from "@apideck/unify/func // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -535,15 +524,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionTicketCommentsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -583,9 +569,9 @@ Delete Comment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -596,7 +582,6 @@ async function run() { ticketId: "", }); - // Handle the result console.log(result); } @@ -614,9 +599,9 @@ import { issueTrackingCollectionTicketCommentsDelete } from "@apideck/unify/func // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -626,15 +611,12 @@ async function run() { collectionId: "apideck-io", ticketId: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionTicketCommentsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/collectiontickets/README.md b/docs/sdks/collectiontickets/README.md index 05ee5b42..958f979c 100644 --- a/docs/sdks/collectiontickets/README.md +++ b/docs/sdks/collectiontickets/README.md @@ -21,9 +21,9 @@ List Tickets import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -32,6 +32,7 @@ async function run() { collectionId: "apideck-io", sort: { by: "created_at", + direction: "desc", }, filter: { status: [ @@ -45,7 +46,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -64,9 +64,9 @@ import { issueTrackingCollectionTicketsList } from "@apideck/unify/funcs/issueTr // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -75,6 +75,7 @@ async function run() { collectionId: "apideck-io", sort: { by: "created_at", + direction: "desc", }, filter: { status: [ @@ -86,17 +87,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("issueTrackingCollectionTicketsList failed:", res.error); + } } run(); @@ -136,9 +134,9 @@ Create Ticket import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -243,7 +241,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -261,9 +258,9 @@ import { issueTrackingCollectionTicketsCreate } from "@apideck/unify/funcs/issue // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -367,15 +364,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionTicketsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -415,9 +409,9 @@ Get Ticket import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -428,7 +422,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -446,9 +439,9 @@ import { issueTrackingCollectionTicketsGet } from "@apideck/unify/funcs/issueTra // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -458,15 +451,12 @@ async function run() { collectionId: "apideck-io", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionTicketsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -506,9 +496,9 @@ Update Ticket import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -605,7 +595,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -623,9 +612,9 @@ import { issueTrackingCollectionTicketsUpdate } from "@apideck/unify/funcs/issue // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -721,15 +710,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionTicketsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -769,9 +755,9 @@ Delete Ticket import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -781,7 +767,6 @@ async function run() { collectionId: "apideck-io", }); - // Handle the result console.log(result); } @@ -799,9 +784,9 @@ import { issueTrackingCollectionTicketsDelete } from "@apideck/unify/funcs/issue // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -810,15 +795,12 @@ async function run() { serviceId: "salesforce", collectionId: "apideck-io", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionTicketsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/collectionusers/README.md b/docs/sdks/collectionusers/README.md index d2737111..5ec97251 100644 --- a/docs/sdks/collectionusers/README.md +++ b/docs/sdks/collectionusers/README.md @@ -18,9 +18,9 @@ List Users import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,7 +34,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -53,9 +52,9 @@ import { issueTrackingCollectionUsersList } from "@apideck/unify/funcs/issueTrac // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -67,17 +66,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("issueTrackingCollectionUsersList failed:", res.error); + } } run(); @@ -117,9 +113,9 @@ Get user import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -130,7 +126,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -148,9 +143,9 @@ import { issueTrackingCollectionUsersGet } from "@apideck/unify/funcs/issueTrack // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -160,15 +155,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("issueTrackingCollectionUsersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/companies/README.md b/docs/sdks/companies/README.md index 2f1d3879..823b0276 100644 --- a/docs/sdks/companies/README.md +++ b/docs/sdks/companies/README.md @@ -21,9 +21,9 @@ List companies import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,6 +34,7 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -42,7 +43,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { crmCompaniesList } from "@apideck/unify/funcs/crmCompaniesList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,23 +74,21 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmCompaniesList failed:", res.error); + } } run(); @@ -131,9 +129,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -333,7 +331,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -352,9 +349,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -553,15 +550,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCompaniesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -601,9 +595,9 @@ Get company import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -613,7 +607,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -631,9 +624,9 @@ import { crmCompaniesGet } from "@apideck/unify/funcs/crmCompaniesGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -642,15 +635,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCompaniesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -691,9 +681,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -932,7 +922,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -951,9 +940,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1191,15 +1180,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCompaniesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1239,9 +1225,9 @@ Delete company import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1250,7 +1236,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1268,9 +1253,9 @@ import { crmCompaniesDelete } from "@apideck/unify/funcs/crmCompaniesDelete.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1278,15 +1263,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCompaniesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/companyinfo/README.md b/docs/sdks/companyinfo/README.md index 36478609..b5219bc9 100644 --- a/docs/sdks/companyinfo/README.md +++ b/docs/sdks/companyinfo/README.md @@ -17,9 +17,9 @@ Get company info import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -28,7 +28,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -46,9 +45,9 @@ import { accountingCompanyInfoGet } from "@apideck/unify/funcs/accountingCompany // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -56,15 +55,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCompanyInfoGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/connectioncustommappings/README.md b/docs/sdks/connectioncustommappings/README.md index dd01a0a0..342ad852 100644 --- a/docs/sdks/connectioncustommappings/README.md +++ b/docs/sdks/connectioncustommappings/README.md @@ -17,9 +17,9 @@ This endpoint returns a list of custom mappings for a connection. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -30,7 +30,6 @@ async function run() { resourceId: "1234", }); - // Handle the result console.log(result); } @@ -48,9 +47,9 @@ import { vaultConnectionCustomMappingsList } from "@apideck/unify/funcs/vaultCon // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -60,15 +59,12 @@ async function run() { resource: "leads", resourceId: "1234", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionCustomMappingsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index fab8d063..896795bf 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -25,9 +25,9 @@ OAuth2 supported integrations will contain authorize and revoke links to handle import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { configured: true, }); - // Handle the result console.log(result); } @@ -54,9 +53,9 @@ import { vaultConnectionsList } from "@apideck/unify/funcs/vaultConnectionsList. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -64,15 +63,12 @@ async function run() { api: "crm", configured: true, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -112,9 +108,9 @@ Get a connection import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -123,7 +119,6 @@ async function run() { unifiedApi: "crm", }); - // Handle the result console.log(result); } @@ -141,9 +136,9 @@ import { vaultConnectionsGet } from "@apideck/unify/funcs/vaultConnectionsGet.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -151,15 +146,12 @@ async function run() { serviceId: "pipedrive", unifiedApi: "crm", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -199,9 +191,9 @@ Update a connection import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -307,7 +299,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -325,9 +316,9 @@ import { vaultConnectionsUpdate } from "@apideck/unify/funcs/vaultConnectionsUpd // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -432,15 +423,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -480,9 +468,9 @@ Deletes a connection import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -491,7 +479,6 @@ async function run() { unifiedApi: "crm", }); - // Handle the result console.log(result); } @@ -509,9 +496,9 @@ import { vaultConnectionsDelete } from "@apideck/unify/funcs/vaultConnectionsDel // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -519,15 +506,12 @@ async function run() { serviceId: "pipedrive", unifiedApi: "crm", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -568,9 +552,9 @@ Import an authorized connection. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -582,7 +566,9 @@ async function run() { refreshToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ", accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", }, - settings: {}, + settings: { + "instance_url": "https://eu28.salesforce.com", + }, metadata: { "account": { "name": "My Company", @@ -593,7 +579,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -611,9 +596,9 @@ import { vaultConnectionsImports } from "@apideck/unify/funcs/vaultConnectionsIm // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -625,7 +610,9 @@ async function run() { refreshToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ", accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", }, - settings: {}, + settings: { + "instance_url": "https://eu28.salesforce.com", + }, metadata: { "account": { "name": "My Company", @@ -635,15 +622,12 @@ async function run() { }, }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionsImports failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -689,9 +673,9 @@ Note: import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -700,7 +684,6 @@ async function run() { unifiedApi: "crm", }); - // Handle the result console.log(result); } @@ -718,9 +701,9 @@ import { vaultConnectionsToken } from "@apideck/unify/funcs/vaultConnectionsToke // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -728,15 +711,12 @@ async function run() { serviceId: "pipedrive", unifiedApi: "crm", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionsToken failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/connectionsettings/README.md b/docs/sdks/connectionsettings/README.md index 50fbbc93..3d28bab2 100644 --- a/docs/sdks/connectionsettings/README.md +++ b/docs/sdks/connectionsettings/README.md @@ -19,9 +19,9 @@ This endpoint returns custom settings and their defaults required by connection import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -31,7 +31,6 @@ async function run() { resource: "leads", }); - // Handle the result console.log(result); } @@ -49,9 +48,9 @@ import { vaultConnectionSettingsList } from "@apideck/unify/funcs/vaultConnectio // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -60,15 +59,12 @@ async function run() { serviceId: "pipedrive", resource: "leads", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionSettingsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -108,9 +104,9 @@ Update default values for a connection's resource settings import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -214,7 +210,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -232,9 +227,9 @@ import { vaultConnectionSettingsUpdate } from "@apideck/unify/funcs/vaultConnect // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -337,15 +332,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConnectionSettingsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/connectordocs/README.md b/docs/sdks/connectordocs/README.md index df550320..c4bf8e3f 100644 --- a/docs/sdks/connectordocs/README.md +++ b/docs/sdks/connectordocs/README.md @@ -17,9 +17,8 @@ Get Connector Doc content import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -28,7 +27,6 @@ async function run() { docId: "application_owner+oauth_credentials", }); - // Handle the result console.log(result); } @@ -46,9 +44,8 @@ import { connectorConnectorDocsGet } from "@apideck/unify/funcs/connectorConnect // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -56,15 +53,12 @@ async function run() { id: "", docId: "application_owner+oauth_credentials", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("connectorConnectorDocsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/connectorresources/README.md b/docs/sdks/connectorresources/README.md index f4982426..d9d4b4ad 100644 --- a/docs/sdks/connectorresources/README.md +++ b/docs/sdks/connectorresources/README.md @@ -17,9 +17,8 @@ Get Connector Resource import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -29,7 +28,6 @@ async function run() { unifiedApi: "crm", }); - // Handle the result console.log(result); } @@ -47,9 +45,8 @@ import { connectorConnectorResourcesGet } from "@apideck/unify/funcs/connectorCo // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -58,15 +55,12 @@ async function run() { resourceId: "", unifiedApi: "crm", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("connectorConnectorResourcesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/connectors/README.md b/docs/sdks/connectors/README.md index 9108529d..4e9a2e45 100644 --- a/docs/sdks/connectors/README.md +++ b/docs/sdks/connectors/README.md @@ -18,9 +18,8 @@ List Connectors import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -31,7 +30,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -50,9 +48,8 @@ import { connectorConnectorsList } from "@apideck/unify/funcs/connectorConnector // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -61,17 +58,14 @@ async function run() { unifiedApi: "file-storage", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("connectorConnectorsList failed:", res.error); + } } run(); @@ -109,9 +103,8 @@ Get Connector import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -119,7 +112,6 @@ async function run() { id: "", }); - // Handle the result console.log(result); } @@ -137,24 +129,20 @@ import { connectorConnectorsGet } from "@apideck/unify/funcs/connectorConnectors // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await connectorConnectorsGet(apideck, { id: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("connectorConnectorsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/consumerrequestcounts/README.md b/docs/sdks/consumerrequestcounts/README.md index 7551fd56..5c7760e7 100644 --- a/docs/sdks/consumerrequestcounts/README.md +++ b/docs/sdks/consumerrequestcounts/README.md @@ -18,9 +18,8 @@ Get consumer request counts within a given datetime range. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -30,7 +29,6 @@ async function run() { endDatetime: "2021-05-30T12:00:00.000Z", }); - // Handle the result console.log(result); } @@ -48,9 +46,8 @@ import { vaultConsumerRequestCountsList } from "@apideck/unify/funcs/vaultConsum // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -59,15 +56,12 @@ async function run() { startDatetime: "2021-05-01T12:00:00.000Z", endDatetime: "2021-05-30T12:00:00.000Z", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConsumerRequestCountsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/consumers/README.md b/docs/sdks/consumers/README.md index 33fbc495..6b80829b 100644 --- a/docs/sdks/consumers/README.md +++ b/docs/sdks/consumers/README.md @@ -21,9 +21,8 @@ Create a consumer import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -39,7 +38,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -57,9 +55,8 @@ import { vaultConsumersCreate } from "@apideck/unify/funcs/vaultConsumersCreate. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,15 +71,12 @@ async function run() { }, }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConsumersCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -123,16 +117,14 @@ This endpoint includes all application consumers, along with an aggregated count import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const result = await apideck.vault.consumers.list({}); for await (const page of result) { - // Handle the page console.log(page); } } @@ -151,24 +143,20 @@ import { vaultConsumersList } from "@apideck/unify/funcs/vaultConsumersList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await vaultConsumersList(apideck, {}); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("vaultConsumersList failed:", res.error); + } } run(); @@ -209,9 +197,8 @@ Consumer detail including their aggregated counts with the connections they have import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -219,7 +206,6 @@ async function run() { consumerId: "test_user_id", }); - // Handle the result console.log(result); } @@ -237,24 +223,20 @@ import { vaultConsumersGet } from "@apideck/unify/funcs/vaultConsumersGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await vaultConsumersGet(apideck, { consumerId: "test_user_id", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConsumersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -294,9 +276,8 @@ Update consumer metadata such as name and email. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -312,7 +293,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -330,9 +310,8 @@ import { vaultConsumersUpdate } from "@apideck/unify/funcs/vaultConsumersUpdate. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -347,15 +326,12 @@ async function run() { }, }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConsumersUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -395,9 +371,8 @@ Delete consumer and all their connections, including credentials. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -405,7 +380,6 @@ async function run() { consumerId: "test_user_id", }); - // Handle the result console.log(result); } @@ -423,24 +397,20 @@ import { vaultConsumersDelete } from "@apideck/unify/funcs/vaultConsumersDelete. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await vaultConsumersDelete(apideck, { consumerId: "test_user_id", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultConsumersDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/contacts/README.md b/docs/sdks/contacts/README.md index 00383a07..a8981811 100644 --- a/docs/sdks/contacts/README.md +++ b/docs/sdks/contacts/README.md @@ -21,9 +21,9 @@ List contacts import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -38,6 +38,7 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -46,7 +47,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -65,9 +65,9 @@ import { crmContactsList } from "@apideck/unify/funcs/crmContactsList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -82,23 +82,21 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmContactsList failed:", res.error); + } } run(); @@ -138,9 +136,9 @@ Create contact import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -332,7 +330,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -350,9 +347,9 @@ import { crmContactsCreate } from "@apideck/unify/funcs/crmContactsCreate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -543,15 +540,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmContactsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -591,9 +585,9 @@ Get contact import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -610,7 +604,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -628,9 +621,9 @@ import { crmContactsGet } from "@apideck/unify/funcs/crmContactsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -646,15 +639,12 @@ async function run() { ownerId: "12345", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmContactsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -694,9 +684,9 @@ Update contact import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -943,7 +933,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -961,9 +950,9 @@ import { crmContactsUpdate } from "@apideck/unify/funcs/crmContactsUpdate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1209,15 +1198,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmContactsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1257,9 +1243,9 @@ Delete contact import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1268,7 +1254,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1286,9 +1271,9 @@ import { crmContactsDelete } from "@apideck/unify/funcs/crmContactsDelete.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1296,15 +1281,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmContactsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/createcallback/README.md b/docs/sdks/createcallback/README.md index 82e58ac3..221167a3 100644 --- a/docs/sdks/createcallback/README.md +++ b/docs/sdks/createcallback/README.md @@ -18,9 +18,9 @@ This endpoint creates a callback state that can be used to issue requests to the import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -32,7 +32,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -50,9 +49,9 @@ import { vaultCreateCallbackState } from "@apideck/unify/funcs/vaultCreateCallba // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -63,15 +62,12 @@ async function run() { redirectUri: "https://example.com/callback", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultCreateCallbackState failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/creditnotes/README.md b/docs/sdks/creditnotes/README.md index cb392b62..00bd48e2 100644 --- a/docs/sdks/creditnotes/README.md +++ b/docs/sdks/creditnotes/README.md @@ -21,9 +21,9 @@ List Credit Notes import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,6 +34,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -42,7 +43,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { accountingCreditNotesList } from "@apideck/unify/funcs/accountingCredit // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,23 +74,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingCreditNotesList failed:", res.error); + } } run(); @@ -130,9 +128,9 @@ Create Credit Note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -323,7 +321,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -341,9 +338,9 @@ import { accountingCreditNotesCreate } from "@apideck/unify/funcs/accountingCred // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -533,15 +530,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCreditNotesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -581,9 +575,9 @@ Get Credit Note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -593,7 +587,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -611,9 +604,9 @@ import { accountingCreditNotesGet } from "@apideck/unify/funcs/accountingCreditN // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -622,15 +615,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCreditNotesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -670,9 +660,9 @@ Update Credit Note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -875,7 +865,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -893,9 +882,9 @@ import { accountingCreditNotesUpdate } from "@apideck/unify/funcs/accountingCred // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1097,15 +1086,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCreditNotesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1145,9 +1131,9 @@ Delete Credit Note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1156,7 +1142,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1174,9 +1159,9 @@ import { accountingCreditNotesDelete } from "@apideck/unify/funcs/accountingCred // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1184,15 +1169,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCreditNotesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/customers/README.md b/docs/sdks/customers/README.md index 5ece724c..bd799873 100644 --- a/docs/sdks/customers/README.md +++ b/docs/sdks/customers/README.md @@ -21,9 +21,9 @@ List Customers import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -41,6 +41,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -49,7 +50,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -68,9 +68,9 @@ import { accountingCustomersList } from "@apideck/unify/funcs/accountingCustomer // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -88,23 +88,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingCustomersList failed:", res.error); + } } run(); @@ -144,9 +142,9 @@ Create Customer import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -278,19 +276,19 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: "Uses Salesforce and Marketo", + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: "Uses Salesforce and Marketo", + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: "Uses Salesforce and Marketo", + value: null, }, ], rowVersion: "1-12345", @@ -320,7 +318,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -338,9 +335,9 @@ import { accountingCustomersCreate } from "@apideck/unify/funcs/accountingCustom // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -472,21 +469,19 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: true, + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: [ - {}, - ], + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: "Uses Salesforce and Marketo", + value: null, }, ], rowVersion: "1-12345", @@ -515,15 +510,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCustomersCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -563,9 +555,9 @@ Get Customer import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -575,7 +567,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -593,9 +584,9 @@ import { accountingCustomersGet } from "@apideck/unify/funcs/accountingCustomers // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -604,15 +595,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCustomersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -652,9 +640,9 @@ Update Customer import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -846,7 +834,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -864,9 +851,9 @@ import { accountingCustomersUpdate } from "@apideck/unify/funcs/accountingCustom // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1057,15 +1044,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCustomersUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1105,9 +1089,9 @@ Delete Customer import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1116,7 +1100,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1134,9 +1117,9 @@ import { accountingCustomersDelete } from "@apideck/unify/funcs/accountingCustom // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1144,15 +1127,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingCustomersDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/customfields/README.md b/docs/sdks/customfields/README.md index e5d5943e..cea3801c 100644 --- a/docs/sdks/customfields/README.md +++ b/docs/sdks/customfields/README.md @@ -18,9 +18,9 @@ This endpoint returns an custom fields on a connection resource. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -31,7 +31,6 @@ async function run() { resourceId: "1234", }); - // Handle the result console.log(result); } @@ -49,9 +48,9 @@ import { vaultCustomFieldsList } from "@apideck/unify/funcs/vaultCustomFieldsLis // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -61,15 +60,12 @@ async function run() { resource: "leads", resourceId: "1234", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultCustomFieldsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/custommappings/README.md b/docs/sdks/custommappings/README.md index c1c3ca1b..2b3f5499 100644 --- a/docs/sdks/custommappings/README.md +++ b/docs/sdks/custommappings/README.md @@ -17,9 +17,9 @@ This endpoint returns a list of custom mappings. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -28,7 +28,6 @@ async function run() { serviceId: "pipedrive", }); - // Handle the result console.log(result); } @@ -46,9 +45,9 @@ import { vaultCustomMappingsList } from "@apideck/unify/funcs/vaultCustomMapping // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -56,15 +55,12 @@ async function run() { unifiedApi: "crm", serviceId: "pipedrive", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultCustomMappingsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/customobjects/README.md b/docs/sdks/customobjects/README.md index 2077ec9d..212ed11c 100644 --- a/docs/sdks/customobjects/README.md +++ b/docs/sdks/customobjects/README.md @@ -21,9 +21,9 @@ List custom objects import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -37,7 +37,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -56,9 +55,9 @@ import { crmCustomObjectsList } from "@apideck/unify/funcs/crmCustomObjectsList. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -70,17 +69,14 @@ async function run() { fields: "id,updated_at", objectId: "", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmCustomObjectsList failed:", res.error); + } } run(); @@ -120,9 +116,9 @@ Create custom object import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -189,7 +185,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -207,9 +202,9 @@ import { crmCustomObjectsCreate } from "@apideck/unify/funcs/crmCustomObjectsCre // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -275,15 +270,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -323,9 +315,9 @@ Get custom object import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -335,7 +327,6 @@ async function run() { objectId: "", }); - // Handle the result console.log(result); } @@ -353,9 +344,9 @@ import { crmCustomObjectsGet } from "@apideck/unify/funcs/crmCustomObjectsGet.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -364,15 +355,12 @@ async function run() { serviceId: "salesforce", objectId: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -412,9 +400,9 @@ Update custom object import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -460,7 +448,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -478,9 +465,9 @@ import { crmCustomObjectsUpdate } from "@apideck/unify/funcs/crmCustomObjectsUpd // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -525,15 +512,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -573,9 +557,9 @@ Delete custom object import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -585,7 +569,6 @@ async function run() { objectId: "", }); - // Handle the result console.log(result); } @@ -603,9 +586,9 @@ import { crmCustomObjectsDelete } from "@apideck/unify/funcs/crmCustomObjectsDel // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -614,15 +597,12 @@ async function run() { serviceId: "salesforce", objectId: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/customobjectschemas/README.md b/docs/sdks/customobjectschemas/README.md index cec238c1..0d17a463 100644 --- a/docs/sdks/customobjectschemas/README.md +++ b/docs/sdks/customobjectschemas/README.md @@ -21,9 +21,9 @@ List custom object schemas import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -35,7 +35,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -54,9 +53,9 @@ import { crmCustomObjectSchemasList } from "@apideck/unify/funcs/crmCustomObject // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -66,17 +65,14 @@ async function run() { "search": "San Francisco", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmCustomObjectSchemasList failed:", res.error); + } } run(); @@ -116,9 +112,9 @@ Create custom object schema import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -176,7 +172,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -194,9 +189,9 @@ import { crmCustomObjectSchemasCreate } from "@apideck/unify/funcs/crmCustomObje // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -253,15 +248,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectSchemasCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -301,9 +293,9 @@ Get custom object schema import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -312,7 +304,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -330,9 +321,9 @@ import { crmCustomObjectSchemasGet } from "@apideck/unify/funcs/crmCustomObjectS // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -340,15 +331,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectSchemasGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -388,9 +376,9 @@ Update custom object schema import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -550,7 +538,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -568,9 +555,9 @@ import { crmCustomObjectSchemasUpdate } from "@apideck/unify/funcs/crmCustomObje // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -729,15 +716,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectSchemasUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -777,9 +761,9 @@ Delete custom object schema import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -788,7 +772,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -806,9 +789,9 @@ import { crmCustomObjectSchemasDelete } from "@apideck/unify/funcs/crmCustomObje // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -816,15 +799,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmCustomObjectSchemasDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/departments/README.md b/docs/sdks/departments/README.md index 1fc46c5c..541cd216 100644 --- a/docs/sdks/departments/README.md +++ b/docs/sdks/departments/README.md @@ -21,9 +21,9 @@ List Departments import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { accountingDepartmentsList } from "@apideck/unify/funcs/accountingDepart // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { subsidiary: "1", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingDepartmentsList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -161,7 +157,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -179,9 +174,9 @@ import { accountingDepartmentsCreate } from "@apideck/unify/funcs/accountingDepa // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -221,15 +216,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingDepartmentsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -269,9 +261,9 @@ Get Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -281,7 +273,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -299,9 +290,9 @@ import { accountingDepartmentsGet } from "@apideck/unify/funcs/accountingDepartm // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -310,15 +301,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingDepartmentsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -358,9 +346,9 @@ Update Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -418,7 +406,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -436,9 +423,9 @@ import { accountingDepartmentsUpdate } from "@apideck/unify/funcs/accountingDepa // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -495,15 +482,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingDepartmentsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -543,9 +527,9 @@ Delete Department import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -554,7 +538,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -572,9 +555,9 @@ import { accountingDepartmentsDelete } from "@apideck/unify/funcs/accountingDepa // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -582,15 +565,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingDepartmentsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/drivegroups/README.md b/docs/sdks/drivegroups/README.md index e0b0093b..00eee12c 100644 --- a/docs/sdks/drivegroups/README.md +++ b/docs/sdks/drivegroups/README.md @@ -21,9 +21,9 @@ List DriveGroups import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -39,7 +39,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -58,9 +57,9 @@ import { fileStorageDriveGroupsList } from "@apideck/unify/funcs/fileStorageDriv // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,17 +73,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("fileStorageDriveGroupsList failed:", res.error); + } } run(); @@ -124,9 +120,9 @@ Create DriveGroup import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -183,7 +179,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -201,9 +196,9 @@ import { fileStorageDriveGroupsCreate } from "@apideck/unify/funcs/fileStorageDr // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -259,15 +254,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDriveGroupsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -307,9 +299,9 @@ Get DriveGroup import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -319,7 +311,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -337,9 +328,9 @@ import { fileStorageDriveGroupsGet } from "@apideck/unify/funcs/fileStorageDrive // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -348,15 +339,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDriveGroupsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -396,9 +384,9 @@ Update DriveGroup import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -477,7 +465,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -495,9 +482,9 @@ import { fileStorageDriveGroupsUpdate } from "@apideck/unify/funcs/fileStorageDr // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -575,15 +562,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDriveGroupsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -623,9 +607,9 @@ Delete DriveGroup import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -634,7 +618,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -652,9 +635,9 @@ import { fileStorageDriveGroupsDelete } from "@apideck/unify/funcs/fileStorageDr // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -662,15 +645,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDriveGroupsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/drives/README.md b/docs/sdks/drives/README.md index 4c70b900..f94808c6 100644 --- a/docs/sdks/drives/README.md +++ b/docs/sdks/drives/README.md @@ -21,9 +21,9 @@ List Drives import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { fileStorageDrivesList } from "@apideck/unify/funcs/fileStorageDrivesLis // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("fileStorageDrivesList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Drive import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -173,7 +169,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -191,9 +186,9 @@ import { fileStorageDrivesCreate } from "@apideck/unify/funcs/fileStorageDrivesC // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -245,15 +240,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDrivesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -293,9 +285,9 @@ Get Drive import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -305,7 +297,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -323,9 +314,9 @@ import { fileStorageDrivesGet } from "@apideck/unify/funcs/fileStorageDrivesGet. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -334,15 +325,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDrivesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -382,9 +370,9 @@ Update Drive import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -412,7 +400,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -430,9 +417,9 @@ import { fileStorageDrivesUpdate } from "@apideck/unify/funcs/fileStorageDrivesU // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -459,15 +446,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDrivesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -507,9 +491,9 @@ Delete Drive import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -518,7 +502,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -536,9 +519,9 @@ import { fileStorageDrivesDelete } from "@apideck/unify/funcs/fileStorageDrivesD // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -546,15 +529,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageDrivesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/employeepayrolls/README.md b/docs/sdks/employeepayrolls/README.md index 07613d73..1a272be8 100644 --- a/docs/sdks/employeepayrolls/README.md +++ b/docs/sdks/employeepayrolls/README.md @@ -18,9 +18,9 @@ List payrolls for employee import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -37,7 +37,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -55,9 +54,9 @@ import { hrisEmployeePayrollsList } from "@apideck/unify/funcs/hrisEmployeePayro // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -73,15 +72,12 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisEmployeePayrollsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -121,9 +117,9 @@ Get payroll for employee import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -134,7 +130,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -152,9 +147,9 @@ import { hrisEmployeePayrollsGet } from "@apideck/unify/funcs/hrisEmployeePayrol // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -164,15 +159,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisEmployeePayrollsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/employees/README.md b/docs/sdks/employees/README.md index e71ace3c..d3dd09b0 100644 --- a/docs/sdks/employees/README.md +++ b/docs/sdks/employees/README.md @@ -21,9 +21,9 @@ Apideck operates as a stateless Unified API, which means that the list endpoint import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -44,6 +44,7 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -52,7 +53,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -71,9 +71,9 @@ import { hrisEmployeesList } from "@apideck/unify/funcs/hrisEmployeesList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -94,23 +94,21 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("hrisEmployeesList failed:", res.error); + } } run(); @@ -151,9 +149,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -575,7 +573,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -594,9 +591,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1017,15 +1014,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisEmployeesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1065,9 +1059,9 @@ Get Employee import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1083,7 +1077,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -1101,9 +1094,9 @@ import { hrisEmployeesGet } from "@apideck/unify/funcs/hrisEmployeesGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1118,15 +1111,12 @@ async function run() { "search": "San Francisco", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisEmployeesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1167,9 +1157,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1439,7 +1429,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -1458,9 +1447,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1729,15 +1718,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisEmployeesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1777,9 +1763,9 @@ Delete Employee import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1788,7 +1774,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1806,9 +1791,9 @@ import { hrisEmployeesDelete } from "@apideck/unify/funcs/hrisEmployeesDelete.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1816,15 +1801,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisEmployeesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/employeeschedules/README.md b/docs/sdks/employeeschedules/README.md index 967929ca..3cc9d336 100644 --- a/docs/sdks/employeeschedules/README.md +++ b/docs/sdks/employeeschedules/README.md @@ -17,9 +17,9 @@ List schedules for employee, a schedule is a work pattern, not the actual worked import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -32,7 +32,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -50,9 +49,9 @@ import { hrisEmployeeSchedulesList } from "@apideck/unify/funcs/hrisEmployeeSche // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -64,15 +63,12 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisEmployeeSchedulesList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/eventlogs/README.md b/docs/sdks/eventlogs/README.md index 81448d98..3345b5bb 100644 --- a/docs/sdks/eventlogs/README.md +++ b/docs/sdks/eventlogs/README.md @@ -17,9 +17,8 @@ List event logs import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,7 +32,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -52,9 +50,8 @@ import { webhookEventLogsList } from "@apideck/unify/funcs/webhookEventLogsList. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -66,17 +63,14 @@ async function run() { eventType: "vault.connection.callable", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("webhookEventLogsList failed:", res.error); + } } run(); diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 3ca7784b..28e15c64 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -21,9 +21,9 @@ List Expenses import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -32,7 +32,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -51,26 +50,23 @@ import { accountingExpensesList } from "@apideck/unify/funcs/accountingExpensesL // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await accountingExpensesList(apideck, { serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingExpensesList failed:", res.error); + } } run(); @@ -110,9 +106,9 @@ Create Expense import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -251,7 +247,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -269,9 +264,9 @@ import { accountingExpensesCreate } from "@apideck/unify/funcs/accountingExpense // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -409,15 +404,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingExpensesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -457,9 +449,9 @@ Get Expense import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -468,7 +460,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -486,9 +477,9 @@ import { accountingExpensesGet } from "@apideck/unify/funcs/accountingExpensesGe // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -496,15 +487,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingExpensesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -544,9 +532,9 @@ Update Expense import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -655,7 +643,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -673,9 +660,9 @@ import { accountingExpensesUpdate } from "@apideck/unify/funcs/accountingExpense // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -783,15 +770,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingExpensesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -831,9 +815,9 @@ Delete Expense import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -842,7 +826,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -860,9 +843,9 @@ import { accountingExpensesDelete } from "@apideck/unify/funcs/accountingExpense // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -870,15 +853,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingExpensesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index 87dd05e1..58b13130 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -23,9 +23,9 @@ List Files import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -38,6 +38,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -46,7 +47,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -65,9 +65,9 @@ import { fileStorageFilesList } from "@apideck/unify/funcs/fileStorageFilesList. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -80,23 +80,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("fileStorageFilesList failed:", res.error); + } } run(); @@ -136,9 +134,9 @@ Search Files import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -158,7 +156,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -176,9 +173,9 @@ import { fileStorageFilesSearch } from "@apideck/unify/funcs/fileStorageFilesSea // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -197,15 +194,12 @@ async function run() { query: "logo jpg", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFilesSearch failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -245,9 +239,9 @@ Get File import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -257,7 +251,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -275,9 +268,9 @@ import { fileStorageFilesGet } from "@apideck/unify/funcs/fileStorageFilesGet.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -286,15 +279,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFilesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -334,9 +324,9 @@ Rename or move File import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -365,7 +355,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -383,9 +372,9 @@ import { fileStorageFilesUpdate } from "@apideck/unify/funcs/fileStorageFilesUpd // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -413,15 +402,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFilesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -461,9 +447,9 @@ Delete File import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -472,7 +458,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -490,9 +475,9 @@ import { fileStorageFilesDelete } from "@apideck/unify/funcs/fileStorageFilesDel // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -500,15 +485,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFilesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -548,9 +530,9 @@ Download File import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -560,7 +542,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -578,9 +559,9 @@ import { fileStorageFilesDownload } from "@apideck/unify/funcs/fileStorageFilesD // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -589,15 +570,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFilesDownload failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -637,9 +615,9 @@ Export File import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -650,7 +628,6 @@ async function run() { format: "pdf", }); - // Handle the result console.log(result); } @@ -668,9 +645,9 @@ import { fileStorageFilesExport } from "@apideck/unify/funcs/fileStorageFilesExp // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -680,15 +657,12 @@ async function run() { fields: "id,updated_at", format: "pdf", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFilesExport failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index 47f00ce4..8326845d 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -21,9 +21,9 @@ Create Folder import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -53,7 +53,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -71,9 +70,9 @@ import { fileStorageFoldersCreate } from "@apideck/unify/funcs/fileStorageFolder // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -102,15 +101,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFoldersCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -150,9 +146,9 @@ Get Folder import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -162,7 +158,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -180,9 +175,9 @@ import { fileStorageFoldersGet } from "@apideck/unify/funcs/fileStorageFoldersGe // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -191,15 +186,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFoldersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -239,9 +231,9 @@ Rename or move Folder import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -278,7 +270,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -296,9 +287,9 @@ import { fileStorageFoldersUpdate } from "@apideck/unify/funcs/fileStorageFolder // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -334,15 +325,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFoldersUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -382,9 +370,9 @@ Delete Folder import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -393,7 +381,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -411,9 +398,9 @@ import { fileStorageFoldersDelete } from "@apideck/unify/funcs/fileStorageFolder // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -421,15 +408,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFoldersDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -469,9 +453,9 @@ Copy Folder import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -513,7 +497,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -531,9 +514,9 @@ import { fileStorageFoldersCopy } from "@apideck/unify/funcs/fileStorageFoldersC // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -574,15 +557,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageFoldersCopy failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/invoiceitems/README.md b/docs/sdks/invoiceitems/README.md index a3080da8..c81b4227 100644 --- a/docs/sdks/invoiceitems/README.md +++ b/docs/sdks/invoiceitems/README.md @@ -21,9 +21,9 @@ List Invoice Items import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -35,6 +35,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -43,7 +44,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -62,9 +62,9 @@ import { accountingInvoiceItemsList } from "@apideck/unify/funcs/accountingInvoi // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -76,23 +76,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingInvoiceItemsList failed:", res.error); + } } run(); @@ -133,9 +131,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -219,7 +217,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -238,9 +235,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -323,15 +320,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoiceItemsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -371,9 +365,9 @@ Get Invoice Item import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -386,7 +380,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -404,9 +397,9 @@ import { accountingInvoiceItemsGet } from "@apideck/unify/funcs/accountingInvoic // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -418,15 +411,12 @@ async function run() { type: "service", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoiceItemsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -467,9 +457,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -564,7 +554,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -583,9 +572,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -679,15 +668,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoiceItemsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -727,9 +713,9 @@ Delete Invoice Item import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -738,7 +724,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -756,9 +741,9 @@ import { accountingInvoiceItemsDelete } from "@apideck/unify/funcs/accountingInv // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -766,15 +751,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoiceItemsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index 9b0c5a6c..542bbe2c 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -21,9 +21,9 @@ List Invoices import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,6 +36,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -44,7 +45,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -63,9 +63,9 @@ import { accountingInvoicesList } from "@apideck/unify/funcs/accountingInvoicesL // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -78,23 +78,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingInvoicesList failed:", res.error); + } } run(); @@ -135,9 +133,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -357,7 +355,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -376,9 +373,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -597,15 +594,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoicesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -645,9 +639,9 @@ Get Invoice import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -657,7 +651,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -675,9 +668,9 @@ import { accountingInvoicesGet } from "@apideck/unify/funcs/accountingInvoicesGe // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -686,15 +679,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoicesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -735,9 +725,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -828,21 +818,19 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: true, + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: [ - {}, - ], + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: "Uses Salesforce and Marketo", + value: null, }, ], rowVersion: "1-12345", @@ -941,7 +929,7 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: 10, + value: null, }, ], rowVersion: "1-12345", @@ -1037,7 +1025,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -1056,9 +1043,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1149,19 +1136,19 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: "Uses Salesforce and Marketo", + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: 10, + value: null, }, { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: {}, + value: null, }, ], rowVersion: "1-12345", @@ -1260,7 +1247,7 @@ async function run() { id: "2389328923893298", name: "employee_level", description: "Employee Level", - value: true, + value: null, }, ], rowVersion: "1-12345", @@ -1355,15 +1342,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoicesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1403,9 +1387,9 @@ Delete Invoice import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1414,7 +1398,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1432,9 +1415,9 @@ import { accountingInvoicesDelete } from "@apideck/unify/funcs/accountingInvoice // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1442,15 +1425,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingInvoicesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index f16f73ec..5fac7eca 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -18,9 +18,9 @@ List Jobs import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,7 +33,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -52,9 +51,9 @@ import { atsJobsList } from "@apideck/unify/funcs/atsJobsList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -65,17 +64,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("atsJobsList failed:", res.error); + } } run(); @@ -115,9 +111,9 @@ Get Job import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -127,7 +123,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -145,9 +140,9 @@ import { atsJobsGet } from "@apideck/unify/funcs/atsJobsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -156,15 +151,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("atsJobsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/journalentries/README.md b/docs/sdks/journalentries/README.md index 20c35978..06685db9 100644 --- a/docs/sdks/journalentries/README.md +++ b/docs/sdks/journalentries/README.md @@ -21,9 +21,9 @@ List Journal Entries import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,6 +34,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -42,7 +43,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { accountingJournalEntriesList } from "@apideck/unify/funcs/accountingJou // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,23 +74,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingJournalEntriesList failed:", res.error); + } } run(); @@ -130,9 +128,9 @@ Create Journal Entry import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -323,7 +321,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -341,9 +338,9 @@ import { accountingJournalEntriesCreate } from "@apideck/unify/funcs/accountingJ // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -533,15 +530,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingJournalEntriesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -581,9 +575,9 @@ Get Journal Entry import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -593,7 +587,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -611,9 +604,9 @@ import { accountingJournalEntriesGet } from "@apideck/unify/funcs/accountingJour // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -622,15 +615,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingJournalEntriesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -670,9 +660,9 @@ Update Journal Entry import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -828,7 +818,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -846,9 +835,9 @@ import { accountingJournalEntriesUpdate } from "@apideck/unify/funcs/accountingJ // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1003,15 +992,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingJournalEntriesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1051,9 +1037,9 @@ Delete Journal Entry import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1062,7 +1048,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1080,9 +1065,9 @@ import { accountingJournalEntriesDelete } from "@apideck/unify/funcs/accountingJ // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1090,15 +1075,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingJournalEntriesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/leads/README.md b/docs/sdks/leads/README.md index 97a86558..23af33fb 100644 --- a/docs/sdks/leads/README.md +++ b/docs/sdks/leads/README.md @@ -21,9 +21,9 @@ List leads import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -37,6 +37,7 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -45,7 +46,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -64,9 +64,9 @@ import { crmLeadsList } from "@apideck/unify/funcs/crmLeadsList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -80,23 +80,21 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmLeadsList failed:", res.error); + } } run(); @@ -136,9 +134,9 @@ Create lead import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -402,7 +400,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -420,9 +417,9 @@ import { crmLeadsCreate } from "@apideck/unify/funcs/crmLeadsCreate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -685,15 +682,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmLeadsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -733,9 +727,9 @@ Get lead import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -745,7 +739,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -763,9 +756,9 @@ import { crmLeadsGet } from "@apideck/unify/funcs/crmLeadsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -774,15 +767,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmLeadsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -822,9 +812,9 @@ Update lead import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1045,7 +1035,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -1063,9 +1052,9 @@ import { crmLeadsUpdate } from "@apideck/unify/funcs/crmLeadsUpdate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1285,15 +1274,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmLeadsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1333,9 +1319,9 @@ Delete lead import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1344,7 +1330,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1362,9 +1347,9 @@ import { crmLeadsDelete } from "@apideck/unify/funcs/crmLeadsDelete.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1372,15 +1357,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmLeadsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/ledgeraccounts/README.md b/docs/sdks/ledgeraccounts/README.md index b1b34aae..0bf8af89 100644 --- a/docs/sdks/ledgeraccounts/README.md +++ b/docs/sdks/ledgeraccounts/README.md @@ -21,9 +21,9 @@ List Ledger Accounts import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,6 +34,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -42,7 +43,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { accountingLedgerAccountsList } from "@apideck/unify/funcs/accountingLed // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -74,23 +74,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingLedgerAccountsList failed:", res.error); + } } run(); @@ -131,9 +129,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -233,7 +231,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -252,9 +249,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -353,15 +350,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLedgerAccountsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -401,9 +395,9 @@ Get Ledger Account import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -413,7 +407,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -431,9 +424,9 @@ import { accountingLedgerAccountsGet } from "@apideck/unify/funcs/accountingLedg // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -442,15 +435,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLedgerAccountsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -491,9 +481,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -582,7 +572,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -601,9 +590,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -691,15 +680,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLedgerAccountsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -739,9 +725,9 @@ Delete Ledger Account import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -750,7 +736,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -768,9 +753,9 @@ import { accountingLedgerAccountsDelete } from "@apideck/unify/funcs/accountingL // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -778,15 +763,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLedgerAccountsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/locations/README.md b/docs/sdks/locations/README.md index 6b1779ce..13746e88 100644 --- a/docs/sdks/locations/README.md +++ b/docs/sdks/locations/README.md @@ -21,9 +21,9 @@ List Locations import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { accountingLocationsList } from "@apideck/unify/funcs/accountingLocation // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { subsidiary: "1", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingLocationsList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Location import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -186,7 +182,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -204,9 +199,9 @@ import { accountingLocationsCreate } from "@apideck/unify/funcs/accountingLocati // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -271,15 +266,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLocationsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -319,9 +311,9 @@ Get Location import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -331,7 +323,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -349,9 +340,9 @@ import { accountingLocationsGet } from "@apideck/unify/funcs/accountingLocations // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -360,15 +351,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLocationsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -408,9 +396,9 @@ Update Location import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -548,7 +536,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -566,9 +553,9 @@ import { accountingLocationsUpdate } from "@apideck/unify/funcs/accountingLocati // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -705,15 +692,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLocationsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -753,9 +737,9 @@ Delete Location import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -764,7 +748,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -782,9 +765,9 @@ import { accountingLocationsDelete } from "@apideck/unify/funcs/accountingLocati // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -792,15 +775,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingLocationsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/logs/README.md b/docs/sdks/logs/README.md index 697e82e3..92bd9fe8 100644 --- a/docs/sdks/logs/README.md +++ b/docs/sdks/logs/README.md @@ -18,9 +18,9 @@ This endpoint includes all consumer request logs. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + consumerId: "test-consumer", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,7 +33,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -52,9 +51,9 @@ import { vaultLogsList } from "@apideck/unify/funcs/vaultLogsList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + consumerId: "test-consumer", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -65,17 +64,14 @@ async function run() { excludeUnifiedApis: "vault,proxy", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("vaultLogsList failed:", res.error); + } } run(); diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index 4283c1bd..714cbdcf 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -21,9 +21,9 @@ List Messages import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,7 +33,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -52,9 +51,9 @@ import { smsMessagesList } from "@apideck/unify/funcs/smsMessagesList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -62,17 +61,14 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("smsMessagesList failed:", res.error); + } } run(); @@ -112,9 +108,9 @@ Create Message import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -177,7 +173,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -195,9 +190,9 @@ import { smsMessagesCreate } from "@apideck/unify/funcs/smsMessagesCreate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -259,15 +254,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("smsMessagesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -307,9 +299,9 @@ Get Message import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -319,7 +311,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -337,9 +328,9 @@ import { smsMessagesGet } from "@apideck/unify/funcs/smsMessagesGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -348,15 +339,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("smsMessagesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -396,9 +384,9 @@ Update Message import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -446,7 +434,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -464,9 +451,9 @@ import { smsMessagesUpdate } from "@apideck/unify/funcs/smsMessagesUpdate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -513,15 +500,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("smsMessagesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -561,9 +545,9 @@ Delete Message import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -572,7 +556,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -590,9 +573,9 @@ import { smsMessagesDelete } from "@apideck/unify/funcs/smsMessagesDelete.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -600,15 +583,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("smsMessagesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/notes/README.md b/docs/sdks/notes/README.md index af167df7..ecebee2c 100644 --- a/docs/sdks/notes/README.md +++ b/docs/sdks/notes/README.md @@ -21,9 +21,9 @@ List notes import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { crmNotesList } from "@apideck/unify/funcs/crmNotesList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmNotesList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -204,7 +200,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -222,9 +217,9 @@ import { crmNotesCreate } from "@apideck/unify/funcs/crmNotesCreate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -307,15 +302,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmNotesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -355,9 +347,9 @@ Get note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -367,7 +359,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -385,9 +376,9 @@ import { crmNotesGet } from "@apideck/unify/funcs/crmNotesGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -396,15 +387,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmNotesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -444,9 +432,9 @@ Update note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -531,7 +519,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -549,9 +536,9 @@ import { crmNotesUpdate } from "@apideck/unify/funcs/crmNotesUpdate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -635,15 +622,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmNotesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -683,9 +667,9 @@ Delete note import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -694,7 +678,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -712,9 +695,9 @@ import { crmNotesDelete } from "@apideck/unify/funcs/crmNotesDelete.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -722,15 +705,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmNotesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/opportunities/README.md b/docs/sdks/opportunities/README.md index 520aaaec..dc304792 100644 --- a/docs/sdks/opportunities/README.md +++ b/docs/sdks/opportunities/README.md @@ -21,9 +21,9 @@ List opportunities import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -35,6 +35,7 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -43,7 +44,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -62,9 +62,9 @@ import { crmOpportunitiesList } from "@apideck/unify/funcs/crmOpportunitiesList. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -76,23 +76,21 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmOpportunitiesList failed:", res.error); + } } run(); @@ -133,9 +131,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -219,7 +217,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -238,9 +235,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -323,15 +320,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmOpportunitiesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -371,9 +365,9 @@ Get opportunity import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -383,7 +377,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -401,9 +394,9 @@ import { crmOpportunitiesGet } from "@apideck/unify/funcs/crmOpportunitiesGet.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -412,15 +405,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmOpportunitiesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -461,9 +451,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -556,7 +546,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -575,9 +564,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -669,15 +658,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmOpportunitiesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -717,9 +703,9 @@ Delete opportunity import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -728,7 +714,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -746,9 +731,9 @@ import { crmOpportunitiesDelete } from "@apideck/unify/funcs/crmOpportunitiesDel // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -756,15 +741,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmOpportunitiesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index 933c20f4..bc04546c 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -18,9 +18,9 @@ List Orders import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,6 +34,7 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -42,7 +43,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { ecommerceOrdersList } from "@apideck/unify/funcs/ecommerceOrdersList.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -77,23 +77,21 @@ async function run() { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("ecommerceOrdersList failed:", res.error); + } } run(); @@ -133,9 +131,9 @@ Get Order import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -145,7 +143,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -163,9 +160,9 @@ import { ecommerceOrdersGet } from "@apideck/unify/funcs/ecommerceOrdersGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -174,15 +171,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("ecommerceOrdersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index 0521e3a4..e0e7cb48 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -21,9 +21,9 @@ List Payments import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -35,6 +35,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -43,7 +44,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -62,9 +62,9 @@ import { accountingPaymentsList } from "@apideck/unify/funcs/accountingPaymentsL // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -76,23 +76,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingPaymentsList failed:", res.error); + } } run(); @@ -132,9 +130,9 @@ Create Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -228,7 +226,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -246,9 +243,9 @@ import { accountingPaymentsCreate } from "@apideck/unify/funcs/accountingPayment // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -341,15 +338,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPaymentsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -389,9 +383,9 @@ Get Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -401,7 +395,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -419,9 +412,9 @@ import { accountingPaymentsGet } from "@apideck/unify/funcs/accountingPaymentsGe // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -430,15 +423,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPaymentsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -478,9 +468,9 @@ Update Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -572,7 +562,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -590,9 +579,9 @@ import { accountingPaymentsUpdate } from "@apideck/unify/funcs/accountingPayment // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -683,15 +672,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPaymentsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -731,9 +717,9 @@ Delete Payment import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -742,7 +728,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -760,9 +745,9 @@ import { accountingPaymentsDelete } from "@apideck/unify/funcs/accountingPayment // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -770,15 +755,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPaymentsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/payrolls/README.md b/docs/sdks/payrolls/README.md index 331751f4..72f76936 100644 --- a/docs/sdks/payrolls/README.md +++ b/docs/sdks/payrolls/README.md @@ -18,9 +18,9 @@ List Payroll import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -54,9 +53,9 @@ import { hrisPayrollsList } from "@apideck/unify/funcs/hrisPayrollsList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -71,15 +70,12 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisPayrollsList failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -119,9 +115,9 @@ Get Payroll import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -131,7 +127,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -149,9 +144,9 @@ import { hrisPayrollsGet } from "@apideck/unify/funcs/hrisPayrollsGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -160,15 +155,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisPayrollsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/pipelines/README.md b/docs/sdks/pipelines/README.md index df7c3f05..c9d759ff 100644 --- a/docs/sdks/pipelines/README.md +++ b/docs/sdks/pipelines/README.md @@ -21,9 +21,9 @@ List pipelines import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { crmPipelinesList } from "@apideck/unify/funcs/crmPipelinesList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmPipelinesList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create pipeline import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -179,7 +175,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -197,9 +192,9 @@ import { crmPipelinesCreate } from "@apideck/unify/funcs/crmPipelinesCreate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -257,15 +252,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmPipelinesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -305,9 +297,9 @@ Get pipeline import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -317,7 +309,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -335,9 +326,9 @@ import { crmPipelinesGet } from "@apideck/unify/funcs/crmPipelinesGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -346,15 +337,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmPipelinesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -394,9 +382,9 @@ Update pipeline import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -488,7 +476,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -506,9 +493,9 @@ import { crmPipelinesUpdate } from "@apideck/unify/funcs/crmPipelinesUpdate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -599,15 +586,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmPipelinesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -647,9 +631,9 @@ Delete pipeline import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -658,7 +642,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -676,9 +659,9 @@ import { crmPipelinesDelete } from "@apideck/unify/funcs/crmPipelinesDelete.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -686,15 +669,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmPipelinesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index a08e114d..7f88b470 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -18,9 +18,9 @@ List Products import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,7 +33,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -52,9 +51,9 @@ import { ecommerceProductsList } from "@apideck/unify/funcs/ecommerceProductsLis // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -65,17 +64,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("ecommerceProductsList failed:", res.error); + } } run(); @@ -115,9 +111,9 @@ Get Product import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -127,7 +123,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -145,9 +140,9 @@ import { ecommerceProductsGet } from "@apideck/unify/funcs/ecommerceProductsGet. // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -156,15 +151,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("ecommerceProductsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/profitandloss/README.md b/docs/sdks/profitandloss/README.md index 411b0c0a..b9dcd0c2 100644 --- a/docs/sdks/profitandloss/README.md +++ b/docs/sdks/profitandloss/README.md @@ -17,9 +17,9 @@ Get Profit and Loss import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -54,9 +53,9 @@ import { accountingProfitAndLossGet } from "@apideck/unify/funcs/accountingProfi // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -72,15 +71,12 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingProfitAndLossGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/purchaseorders/README.md b/docs/sdks/purchaseorders/README.md index b3db08a5..d8dbce5c 100644 --- a/docs/sdks/purchaseorders/README.md +++ b/docs/sdks/purchaseorders/README.md @@ -21,9 +21,9 @@ List Purchase Orders import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -38,11 +38,11 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -61,9 +61,9 @@ import { accountingPurchaseOrdersList } from "@apideck/unify/funcs/accountingPur // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -78,19 +78,17 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingPurchaseOrdersList failed:", res.error); + } } run(); @@ -131,9 +129,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -459,7 +457,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -478,9 +475,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -805,15 +802,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPurchaseOrdersCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -853,9 +847,9 @@ Get Purchase Order import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -864,7 +858,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -882,9 +875,9 @@ import { accountingPurchaseOrdersGet } from "@apideck/unify/funcs/accountingPurc // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -892,15 +885,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPurchaseOrdersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -941,9 +931,9 @@ import { Apideck } from "@apideck/unify"; import { RFCDate } from "@apideck/unify/types"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1210,7 +1200,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -1229,9 +1218,9 @@ import { RFCDate } from "@apideck/unify/types"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1497,15 +1486,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPurchaseOrdersUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1545,9 +1531,9 @@ Delete Purchase Order import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1556,7 +1542,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1574,9 +1559,9 @@ import { accountingPurchaseOrdersDelete } from "@apideck/unify/funcs/accountingP // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1584,15 +1569,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingPurchaseOrdersDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index c4a0e033..a838baf0 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -21,9 +21,9 @@ Note: This is a short lived token that will expire after 1 hour (TTL: 3600). import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -40,6 +40,7 @@ async function run() { unifiedApis: [ "crm", ], + sessionLength: "30m", }, theme: { favicon: "https://res.cloudinary.com/apideck/icons/intercom", @@ -67,7 +68,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -85,9 +85,9 @@ import { vaultSessionsCreate } from "@apideck/unify/funcs/vaultSessionsCreate.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -104,6 +104,7 @@ async function run() { unifiedApis: [ "crm", ], + sessionLength: "30m", }, theme: { favicon: "https://res.cloudinary.com/apideck/icons/intercom", @@ -130,15 +131,12 @@ async function run() { }, }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultSessionsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/sharedlinks/README.md b/docs/sdks/sharedlinks/README.md index 02d8fcdf..fb37c93d 100644 --- a/docs/sdks/sharedlinks/README.md +++ b/docs/sdks/sharedlinks/README.md @@ -21,9 +21,9 @@ List SharedLinks import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { fileStorageSharedLinksList } from "@apideck/unify/funcs/fileStorageShar // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("fileStorageSharedLinksList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Shared Link import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -174,7 +170,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -192,9 +187,9 @@ import { fileStorageSharedLinksCreate } from "@apideck/unify/funcs/fileStorageSh // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -247,15 +242,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageSharedLinksCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -295,9 +287,9 @@ Get Shared Link import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -307,7 +299,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -325,9 +316,9 @@ import { fileStorageSharedLinksGet } from "@apideck/unify/funcs/fileStorageShare // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -336,15 +327,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageSharedLinksGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -384,9 +372,9 @@ Update Shared Link import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -444,7 +432,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -462,9 +449,9 @@ import { fileStorageSharedLinksUpdate } from "@apideck/unify/funcs/fileStorageSh // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -521,15 +508,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageSharedLinksUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -569,9 +553,9 @@ Delete Shared Link import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -580,7 +564,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -598,9 +581,9 @@ import { fileStorageSharedLinksDelete } from "@apideck/unify/funcs/fileStorageSh // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -608,15 +591,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageSharedLinksDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/stores/README.md b/docs/sdks/stores/README.md index 28c3b11d..ad4ef040 100644 --- a/docs/sdks/stores/README.md +++ b/docs/sdks/stores/README.md @@ -17,9 +17,9 @@ Get Store import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -28,7 +28,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -46,9 +45,9 @@ import { ecommerceStoresGet } from "@apideck/unify/funcs/ecommerceStoresGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -56,15 +55,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("ecommerceStoresGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/subsidiaries/README.md b/docs/sdks/subsidiaries/README.md index fd9ae735..bfbeb1b1 100644 --- a/docs/sdks/subsidiaries/README.md +++ b/docs/sdks/subsidiaries/README.md @@ -21,9 +21,9 @@ List Subsidiaries import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -33,7 +33,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -52,9 +51,9 @@ import { accountingSubsidiariesList } from "@apideck/unify/funcs/accountingSubsi // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -62,17 +61,14 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingSubsidiariesList failed:", res.error); + } } run(); @@ -112,9 +108,9 @@ Create Subsidiary import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -169,7 +165,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -187,9 +182,9 @@ import { accountingSubsidiariesCreate } from "@apideck/unify/funcs/accountingSub // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -243,15 +238,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSubsidiariesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -291,9 +283,9 @@ Get Subsidiary import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -303,7 +295,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -321,9 +312,9 @@ import { accountingSubsidiariesGet } from "@apideck/unify/funcs/accountingSubsid // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -332,15 +323,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSubsidiariesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -380,9 +368,9 @@ Update Subsidiary import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -420,7 +408,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -438,9 +425,9 @@ import { accountingSubsidiariesUpdate } from "@apideck/unify/funcs/accountingSub // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -477,15 +464,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSubsidiariesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -525,9 +509,9 @@ Delete Subsidiary import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -536,7 +520,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -554,9 +537,9 @@ import { accountingSubsidiariesDelete } from "@apideck/unify/funcs/accountingSub // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -564,15 +547,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSubsidiariesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/suppliers/README.md b/docs/sdks/suppliers/README.md index a6f03aed..da0b1430 100644 --- a/docs/sdks/suppliers/README.md +++ b/docs/sdks/suppliers/README.md @@ -21,9 +21,9 @@ List Suppliers import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -39,6 +39,7 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -47,7 +48,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -66,9 +66,9 @@ import { accountingSuppliersList } from "@apideck/unify/funcs/accountingSupplier // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -84,23 +84,21 @@ async function run() { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingSuppliersList failed:", res.error); + } } run(); @@ -140,9 +138,9 @@ Create Supplier import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -306,7 +304,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -324,9 +321,9 @@ import { accountingSuppliersCreate } from "@apideck/unify/funcs/accountingSuppli // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -489,15 +486,12 @@ async function run() { subsidiaryId: "12345", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSuppliersCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -537,9 +531,9 @@ Get Supplier import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -549,7 +543,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -567,9 +560,9 @@ import { accountingSuppliersGet } from "@apideck/unify/funcs/accountingSuppliers // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -578,15 +571,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSuppliersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -626,9 +616,9 @@ Update Supplier import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -783,7 +773,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -801,9 +790,9 @@ import { accountingSuppliersUpdate } from "@apideck/unify/funcs/accountingSuppli // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -957,15 +946,12 @@ async function run() { subsidiaryId: "12345", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSuppliersUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -1005,9 +991,9 @@ Delete Supplier import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1016,7 +1002,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1034,9 +1019,9 @@ import { accountingSuppliersDelete } from "@apideck/unify/funcs/accountingSuppli // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1044,15 +1029,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingSuppliersDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/taxrates/README.md b/docs/sdks/taxrates/README.md index aa42b118..01f05bc1 100644 --- a/docs/sdks/taxrates/README.md +++ b/docs/sdks/taxrates/README.md @@ -22,9 +22,9 @@ List Tax Rates. Note: Not all connectors return the actual rate/percentage value import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -44,7 +44,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -63,9 +62,9 @@ import { accountingTaxRatesList } from "@apideck/unify/funcs/accountingTaxRatesL // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -83,17 +82,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingTaxRatesList failed:", res.error); + } } run(); @@ -133,9 +129,9 @@ Create Tax Rate import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -215,7 +211,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -233,9 +228,9 @@ import { accountingTaxRatesCreate } from "@apideck/unify/funcs/accountingTaxRate // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -314,15 +309,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTaxRatesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -363,9 +355,9 @@ Get Tax Rate. Note: Not all connectors return the actual rate/percentage value. import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -375,7 +367,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -393,9 +384,9 @@ import { accountingTaxRatesGet } from "@apideck/unify/funcs/accountingTaxRatesGe // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -404,15 +395,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTaxRatesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -452,9 +440,9 @@ Update Tax Rate import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -572,7 +560,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -590,9 +577,9 @@ import { accountingTaxRatesUpdate } from "@apideck/unify/funcs/accountingTaxRate // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -709,15 +696,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTaxRatesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -757,9 +741,9 @@ Delete Tax Rate import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -768,7 +752,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -786,9 +769,9 @@ import { accountingTaxRatesDelete } from "@apideck/unify/funcs/accountingTaxRate // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -796,15 +779,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTaxRatesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/timeoffrequests/README.md b/docs/sdks/timeoffrequests/README.md index e03ad150..15283397 100644 --- a/docs/sdks/timeoffrequests/README.md +++ b/docs/sdks/timeoffrequests/README.md @@ -21,9 +21,9 @@ List Time Off Requests import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -44,7 +44,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -63,9 +62,9 @@ import { hrisTimeOffRequestsList } from "@apideck/unify/funcs/hrisTimeOffRequest // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -84,17 +83,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("hrisTimeOffRequestsList failed:", res.error); + } } run(); @@ -134,9 +130,9 @@ Create Time Off Request import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -178,7 +174,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -196,9 +191,9 @@ import { hrisTimeOffRequestsCreate } from "@apideck/unify/funcs/hrisTimeOffReque // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -239,15 +234,12 @@ async function run() { policyType: "sick", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisTimeOffRequestsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -287,9 +279,9 @@ Get Time Off Request import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -300,7 +292,6 @@ async function run() { employeeId: "", }); - // Handle the result console.log(result); } @@ -318,9 +309,9 @@ import { hrisTimeOffRequestsGet } from "@apideck/unify/funcs/hrisTimeOffRequests // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -330,15 +321,12 @@ async function run() { fields: "id,updated_at", employeeId: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisTimeOffRequestsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -378,9 +366,9 @@ Update Time Off Request import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -440,7 +428,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -458,9 +445,9 @@ import { hrisTimeOffRequestsUpdate } from "@apideck/unify/funcs/hrisTimeOffReque // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -519,15 +506,12 @@ async function run() { policyType: "sick", }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisTimeOffRequestsUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -567,9 +551,9 @@ Delete Time Off Request import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -579,7 +563,6 @@ async function run() { employeeId: "", }); - // Handle the result console.log(result); } @@ -597,9 +580,9 @@ import { hrisTimeOffRequestsDelete } from "@apideck/unify/funcs/hrisTimeOffReque // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -608,15 +591,12 @@ async function run() { serviceId: "salesforce", employeeId: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("hrisTimeOffRequestsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/trackingcategories/README.md b/docs/sdks/trackingcategories/README.md index 308808f6..0aeca2ca 100644 --- a/docs/sdks/trackingcategories/README.md +++ b/docs/sdks/trackingcategories/README.md @@ -21,9 +21,9 @@ List Tracking Categories import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { accountingTrackingCategoriesList } from "@apideck/unify/funcs/accountin // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("accountingTrackingCategoriesList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create Tracking Category import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -195,7 +191,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -213,9 +208,9 @@ import { accountingTrackingCategoriesCreate } from "@apideck/unify/funcs/account // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -289,15 +284,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTrackingCategoriesCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -337,9 +329,9 @@ Get Tracking Category import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -349,7 +341,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -367,9 +358,9 @@ import { accountingTrackingCategoriesGet } from "@apideck/unify/funcs/accounting // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -378,15 +369,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTrackingCategoriesGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -426,9 +414,9 @@ Update Tracking Category import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -467,7 +455,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -485,9 +472,9 @@ import { accountingTrackingCategoriesUpdate } from "@apideck/unify/funcs/account // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -525,15 +512,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTrackingCategoriesUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -573,9 +557,9 @@ Delete Tracking Category import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -584,7 +568,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -602,9 +585,9 @@ import { accountingTrackingCategoriesDelete } from "@apideck/unify/funcs/account // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -612,15 +595,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingTrackingCategoriesDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/uploadsessions/README.md b/docs/sdks/uploadsessions/README.md index fa53b742..ac09d695 100644 --- a/docs/sdks/uploadsessions/README.md +++ b/docs/sdks/uploadsessions/README.md @@ -21,9 +21,9 @@ Start an Upload Session. Upload sessions are used to upload large files, use the import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -126,7 +126,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -144,9 +143,9 @@ import { fileStorageUploadSessionsCreate } from "@apideck/unify/funcs/fileStorag // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -248,15 +247,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageUploadSessionsCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -297,9 +293,9 @@ Get Upload Session. Use the `part_size` to split your file into parts. Upload th import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -309,7 +305,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -327,9 +322,9 @@ import { fileStorageUploadSessionsGet } from "@apideck/unify/funcs/fileStorageUp // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -338,15 +333,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageUploadSessionsGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -387,9 +379,9 @@ Upload part of File to Upload Session (max 100MB). Get `part_size` from [Get Upl import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -401,7 +393,6 @@ async function run() { requestBody: bytesToStream(new TextEncoder().encode("")), }); - // Handle the result console.log(result); } @@ -419,9 +410,9 @@ import { fileStorageUploadSessionsUpload } from "@apideck/unify/funcs/fileStorag // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -432,15 +423,12 @@ async function run() { digest: "sha=fpRyg5eVQletdZqEKaFlqwBXJzM=", requestBody: bytesToStream(new TextEncoder().encode("")), }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageUploadSessionsUpload failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -481,9 +469,9 @@ Abort Upload Session. Note that the base URL is upload.apideck.com instead of un import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -492,7 +480,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -510,9 +497,9 @@ import { fileStorageUploadSessionsDelete } from "@apideck/unify/funcs/fileStorag // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -520,15 +507,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageUploadSessionsDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -568,9 +552,9 @@ Finish Upload Session. Only call this endpoint after all File parts have been up import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -580,7 +564,6 @@ async function run() { digest: "sha=fpRyg5eVQletdZqEKaFlqwBXJzM=", }); - // Handle the result console.log(result); } @@ -598,9 +581,9 @@ import { fileStorageUploadSessionsFinish } from "@apideck/unify/funcs/fileStorag // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -609,15 +592,12 @@ async function run() { serviceId: "salesforce", digest: "sha=fpRyg5eVQletdZqEKaFlqwBXJzM=", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("fileStorageUploadSessionsFinish failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 300b0d6f..510842af 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -21,9 +21,9 @@ List users import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -36,7 +36,6 @@ async function run() { }); for await (const page of result) { - // Handle the page console.log(page); } } @@ -55,9 +54,9 @@ import { crmUsersList } from "@apideck/unify/funcs/crmUsersList.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -68,17 +67,14 @@ async function run() { }, fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("crmUsersList failed:", res.error); + } } run(); @@ -118,9 +114,9 @@ Create user import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -294,7 +290,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -312,9 +307,9 @@ import { crmUsersCreate } from "@apideck/unify/funcs/crmUsersCreate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -487,15 +482,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmUsersCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -535,9 +527,9 @@ Get user import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -547,7 +539,6 @@ async function run() { fields: "id,updated_at", }); - // Handle the result console.log(result); } @@ -565,9 +556,9 @@ import { crmUsersGet } from "@apideck/unify/funcs/crmUsersGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -576,15 +567,12 @@ async function run() { serviceId: "salesforce", fields: "id,updated_at", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmUsersGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -624,9 +612,9 @@ Update user import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -765,7 +753,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -783,9 +770,9 @@ import { crmUsersUpdate } from "@apideck/unify/funcs/crmUsersUpdate.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -923,15 +910,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmUsersUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -971,9 +955,9 @@ Delete user import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -982,7 +966,6 @@ async function run() { serviceId: "salesforce", }); - // Handle the result console.log(result); } @@ -1000,9 +983,9 @@ import { crmUsersDelete } from "@apideck/unify/funcs/crmUsersDelete.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -1010,15 +993,12 @@ async function run() { id: "", serviceId: "salesforce", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("crmUsersDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/validateconnection/README.md b/docs/sdks/validateconnection/README.md index 125eb098..57589764 100644 --- a/docs/sdks/validateconnection/README.md +++ b/docs/sdks/validateconnection/README.md @@ -23,9 +23,9 @@ Note: import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -34,7 +34,6 @@ async function run() { unifiedApi: "crm", }); - // Handle the result console.log(result); } @@ -52,9 +51,9 @@ import { vaultValidateConnectionState } from "@apideck/unify/funcs/vaultValidate // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -62,15 +61,12 @@ async function run() { serviceId: "pipedrive", unifiedApi: "crm", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("vaultValidateConnectionState failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index ae0ea48e..e8fa5b7f 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -21,16 +21,14 @@ List all webhook subscriptions import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const result = await apideck.webhook.webhooks.list({}); for await (const page of result) { - // Handle the page console.log(page); } } @@ -49,24 +47,20 @@ import { webhookWebhooksList } from "@apideck/unify/funcs/webhookWebhooksList.js // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await webhookWebhooksList(apideck, {}); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page + if (res.ok) { + const { value: result } = res; + for await (const page of result) { console.log(page); } + } else { + console.log("webhookWebhooksList failed:", res.error); + } } run(); @@ -106,9 +100,8 @@ Create a webhook subscription to receive events import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -125,7 +118,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -143,9 +135,8 @@ import { webhookWebhooksCreate } from "@apideck/unify/funcs/webhookWebhooksCreat // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -161,15 +152,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhookWebhooksCreate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -209,9 +197,8 @@ Get the webhook subscription details import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -219,7 +206,6 @@ async function run() { id: "", }); - // Handle the result console.log(result); } @@ -237,24 +223,20 @@ import { webhookWebhooksGet } from "@apideck/unify/funcs/webhookWebhooksGet.js"; // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await webhookWebhooksGet(apideck, { id: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhookWebhooksGet failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -294,9 +276,8 @@ Update a webhook subscription import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -313,7 +294,6 @@ async function run() { }, }); - // Handle the result console.log(result); } @@ -331,9 +311,8 @@ import { webhookWebhooksUpdate } from "@apideck/unify/funcs/webhookWebhooksUpdat // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -349,15 +328,12 @@ async function run() { ], }, }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhookWebhooksUpdate failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); @@ -397,9 +373,8 @@ Delete a webhook subscription import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { @@ -407,7 +382,6 @@ async function run() { id: "", }); - // Handle the result console.log(result); } @@ -425,24 +399,20 @@ import { webhookWebhooksDelete } from "@apideck/unify/funcs/webhookWebhooksDelet // Use `ApideckCore` for best tree-shaking performance. // You can create one instance of it to use across an application. const apideck = new ApideckCore({ - apiKey: process.env["APIDECK_API_KEY"] ?? "", - consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function run() { const res = await webhookWebhooksDelete(apideck, { id: "", }); - - if (!res.ok) { - throw res.error; + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("webhookWebhooksDelete failed:", res.error); } - - const { value: result } = res; - - // Handle the result - console.log(result); } run(); diff --git a/jsr.json b/jsr.json index 915e7fc5..2808f459 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@apideck/unify", - "version": "0.24.1", + "version": "0.25.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index b64b6a26..7cc8e06d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apideck/unify", - "version": "0.24.1", + "version": "0.25.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apideck/unify", - "version": "0.24.1", + "version": "0.25.0", "devDependencies": { "@eslint/js": "^9.19.0", "@types/node": "^18.19.3", diff --git a/package.json b/package.json index 87eeba6e..e0ed8ac3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apideck/unify", - "version": "0.24.1", + "version": "0.25.0", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/__tests__/activities.test.ts b/src/__tests__/activities.test.ts index f82f1efa..c4d60f28 100644 --- a/src/__tests__/activities.test.ts +++ b/src/__tests__/activities.test.ts @@ -16,12 +16,15 @@ test("Activities Crm Activities All", async () => { }); const result = await apideck.crm.activities.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -554,6 +557,8 @@ test("Activities Crm Activities One", async () => { const result = await apideck.crm.activities.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -766,6 +771,8 @@ test("Activities Crm Activities Delete", async () => { const result = await apideck.crm.activities.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/agedcreditors.test.ts b/src/__tests__/agedcreditors.test.ts index 47c6cb9a..931bebee 100644 --- a/src/__tests__/agedcreditors.test.ts +++ b/src/__tests__/agedcreditors.test.ts @@ -17,6 +17,8 @@ test("Agedcreditors Accounting Aged Creditors One", async () => { }); const result = await apideck.accounting.agedCreditors.get({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { customerId: "123abc", diff --git a/src/__tests__/ageddebtors.test.ts b/src/__tests__/ageddebtors.test.ts index 0651e4d1..ac6ed59b 100644 --- a/src/__tests__/ageddebtors.test.ts +++ b/src/__tests__/ageddebtors.test.ts @@ -17,6 +17,8 @@ test("Ageddebtors Accounting Aged Debtors One", async () => { }); const result = await apideck.accounting.agedDebtors.get({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { customerId: "123abc", diff --git a/src/__tests__/apideckcompanies.test.ts b/src/__tests__/apideckcompanies.test.ts index 65bead86..7eace187 100644 --- a/src/__tests__/apideckcompanies.test.ts +++ b/src/__tests__/apideckcompanies.test.ts @@ -16,6 +16,8 @@ test("Apideck Companies Hris Companies All", async () => { }); const result = await apideck.hris.companies.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -470,6 +472,8 @@ test("Apideck Companies Hris Companies One", async () => { const result = await apideck.hris.companies.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -695,6 +699,8 @@ test("Apideck Companies Hris Companies Delete", async () => { const result = await apideck.hris.companies.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/apideckcustomers.test.ts b/src/__tests__/apideckcustomers.test.ts index cc9dc17c..9e4d0fdb 100644 --- a/src/__tests__/apideckcustomers.test.ts +++ b/src/__tests__/apideckcustomers.test.ts @@ -16,6 +16,8 @@ test("Apideck Customers Ecommerce Customers All", async () => { }); const result = await apideck.ecommerce.customers.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { email: "elon@musk.com", @@ -265,6 +267,8 @@ test("Apideck Customers Ecommerce Customers One", async () => { const result = await apideck.ecommerce.customers.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/apideckdepartments.test.ts b/src/__tests__/apideckdepartments.test.ts index 0ea94c36..857abc34 100644 --- a/src/__tests__/apideckdepartments.test.ts +++ b/src/__tests__/apideckdepartments.test.ts @@ -16,6 +16,8 @@ test("Apideck Departments Hris Departments All", async () => { }); const result = await apideck.hris.departments.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -195,6 +197,8 @@ test("Apideck Departments Hris Departments One", async () => { const result = await apideck.hris.departments.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -302,6 +306,8 @@ test("Apideck Departments Hris Departments Delete", async () => { const result = await apideck.hris.departments.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/apiresources.test.ts b/src/__tests__/apiresources.test.ts index eba216c5..220d5861 100644 --- a/src/__tests__/apiresources.test.ts +++ b/src/__tests__/apiresources.test.ts @@ -16,6 +16,7 @@ test("Apiresources Connector Api Resources One", async () => { }); const result = await apideck.connector.apiResources.get({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", id: "", resourceId: "", }); diff --git a/src/__tests__/apis.test.ts b/src/__tests__/apis.test.ts index 6b5bf36f..28cfa3ff 100644 --- a/src/__tests__/apis.test.ts +++ b/src/__tests__/apis.test.ts @@ -16,6 +16,7 @@ test("Apis Connector Apis All", async () => { }); const result = await apideck.connector.apis.list({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", filter: { status: "beta", }, @@ -151,6 +152,7 @@ test("Apis Connector Apis One", async () => { }); const result = await apideck.connector.apis.get({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", id: "", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/applicants.test.ts b/src/__tests__/applicants.test.ts index c3efea4d..11140bc1 100644 --- a/src/__tests__/applicants.test.ts +++ b/src/__tests__/applicants.test.ts @@ -17,6 +17,8 @@ test("Applicants Ats Applicants All", async () => { }); const result = await apideck.ats.applicants.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { jobId: "1234", @@ -713,6 +715,8 @@ test("Applicants Ats Applicants One", async () => { const result = await apideck.ats.applicants.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -959,6 +963,8 @@ test("Applicants Ats Applicants Delete", async () => { const result = await apideck.ats.applicants.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/applications.test.ts b/src/__tests__/applications.test.ts index 66e19417..e33aa188 100644 --- a/src/__tests__/applications.test.ts +++ b/src/__tests__/applications.test.ts @@ -16,6 +16,8 @@ test("Applications Ats Applications All", async () => { }); const result = await apideck.ats.applications.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -203,6 +205,8 @@ test("Applications Ats Applications One", async () => { const result = await apideck.ats.applications.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -312,6 +316,8 @@ test("Applications Ats Applications Delete", async () => { const result = await apideck.ats.applications.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/attachments.test.ts b/src/__tests__/attachments.test.ts index d8b6dac1..5069b97d 100644 --- a/src/__tests__/attachments.test.ts +++ b/src/__tests__/attachments.test.ts @@ -20,6 +20,8 @@ test("Attachments Accounting Attachments All", async () => { const result = await apideck.accounting.attachments.list({ referenceType: "invoice", referenceId: "123456", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -210,6 +212,8 @@ test("Attachments Accounting Attachments One", async () => { referenceType: "invoice", referenceId: "123456", id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -319,6 +323,8 @@ test("Attachments Accounting Attachments Delete", async () => { referenceType: "invoice", referenceId: "123456", id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -348,6 +354,8 @@ test("Attachments Accounting Attachments Download", async () => { referenceType: "invoice", referenceId: "123456", id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }, { diff --git a/src/__tests__/balancesheet.test.ts b/src/__tests__/balancesheet.test.ts index 44bac73c..479fbc20 100644 --- a/src/__tests__/balancesheet.test.ts +++ b/src/__tests__/balancesheet.test.ts @@ -16,6 +16,8 @@ test("Balancesheet Accounting Balance Sheet One", async () => { }); const result = await apideck.accounting.balanceSheet.get({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", diff --git a/src/__tests__/bankfeedaccounts.test.ts b/src/__tests__/bankfeedaccounts.test.ts index b3c23341..0dec3cf5 100644 --- a/src/__tests__/bankfeedaccounts.test.ts +++ b/src/__tests__/bankfeedaccounts.test.ts @@ -16,6 +16,8 @@ test("Bankfeedaccounts Accounting Bank Feed Accounts All", async () => { }); const result = await apideck.accounting.bankFeedAccounts.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -141,6 +143,8 @@ test("Bankfeedaccounts Accounting Bank Feed Accounts Add", async () => { }); const result = await apideck.accounting.bankFeedAccounts.create({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", bankFeedAccount: { bankAccountType: "bank", @@ -192,6 +196,8 @@ test("Bankfeedaccounts Accounting Bank Feed Accounts One", async () => { const result = await apideck.accounting.bankFeedAccounts.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -254,6 +260,8 @@ test("Bankfeedaccounts Accounting Bank Feed Accounts Update", async () => { const result = await apideck.accounting.bankFeedAccounts.update({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", bankFeedAccount: { bankAccountType: "bank", @@ -316,6 +324,8 @@ test("Bankfeedaccounts Accounting Bank Feed Accounts Delete", async () => { const result = await apideck.accounting.bankFeedAccounts.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/bankfeedstatements.test.ts b/src/__tests__/bankfeedstatements.test.ts index 9ec4d03c..28e789bc 100644 --- a/src/__tests__/bankfeedstatements.test.ts +++ b/src/__tests__/bankfeedstatements.test.ts @@ -18,6 +18,8 @@ test("Bankfeedstatements Accounting Bank Feed Statements All", async () => { }); const result = await apideck.accounting.bankFeedStatements.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -175,6 +177,8 @@ test("Bankfeedstatements Accounting Bank Feed Statements Add", async () => { }); const result = await apideck.accounting.bankFeedStatements.create({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", bankFeedStatement: { bankFeedAccountId: "acc_456", @@ -236,6 +240,8 @@ test("Bankfeedstatements Accounting Bank Feed Statements One", async () => { const result = await apideck.accounting.bankFeedStatements.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -310,6 +316,8 @@ test("Bankfeedstatements Accounting Bank Feed Statements Update", async () => { const result = await apideck.accounting.bankFeedStatements.update({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", bankFeedStatement: { bankFeedAccountId: "acc_456", @@ -381,6 +389,8 @@ test("Bankfeedstatements Accounting Bank Feed Statements Delete", async () => { const result = await apideck.accounting.bankFeedStatements.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/billpayments.test.ts b/src/__tests__/billpayments.test.ts index 1c1af145..0689dbbb 100644 --- a/src/__tests__/billpayments.test.ts +++ b/src/__tests__/billpayments.test.ts @@ -16,12 +16,15 @@ test("Billpayments Accounting Bill Payments All", async () => { }); const result = await apideck.accounting.billPayments.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -479,6 +482,8 @@ test("Billpayments Accounting Bill Payments One", async () => { const result = await apideck.accounting.billPayments.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -649,6 +654,8 @@ test("Billpayments Accounting Bill Payments Delete", async () => { const result = await apideck.accounting.billPayments.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/bills.test.ts b/src/__tests__/bills.test.ts index 9c771327..886b34f8 100644 --- a/src/__tests__/bills.test.ts +++ b/src/__tests__/bills.test.ts @@ -17,12 +17,15 @@ test("Bills Accounting Bills All", async () => { }); const result = await apideck.accounting.bills.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -788,6 +791,8 @@ test("Bills Accounting Bills One", async () => { const result = await apideck.accounting.bills.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -1116,6 +1121,8 @@ test("Bills Accounting Bills Delete", async () => { const result = await apideck.accounting.bills.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/collections.test.ts b/src/__tests__/collections.test.ts index 2ec5c88f..ac6ba369 100644 --- a/src/__tests__/collections.test.ts +++ b/src/__tests__/collections.test.ts @@ -16,9 +16,12 @@ test("Collections Issue Tracking Collections All", async () => { }); const result = await apideck.issueTracking.collections.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", sort: { by: "name", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -91,6 +94,8 @@ test("Collections Issue Tracking Collections One", async () => { const result = await apideck.issueTracking.collections.get({ collectionId: "apideck-io", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/collectiontags.test.ts b/src/__tests__/collectiontags.test.ts index d06ee7d9..de8d1820 100644 --- a/src/__tests__/collectiontags.test.ts +++ b/src/__tests__/collectiontags.test.ts @@ -19,6 +19,8 @@ test("Collectiontags Issue Tracking Collection Tags All", async () => { const result = await apideck.issueTracking.collectionTags.list({ collectionId: "apideck-io", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", diff --git a/src/__tests__/collectionticketcomments.test.ts b/src/__tests__/collectionticketcomments.test.ts index e4cc3992..9ad8a331 100644 --- a/src/__tests__/collectionticketcomments.test.ts +++ b/src/__tests__/collectionticketcomments.test.ts @@ -18,11 +18,14 @@ test("Collectionticketcomments Issue Tracking Collection Ticket Comments All", a }); const result = await apideck.issueTracking.collectionTicketComments.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", collectionId: "apideck-io", ticketId: "", sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -192,6 +195,8 @@ test("Collectionticketcomments Issue Tracking Collection Ticket Comments One", a const result = await apideck.issueTracking.collectionTicketComments.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", collectionId: "apideck-io", ticketId: "", @@ -299,6 +304,8 @@ test("Collectionticketcomments Issue Tracking Collection Ticket Comments Delete" const result = await apideck.issueTracking.collectionTicketComments.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", collectionId: "apideck-io", ticketId: "", diff --git a/src/__tests__/collectiontickets.test.ts b/src/__tests__/collectiontickets.test.ts index f3d2e408..08628454 100644 --- a/src/__tests__/collectiontickets.test.ts +++ b/src/__tests__/collectiontickets.test.ts @@ -18,10 +18,13 @@ test("Collectiontickets Issue Tracking Collection Tickets All", async () => { }); const result = await apideck.issueTracking.collectionTickets.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", collectionId: "apideck-io", sort: { by: "created_at", + direction: "desc", }, filter: { status: [ @@ -293,6 +296,8 @@ test("Collectiontickets Issue Tracking Collection Tickets One", async () => { const result = await apideck.issueTracking.collectionTickets.get({ ticketId: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", collectionId: "apideck-io", fields: "id,updated_at", @@ -418,6 +423,8 @@ test("Collectiontickets Issue Tracking Collection Tickets Delete", async () => { const result = await apideck.issueTracking.collectionTickets.delete({ ticketId: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", collectionId: "apideck-io", }); diff --git a/src/__tests__/collectionusers.test.ts b/src/__tests__/collectionusers.test.ts index d75f88a8..2d065300 100644 --- a/src/__tests__/collectionusers.test.ts +++ b/src/__tests__/collectionusers.test.ts @@ -19,6 +19,8 @@ test("Collectionusers Issue Tracking Collection Users All", async () => { const result = await apideck.issueTracking.collectionUsers.list({ collectionId: "apideck-io", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -97,6 +99,8 @@ test("Collectionusers Issue Tracking Collection Users One", async () => { const result = await apideck.issueTracking.collectionUsers.get({ collectionId: "apideck-io", id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/companies.test.ts b/src/__tests__/companies.test.ts index 2fd38201..b8a66757 100644 --- a/src/__tests__/companies.test.ts +++ b/src/__tests__/companies.test.ts @@ -17,12 +17,15 @@ test("Companies Crm Companies All", async () => { }); const result = await apideck.crm.companies.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { name: "SpaceX", }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -734,6 +737,8 @@ test("Companies Crm Companies One", async () => { const result = await apideck.crm.companies.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -1042,6 +1047,8 @@ test("Companies Crm Companies Delete", async () => { const result = await apideck.crm.companies.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/companyinfo.test.ts b/src/__tests__/companyinfo.test.ts index e0cd45d2..fe4e0a00 100644 --- a/src/__tests__/companyinfo.test.ts +++ b/src/__tests__/companyinfo.test.ts @@ -17,6 +17,8 @@ test("Companyinfo Accounting Company Info One", async () => { }); const result = await apideck.accounting.companyInfo.get({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/connectioncustommappings.test.ts b/src/__tests__/connectioncustommappings.test.ts index 10781ac8..4f0e7474 100644 --- a/src/__tests__/connectioncustommappings.test.ts +++ b/src/__tests__/connectioncustommappings.test.ts @@ -18,6 +18,8 @@ test("Connectioncustommappings Vault Connection Custom Mappings All", async () = }); const result = await apideck.vault.connectionCustomMappings.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", unifiedApi: "crm", serviceId: "pipedrive", resource: "leads", diff --git a/src/__tests__/connections.test.ts b/src/__tests__/connections.test.ts index 178e1c75..e49716db 100644 --- a/src/__tests__/connections.test.ts +++ b/src/__tests__/connections.test.ts @@ -16,6 +16,8 @@ test("Connections Vault Connections All", async () => { }); const result = await apideck.vault.connections.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", api: "crm", configured: true, }); @@ -826,6 +828,8 @@ test("Connections Vault Connections One", async () => { }); const result = await apideck.vault.connections.get({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "pipedrive", unifiedApi: "crm", }); @@ -1112,6 +1116,8 @@ test("Connections Vault Connections Delete", async () => { }); const result = await apideck.vault.connections.delete({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "pipedrive", unifiedApi: "crm", }); @@ -1190,6 +1196,8 @@ test("Connections Vault Connections Import", async () => { }); const result = await apideck.vault.connections.imports({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "pipedrive", unifiedApi: "crm", connectionImportData: { @@ -1551,6 +1559,8 @@ test("Connections Vault Connections Token", async () => { }); const result = await apideck.vault.connections.token({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "pipedrive", unifiedApi: "crm", }); diff --git a/src/__tests__/connectionsettings.test.ts b/src/__tests__/connectionsettings.test.ts index 081b2906..db64a925 100644 --- a/src/__tests__/connectionsettings.test.ts +++ b/src/__tests__/connectionsettings.test.ts @@ -16,6 +16,8 @@ test("Connectionsettings Vault Connection Settings All", async () => { }); const result = await apideck.vault.connectionSettings.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", unifiedApi: "crm", serviceId: "pipedrive", resource: "leads", diff --git a/src/__tests__/connectordocs.test.ts b/src/__tests__/connectordocs.test.ts index d6b3fac5..64f776ed 100644 --- a/src/__tests__/connectordocs.test.ts +++ b/src/__tests__/connectordocs.test.ts @@ -17,6 +17,7 @@ test("Connectordocs Connector Connector Docs One", async () => { }); const result = await apideck.connector.connectorDocs.get({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", id: "", docId: "application_owner+oauth_credentials", }, { diff --git a/src/__tests__/connectors.test.ts b/src/__tests__/connectors.test.ts index 46198a60..1c7ab598 100644 --- a/src/__tests__/connectors.test.ts +++ b/src/__tests__/connectors.test.ts @@ -16,6 +16,7 @@ test("Connectors Connector Connectors All", async () => { }); const result = await apideck.connector.connectors.list({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", filter: { unifiedApi: "file-storage", }, @@ -512,6 +513,7 @@ test("Connectors Connector Connectors One", async () => { }); const result = await apideck.connector.connectors.get({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", id: "", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/consumerrequestcounts.test.ts b/src/__tests__/consumerrequestcounts.test.ts index 8d011156..c1c7c193 100644 --- a/src/__tests__/consumerrequestcounts.test.ts +++ b/src/__tests__/consumerrequestcounts.test.ts @@ -16,6 +16,7 @@ test("Consumerrequestcounts Vault Consumer Request Counts All", async () => { }); const result = await apideck.vault.consumerRequestCounts.list({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", consumerId: "test_user_id", startDatetime: "2021-05-01T12:00:00.000Z", endDatetime: "2021-05-30T12:00:00.000Z", diff --git a/src/__tests__/consumers.test.ts b/src/__tests__/consumers.test.ts index 9f9bafdc..8b4e83d9 100644 --- a/src/__tests__/consumers.test.ts +++ b/src/__tests__/consumers.test.ts @@ -16,6 +16,7 @@ test("Consumers Vault Consumers Add", async () => { }); const result = await apideck.vault.consumers.create({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", consumer: { consumerId: "test_consumer_id", metadata: { @@ -126,7 +127,9 @@ test("Consumers Vault Consumers All", async () => { apiKey: process.env["APIDECK_API_KEY"] ?? "value", }); - const result = await apideck.vault.consumers.list({}); + const result = await apideck.vault.consumers.list({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + }); expect(result.httpMeta.response.status).toBe(200); expect(result.getConsumersResponse).toBeDefined(); expect(result.getConsumersResponse).toEqual({ @@ -231,6 +234,7 @@ test("Consumers Vault Consumers One", async () => { }); const result = await apideck.vault.consumers.get({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", consumerId: "test_user_id", }); expect(result.httpMeta.response.status).toBe(200); @@ -363,6 +367,7 @@ test("Consumers Vault Consumers Update", async () => { }); const result = await apideck.vault.consumers.update({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", consumerId: "test_user_id", updateConsumerRequest: { metadata: { @@ -503,6 +508,7 @@ test("Consumers Vault Consumers Delete", async () => { }); const result = await apideck.vault.consumers.delete({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", consumerId: "test_user_id", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/contacts.test.ts b/src/__tests__/contacts.test.ts index a4d00741..96b7364e 100644 --- a/src/__tests__/contacts.test.ts +++ b/src/__tests__/contacts.test.ts @@ -16,6 +16,8 @@ test("Contacts Crm Contacts All", async () => { }); const result = await apideck.crm.contacts.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { firstName: "Elon", @@ -26,6 +28,7 @@ test("Contacts Crm Contacts All", async () => { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -701,6 +704,8 @@ test("Contacts Crm Contacts One", async () => { const result = await apideck.crm.contacts.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", filter: { @@ -940,6 +945,8 @@ test("Contacts Crm Contacts Delete", async () => { const result = await apideck.crm.contacts.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/createcallback.test.ts b/src/__tests__/createcallback.test.ts index 43d4379b..02ccbd36 100644 --- a/src/__tests__/createcallback.test.ts +++ b/src/__tests__/createcallback.test.ts @@ -16,6 +16,8 @@ test("Createcallback Vault Create Callback State", async () => { }); const result = await apideck.vault.createCallback.state({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "pipedrive", unifiedApi: "crm", createCallbackState: { diff --git a/src/__tests__/creditnotes.test.ts b/src/__tests__/creditnotes.test.ts index 77316563..8b071b16 100644 --- a/src/__tests__/creditnotes.test.ts +++ b/src/__tests__/creditnotes.test.ts @@ -16,12 +16,15 @@ test("Creditnotes Accounting Credit Notes All", async () => { }); const result = await apideck.accounting.creditNotes.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -968,6 +971,8 @@ test("Creditnotes Accounting Credit Notes One", async () => { const result = await apideck.accounting.creditNotes.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -1345,6 +1350,8 @@ test("Creditnotes Accounting Credit Notes Delete", async () => { const result = await apideck.accounting.creditNotes.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/customers.test.ts b/src/__tests__/customers.test.ts index c04ab4ad..ffd1ad78 100644 --- a/src/__tests__/customers.test.ts +++ b/src/__tests__/customers.test.ts @@ -16,6 +16,8 @@ test("Customers Accounting Customers All", async () => { }); const result = await apideck.accounting.customers.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { companyName: "SpaceX", @@ -29,6 +31,7 @@ test("Customers Accounting Customers All", async () => { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -791,6 +794,8 @@ test("Customers Accounting Customers One", async () => { const result = await apideck.accounting.customers.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -1072,6 +1077,8 @@ test("Customers Accounting Customers Delete", async () => { const result = await apideck.accounting.customers.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/customfields.test.ts b/src/__tests__/customfields.test.ts index 89b321c2..cb33a131 100644 --- a/src/__tests__/customfields.test.ts +++ b/src/__tests__/customfields.test.ts @@ -16,6 +16,8 @@ test("Customfields Vault Custom Fields All", async () => { }); const result = await apideck.vault.customFields.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", unifiedApi: "crm", serviceId: "pipedrive", resource: "leads", diff --git a/src/__tests__/custommappings.test.ts b/src/__tests__/custommappings.test.ts index 0ff6d2e8..6beac92f 100644 --- a/src/__tests__/custommappings.test.ts +++ b/src/__tests__/custommappings.test.ts @@ -16,6 +16,8 @@ test("Custommappings Vault Custom Mappings All", async () => { }); const result = await apideck.vault.customMappings.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", unifiedApi: "crm", serviceId: "pipedrive", }); diff --git a/src/__tests__/customobjects.test.ts b/src/__tests__/customobjects.test.ts index 9c1f5dec..ff18c074 100644 --- a/src/__tests__/customobjects.test.ts +++ b/src/__tests__/customobjects.test.ts @@ -16,6 +16,8 @@ test("Customobjects Crm Custom Objects All", async () => { }); const result = await apideck.crm.customObjects.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -158,6 +160,8 @@ test("Customobjects Crm Custom Objects One", async () => { const result = await apideck.crm.customObjects.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", objectId: "", }); @@ -243,6 +247,8 @@ test("Customobjects Crm Custom Objects Delete", async () => { const result = await apideck.crm.customObjects.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", objectId: "", }); diff --git a/src/__tests__/customobjectschemas.test.ts b/src/__tests__/customobjectschemas.test.ts index a01cb9c6..9e8252d9 100644 --- a/src/__tests__/customobjectschemas.test.ts +++ b/src/__tests__/customobjectschemas.test.ts @@ -16,6 +16,8 @@ test("Customobjectschemas Crm Custom Object Schemas All", async () => { }); const result = await apideck.crm.customObjectSchemas.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -282,6 +284,8 @@ test("Customobjectschemas Crm Custom Object Schemas One", async () => { const result = await apideck.crm.customObjectSchemas.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -399,6 +403,8 @@ test("Customobjectschemas Crm Custom Object Schemas Delete", async () => { const result = await apideck.crm.customObjectSchemas.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/departments.test.ts b/src/__tests__/departments.test.ts index 2a01ec92..908f57f5 100644 --- a/src/__tests__/departments.test.ts +++ b/src/__tests__/departments.test.ts @@ -16,6 +16,8 @@ test("Departments Accounting Departments All", async () => { }); const result = await apideck.accounting.departments.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", filter: { @@ -242,6 +244,8 @@ test("Departments Accounting Departments One", async () => { const result = await apideck.accounting.departments.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -342,6 +346,8 @@ test("Departments Accounting Departments Delete", async () => { const result = await apideck.accounting.departments.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/drivegroups.test.ts b/src/__tests__/drivegroups.test.ts index 7d289d14..7abc8a09 100644 --- a/src/__tests__/drivegroups.test.ts +++ b/src/__tests__/drivegroups.test.ts @@ -16,6 +16,8 @@ test("Drivegroups File Storage Drive Groups All", async () => { }); const result = await apideck.fileStorage.driveGroups.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { parentGroupId: "1234", @@ -195,6 +197,8 @@ test("Drivegroups File Storage Drive Groups One", async () => { const result = await apideck.fileStorage.driveGroups.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -301,6 +305,8 @@ test("Drivegroups File Storage Drive Groups Delete", async () => { const result = await apideck.fileStorage.driveGroups.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/drives.test.ts b/src/__tests__/drives.test.ts index f4424fa7..019d726f 100644 --- a/src/__tests__/drives.test.ts +++ b/src/__tests__/drives.test.ts @@ -16,6 +16,8 @@ test("Drives File Storage Drives All", async () => { }); const result = await apideck.fileStorage.drives.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { groupId: "1234", @@ -189,6 +191,8 @@ test("Drives File Storage Drives One", async () => { const result = await apideck.fileStorage.drives.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -294,6 +298,8 @@ test("Drives File Storage Drives Delete", async () => { const result = await apideck.fileStorage.drives.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/employeepayrolls.test.ts b/src/__tests__/employeepayrolls.test.ts index b9341b1d..652e0a2d 100644 --- a/src/__tests__/employeepayrolls.test.ts +++ b/src/__tests__/employeepayrolls.test.ts @@ -17,6 +17,8 @@ test("Employeepayrolls Hris Employee Payrolls All", async () => { const result = await apideck.hris.employeePayrolls.list({ employeeId: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { startDate: "2022-04-08", @@ -331,6 +333,8 @@ test("Employeepayrolls Hris Employee Payrolls One", async () => { const result = await apideck.hris.employeePayrolls.get({ payrollId: "", employeeId: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/employees.test.ts b/src/__tests__/employees.test.ts index f299c764..f799aab9 100644 --- a/src/__tests__/employees.test.ts +++ b/src/__tests__/employees.test.ts @@ -17,6 +17,8 @@ test("Employees Hris Employees All", async () => { }); const result = await apideck.hris.employees.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { companyId: "1234", @@ -33,6 +35,7 @@ test("Employees Hris Employees All", async () => { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -1207,6 +1210,8 @@ test("Employees Hris Employees One", async () => { const result = await apideck.hris.employees.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", filter: { @@ -1665,6 +1670,8 @@ test("Employees Hris Employees Delete", async () => { const result = await apideck.hris.employees.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/employeeschedules.test.ts b/src/__tests__/employeeschedules.test.ts index 9df996e7..a889c8d6 100644 --- a/src/__tests__/employeeschedules.test.ts +++ b/src/__tests__/employeeschedules.test.ts @@ -18,6 +18,8 @@ test("Employeeschedules Hris Employee Schedules All", async () => { const result = await apideck.hris.employeeSchedules.list({ employeeId: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", diff --git a/src/__tests__/eventlogs.test.ts b/src/__tests__/eventlogs.test.ts index beea456d..4a167a33 100644 --- a/src/__tests__/eventlogs.test.ts +++ b/src/__tests__/eventlogs.test.ts @@ -16,6 +16,7 @@ test("Eventlogs Webhook Event Logs All", async () => { }); const result = await apideck.webhook.eventLogs.list({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", filter: { excludeApis: "vault,proxy", consumerId: "test_user_id", diff --git a/src/__tests__/expenses.test.ts b/src/__tests__/expenses.test.ts index 06bedddb..4249058f 100644 --- a/src/__tests__/expenses.test.ts +++ b/src/__tests__/expenses.test.ts @@ -16,6 +16,8 @@ test("Expenses Accounting Expenses All", async () => { }); const result = await apideck.accounting.expenses.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -407,6 +409,8 @@ test("Expenses Accounting Expenses One", async () => { const result = await apideck.accounting.expenses.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -549,6 +553,8 @@ test("Expenses Accounting Expenses Delete", async () => { const result = await apideck.accounting.expenses.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/files.test.ts b/src/__tests__/files.test.ts index 84fe9162..a67e33bf 100644 --- a/src/__tests__/files.test.ts +++ b/src/__tests__/files.test.ts @@ -18,6 +18,8 @@ test("Files File Storage Files All", async () => { }); const result = await apideck.fileStorage.files.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { driveId: "1234", @@ -26,6 +28,7 @@ test("Files File Storage Files All", async () => { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -172,6 +175,8 @@ test("Files File Storage Files Search", async () => { }); const result = await apideck.fileStorage.files.search({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -259,6 +264,8 @@ test("Files File Storage Files One", async () => { const result = await apideck.fileStorage.files.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -328,6 +335,8 @@ test("Files File Storage Files Delete", async () => { const result = await apideck.fileStorage.files.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -355,6 +364,8 @@ test("Files File Storage Files Download", async () => { const result = await apideck.fileStorage.files.download({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }, { @@ -378,6 +389,8 @@ test("Files File Storage Files Export", async () => { const result = await apideck.fileStorage.files.export({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", format: "pdf", diff --git a/src/__tests__/folders.test.ts b/src/__tests__/folders.test.ts index c6a2d0bc..33e98b69 100644 --- a/src/__tests__/folders.test.ts +++ b/src/__tests__/folders.test.ts @@ -23,6 +23,8 @@ test("Folders File Storage Folders One", async () => { const result = await apideck.fileStorage.folders.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -80,6 +82,8 @@ test("Folders File Storage Folders Delete", async () => { const result = await apideck.fileStorage.folders.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/invoiceitems.test.ts b/src/__tests__/invoiceitems.test.ts index 08b6eb11..2d7de4ec 100644 --- a/src/__tests__/invoiceitems.test.ts +++ b/src/__tests__/invoiceitems.test.ts @@ -17,6 +17,8 @@ test("Invoiceitems Accounting Invoice Items All", async () => { }); const result = await apideck.accounting.invoiceItems.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { name: "Widgets Large", @@ -24,6 +26,7 @@ test("Invoiceitems Accounting Invoice Items All", async () => { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -412,6 +415,8 @@ test("Invoiceitems Accounting Invoice Items One", async () => { const result = await apideck.accounting.invoiceItems.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", filter: { @@ -569,6 +574,8 @@ test("Invoiceitems Accounting Invoice Items Delete", async () => { const result = await apideck.accounting.invoiceItems.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/invoices.test.ts b/src/__tests__/invoices.test.ts index fbb183a3..b7bd95ae 100644 --- a/src/__tests__/invoices.test.ts +++ b/src/__tests__/invoices.test.ts @@ -17,6 +17,8 @@ test("Invoices Accounting Invoices All", async () => { }); const result = await apideck.accounting.invoices.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), @@ -25,6 +27,7 @@ test("Invoices Accounting Invoices All", async () => { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -1216,6 +1219,8 @@ test("Invoices Accounting Invoices One", async () => { const result = await apideck.accounting.invoices.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -1543,6 +1548,8 @@ test("Invoices Accounting Invoices Delete", async () => { const result = await apideck.accounting.invoices.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/jobs.test.ts b/src/__tests__/jobs.test.ts index 4a66667e..edf9fa20 100644 --- a/src/__tests__/jobs.test.ts +++ b/src/__tests__/jobs.test.ts @@ -17,6 +17,8 @@ test("Jobs Ats Jobs All", async () => { }); const result = await apideck.ats.jobs.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -608,6 +610,8 @@ test("Jobs Ats Jobs One", async () => { const result = await apideck.ats.jobs.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/journalentries.test.ts b/src/__tests__/journalentries.test.ts index bb570f4c..0e868f65 100644 --- a/src/__tests__/journalentries.test.ts +++ b/src/__tests__/journalentries.test.ts @@ -16,12 +16,15 @@ test("Journalentries Accounting Journal Entries All", async () => { }); const result = await apideck.accounting.journalEntries.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -704,6 +707,8 @@ test("Journalentries Accounting Journal Entries One", async () => { const result = await apideck.accounting.journalEntries.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -1036,6 +1041,8 @@ test("Journalentries Accounting Journal Entries Delete", async () => { const result = await apideck.accounting.journalEntries.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/leads.test.ts b/src/__tests__/leads.test.ts index 0990f625..05bb5640 100644 --- a/src/__tests__/leads.test.ts +++ b/src/__tests__/leads.test.ts @@ -16,6 +16,8 @@ test("Leads Crm Leads All", async () => { }); const result = await apideck.crm.leads.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { firstName: "Elon", @@ -25,6 +27,7 @@ test("Leads Crm Leads All", async () => { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -661,6 +664,8 @@ test("Leads Crm Leads One", async () => { const result = await apideck.crm.leads.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -880,6 +885,8 @@ test("Leads Crm Leads Delete", async () => { const result = await apideck.crm.leads.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/ledgeraccounts.test.ts b/src/__tests__/ledgeraccounts.test.ts index 7183b08c..531d53cd 100644 --- a/src/__tests__/ledgeraccounts.test.ts +++ b/src/__tests__/ledgeraccounts.test.ts @@ -17,12 +17,15 @@ test("Ledgeraccounts Accounting Ledger Accounts All", async () => { }); const result = await apideck.accounting.ledgerAccounts.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -426,6 +429,8 @@ test("Ledgeraccounts Accounting Ledger Accounts One", async () => { const result = await apideck.accounting.ledgerAccounts.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -577,6 +582,8 @@ test("Ledgeraccounts Accounting Ledger Accounts Delete", async () => { const result = await apideck.accounting.ledgerAccounts.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/locations.test.ts b/src/__tests__/locations.test.ts index bf35f5be..12cfd957 100644 --- a/src/__tests__/locations.test.ts +++ b/src/__tests__/locations.test.ts @@ -16,6 +16,8 @@ test("Locations Accounting Locations All", async () => { }); const result = await apideck.accounting.locations.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", filter: { @@ -359,6 +361,8 @@ test("Locations Accounting Locations One", async () => { const result = await apideck.accounting.locations.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -544,6 +548,8 @@ test("Locations Accounting Locations Delete", async () => { const result = await apideck.accounting.locations.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/logs.test.ts b/src/__tests__/logs.test.ts index df4e64a2..6a0d3b8d 100644 --- a/src/__tests__/logs.test.ts +++ b/src/__tests__/logs.test.ts @@ -16,6 +16,8 @@ test("Logs Vault Logs All", async () => { }); const result = await apideck.vault.logs.list({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + consumerId: "test-consumer", filter: { connectorId: "crm+salesforce", statusCode: 201, diff --git a/src/__tests__/messages.test.ts b/src/__tests__/messages.test.ts index 25737ee1..33b1976a 100644 --- a/src/__tests__/messages.test.ts +++ b/src/__tests__/messages.test.ts @@ -16,6 +16,8 @@ test("Messages Sms Messages All", async () => { }); const result = await apideck.sms.messages.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -252,6 +254,8 @@ test("Messages Sms Messages One", async () => { const result = await apideck.sms.messages.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -379,6 +383,8 @@ test("Messages Sms Messages Delete", async () => { const result = await apideck.sms.messages.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/mockserver/internal/handler/pathdeletevaultconnectionsunifiedapiserviceid.go b/src/__tests__/mockserver/internal/handler/pathdeletevaultconnectionsunifiedapiserviceid.go index 5324dbd0..c270b189 100644 --- a/src/__tests__/mockserver/internal/handler/pathdeletevaultconnectionsunifiedapiserviceid.go +++ b/src/__tests__/mockserver/internal/handler/pathdeletevaultconnectionsunifiedapiserviceid.go @@ -51,7 +51,7 @@ func testVaultConnectionsDeleteVaultConnectionsDelete0(w http.ResponseWriter, re Error: types.String("Bad Request"), TypeName: types.String("RequestHeadersValidationError"), Message: types.String("Invalid Params"), - Detail: types.Pointer(components.CreateDetailMapOfAny( + Detail: types.Pointer(components.CreateUnexpectedErrorResponseDetailMapOfAny( map[string]any{ "missing": []any{ map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingagedcreditors.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingagedcreditors.go index 2d6b4ea1..ad8be646 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingagedcreditors.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingagedcreditors.go @@ -73,7 +73,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -82,7 +82,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -98,7 +98,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -107,7 +107,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -116,7 +116,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -137,7 +137,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -146,7 +146,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -162,7 +162,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -189,7 +189,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -198,7 +198,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -214,7 +214,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -223,7 +223,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -232,7 +232,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -248,7 +248,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -275,7 +275,7 @@ func testAccountingAgedCreditorsOneAccountingAgedCreditorsOne0(w http.ResponseWr components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingageddebtors.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingageddebtors.go index 27f7eba2..0e7db00c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingageddebtors.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingageddebtors.go @@ -73,7 +73,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -82,7 +82,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -98,7 +98,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -107,7 +107,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -116,7 +116,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -137,7 +137,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -146,7 +146,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -162,7 +162,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -189,7 +189,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -198,7 +198,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -214,7 +214,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -223,7 +223,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -232,7 +232,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -248,7 +248,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), @@ -275,7 +275,7 @@ func testAccountingAgedDebtorsOneAccountingAgedDebtorsOne0(w http.ResponseWriter components.BalanceByTransaction{ TransactionID: types.String("INV-1001"), TransactionDate: types.MustNewDateFromString("2024-01-15"), - TransactionType: components.TransactionTypeInvoice.ToPointer(), + TransactionType: components.BalanceByTransactionTransactionTypeInvoice.ToPointer(), DueDate: types.MustNewDateFromString("2024-02-15"), OriginalAmount: types.Float64(1000), OutstandingBalance: types.Float64(800), diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceid.go index b8562457..07c8b909 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceid.go @@ -72,8 +72,8 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -81,7 +81,7 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -89,7 +89,7 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -101,8 +101,8 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -133,8 +133,8 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -165,8 +165,8 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -174,7 +174,7 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -186,8 +186,8 @@ func testAccountingAttachmentsAllAccountingAttachmentsAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceidid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceidid.go index e14d0c04..2f4978f2 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceidid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingattachmentsreferencetypereferenceidid.go @@ -71,8 +71,8 @@ func testAccountingAttachmentsOneAccountingAttachmentsOne0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -80,7 +80,7 @@ func testAccountingAttachmentsOneAccountingAttachmentsOne0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -92,8 +92,8 @@ func testAccountingAttachmentsOneAccountingAttachmentsOne0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -101,7 +101,7 @@ func testAccountingAttachmentsOneAccountingAttachmentsOne0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -113,8 +113,8 @@ func testAccountingAttachmentsOneAccountingAttachmentsOne0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -122,7 +122,7 @@ func testAccountingAttachmentsOneAccountingAttachmentsOne0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbalancesheet.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbalancesheet.go index c486e528..0c3de52a 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbalancesheet.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbalancesheet.go @@ -53,8 +53,8 @@ func testAccountingBalanceSheetOneAccountingBalanceSheetOne0(w http.ResponseWrit Resource: "BalanceSheets", Operation: "one", Data: components.BalanceSheet{ - Reports: []components.Reports{ - components.Reports{ + Reports: []components.Report{ + components.Report{ ID: types.String("12345"), ReportName: types.String("BalanceSheet"), StartDate: types.String("2017-01-01"), @@ -258,7 +258,7 @@ func testAccountingBalanceSheetOneAccountingBalanceSheetOne0(w http.ResponseWrit }, }, }, - components.Reports{ + components.Report{ ID: types.String("12345"), ReportName: types.String("BalanceSheet"), StartDate: types.String("2017-01-01"), diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccounts.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccounts.go index 495da136..52c9411c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccounts.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccounts.go @@ -68,15 +68,15 @@ func testAccountingBankFeedAccountsAllAccountingBankFeedAccountsAll0(w http.Resp ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -101,8 +101,8 @@ func testAccountingBankFeedAccountsAllAccountingBankFeedAccountsAll0(w http.Resp ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -126,7 +126,7 @@ func testAccountingBankFeedAccountsAllAccountingBankFeedAccountsAll0(w http.Resp ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -134,8 +134,8 @@ func testAccountingBankFeedAccountsAllAccountingBankFeedAccountsAll0(w http.Resp ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccountsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccountsid.go index 95fcb35e..f90c6975 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccountsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedaccountsid.go @@ -67,24 +67,24 @@ func testAccountingBankFeedAccountsOneAccountingBankFeedAccountsOne0(w http.Resp ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatements.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatements.go index 52e7ef7f..342576cc 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatements.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatements.go @@ -63,8 +63,8 @@ func testAccountingBankFeedStatementsAllAccountingBankFeedStatementsAll0(w http. StartBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), EndBalance: types.Float64(9800.5), EndBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), - Transactions: []components.Transactions{ - components.Transactions{ + Transactions: []components.Transaction{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, @@ -74,7 +74,7 @@ func testAccountingBankFeedStatementsAllAccountingBankFeedStatementsAll0(w http. Reference: types.String("INV-2025-01"), TransactionType: components.BankFeedStatementTransactionTypePayment.ToPointer(), }, - components.Transactions{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, @@ -100,8 +100,8 @@ func testAccountingBankFeedStatementsAllAccountingBankFeedStatementsAll0(w http. StartBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), EndBalance: types.Float64(9800.5), EndBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), - Transactions: []components.Transactions{ - components.Transactions{ + Transactions: []components.Transaction{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, @@ -111,7 +111,7 @@ func testAccountingBankFeedStatementsAllAccountingBankFeedStatementsAll0(w http. Reference: types.String("INV-2025-01"), TransactionType: components.BankFeedStatementTransactionTypePayment.ToPointer(), }, - components.Transactions{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, @@ -121,7 +121,7 @@ func testAccountingBankFeedStatementsAllAccountingBankFeedStatementsAll0(w http. Reference: types.String("INV-2025-01"), TransactionType: components.BankFeedStatementTransactionTypePayment.ToPointer(), }, - components.Transactions{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, @@ -147,8 +147,8 @@ func testAccountingBankFeedStatementsAllAccountingBankFeedStatementsAll0(w http. StartBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), EndBalance: types.Float64(9800.5), EndBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), - Transactions: []components.Transactions{ - components.Transactions{ + Transactions: []components.Transaction{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatementsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatementsid.go index 1f8fd060..7285e0ff 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatementsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbankfeedstatementsid.go @@ -62,8 +62,8 @@ func testAccountingBankFeedStatementsOneAccountingBankFeedStatementsOne0(w http. StartBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), EndBalance: types.Float64(9800.5), EndBalanceCreditOrDebit: components.CreditOrDebitDebit.ToPointer(), - Transactions: []components.Transactions{ - components.Transactions{ + Transactions: []components.Transaction{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, @@ -73,7 +73,7 @@ func testAccountingBankFeedStatementsOneAccountingBankFeedStatementsOne0(w http. Reference: types.String("INV-2025-01"), TransactionType: components.BankFeedStatementTransactionTypePayment.ToPointer(), }, - components.Transactions{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, @@ -83,7 +83,7 @@ func testAccountingBankFeedStatementsOneAccountingBankFeedStatementsOne0(w http. Reference: types.String("INV-2025-01"), TransactionType: components.BankFeedStatementTransactionTypePayment.ToPointer(), }, - components.Transactions{ + components.Transaction{ PostedDate: types.MustTimeFromString("2025-01-15T12:00:00.000Z"), Description: types.String("Payment received from ACME Corp"), Amount: 250, diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpayments.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpayments.go index e5f4569b..48beb482 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpayments.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpayments.go @@ -77,7 +77,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -106,15 +106,15 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit Reconciled: types.Bool(true), Status: components.PaymentStatusAuthorised.ToPointer(), Type: components.BillPaymentTypeAccountsPayable.ToPointer(), - Allocations: []components.Allocations{ - components.Allocations{ + Allocations: []components.BillPaymentAllocation{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), Amount: types.Float64(49.99), AllocationID: types.String("123456"), }, - components.Allocations{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), @@ -143,7 +143,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -157,8 +157,8 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -166,7 +166,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -202,7 +202,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -231,15 +231,15 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit Reconciled: types.Bool(true), Status: components.PaymentStatusAuthorised.ToPointer(), Type: components.BillPaymentTypeAccountsPayable.ToPointer(), - Allocations: []components.Allocations{ - components.Allocations{ + Allocations: []components.BillPaymentAllocation{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), Amount: types.Float64(49.99), AllocationID: types.String("123456"), }, - components.Allocations{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), @@ -260,7 +260,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -268,7 +268,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -276,7 +276,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOfStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfStr( []string{ "", "", @@ -293,8 +293,8 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -306,8 +306,8 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -343,7 +343,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -372,15 +372,15 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit Reconciled: types.Bool(true), Status: components.PaymentStatusAuthorised.ToPointer(), Type: components.BillPaymentTypeAccountsPayable.ToPointer(), - Allocations: []components.Allocations{ - components.Allocations{ + Allocations: []components.BillPaymentAllocation{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), Amount: types.Float64(49.99), AllocationID: types.String("123456"), }, - components.Allocations{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), @@ -405,10 +405,10 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -422,8 +422,8 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -431,7 +431,7 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -443,8 +443,8 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -456,8 +456,8 @@ func testAccountingBillPaymentsAllAccountingBillPaymentsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpaymentsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpaymentsid.go index 990acc45..689b3656 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpaymentsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillpaymentsid.go @@ -76,7 +76,7 @@ func testAccountingBillPaymentsOneAccountingBillPaymentsOne0(w http.ResponseWrit CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -105,22 +105,22 @@ func testAccountingBillPaymentsOneAccountingBillPaymentsOne0(w http.ResponseWrit Reconciled: types.Bool(true), Status: components.PaymentStatusAuthorised.ToPointer(), Type: components.BillPaymentTypeAccountsPayable.ToPointer(), - Allocations: []components.Allocations{ - components.Allocations{ + Allocations: []components.BillPaymentAllocation{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), Amount: types.Float64(49.99), AllocationID: types.String("123456"), }, - components.Allocations{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), Amount: types.Float64(49.99), AllocationID: types.String("123456"), }, - components.Allocations{ + components.BillPaymentAllocation{ ID: types.String("12345"), Type: components.BillPaymentAllocationTypeBill.ToPointer(), Code: types.String("N091"), @@ -145,17 +145,17 @@ func testAccountingBillPaymentsOneAccountingBillPaymentsOne0(w http.ResponseWrit ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -169,8 +169,8 @@ func testAccountingBillPaymentsOneAccountingBillPaymentsOne0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -182,8 +182,8 @@ func testAccountingBillPaymentsOneAccountingBillPaymentsOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go index b84f0fd5..348c475f 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbills.go @@ -64,7 +64,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -248,16 +248,16 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -269,8 +269,8 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -278,7 +278,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -286,7 +286,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -310,7 +310,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -449,15 +449,15 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -465,8 +465,8 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -474,7 +474,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -498,7 +498,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -686,7 +686,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -694,7 +694,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -702,7 +702,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -710,8 +710,8 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -723,8 +723,8 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -732,7 +732,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -740,7 +740,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -752,8 +752,8 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -761,7 +761,7 @@ func testAccountingBillsAllAccountingBillsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go index a4feeac9..f0b12db7 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingbillsid.go @@ -63,7 +63,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -304,7 +304,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -312,7 +312,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -320,8 +320,8 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -329,7 +329,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -337,7 +337,7 @@ func testAccountingBillsOneAccountingBillsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingcompanyinfo.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingcompanyinfo.go index a719f9b6..d0f9edf5 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingcompanyinfo.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingcompanyinfo.go @@ -68,20 +68,20 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter TotalTaxRate: types.Float64(10), TaxPayableAccountID: types.String("123456"), TaxRemittedAccountID: types.String("123456"), - Components: []components.ComponentsObj{ - components.ComponentsObj{ + Components: []components.Component{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), Compound: types.Bool(true), }, - components.ComponentsObj{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), Compound: types.Bool(true), }, - components.ComponentsObj{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), @@ -100,8 +100,8 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -109,7 +109,7 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -121,8 +121,8 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -130,7 +130,7 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -146,7 +146,7 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -154,7 +154,7 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -162,7 +162,7 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -175,7 +175,7 @@ func testAccountingCompanyInfoOneAccountingCompanyInfoOne0(w http.ResponseWriter Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotes.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotes.go index 5e75660c..9eb28e7b 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotes.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotes.go @@ -137,7 +137,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -192,15 +192,15 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -236,7 +236,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter Terms: types.String("Some terms about this credit note"), BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -262,7 +262,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -297,7 +297,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOfStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfStr( []string{ "", "", @@ -313,8 +313,8 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -326,8 +326,8 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -419,10 +419,10 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -485,7 +485,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -493,7 +493,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -529,7 +529,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter Terms: types.String("Some terms about this credit note"), BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -555,7 +555,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -590,7 +590,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -598,15 +598,15 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -619,8 +619,8 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -632,8 +632,8 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -641,7 +641,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -653,8 +653,8 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -662,7 +662,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -754,8 +754,8 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -817,9 +817,9 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -827,7 +827,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -851,7 +851,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter Terms: types.String("Some terms about this credit note"), BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -877,7 +877,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -912,7 +912,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -920,19 +920,19 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -945,8 +945,8 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -954,7 +954,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -962,7 +962,7 @@ func testAccountingCreditNotesAllAccountingCreditNotesAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotesid.go index e52d8055..3db8095b 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingcreditnotesid.go @@ -132,17 +132,17 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -201,7 +201,7 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -264,15 +264,15 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -296,7 +296,7 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter Terms: types.String("Some terms about this credit note"), BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -322,7 +322,7 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -357,7 +357,7 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOfStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfStr( []string{ "", }, @@ -367,7 +367,7 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOfStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfStr( []string{ "", "", @@ -383,8 +383,8 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -396,8 +396,8 @@ func testAccountingCreditNotesOneAccountingCreditNotesOne0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomers.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomers.go index c1e9a4d1..23391f7b 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomers.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomers.go @@ -70,7 +70,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -96,7 +96,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -195,7 +195,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re ID: "12345", Name: types.String("Windsurf Shop"), }, - Status: components.CustomerStatusStatusActive.ToPointer(), + Status: components.CustomerStatusActive.ToPointer(), PaymentMethod: types.String("cash"), Channel: types.String("email"), CustomFields: []components.CustomField{ @@ -203,15 +203,15 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -224,8 +224,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -237,8 +237,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -250,8 +250,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -259,7 +259,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -267,7 +267,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -296,7 +296,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -322,7 +322,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -426,7 +426,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re ID: "12345", Name: types.String("Windsurf Shop"), }, - Status: components.CustomerStatusStatusActive.ToPointer(), + Status: components.CustomerStatusActive.ToPointer(), PaymentMethod: types.String("cash"), Channel: types.String("email"), CustomFields: []components.CustomField{ @@ -434,7 +434,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -442,10 +442,10 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -458,8 +458,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -467,7 +467,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -479,8 +479,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -492,8 +492,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -522,7 +522,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -548,7 +548,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -574,7 +574,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -698,7 +698,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re ID: "12345", Name: types.String("Windsurf Shop"), }, - Status: components.CustomerStatusStatusActive.ToPointer(), + Status: components.CustomerStatusActive.ToPointer(), PaymentMethod: types.String("cash"), Channel: types.String("email"), CustomFields: []components.CustomField{ @@ -706,7 +706,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -719,8 +719,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -732,8 +732,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -741,7 +741,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -753,8 +753,8 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -762,7 +762,7 @@ func testAccountingCustomersAllAccountingCustomersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomersid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomersid.go index fdc5d91a..7c3128b2 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomersid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingcustomersid.go @@ -69,7 +69,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -95,7 +95,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -121,7 +121,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -248,7 +248,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re ID: "12345", Name: types.String("Windsurf Shop"), }, - Status: components.CustomerStatusStatusActive.ToPointer(), + Status: components.CustomerStatusActive.ToPointer(), PaymentMethod: types.String("cash"), Channel: types.String("email"), CustomFields: []components.CustomField{ @@ -256,7 +256,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -264,7 +264,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -277,8 +277,8 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -286,7 +286,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -294,7 +294,7 @@ func testAccountingCustomersOneAccountingCustomersOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartments.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartments.go index 3fb6268f..5c9177c5 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartments.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartments.go @@ -76,8 +76,8 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -89,8 +89,8 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -102,8 +102,8 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -138,8 +138,8 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -151,8 +151,8 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -160,7 +160,7 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -168,7 +168,7 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -199,8 +199,8 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -208,7 +208,7 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -216,7 +216,7 @@ func testAccountingDepartmentsAllAccountingDepartmentsAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartmentsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartmentsid.go index 6308117e..fec40a04 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartmentsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingdepartmentsid.go @@ -79,8 +79,8 @@ func testAccountingDepartmentsOneAccountingDepartmentsOne0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -88,7 +88,7 @@ func testAccountingDepartmentsOneAccountingDepartmentsOne0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -100,8 +100,8 @@ func testAccountingDepartmentsOneAccountingDepartmentsOne0(w http.ResponseWriter }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -109,7 +109,7 @@ func testAccountingDepartmentsOneAccountingDepartmentsOne0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go index d88d6517..b4222912 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpenses.go @@ -135,7 +135,7 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -146,8 +146,8 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -155,7 +155,7 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -167,8 +167,8 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -254,23 +254,23 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -281,8 +281,8 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -290,7 +290,7 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -353,17 +353,17 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -371,7 +371,7 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -382,8 +382,8 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -391,7 +391,7 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -399,7 +399,7 @@ func testAccountingExpensesAllAccountingExpensesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go index 79756f35..2464d577 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingexpensesid.go @@ -134,9 +134,9 @@ func testAccountingExpensesOneAccountingExpensesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -144,7 +144,7 @@ func testAccountingExpensesOneAccountingExpensesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -155,8 +155,8 @@ func testAccountingExpensesOneAccountingExpensesOne0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitems.go b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitems.go index e065f488..1a189680 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitems.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitems.go @@ -63,7 +63,7 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit Tracked: types.Bool(true), Taxable: types.Bool(true), InventoryDate: types.MustNewDateFromString("2020-10-30"), - Type: components.InvoiceItemTypeTypeInventory.ToPointer(), + Type: components.InvoiceItemTypeInventory.ToPointer(), SalesDetails: &components.SalesDetails{ UnitPrice: types.Float64(27500.5), UnitOfMeasure: types.String("pc."), @@ -129,8 +129,8 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -142,8 +142,8 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -155,8 +155,8 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -178,7 +178,7 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit Tracked: types.Bool(true), Taxable: types.Bool(true), InventoryDate: types.MustNewDateFromString("2020-10-30"), - Type: components.InvoiceItemTypeTypeInventory.ToPointer(), + Type: components.InvoiceItemTypeInventory.ToPointer(), SalesDetails: &components.SalesDetails{ UnitPrice: types.Float64(27500.5), UnitOfMeasure: types.String("pc."), @@ -244,8 +244,8 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -257,8 +257,8 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -266,7 +266,7 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -274,7 +274,7 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -296,7 +296,7 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit Tracked: types.Bool(true), Taxable: types.Bool(true), InventoryDate: types.MustNewDateFromString("2020-10-30"), - Type: components.InvoiceItemTypeTypeInventory.ToPointer(), + Type: components.InvoiceItemTypeInventory.ToPointer(), SalesDetails: &components.SalesDetails{ UnitPrice: types.Float64(27500.5), UnitOfMeasure: types.String("pc."), @@ -358,8 +358,8 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -367,7 +367,7 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -375,7 +375,7 @@ func testAccountingInvoiceItemsAllAccountingInvoiceItemsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitemsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitemsid.go index 7c62e539..ae26ae6c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitemsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoiceitemsid.go @@ -62,7 +62,7 @@ func testAccountingInvoiceItemsOneAccountingInvoiceItemsOne0(w http.ResponseWrit Tracked: types.Bool(true), Taxable: types.Bool(true), InventoryDate: types.MustNewDateFromString("2020-10-30"), - Type: components.InvoiceItemTypeTypeInventory.ToPointer(), + Type: components.InvoiceItemTypeInventory.ToPointer(), SalesDetails: &components.SalesDetails{ UnitPrice: types.Float64(27500.5), UnitOfMeasure: types.String("pc."), @@ -132,8 +132,8 @@ func testAccountingInvoiceItemsOneAccountingInvoiceItemsOne0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -141,7 +141,7 @@ func testAccountingInvoiceItemsOneAccountingInvoiceItemsOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -153,8 +153,8 @@ func testAccountingInvoiceItemsOneAccountingInvoiceItemsOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -162,7 +162,7 @@ func testAccountingInvoiceItemsOneAccountingInvoiceItemsOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoices.go b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoices.go index 2840506b..a0153e2a 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoices.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoices.go @@ -140,7 +140,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -199,7 +199,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -207,8 +207,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -262,23 +262,23 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -292,7 +292,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -318,7 +318,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -372,7 +372,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -385,8 +385,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -398,8 +398,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -407,7 +407,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -415,7 +415,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -518,7 +518,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -581,9 +581,9 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -646,7 +646,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -660,7 +660,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -686,7 +686,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -740,7 +740,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -748,7 +748,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -756,7 +756,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -769,8 +769,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -778,7 +778,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -790,8 +790,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -894,7 +894,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -902,7 +902,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -910,7 +910,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -965,7 +965,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -973,19 +973,19 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -1040,19 +1040,19 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -1060,8 +1060,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -1074,7 +1074,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -1100,7 +1100,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -1154,7 +1154,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -1167,8 +1167,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1176,7 +1176,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1184,7 +1184,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1196,8 +1196,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1209,8 +1209,8 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1218,7 +1218,7 @@ func testAccountingInvoicesAllAccountingInvoicesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoicesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoicesid.go index 3f9773bb..b458d014 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoicesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountinginvoicesid.go @@ -147,9 +147,9 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -157,7 +157,7 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -212,9 +212,9 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -228,7 +228,7 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req }, BillingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -254,7 +254,7 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -308,7 +308,7 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -316,7 +316,7 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -324,7 +324,7 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -337,8 +337,8 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -346,7 +346,7 @@ func testAccountingInvoicesOneAccountingInvoicesOne0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentries.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentries.go index 46a0a437..705b3376 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentries.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentries.go @@ -107,7 +107,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -175,7 +175,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -228,16 +228,16 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -249,8 +249,8 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -258,7 +258,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -266,7 +266,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -324,7 +324,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -385,15 +385,15 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -401,8 +401,8 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -410,7 +410,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -468,7 +468,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -544,7 +544,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -601,7 +601,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -609,7 +609,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -617,7 +617,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -625,8 +625,8 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -638,8 +638,8 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -647,7 +647,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -655,7 +655,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -667,8 +667,8 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -676,7 +676,7 @@ func testAccountingJournalEntriesAllAccountingJournalEntriesAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentriesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentriesid.go index 05994330..52c422de 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentriesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingjournalentriesid.go @@ -102,7 +102,7 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -174,7 +174,7 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -246,7 +246,7 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -307,7 +307,7 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -315,7 +315,7 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -323,8 +323,8 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -332,7 +332,7 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -340,7 +340,7 @@ func testAccountingJournalEntriesOneAccountingJournalEntriesOne0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccounts.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccounts.go index fe700490..079f778a 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccounts.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccounts.go @@ -90,12 +90,12 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response BankCode: types.String("BNH"), Currency: components.CurrencyUsd.ToPointer(), }, - Categories: []components.Categories{ - components.Categories{ + Categories: []components.LedgerAccountCategory{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, - components.Categories{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, @@ -106,16 +106,16 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response DisplayID: types.String("1-1100"), }, SubAccount: types.Bool(false), - SubAccounts: []components.SubAccounts{ - components.SubAccounts{ + SubAccounts: []components.SubAccount{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, - components.SubAccounts{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, - components.SubAccounts{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, @@ -126,7 +126,7 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -139,8 +139,8 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -148,7 +148,7 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -197,12 +197,12 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response BankCode: types.String("BNH"), Currency: components.CurrencyUsd.ToPointer(), }, - Categories: []components.Categories{ - components.Categories{ + Categories: []components.LedgerAccountCategory{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, - components.Categories{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, @@ -213,8 +213,8 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response DisplayID: types.String("1-1100"), }, SubAccount: types.Bool(false), - SubAccounts: []components.SubAccounts{ - components.SubAccounts{ + SubAccounts: []components.SubAccount{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, @@ -225,7 +225,7 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -233,7 +233,7 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -241,7 +241,7 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOfStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfStr( []string{ "", "", @@ -257,8 +257,8 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -270,8 +270,8 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -320,12 +320,12 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response BankCode: types.String("BNH"), Currency: components.CurrencyUsd.ToPointer(), }, - Categories: []components.Categories{ - components.Categories{ + Categories: []components.LedgerAccountCategory{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, - components.Categories{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, @@ -336,12 +336,12 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response DisplayID: types.String("1-1100"), }, SubAccount: types.Bool(false), - SubAccounts: []components.SubAccounts{ - components.SubAccounts{ + SubAccounts: []components.SubAccount{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, - components.SubAccounts{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, @@ -352,10 +352,10 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -368,8 +368,8 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -377,7 +377,7 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -389,8 +389,8 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -402,8 +402,8 @@ func testAccountingLedgerAccountsAllAccountingLedgerAccountsAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccountsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccountsid.go index cce2c8b8..25d17ddd 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccountsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingledgeraccountsid.go @@ -89,16 +89,16 @@ func testAccountingLedgerAccountsOneAccountingLedgerAccountsOne0(w http.Response BankCode: types.String("BNH"), Currency: components.CurrencyUsd.ToPointer(), }, - Categories: []components.Categories{ - components.Categories{ + Categories: []components.LedgerAccountCategory{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, - components.Categories{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, - components.Categories{ + components.LedgerAccountCategory{ ID: types.String("12345"), Name: types.String("Finance Charges Expense"), }, @@ -109,12 +109,12 @@ func testAccountingLedgerAccountsOneAccountingLedgerAccountsOne0(w http.Response DisplayID: types.String("1-1100"), }, SubAccount: types.Bool(false), - SubAccounts: []components.SubAccounts{ - components.SubAccounts{ + SubAccounts: []components.SubAccount{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, - components.SubAccounts{ + components.SubAccount{ ID: types.String("12345"), AccountSubName: types.String("Petty Cash"), }, @@ -125,17 +125,17 @@ func testAccountingLedgerAccountsOneAccountingLedgerAccountsOne0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -148,8 +148,8 @@ func testAccountingLedgerAccountsOneAccountingLedgerAccountsOne0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -161,8 +161,8 @@ func testAccountingLedgerAccountsOneAccountingLedgerAccountsOne0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountinglocations.go b/src/__tests__/mockserver/internal/handler/pathgetaccountinglocations.go index 4b199846..947625ed 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountinglocations.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountinglocations.go @@ -62,7 +62,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -88,7 +88,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -135,8 +135,8 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -157,7 +157,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -200,8 +200,8 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -213,8 +213,8 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -222,7 +222,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -230,7 +230,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -251,7 +251,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -290,8 +290,8 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -299,7 +299,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -311,8 +311,8 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -320,7 +320,7 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -332,8 +332,8 @@ func testAccountingLocationsAllAccountingLocationsAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountinglocationsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountinglocationsid.go index 0d9d2bfa..cf27fc17 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountinglocationsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountinglocationsid.go @@ -61,7 +61,7 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -87,7 +87,7 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -113,7 +113,7 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -156,8 +156,8 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -165,7 +165,7 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -177,8 +177,8 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -186,7 +186,7 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -194,7 +194,7 @@ func testAccountingLocationsOneAccountingLocationsOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingpayments.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingpayments.go index 9dc2c7ad..a6ff2c34 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingpayments.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingpayments.go @@ -116,7 +116,7 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -130,8 +130,8 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -139,7 +139,7 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -206,7 +206,7 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -214,7 +214,7 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -222,7 +222,7 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOfStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfStr( []string{ "", "", @@ -239,8 +239,8 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -252,8 +252,8 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -324,10 +324,10 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -341,8 +341,8 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -350,7 +350,7 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -362,8 +362,8 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -375,8 +375,8 @@ func testAccountingPaymentsAllAccountingPaymentsAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingpaymentsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingpaymentsid.go index dfbef078..d462758d 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingpaymentsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingpaymentsid.go @@ -117,17 +117,17 @@ func testAccountingPaymentsOneAccountingPaymentsOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -141,8 +141,8 @@ func testAccountingPaymentsOneAccountingPaymentsOne0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -154,8 +154,8 @@ func testAccountingPaymentsOneAccountingPaymentsOne0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseorders.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseorders.go index 9bcc584e..7f0d57b1 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseorders.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseorders.go @@ -65,7 +65,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -154,7 +154,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -209,15 +209,15 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -231,7 +231,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -301,7 +301,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -314,8 +314,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -323,7 +323,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -335,8 +335,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -344,7 +344,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -356,8 +356,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -381,7 +381,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -466,7 +466,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -474,10 +474,10 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -491,7 +491,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -561,7 +561,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -569,7 +569,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -582,8 +582,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -595,8 +595,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -604,7 +604,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -612,7 +612,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -624,8 +624,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -633,7 +633,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -657,7 +657,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -738,8 +738,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -797,7 +797,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -805,7 +805,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -860,9 +860,9 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -870,9 +870,9 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -886,7 +886,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -952,7 +952,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -965,8 +965,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -978,8 +978,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -987,7 +987,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -999,8 +999,8 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1008,7 +1008,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1016,7 +1016,7 @@ func testAccountingPurchaseOrdersAllAccountingPurchaseOrdersAll0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseordersid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseordersid.go index b2159b67..23db31c8 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseordersid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseordersid.go @@ -64,7 +64,7 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response CompanyName: types.String("The boring company"), Address: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -149,17 +149,17 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -218,7 +218,7 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -281,15 +281,15 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -303,7 +303,7 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response }, ShippingAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -365,8 +365,8 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -378,8 +378,8 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -387,7 +387,7 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -399,8 +399,8 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -408,7 +408,7 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -416,7 +416,7 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -428,8 +428,8 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -437,7 +437,7 @@ func testAccountingPurchaseOrdersOneAccountingPurchaseOrdersOne0(w http.Response }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiaries.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiaries.go index 1b7634b2..0b22ee74 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiaries.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiaries.go @@ -66,8 +66,8 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -75,7 +75,7 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -83,7 +83,7 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -95,8 +95,8 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -121,8 +121,8 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -147,8 +147,8 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -156,7 +156,7 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -168,8 +168,8 @@ func testAccountingSubsidiariesAllAccountingSubsidiariesAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiariesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiariesid.go index 1874a10c..18c733bc 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiariesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingsubsidiariesid.go @@ -65,8 +65,8 @@ func testAccountingSubsidiariesOneAccountingSubsidiariesOne0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -74,7 +74,7 @@ func testAccountingSubsidiariesOneAccountingSubsidiariesOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -86,8 +86,8 @@ func testAccountingSubsidiariesOneAccountingSubsidiariesOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -95,7 +95,7 @@ func testAccountingSubsidiariesOneAccountingSubsidiariesOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -107,8 +107,8 @@ func testAccountingSubsidiariesOneAccountingSubsidiariesOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -116,7 +116,7 @@ func testAccountingSubsidiariesOneAccountingSubsidiariesOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliers.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliers.go index a09a7391..81599c00 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliers.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliers.go @@ -69,7 +69,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -95,7 +95,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -198,15 +198,15 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -219,8 +219,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -232,8 +232,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -245,8 +245,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -254,7 +254,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -262,7 +262,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -291,7 +291,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -317,7 +317,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -425,7 +425,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -433,10 +433,10 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -449,8 +449,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -458,7 +458,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -470,8 +470,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -483,8 +483,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -513,7 +513,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -539,7 +539,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -565,7 +565,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -693,7 +693,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -706,8 +706,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -719,8 +719,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -728,7 +728,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -740,8 +740,8 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -749,7 +749,7 @@ func testAccountingSuppliersAllAccountingSuppliersAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliersid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliersid.go index faa94d7b..f895eff6 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliersid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingsuppliersid.go @@ -68,7 +68,7 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -94,7 +94,7 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -120,7 +120,7 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -251,7 +251,7 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -259,7 +259,7 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -272,8 +272,8 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -281,7 +281,7 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -289,7 +289,7 @@ func testAccountingSuppliersOneAccountingSuppliersOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxrates.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxrates.go index 60d0fd75..5f35c1a0 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxrates.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxrates.go @@ -62,14 +62,14 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req TotalTaxRate: types.Float64(10), TaxPayableAccountID: types.String("123456"), TaxRemittedAccountID: types.String("123456"), - Components: []components.ComponentsObj{ - components.ComponentsObj{ + Components: []components.Component{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), Compound: types.Bool(true), }, - components.ComponentsObj{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), @@ -88,8 +88,8 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -101,8 +101,8 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -114,8 +114,8 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -131,15 +131,15 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -154,20 +154,20 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req TotalTaxRate: types.Float64(10), TaxPayableAccountID: types.String("123456"), TaxRemittedAccountID: types.String("123456"), - Components: []components.ComponentsObj{ - components.ComponentsObj{ + Components: []components.Component{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), Compound: types.Bool(true), }, - components.ComponentsObj{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), Compound: types.Bool(true), }, - components.ComponentsObj{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), @@ -186,8 +186,8 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -203,23 +203,23 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -234,8 +234,8 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req TotalTaxRate: types.Float64(10), TaxPayableAccountID: types.String("123456"), TaxRemittedAccountID: types.String("123456"), - Components: []components.ComponentsObj{ - components.ComponentsObj{ + Components: []components.Component{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), @@ -254,8 +254,8 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -263,7 +263,7 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -275,8 +275,8 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -292,17 +292,17 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, }, )), }, @@ -310,7 +310,7 @@ func testAccountingTaxRatesAllAccountingTaxRatesAll0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxratesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxratesid.go index 217dcead..74d08e0d 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxratesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingtaxratesid.go @@ -61,20 +61,20 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req TotalTaxRate: types.Float64(10), TaxPayableAccountID: types.String("123456"), TaxRemittedAccountID: types.String("123456"), - Components: []components.ComponentsObj{ - components.ComponentsObj{ + Components: []components.Component{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), Compound: types.Bool(true), }, - components.ComponentsObj{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), Compound: types.Bool(true), }, - components.ComponentsObj{ + components.Component{ ID: types.String("10"), Name: types.String("GST"), Rate: types.Float64(10), @@ -93,8 +93,8 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -102,7 +102,7 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -114,8 +114,8 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -123,7 +123,7 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -139,7 +139,7 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -147,7 +147,7 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -155,7 +155,7 @@ func testAccountingTaxRatesOneAccountingTaxRatesOne0(w http.ResponseWriter, req ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategories.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategories.go index 2b93f2d7..706f6b3a 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategories.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategories.go @@ -67,8 +67,8 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -76,7 +76,7 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -84,7 +84,7 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -96,8 +96,8 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -123,8 +123,8 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -150,8 +150,8 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -159,7 +159,7 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -171,8 +171,8 @@ func testAccountingTrackingCategoriesAllAccountingTrackingCategoriesAll0(w http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategoriesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategoriesid.go index 2a4ab35d..83f96ac7 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategoriesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingtrackingcategoriesid.go @@ -66,8 +66,8 @@ func testAccountingTrackingCategoriesOneAccountingTrackingCategoriesOne0(w http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -75,7 +75,7 @@ func testAccountingTrackingCategoriesOneAccountingTrackingCategoriesOne0(w http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -87,8 +87,8 @@ func testAccountingTrackingCategoriesOneAccountingTrackingCategoriesOne0(w http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -96,7 +96,7 @@ func testAccountingTrackingCategoriesOneAccountingTrackingCategoriesOne0(w http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -108,8 +108,8 @@ func testAccountingTrackingCategoriesOneAccountingTrackingCategoriesOne0(w http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -117,7 +117,7 @@ func testAccountingTrackingCategoriesOneAccountingTrackingCategoriesOne0(w http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetatsapplicants.go b/src/__tests__/mockserver/internal/handler/pathgetatsapplicants.go index d238b80d..08ce0d13 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetatsapplicants.go +++ b/src/__tests__/mockserver/internal/handler/pathgetatsapplicants.go @@ -83,7 +83,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -91,7 +91,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -99,7 +99,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -125,7 +125,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -151,7 +151,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -176,25 +176,25 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ RowVersion: types.String("1-12345"), }, }, - Websites: []components.Websites{ - components.Websites{ + Websites: []components.ApplicantWebsite{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, }, - SocialLinks: []components.SocialLinks{ - components.SocialLinks{ + SocialLinks: []components.ApplicantSocialLink{ + components.ApplicantSocialLink{ ID: types.String("12345"), URL: "https://www.twitter.com/apideck", Type: types.String("twitter"), }, - components.SocialLinks{ + components.ApplicantSocialLink{ ID: types.String("12345"), URL: "https://www.twitter.com/apideck", Type: types.String("twitter"), }, - components.SocialLinks{ + components.ApplicantSocialLink{ ID: types.String("12345"), URL: "https://www.twitter.com/apideck", Type: types.String("twitter"), @@ -241,8 +241,8 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -289,15 +289,15 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -315,7 +315,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -341,7 +341,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -366,20 +366,20 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ RowVersion: types.String("1-12345"), }, }, - Websites: []components.Websites{ - components.Websites{ + Websites: []components.ApplicantWebsite{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, - components.Websites{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, }, - SocialLinks: []components.SocialLinks{ - components.SocialLinks{ + SocialLinks: []components.ApplicantSocialLink{ + components.ApplicantSocialLink{ ID: types.String("12345"), URL: "https://www.twitter.com/apideck", Type: types.String("twitter"), @@ -426,8 +426,8 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -435,7 +435,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -447,8 +447,8 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -456,7 +456,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -464,7 +464,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -476,8 +476,8 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -485,7 +485,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -522,8 +522,8 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -556,7 +556,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -582,7 +582,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -607,25 +607,25 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ RowVersion: types.String("1-12345"), }, }, - Websites: []components.Websites{ - components.Websites{ + Websites: []components.ApplicantWebsite{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, - components.Websites{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, - components.Websites{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, }, - SocialLinks: []components.SocialLinks{ - components.SocialLinks{ + SocialLinks: []components.ApplicantSocialLink{ + components.ApplicantSocialLink{ ID: types.String("12345"), URL: "https://www.twitter.com/apideck", Type: types.String("twitter"), @@ -672,8 +672,8 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -681,7 +681,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -689,7 +689,7 @@ func testAtsApplicantsAllAtsApplicantsAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetatsapplicantsid.go b/src/__tests__/mockserver/internal/handler/pathgetatsapplicantsid.go index 337dcdc7..a1aaedba 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetatsapplicantsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetatsapplicantsid.go @@ -87,16 +87,16 @@ func testAtsApplicantsOneAtsApplicantsOne0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -129,7 +129,7 @@ func testAtsApplicantsOneAtsApplicantsOne0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -155,7 +155,7 @@ func testAtsApplicantsOneAtsApplicantsOne0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -180,20 +180,20 @@ func testAtsApplicantsOneAtsApplicantsOne0(w http.ResponseWriter, req *http.Requ RowVersion: types.String("1-12345"), }, }, - Websites: []components.Websites{ - components.Websites{ + Websites: []components.ApplicantWebsite{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, - components.Websites{ + components.ApplicantWebsite{ ID: types.String("12345"), URL: "http://example.com", Type: components.ApplicantTypePrimary.ToPointer(), }, }, - SocialLinks: []components.SocialLinks{ - components.SocialLinks{ + SocialLinks: []components.ApplicantSocialLink{ + components.ApplicantSocialLink{ ID: types.String("12345"), URL: "https://www.twitter.com/apideck", Type: types.String("twitter"), @@ -240,8 +240,8 @@ func testAtsApplicantsOneAtsApplicantsOne0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -249,7 +249,7 @@ func testAtsApplicantsOneAtsApplicantsOne0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -257,7 +257,7 @@ func testAtsApplicantsOneAtsApplicantsOne0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetatsapplications.go b/src/__tests__/mockserver/internal/handler/pathgetatsapplications.go index 4d9ec194..97863335 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetatsapplications.go +++ b/src/__tests__/mockserver/internal/handler/pathgetatsapplications.go @@ -58,7 +58,7 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. ApplicantID: types.String("12345"), JobID: types.String("12345"), Status: components.ApplicationStatusOpen.ToPointer(), - Stage: &components.Stage{ + Stage: &components.ApplicationStage{ ID: types.String("12345"), Name: types.String("12345"), }, @@ -69,8 +69,8 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -78,7 +78,7 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -86,7 +86,7 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -98,8 +98,8 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -116,7 +116,7 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. ApplicantID: types.String("12345"), JobID: types.String("12345"), Status: components.ApplicationStatusOpen.ToPointer(), - Stage: &components.Stage{ + Stage: &components.ApplicationStage{ ID: types.String("12345"), Name: types.String("12345"), }, @@ -127,8 +127,8 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -145,7 +145,7 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. ApplicantID: types.String("12345"), JobID: types.String("12345"), Status: components.ApplicationStatusOpen.ToPointer(), - Stage: &components.Stage{ + Stage: &components.ApplicationStage{ ID: types.String("12345"), Name: types.String("12345"), }, @@ -156,8 +156,8 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -165,7 +165,7 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -177,8 +177,8 @@ func testAtsApplicationsAllAtsApplicationsAll0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetatsapplicationsid.go b/src/__tests__/mockserver/internal/handler/pathgetatsapplicationsid.go index ad729c47..8e33453d 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetatsapplicationsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetatsapplicationsid.go @@ -57,7 +57,7 @@ func testAtsApplicationsOneAtsApplicationsOne0(w http.ResponseWriter, req *http. ApplicantID: types.String("12345"), JobID: types.String("12345"), Status: components.ApplicationStatusOpen.ToPointer(), - Stage: &components.Stage{ + Stage: &components.ApplicationStage{ ID: types.String("12345"), Name: types.String("12345"), }, @@ -68,8 +68,8 @@ func testAtsApplicationsOneAtsApplicationsOne0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -77,7 +77,7 @@ func testAtsApplicationsOneAtsApplicationsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -89,8 +89,8 @@ func testAtsApplicationsOneAtsApplicationsOne0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -98,7 +98,7 @@ func testAtsApplicationsOneAtsApplicationsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -110,8 +110,8 @@ func testAtsApplicationsOneAtsApplicationsOne0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -119,7 +119,7 @@ func testAtsApplicationsOneAtsApplicationsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetatsjobs.go b/src/__tests__/mockserver/internal/handler/pathgetatsjobs.go index 5e16f742..e729befa 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetatsjobs.go +++ b/src/__tests__/mockserver/internal/handler/pathgetatsjobs.go @@ -80,8 +80,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -89,7 +89,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -97,7 +97,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -109,8 +109,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -137,8 +137,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { "a98lfd96-43b3-4bde-8c70-85b707d992e6", }, Description: types.String("A description"), - Blocks: []components.Blocks{ - components.Blocks{ + Blocks: []components.Block{ + components.Block{ Title: types.String("string"), Content: types.String("string"), }, @@ -151,8 +151,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { Currency: components.CurrencyUsd.ToPointer(), Interval: types.String("year"), }, - Links: []components.JobLinks{ - components.JobLinks{ + Links: []components.Link{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, @@ -165,7 +165,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -195,15 +195,15 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -243,8 +243,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -256,8 +256,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -269,8 +269,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -278,7 +278,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -286,7 +286,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -313,8 +313,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { "a98lfd96-43b3-4bde-8c70-85b707d992e6", }, Description: types.String("A description"), - Blocks: []components.Blocks{ - components.Blocks{ + Blocks: []components.Block{ + components.Block{ Title: types.String("string"), Content: types.String("string"), }, @@ -327,12 +327,12 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { Currency: components.CurrencyUsd.ToPointer(), Interval: types.String("year"), }, - Links: []components.JobLinks{ - components.JobLinks{ + Links: []components.Link{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, - components.JobLinks{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, @@ -345,7 +345,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -371,7 +371,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -401,7 +401,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -441,8 +441,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -450,7 +450,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -462,8 +462,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -490,8 +490,8 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { "a98lfd96-43b3-4bde-8c70-85b707d992e6", }, Description: types.String("A description"), - Blocks: []components.Blocks{ - components.Blocks{ + Blocks: []components.Block{ + components.Block{ Title: types.String("string"), Content: types.String("string"), }, @@ -504,16 +504,16 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { Currency: components.CurrencyUsd.ToPointer(), Interval: types.String("year"), }, - Links: []components.JobLinks{ - components.JobLinks{ + Links: []components.Link{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, - components.JobLinks{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, - components.JobLinks{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, @@ -526,7 +526,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -552,7 +552,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -582,7 +582,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -590,7 +590,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -598,7 +598,7 @@ func testAtsJobsAllAtsJobsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetatsjobsid.go b/src/__tests__/mockserver/internal/handler/pathgetatsjobsid.go index 48140181..e067544c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetatsjobsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetatsjobsid.go @@ -79,8 +79,8 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -88,7 +88,7 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -100,8 +100,8 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -109,7 +109,7 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -121,8 +121,8 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -130,7 +130,7 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -157,8 +157,8 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { "a98lfd96-43b3-4bde-8c70-85b707d992e6", }, Description: types.String("A description"), - Blocks: []components.Blocks{ - components.Blocks{ + Blocks: []components.Block{ + components.Block{ Title: types.String("string"), Content: types.String("string"), }, @@ -171,16 +171,16 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { Currency: components.CurrencyUsd.ToPointer(), Interval: types.String("year"), }, - Links: []components.JobLinks{ - components.JobLinks{ + Links: []components.Link{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, - components.JobLinks{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, - components.JobLinks{ + components.Link{ Type: components.JobTypeJobPortal.ToPointer(), URL: types.String("https://app.intercom.io/contacts/12345"), }, @@ -193,7 +193,7 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -219,7 +219,7 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -249,7 +249,7 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -257,7 +257,7 @@ func testAtsJobsOneAtsJobsOne0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetconnectorapis.go b/src/__tests__/mockserver/internal/handler/pathgetconnectorapis.go index 98c4db28..415cf3e0 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetconnectorapis.go +++ b/src/__tests__/mockserver/internal/handler/pathgetconnectorapis.go @@ -63,13 +63,13 @@ func testConnectorApisAllConnectorApisAll0(w http.ResponseWriter, req *http.Requ "cloud-storage", "object-storage", }, - Resources: []components.Resources{ - components.Resources{ + Resources: []components.Resource{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), }, - components.Resources{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), @@ -93,18 +93,18 @@ func testConnectorApisAllConnectorApisAll0(w http.ResponseWriter, req *http.Requ "cloud-storage", "object-storage", }, - Resources: []components.Resources{ - components.Resources{ + Resources: []components.Resource{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), }, - components.Resources{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), }, - components.Resources{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), @@ -128,8 +128,8 @@ func testConnectorApisAllConnectorApisAll0(w http.ResponseWriter, req *http.Requ "cloud-storage", "object-storage", }, - Resources: []components.Resources{ - components.Resources{ + Resources: []components.Resource{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), diff --git a/src/__tests__/mockserver/internal/handler/pathgetconnectorapisid.go b/src/__tests__/mockserver/internal/handler/pathgetconnectorapisid.go index f0451675..ba26b093 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetconnectorapisid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetconnectorapisid.go @@ -62,18 +62,18 @@ func testConnectorApisOneConnectorApisOne0(w http.ResponseWriter, req *http.Requ "cloud-storage", "object-storage", }, - Resources: []components.Resources{ - components.Resources{ + Resources: []components.Resource{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), }, - components.Resources{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), }, - components.Resources{ + components.Resource{ ID: types.String("companies"), Name: types.String("Companies"), ExcludedFromCoverage: types.Bool(false), diff --git a/src/__tests__/mockserver/internal/handler/pathgetconnectorapisidresourcesresourceid.go b/src/__tests__/mockserver/internal/handler/pathgetconnectorapisidresourcesresourceid.go index cda69708..6c76e854 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetconnectorapisidresourcesresourceid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetconnectorapisidresourcesresourceid.go @@ -52,16 +52,16 @@ func testConnectorAPIResourcesOneConnectorAPIResourcesOne0(w http.ResponseWriter Data: components.APIResource{ ID: types.String("companies"), Name: types.String("Companies"), - LinkedResources: []components.LinkedResources{ - components.LinkedResources{ + LinkedResources: []components.LinkedResource{ + components.LinkedResource{ ID: types.String("companies"), UnifiedProperty: types.String("owner_id"), }, - components.LinkedResources{ + components.LinkedResource{ ID: types.String("companies"), UnifiedProperty: types.String("owner_id"), }, - components.LinkedResources{ + components.LinkedResource{ ID: types.String("companies"), UnifiedProperty: types.String("owner_id"), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectors.go b/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectors.go index da301a6f..7f1f7b5d 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectors.go +++ b/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectors.go @@ -64,15 +64,15 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re BlindMapped: types.Bool(true), OauthGrantType: components.ConnectorOauthGrantTypeAuthorizationCode.ToPointer(), OauthCredentialsSource: components.OauthCredentialsSourceIntegration.ToPointer(), - OauthScopes: []components.OauthScopes{ - components.OauthScopes{ + OauthScopes: []components.OauthScope{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ "crm", }, }, - components.OauthScopes{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ @@ -100,13 +100,13 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re }, }, ServiceID: types.String("close"), - UnifiedApis: []components.UnifiedApis{ - components.UnifiedApis{ + UnifiedApis: []components.ConnectorUnifiedAPI{ + components.ConnectorUnifiedAPI{ ID: components.UnifiedAPIIDCrm.ToPointer(), Name: types.String("File Storage API"), AuthOnly: types.Bool(true), - OauthScopes: []components.ConnectorOauthScopes{ - components.ConnectorOauthScopes{ + OauthScopes: []components.UnifiedAPIOauthScope{ + components.UnifiedAPIOauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), }, @@ -174,7 +174,7 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re }, }, WebhookSupport: &components.WebhookSupport{ - Mode: components.ModeNative.ToPointer(), + Mode: components.WebhookSupportModeNative.ToPointer(), SubscriptionLevel: components.SubscriptionLevelIntegration.ToPointer(), ManagedVia: components.ManagedViaAPI.ToPointer(), }, @@ -203,22 +203,22 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re BlindMapped: types.Bool(true), OauthGrantType: components.ConnectorOauthGrantTypeAuthorizationCode.ToPointer(), OauthCredentialsSource: components.OauthCredentialsSourceIntegration.ToPointer(), - OauthScopes: []components.OauthScopes{ - components.OauthScopes{ + OauthScopes: []components.OauthScope{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ "crm", }, }, - components.OauthScopes{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ "crm", }, }, - components.OauthScopes{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ @@ -236,13 +236,13 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re }, }, ServiceID: types.String("close"), - UnifiedApis: []components.UnifiedApis{ - components.UnifiedApis{ + UnifiedApis: []components.ConnectorUnifiedAPI{ + components.ConnectorUnifiedAPI{ ID: components.UnifiedAPIIDCrm.ToPointer(), Name: types.String("File Storage API"), AuthOnly: types.Bool(true), - OauthScopes: []components.ConnectorOauthScopes{ - components.ConnectorOauthScopes{ + OauthScopes: []components.UnifiedAPIOauthScope{ + components.UnifiedAPIOauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), }, @@ -322,7 +322,7 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re }, }, WebhookSupport: &components.WebhookSupport{ - Mode: components.ModeNative.ToPointer(), + Mode: components.WebhookSupportModeNative.ToPointer(), SubscriptionLevel: components.SubscriptionLevelIntegration.ToPointer(), ManagedVia: components.ManagedViaAPI.ToPointer(), }, @@ -351,15 +351,15 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re BlindMapped: types.Bool(true), OauthGrantType: components.ConnectorOauthGrantTypeAuthorizationCode.ToPointer(), OauthCredentialsSource: components.OauthCredentialsSourceIntegration.ToPointer(), - OauthScopes: []components.OauthScopes{ - components.OauthScopes{ + OauthScopes: []components.OauthScope{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ "crm", }, }, - components.OauthScopes{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ @@ -382,13 +382,13 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re }, }, ServiceID: types.String("close"), - UnifiedApis: []components.UnifiedApis{ - components.UnifiedApis{ + UnifiedApis: []components.ConnectorUnifiedAPI{ + components.ConnectorUnifiedAPI{ ID: components.UnifiedAPIIDCrm.ToPointer(), Name: types.String("File Storage API"), AuthOnly: types.Bool(true), - OauthScopes: []components.ConnectorOauthScopes{ - components.ConnectorOauthScopes{ + OauthScopes: []components.UnifiedAPIOauthScope{ + components.UnifiedAPIOauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), }, @@ -483,7 +483,7 @@ func testConnectorConnectorsAllConnectorConnectorsAll0(w http.ResponseWriter, re }, }, WebhookSupport: &components.WebhookSupport{ - Mode: components.ModeNative.ToPointer(), + Mode: components.WebhookSupportModeNative.ToPointer(), SubscriptionLevel: components.SubscriptionLevelIntegration.ToPointer(), ManagedVia: components.ManagedViaAPI.ToPointer(), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectorsid.go b/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectorsid.go index e8f3309b..2d8ca6ee 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectorsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetconnectorconnectorsid.go @@ -63,22 +63,22 @@ func testConnectorConnectorsOneConnectorConnectorsOne0(w http.ResponseWriter, re BlindMapped: types.Bool(true), OauthGrantType: components.ConnectorOauthGrantTypeAuthorizationCode.ToPointer(), OauthCredentialsSource: components.OauthCredentialsSourceIntegration.ToPointer(), - OauthScopes: []components.OauthScopes{ - components.OauthScopes{ + OauthScopes: []components.OauthScope{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ "crm", }, }, - components.OauthScopes{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ "crm", }, }, - components.OauthScopes{ + components.OauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), DefaultApis: []string{ @@ -101,13 +101,13 @@ func testConnectorConnectorsOneConnectorConnectorsOne0(w http.ResponseWriter, re }, }, ServiceID: types.String("close"), - UnifiedApis: []components.UnifiedApis{ - components.UnifiedApis{ + UnifiedApis: []components.ConnectorUnifiedAPI{ + components.ConnectorUnifiedAPI{ ID: components.UnifiedAPIIDCrm.ToPointer(), Name: types.String("File Storage API"), AuthOnly: types.Bool(true), - OauthScopes: []components.ConnectorOauthScopes{ - components.ConnectorOauthScopes{ + OauthScopes: []components.UnifiedAPIOauthScope{ + components.UnifiedAPIOauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), }, @@ -159,12 +159,12 @@ func testConnectorConnectorsOneConnectorConnectorsOne0(w http.ResponseWriter, re }, }, }, - components.UnifiedApis{ + components.ConnectorUnifiedAPI{ ID: components.UnifiedAPIIDCrm.ToPointer(), Name: types.String("File Storage API"), AuthOnly: types.Bool(true), - OauthScopes: []components.ConnectorOauthScopes{ - components.ConnectorOauthScopes{ + OauthScopes: []components.UnifiedAPIOauthScope{ + components.UnifiedAPIOauthScope{ ID: types.String("contacts:all"), Label: types.String("Read/write on the Contacts resource"), }, @@ -232,7 +232,7 @@ func testConnectorConnectorsOneConnectorConnectorsOne0(w http.ResponseWriter, re }, }, WebhookSupport: &components.WebhookSupport{ - Mode: components.ModeNative.ToPointer(), + Mode: components.WebhookSupportModeNative.ToPointer(), SubscriptionLevel: components.SubscriptionLevelIntegration.ToPointer(), ManagedVia: components.ManagedViaAPI.ToPointer(), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmactivities.go b/src/__tests__/mockserver/internal/handler/pathgetcrmactivities.go index a2fcae4a..b0b509ce 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmactivities.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmactivities.go @@ -79,7 +79,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ Location: types.String("Space"), LocationAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -128,15 +128,15 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -166,8 +166,8 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -175,7 +175,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -187,8 +187,8 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -226,7 +226,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ Location: types.String("Space"), LocationAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -275,7 +275,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -283,7 +283,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -291,7 +291,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOfStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfStr( []string{ "", "", @@ -340,8 +340,8 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -379,7 +379,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ Location: types.String("Space"), LocationAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -428,7 +428,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -436,7 +436,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -498,8 +498,8 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -507,7 +507,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -515,7 +515,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -527,8 +527,8 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -536,7 +536,7 @@ func testCrmActivitiesAllCrmActivitiesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmactivitiesid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmactivitiesid.go index 86e67714..e55589f2 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmactivitiesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmactivitiesid.go @@ -78,7 +78,7 @@ func testCrmActivitiesOneCrmActivitiesOne0(w http.ResponseWriter, req *http.Requ Location: types.String("Space"), LocationAddress: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -127,24 +127,24 @@ func testCrmActivitiesOneCrmActivitiesOne0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -205,8 +205,8 @@ func testCrmActivitiesOneCrmActivitiesOne0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -214,7 +214,7 @@ func testCrmActivitiesOneCrmActivitiesOne0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -226,8 +226,8 @@ func testCrmActivitiesOneCrmActivitiesOne0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcompanies.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcompanies.go index 3635bfdd..7040a22c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcompanies.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcompanies.go @@ -124,7 +124,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -187,7 +187,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -195,8 +195,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -215,8 +215,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -224,7 +224,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -232,7 +232,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -310,7 +310,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -381,10 +381,10 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -404,8 +404,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -413,7 +413,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -425,8 +425,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -438,8 +438,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -525,7 +525,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -551,7 +551,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -577,7 +577,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -656,8 +656,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -676,8 +676,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -685,7 +685,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -697,8 +697,8 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -706,7 +706,7 @@ func testCrmCompaniesAllCrmCompaniesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcompaniesid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcompaniesid.go index f1586a89..50a797d3 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcompaniesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcompaniesid.go @@ -131,7 +131,7 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -157,7 +157,7 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -241,7 +241,7 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -249,7 +249,7 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -269,8 +269,8 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -278,7 +278,7 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -290,8 +290,8 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -299,7 +299,7 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -307,7 +307,7 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -319,8 +319,8 @@ func testCrmCompaniesOneCrmCompaniesOne0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcontacts.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcontacts.go index d75606e4..bd9a5737 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcontacts.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcontacts.go @@ -93,7 +93,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -119,7 +119,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -145,7 +145,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -200,15 +200,15 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -227,8 +227,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -240,8 +240,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -253,8 +253,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -262,7 +262,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -270,7 +270,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -322,7 +322,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -348,7 +348,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -408,7 +408,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -416,10 +416,10 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -438,8 +438,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -447,7 +447,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -459,8 +459,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -472,8 +472,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -530,7 +530,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -613,7 +613,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -632,8 +632,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -645,8 +645,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -654,7 +654,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -666,8 +666,8 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -675,7 +675,7 @@ func testCrmContactsAllCrmContactsAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcontactsid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcontactsid.go index 3fa865e8..7c39d607 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcontactsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcontactsid.go @@ -97,7 +97,7 @@ func testCrmContactsOneCrmContactsOne0(w http.ResponseWriter, req *http.Request) Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -123,7 +123,7 @@ func testCrmContactsOneCrmContactsOne0(w http.ResponseWriter, req *http.Request) }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -201,7 +201,7 @@ func testCrmContactsOneCrmContactsOne0(w http.ResponseWriter, req *http.Request) ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -209,7 +209,7 @@ func testCrmContactsOneCrmContactsOne0(w http.ResponseWriter, req *http.Request) ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -228,8 +228,8 @@ func testCrmContactsOneCrmContactsOne0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -237,7 +237,7 @@ func testCrmContactsOneCrmContactsOne0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -245,7 +245,7 @@ func testCrmContactsOneCrmContactsOne0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemas.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemas.go index b81d0fd9..fbdf3c6c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemas.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemas.go @@ -57,45 +57,45 @@ func testCrmCustomObjectSchemasAllCrmCustomObjectSchemasAll0(w http.ResponseWrit ID: types.String("cos_12345"), Name: types.String("project"), Description: types.String("This schema defines a project custom object"), - Fields: []components.Fields{ - components.Fields{ + Fields: []components.CustomObjectSchemaField{ + components.CustomObjectSchemaField{ ID: types.String("field_123"), Name: types.String("project_name"), Description: types.String("Name of the project"), Type: components.CustomObjectSchemaTypeString.ToPointer(), Required: types.Bool(true), - Options: []components.CustomObjectSchemaOptions{ - components.CustomObjectSchemaOptions{ + Options: []components.CustomObjectSchemaOption{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, }, DefaultValue: types.String("New Project"), }, - components.Fields{ + components.CustomObjectSchemaField{ ID: types.String("field_123"), Name: types.String("project_name"), Description: types.String("Name of the project"), Type: components.CustomObjectSchemaTypeString.ToPointer(), Required: types.Bool(true), - Options: []components.CustomObjectSchemaOptions{ - components.CustomObjectSchemaOptions{ + Options: []components.CustomObjectSchemaOption{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, @@ -112,8 +112,8 @@ func testCrmCustomObjectSchemasAllCrmCustomObjectSchemasAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -129,45 +129,45 @@ func testCrmCustomObjectSchemasAllCrmCustomObjectSchemasAll0(w http.ResponseWrit ID: types.String("cos_12345"), Name: types.String("project"), Description: types.String("This schema defines a project custom object"), - Fields: []components.Fields{ - components.Fields{ + Fields: []components.CustomObjectSchemaField{ + components.CustomObjectSchemaField{ ID: types.String("field_123"), Name: types.String("project_name"), Description: types.String("Name of the project"), Type: components.CustomObjectSchemaTypeString.ToPointer(), Required: types.Bool(true), - Options: []components.CustomObjectSchemaOptions{ - components.CustomObjectSchemaOptions{ + Options: []components.CustomObjectSchemaOption{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, }, DefaultValue: types.String("New Project"), }, - components.Fields{ + components.CustomObjectSchemaField{ ID: types.String("field_123"), Name: types.String("project_name"), Description: types.String("Name of the project"), Type: components.CustomObjectSchemaTypeString.ToPointer(), Required: types.Bool(true), - Options: []components.CustomObjectSchemaOptions{ - components.CustomObjectSchemaOptions{ + Options: []components.CustomObjectSchemaOption{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, @@ -184,8 +184,8 @@ func testCrmCustomObjectSchemasAllCrmCustomObjectSchemasAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -201,45 +201,45 @@ func testCrmCustomObjectSchemasAllCrmCustomObjectSchemasAll0(w http.ResponseWrit ID: types.String("cos_12345"), Name: types.String("project"), Description: types.String("This schema defines a project custom object"), - Fields: []components.Fields{ - components.Fields{ + Fields: []components.CustomObjectSchemaField{ + components.CustomObjectSchemaField{ ID: types.String("field_123"), Name: types.String("project_name"), Description: types.String("Name of the project"), Type: components.CustomObjectSchemaTypeString.ToPointer(), Required: types.Bool(true), - Options: []components.CustomObjectSchemaOptions{ - components.CustomObjectSchemaOptions{ + Options: []components.CustomObjectSchemaOption{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, }, DefaultValue: types.String("New Project"), }, - components.Fields{ + components.CustomObjectSchemaField{ ID: types.String("field_123"), Name: types.String("project_name"), Description: types.String("Name of the project"), Type: components.CustomObjectSchemaTypeString.ToPointer(), Required: types.Bool(true), - Options: []components.CustomObjectSchemaOptions{ - components.CustomObjectSchemaOptions{ + Options: []components.CustomObjectSchemaOption{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, - components.CustomObjectSchemaOptions{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, @@ -256,8 +256,8 @@ func testCrmCustomObjectSchemasAllCrmCustomObjectSchemasAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemasid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemasid.go index b85e970d..2582d1df 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemasid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectschemasid.go @@ -56,15 +56,15 @@ func testCrmCustomObjectSchemasOneCrmCustomObjectSchemasOne0(w http.ResponseWrit ID: types.String("cos_12345"), Name: types.String("project"), Description: types.String("This schema defines a project custom object"), - Fields: []components.Fields{ - components.Fields{ + Fields: []components.CustomObjectSchemaField{ + components.CustomObjectSchemaField{ ID: types.String("field_123"), Name: types.String("project_name"), Description: types.String("Name of the project"), Type: components.CustomObjectSchemaTypeString.ToPointer(), Required: types.Bool(true), - Options: []components.CustomObjectSchemaOptions{ - components.CustomObjectSchemaOptions{ + Options: []components.CustomObjectSchemaOption{ + components.CustomObjectSchemaOption{ Value: types.String("option1"), Label: types.String("Option 1"), }, @@ -81,8 +81,8 @@ func testCrmCustomObjectSchemasOneCrmCustomObjectSchemasOne0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -90,7 +90,7 @@ func testCrmCustomObjectSchemasOneCrmCustomObjectSchemasOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -98,7 +98,7 @@ func testCrmCustomObjectSchemasOneCrmCustomObjectSchemasOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -110,8 +110,8 @@ func testCrmCustomObjectSchemasOneCrmCustomObjectSchemasOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -119,7 +119,7 @@ func testCrmCustomObjectSchemasOneCrmCustomObjectSchemasOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -127,7 +127,7 @@ func testCrmCustomObjectSchemasOneCrmCustomObjectSchemasOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectid.go index 637918ea..9e9bc14a 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectid.go @@ -57,8 +57,8 @@ func testCrmCustomObjectsAllCrmCustomObjectsAll0(w http.ResponseWriter, req *htt ID: types.String("co_12345"), OwnerID: types.String("user_12345"), Name: types.String("project"), - Fields: []components.CustomObjectFields{ - components.CustomObjectFields{ + Fields: []components.CustomObjectField{ + components.CustomObjectField{ Name: types.String("name"), Value: types.String("string"), }, @@ -70,8 +70,8 @@ func testCrmCustomObjectsAllCrmCustomObjectsAll0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -87,8 +87,8 @@ func testCrmCustomObjectsAllCrmCustomObjectsAll0(w http.ResponseWriter, req *htt ID: types.String("co_12345"), OwnerID: types.String("user_12345"), Name: types.String("project"), - Fields: []components.CustomObjectFields{ - components.CustomObjectFields{ + Fields: []components.CustomObjectField{ + components.CustomObjectField{ Name: types.String("name"), Value: types.String("string"), }, @@ -100,8 +100,8 @@ func testCrmCustomObjectsAllCrmCustomObjectsAll0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -117,8 +117,8 @@ func testCrmCustomObjectsAllCrmCustomObjectsAll0(w http.ResponseWriter, req *htt ID: types.String("co_12345"), OwnerID: types.String("user_12345"), Name: types.String("project"), - Fields: []components.CustomObjectFields{ - components.CustomObjectFields{ + Fields: []components.CustomObjectField{ + components.CustomObjectField{ Name: types.String("name"), Value: types.String("string"), }, @@ -130,8 +130,8 @@ func testCrmCustomObjectsAllCrmCustomObjectsAll0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectidid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectidid.go index 98cb1c04..82e96cc0 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectidid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmcustomobjectsobjectidid.go @@ -56,16 +56,16 @@ func testCrmCustomObjectsOneCrmCustomObjectsOne0(w http.ResponseWriter, req *htt ID: types.String("co_12345"), OwnerID: types.String("user_12345"), Name: types.String("project"), - Fields: []components.CustomObjectFields{ - components.CustomObjectFields{ + Fields: []components.CustomObjectField{ + components.CustomObjectField{ Name: types.String("name"), Value: types.String("string"), }, - components.CustomObjectFields{ + components.CustomObjectField{ Name: types.String("name"), Value: types.String("string"), }, - components.CustomObjectFields{ + components.CustomObjectField{ Name: types.String("name"), Value: types.String("string"), }, @@ -77,8 +77,8 @@ func testCrmCustomObjectsOneCrmCustomObjectsOne0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -86,7 +86,7 @@ func testCrmCustomObjectsOneCrmCustomObjectsOne0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -94,7 +94,7 @@ func testCrmCustomObjectsOneCrmCustomObjectsOne0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmleads.go b/src/__tests__/mockserver/internal/handler/pathgetcrmleads.go index 0a04ebb4..c04ffbe9 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmleads.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmleads.go @@ -87,7 +87,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -113,7 +113,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -139,7 +139,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -193,15 +193,15 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -214,8 +214,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -227,8 +227,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -240,8 +240,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -249,7 +249,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -257,7 +257,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -303,7 +303,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -329,7 +329,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -388,7 +388,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -396,10 +396,10 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueArrayOf6( - []components.Six{ - components.Six{}, - components.Six{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionArrayOfCustomFieldValue2( + []components.CustomFieldValue2{ + components.CustomFieldValue2{}, + components.CustomFieldValue2{}, }, )), }, @@ -412,8 +412,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -421,7 +421,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -433,8 +433,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -446,8 +446,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -498,7 +498,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -580,7 +580,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -593,8 +593,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -606,8 +606,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -615,7 +615,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -627,8 +627,8 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -636,7 +636,7 @@ func testCrmLeadsAllCrmLeadsAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmleadsid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmleadsid.go index 1bd8c0f1..601db665 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmleadsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmleadsid.go @@ -91,7 +91,7 @@ func testCrmLeadsOneCrmLeadsOne0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -117,7 +117,7 @@ func testCrmLeadsOneCrmLeadsOne0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -194,7 +194,7 @@ func testCrmLeadsOneCrmLeadsOne0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -202,7 +202,7 @@ func testCrmLeadsOneCrmLeadsOne0(w http.ResponseWriter, req *http.Request) { ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -215,8 +215,8 @@ func testCrmLeadsOneCrmLeadsOne0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -224,7 +224,7 @@ func testCrmLeadsOneCrmLeadsOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -232,7 +232,7 @@ func testCrmLeadsOneCrmLeadsOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmnotes.go b/src/__tests__/mockserver/internal/handler/pathgetcrmnotes.go index 3fae6a56..fc9f20f6 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmnotes.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmnotes.go @@ -70,8 +70,8 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -79,7 +79,7 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -87,7 +87,7 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -99,8 +99,8 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -129,8 +129,8 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -159,8 +159,8 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -168,7 +168,7 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -180,8 +180,8 @@ func testCrmNotesAllCrmNotesAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmnotesid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmnotesid.go index a764cc37..85496a53 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmnotesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmnotesid.go @@ -69,8 +69,8 @@ func testCrmNotesOneCrmNotesOne0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -78,7 +78,7 @@ func testCrmNotesOneCrmNotesOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -90,8 +90,8 @@ func testCrmNotesOneCrmNotesOne0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -99,7 +99,7 @@ func testCrmNotesOneCrmNotesOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -111,8 +111,8 @@ func testCrmNotesOneCrmNotesOne0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -120,7 +120,7 @@ func testCrmNotesOneCrmNotesOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmopportunities.go b/src/__tests__/mockserver/internal/handler/pathgetcrmopportunities.go index 1cf9c488..cde58c95 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmopportunities.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmopportunities.go @@ -92,15 +92,15 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -118,8 +118,8 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -127,7 +127,7 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -178,7 +178,7 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -186,8 +186,8 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -204,8 +204,8 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -213,7 +213,7 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -221,7 +221,7 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -272,15 +272,15 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -298,8 +298,8 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -307,7 +307,7 @@ func testCrmOpportunitiesAllCrmOpportunitiesAll0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmopportunitiesid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmopportunitiesid.go index 2d090858..4eec72a2 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmopportunitiesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmopportunitiesid.go @@ -91,24 +91,24 @@ func testCrmOpportunitiesOneCrmOpportunitiesOne0(w http.ResponseWriter, req *htt ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, components.CustomField{ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -125,8 +125,8 @@ func testCrmOpportunitiesOneCrmOpportunitiesOne0(w http.ResponseWriter, req *htt PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -134,7 +134,7 @@ func testCrmOpportunitiesOneCrmOpportunitiesOne0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -146,8 +146,8 @@ func testCrmOpportunitiesOneCrmOpportunitiesOne0(w http.ResponseWriter, req *htt }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -155,7 +155,7 @@ func testCrmOpportunitiesOneCrmOpportunitiesOne0(w http.ResponseWriter, req *htt }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -167,8 +167,8 @@ func testCrmOpportunitiesOneCrmOpportunitiesOne0(w http.ResponseWriter, req *htt }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmpipelines.go b/src/__tests__/mockserver/internal/handler/pathgetcrmpipelines.go index 386afaff..3ec9b40c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmpipelines.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmpipelines.go @@ -61,15 +61,15 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques Active: types.Bool(false), DisplayOrder: types.Int64(1), WinProbabilityEnabled: types.Bool(true), - Stages: []components.Stages{ - components.Stages{ + Stages: []components.PipelineStage{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), WinProbability: types.Int64(50), DisplayOrder: types.Int64(1), }, - components.Stages{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), @@ -82,8 +82,8 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -95,8 +95,8 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -108,8 +108,8 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -129,15 +129,15 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques Active: types.Bool(false), DisplayOrder: types.Int64(1), WinProbabilityEnabled: types.Bool(true), - Stages: []components.Stages{ - components.Stages{ + Stages: []components.PipelineStage{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), WinProbability: types.Int64(50), DisplayOrder: types.Int64(1), }, - components.Stages{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), @@ -150,8 +150,8 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -163,8 +163,8 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -172,7 +172,7 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -180,7 +180,7 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -200,8 +200,8 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques Active: types.Bool(false), DisplayOrder: types.Int64(1), WinProbabilityEnabled: types.Bool(true), - Stages: []components.Stages{ - components.Stages{ + Stages: []components.PipelineStage{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), @@ -214,8 +214,8 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -223,7 +223,7 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -231,7 +231,7 @@ func testCrmPipelinesAllCrmPipelinesAll0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmpipelinesid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmpipelinesid.go index e8a3c675..a00ceaf2 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmpipelinesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmpipelinesid.go @@ -60,22 +60,22 @@ func testCrmPipelinesOneCrmPipelinesOne0(w http.ResponseWriter, req *http.Reques Active: types.Bool(false), DisplayOrder: types.Int64(1), WinProbabilityEnabled: types.Bool(true), - Stages: []components.Stages{ - components.Stages{ + Stages: []components.PipelineStage{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), WinProbability: types.Int64(50), DisplayOrder: types.Int64(1), }, - components.Stages{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), WinProbability: types.Int64(50), DisplayOrder: types.Int64(1), }, - components.Stages{ + components.PipelineStage{ ID: types.String("contractsent"), Name: types.String("Contract Sent"), Value: types.String("CONTRACT_SENT"), @@ -88,8 +88,8 @@ func testCrmPipelinesOneCrmPipelinesOne0(w http.ResponseWriter, req *http.Reques PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -97,7 +97,7 @@ func testCrmPipelinesOneCrmPipelinesOne0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -109,8 +109,8 @@ func testCrmPipelinesOneCrmPipelinesOne0(w http.ResponseWriter, req *http.Reques }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -118,7 +118,7 @@ func testCrmPipelinesOneCrmPipelinesOne0(w http.ResponseWriter, req *http.Reques }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmusers.go b/src/__tests__/mockserver/internal/handler/pathgetcrmusers.go index 92cf577a..ca3ef4df 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmusers.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmusers.go @@ -52,8 +52,8 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { Service: "zoho-crm", Resource: "users", Operation: "all", - Data: []components.User{ - components.User{ + Data: []components.UserOutput{ + components.UserOutput{ ID: types.String("12345"), ParentID: types.String("54321"), Username: types.String("masterofcoin"), @@ -70,7 +70,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -96,7 +96,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -153,8 +153,8 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -166,7 +166,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.User{ + components.UserOutput{ ID: types.String("12345"), ParentID: types.String("54321"), Username: types.String("masterofcoin"), @@ -183,7 +183,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -209,7 +209,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -258,8 +258,8 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -271,8 +271,8 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -284,8 +284,8 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -293,7 +293,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -301,7 +301,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -313,7 +313,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.User{ + components.UserOutput{ ID: types.String("12345"), ParentID: types.String("54321"), Username: types.String("masterofcoin"), @@ -330,7 +330,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -356,7 +356,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -405,8 +405,8 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -414,7 +414,7 @@ func testCrmUsersAllCrmUsersAll0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetcrmusersid.go b/src/__tests__/mockserver/internal/handler/pathgetcrmusersid.go index 097087a2..60034043 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetcrmusersid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetcrmusersid.go @@ -52,7 +52,7 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { Service: "zoho-crm", Resource: "companies", Operation: "one", - Data: components.User{ + Data: components.UserOutput{ ID: types.String("12345"), ParentID: types.String("54321"), Username: types.String("masterofcoin"), @@ -69,7 +69,7 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -95,7 +95,7 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -121,7 +121,7 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -181,8 +181,8 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -190,7 +190,7 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -198,7 +198,7 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -210,8 +210,8 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -219,7 +219,7 @@ func testCrmUsersOneCrmUsersOne0(w http.ResponseWriter, req *http.Request) { }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetecommercecustomers.go b/src/__tests__/mockserver/internal/handler/pathgetecommercecustomers.go index 1a5393bb..78e59d58 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetecommercecustomers.go +++ b/src/__tests__/mockserver/internal/handler/pathgetecommercecustomers.go @@ -59,7 +59,7 @@ func testEcommerceCustomersAllEcommerceCustomersAll0(w http.ResponseWriter, req FirstName: types.String("John"), LastName: types.String("Doe"), CompanyName: types.String("Acme Inc."), - Status: components.CustomerStatusActive.ToPointer(), + Status: components.EcommerceCustomerStatusCustomerStatusActive.ToPointer(), Currency: components.CurrencyUsd.ToPointer(), Emails: []components.Email{ components.Email{ @@ -99,8 +99,8 @@ func testEcommerceCustomersAllEcommerceCustomersAll0(w http.ResponseWriter, req Type: components.PhoneNumberTypePrimary.ToPointer(), }, }, - Addresses: []components.Addresses{ - components.Addresses{ + Addresses: []components.EcommerceCustomerAddress{ + components.EcommerceCustomerAddress{ Type: components.EcommerceCustomerTypeBilling.ToPointer(), ID: types.String("12345"), Line1: types.String("Main street"), @@ -127,7 +127,7 @@ func testEcommerceCustomersAllEcommerceCustomersAll0(w http.ResponseWriter, req FirstName: types.String("John"), LastName: types.String("Doe"), CompanyName: types.String("Acme Inc."), - Status: components.CustomerStatusActive.ToPointer(), + Status: components.EcommerceCustomerStatusCustomerStatusActive.ToPointer(), Currency: components.CurrencyUsd.ToPointer(), Emails: []components.Email{ components.Email{ @@ -154,8 +154,8 @@ func testEcommerceCustomersAllEcommerceCustomersAll0(w http.ResponseWriter, req Type: components.PhoneNumberTypePrimary.ToPointer(), }, }, - Addresses: []components.Addresses{ - components.Addresses{ + Addresses: []components.EcommerceCustomerAddress{ + components.EcommerceCustomerAddress{ Type: components.EcommerceCustomerTypeBilling.ToPointer(), ID: types.String("12345"), Line1: types.String("Main street"), @@ -165,7 +165,7 @@ func testEcommerceCustomersAllEcommerceCustomersAll0(w http.ResponseWriter, req PostalCode: types.String("12345"), Country: types.String("US"), }, - components.Addresses{ + components.EcommerceCustomerAddress{ Type: components.EcommerceCustomerTypeBilling.ToPointer(), ID: types.String("12345"), Line1: types.String("Main street"), @@ -192,7 +192,7 @@ func testEcommerceCustomersAllEcommerceCustomersAll0(w http.ResponseWriter, req FirstName: types.String("John"), LastName: types.String("Doe"), CompanyName: types.String("Acme Inc."), - Status: components.CustomerStatusActive.ToPointer(), + Status: components.EcommerceCustomerStatusCustomerStatusActive.ToPointer(), Currency: components.CurrencyUsd.ToPointer(), Emails: []components.Email{ components.Email{ @@ -221,8 +221,8 @@ func testEcommerceCustomersAllEcommerceCustomersAll0(w http.ResponseWriter, req Type: components.PhoneNumberTypePrimary.ToPointer(), }, }, - Addresses: []components.Addresses{ - components.Addresses{ + Addresses: []components.EcommerceCustomerAddress{ + components.EcommerceCustomerAddress{ Type: components.EcommerceCustomerTypeBilling.ToPointer(), ID: types.String("12345"), Line1: types.String("Main street"), diff --git a/src/__tests__/mockserver/internal/handler/pathgetecommercecustomersid.go b/src/__tests__/mockserver/internal/handler/pathgetecommercecustomersid.go index 9950a6d0..46ae3e4f 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetecommercecustomersid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetecommercecustomersid.go @@ -58,7 +58,7 @@ func testEcommerceCustomersOneEcommerceCustomersOne0(w http.ResponseWriter, req FirstName: types.String("John"), LastName: types.String("Doe"), CompanyName: types.String("Acme Inc."), - Status: components.CustomerStatusActive.ToPointer(), + Status: components.EcommerceCustomerStatusCustomerStatusActive.ToPointer(), Currency: components.CurrencyUsd.ToPointer(), Emails: []components.Email{ components.Email{ @@ -95,8 +95,8 @@ func testEcommerceCustomersOneEcommerceCustomersOne0(w http.ResponseWriter, req Type: components.PhoneNumberTypePrimary.ToPointer(), }, }, - Addresses: []components.Addresses{ - components.Addresses{ + Addresses: []components.EcommerceCustomerAddress{ + components.EcommerceCustomerAddress{ Type: components.EcommerceCustomerTypeBilling.ToPointer(), ID: types.String("12345"), Line1: types.String("Main street"), @@ -106,7 +106,7 @@ func testEcommerceCustomersOneEcommerceCustomersOne0(w http.ResponseWriter, req PostalCode: types.String("12345"), Country: types.String("US"), }, - components.Addresses{ + components.EcommerceCustomerAddress{ Type: components.EcommerceCustomerTypeBilling.ToPointer(), ID: types.String("12345"), Line1: types.String("Main street"), diff --git a/src/__tests__/mockserver/internal/handler/pathgetecommerceorders.go b/src/__tests__/mockserver/internal/handler/pathgetecommerceorders.go index ba0e9da3..5fad7bd4 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetecommerceorders.go +++ b/src/__tests__/mockserver/internal/handler/pathgetecommerceorders.go @@ -154,13 +154,13 @@ func testEcommerceOrdersAllEcommerceOrdersAll0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), @@ -289,13 +289,13 @@ func testEcommerceOrdersAllEcommerceOrdersAll0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), @@ -330,8 +330,8 @@ func testEcommerceOrdersAllEcommerceOrdersAll0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), @@ -361,13 +361,13 @@ func testEcommerceOrdersAllEcommerceOrdersAll0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), @@ -513,8 +513,8 @@ func testEcommerceOrdersAllEcommerceOrdersAll0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), @@ -544,18 +544,18 @@ func testEcommerceOrdersAllEcommerceOrdersAll0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), diff --git a/src/__tests__/mockserver/internal/handler/pathgetecommerceordersid.go b/src/__tests__/mockserver/internal/handler/pathgetecommerceordersid.go index df02f81e..ca2d17b3 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetecommerceordersid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetecommerceordersid.go @@ -161,13 +161,13 @@ func testEcommerceOrdersOneEcommerceOrdersOne0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), @@ -202,8 +202,8 @@ func testEcommerceOrdersOneEcommerceOrdersOne0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), @@ -233,18 +233,18 @@ func testEcommerceOrdersOneEcommerceOrdersOne0(w http.ResponseWriter, req *http. Sku: types.String("MBP123-16GB-SILVER-13"), Name: types.String("Midnight 16inch MacBook Pro"), Description: types.String("Powerful and portable, the MacBook Pro is perfect for professionals and creatives."), - Options: []components.Options{ - components.Options{ + Options: []components.EcommerceOrderLineItemOption{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.Options{ + components.EcommerceOrderLineItemOption{ ID: types.String("jkl012"), Name: types.String("Color"), Value: types.String("Silver"), diff --git a/src/__tests__/mockserver/internal/handler/pathgetecommerceproducts.go b/src/__tests__/mockserver/internal/handler/pathgetecommerceproducts.go index 1c5e57ad..d1abf33d 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetecommerceproducts.go +++ b/src/__tests__/mockserver/internal/handler/pathgetecommerceproducts.go @@ -61,34 +61,34 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h Price: types.String("1999.99"), Sku: types.String("MBP123"), InventoryQuantity: types.String("10"), - Images: []components.Images{ - components.Images{ + Images: []components.Image{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.Images{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, }, Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductOptions{ - components.EcommerceProductOptions{ + Options: []components.EcommerceProductOption{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ types.String("Red"), }, }, - components.EcommerceProductOptions{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ types.String("Red"), }, }, - components.EcommerceProductOptions{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ @@ -96,8 +96,8 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h }, }, }, - Variants: []components.Variants{ - components.Variants{ + Variants: []components.Variant{ + components.Variant{ ID: types.String("1"), Name: types.String("Midnight 16inch MacBook Pro"), Price: types.String("1999.99"), @@ -105,15 +105,15 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h InventoryQuantity: types.String("5"), Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductVariantsOptions{ - components.EcommerceProductVariantsOptions{ + Options: []components.VariantOption{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, }, - Images: []components.EcommerceProductImages{ - components.EcommerceProductImages{ + Images: []components.VariantImage{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, @@ -123,12 +123,12 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h Tags: []*string{ types.String("Apple"), }, - Categories: []components.EcommerceProductCategories{ - components.EcommerceProductCategories{ + Categories: []components.EcommerceProductCategory{ + components.EcommerceProductCategory{ ID: types.String("12345"), Name: types.String("Laptops"), }, - components.EcommerceProductCategories{ + components.EcommerceProductCategory{ ID: types.String("12345"), Name: types.String("Laptops"), }, @@ -144,20 +144,20 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h Price: types.String("1999.99"), Sku: types.String("MBP123"), InventoryQuantity: types.String("10"), - Images: []components.Images{ - components.Images{ + Images: []components.Image{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.Images{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, }, Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductOptions{ - components.EcommerceProductOptions{ + Options: []components.EcommerceProductOption{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ @@ -165,8 +165,8 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h }, }, }, - Variants: []components.Variants{ - components.Variants{ + Variants: []components.Variant{ + components.Variant{ ID: types.String("1"), Name: types.String("Midnight 16inch MacBook Pro"), Price: types.String("1999.99"), @@ -174,21 +174,21 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h InventoryQuantity: types.String("5"), Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductVariantsOptions{ - components.EcommerceProductVariantsOptions{ + Options: []components.VariantOption{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, }, - Images: []components.EcommerceProductImages{ - components.EcommerceProductImages{ + Images: []components.VariantImage{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, }, }, - components.Variants{ + components.Variant{ ID: types.String("1"), Name: types.String("Midnight 16inch MacBook Pro"), Price: types.String("1999.99"), @@ -196,35 +196,35 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h InventoryQuantity: types.String("5"), Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductVariantsOptions{ - components.EcommerceProductVariantsOptions{ + Options: []components.VariantOption{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.EcommerceProductVariantsOptions{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.EcommerceProductVariantsOptions{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, }, - Images: []components.EcommerceProductImages{ - components.EcommerceProductImages{ + Images: []components.VariantImage{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.EcommerceProductImages{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, }, }, - components.Variants{ + components.Variant{ ID: types.String("1"), Name: types.String("Midnight 16inch MacBook Pro"), Price: types.String("1999.99"), @@ -232,20 +232,20 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h InventoryQuantity: types.String("5"), Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductVariantsOptions{ - components.EcommerceProductVariantsOptions{ + Options: []components.VariantOption{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.EcommerceProductVariantsOptions{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, }, - Images: []components.EcommerceProductImages{ - components.EcommerceProductImages{ + Images: []components.VariantImage{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, @@ -255,8 +255,8 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h Tags: []*string{ types.String("Apple"), }, - Categories: []components.EcommerceProductCategories{ - components.EcommerceProductCategories{ + Categories: []components.EcommerceProductCategory{ + components.EcommerceProductCategory{ ID: types.String("12345"), Name: types.String("Laptops"), }, @@ -272,27 +272,27 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h Price: types.String("1999.99"), Sku: types.String("MBP123"), InventoryQuantity: types.String("10"), - Images: []components.Images{ - components.Images{ + Images: []components.Image{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.Images{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, }, Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductOptions{ - components.EcommerceProductOptions{ + Options: []components.EcommerceProductOption{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ types.String("Red"), }, }, - components.EcommerceProductOptions{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ @@ -300,8 +300,8 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h }, }, }, - Variants: []components.Variants{ - components.Variants{ + Variants: []components.Variant{ + components.Variant{ ID: types.String("1"), Name: types.String("Midnight 16inch MacBook Pro"), Price: types.String("1999.99"), @@ -309,29 +309,29 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h InventoryQuantity: types.String("5"), Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductVariantsOptions{ - components.EcommerceProductVariantsOptions{ + Options: []components.VariantOption{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.EcommerceProductVariantsOptions{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.EcommerceProductVariantsOptions{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, }, - Images: []components.EcommerceProductImages{ - components.EcommerceProductImages{ + Images: []components.VariantImage{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.EcommerceProductImages{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, @@ -341,16 +341,16 @@ func testEcommerceProductsAllEcommerceProductsAll0(w http.ResponseWriter, req *h Tags: []*string{ types.String("Apple"), }, - Categories: []components.EcommerceProductCategories{ - components.EcommerceProductCategories{ + Categories: []components.EcommerceProductCategory{ + components.EcommerceProductCategory{ ID: types.String("12345"), Name: types.String("Laptops"), }, - components.EcommerceProductCategories{ + components.EcommerceProductCategory{ ID: types.String("12345"), Name: types.String("Laptops"), }, - components.EcommerceProductCategories{ + components.EcommerceProductCategory{ ID: types.String("12345"), Name: types.String("Laptops"), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetecommerceproductsid.go b/src/__tests__/mockserver/internal/handler/pathgetecommerceproductsid.go index 653a174b..4ea3ebc6 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetecommerceproductsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetecommerceproductsid.go @@ -60,31 +60,31 @@ func testEcommerceProductsOneEcommerceProductsOne0(w http.ResponseWriter, req *h Price: types.String("1999.99"), Sku: types.String("MBP123"), InventoryQuantity: types.String("10"), - Images: []components.Images{ - components.Images{ + Images: []components.Image{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.Images{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.Images{ + components.Image{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, }, Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductOptions{ - components.EcommerceProductOptions{ + Options: []components.EcommerceProductOption{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ types.String("Red"), }, }, - components.EcommerceProductOptions{ + components.EcommerceProductOption{ ID: types.String("1"), Name: types.String("Color"), Values: []*string{ @@ -92,8 +92,8 @@ func testEcommerceProductsOneEcommerceProductsOne0(w http.ResponseWriter, req *h }, }, }, - Variants: []components.Variants{ - components.Variants{ + Variants: []components.Variant{ + components.Variant{ ID: types.String("1"), Name: types.String("Midnight 16inch MacBook Pro"), Price: types.String("1999.99"), @@ -101,34 +101,34 @@ func testEcommerceProductsOneEcommerceProductsOne0(w http.ResponseWriter, req *h InventoryQuantity: types.String("5"), Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductVariantsOptions{ - components.EcommerceProductVariantsOptions{ + Options: []components.VariantOption{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.EcommerceProductVariantsOptions{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, }, - Images: []components.EcommerceProductImages{ - components.EcommerceProductImages{ + Images: []components.VariantImage{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.EcommerceProductImages{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.EcommerceProductImages{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, }, }, - components.Variants{ + components.Variant{ ID: types.String("1"), Name: types.String("Midnight 16inch MacBook Pro"), Price: types.String("1999.99"), @@ -136,24 +136,24 @@ func testEcommerceProductsOneEcommerceProductsOne0(w http.ResponseWriter, req *h InventoryQuantity: types.String("5"), Weight: types.String("1.25"), WeightUnit: types.String("lb"), - Options: []components.EcommerceProductVariantsOptions{ - components.EcommerceProductVariantsOptions{ + Options: []components.VariantOption{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, - components.EcommerceProductVariantsOptions{ + components.VariantOption{ ID: types.String("1"), Name: types.String("Color"), Value: types.String("Silver"), }, }, - Images: []components.EcommerceProductImages{ - components.EcommerceProductImages{ + Images: []components.VariantImage{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, - components.EcommerceProductImages{ + components.VariantImage{ ID: types.String("12345"), URL: types.String("https://example.com/macbook-pro.jpg"), }, @@ -163,8 +163,8 @@ func testEcommerceProductsOneEcommerceProductsOne0(w http.ResponseWriter, req *h Tags: []*string{ types.String("Apple"), }, - Categories: []components.EcommerceProductCategories{ - components.EcommerceProductCategories{ + Categories: []components.EcommerceProductCategory{ + components.EcommerceProductCategory{ ID: types.String("12345"), Name: types.String("Laptops"), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroups.go b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroups.go index d851ea2e..e79b6d5d 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroups.go +++ b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroups.go @@ -65,8 +65,8 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -74,7 +74,7 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -82,7 +82,7 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -94,8 +94,8 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -119,8 +119,8 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -144,8 +144,8 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -153,7 +153,7 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -165,8 +165,8 @@ func testFileStorageDriveGroupsAllFileStorageDriveGroupsAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroupsid.go b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroupsid.go index b2b62050..e40da02f 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroupsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivegroupsid.go @@ -64,8 +64,8 @@ func testFileStorageDriveGroupsOneFileStorageDriveGroupsOne0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -73,7 +73,7 @@ func testFileStorageDriveGroupsOneFileStorageDriveGroupsOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -85,8 +85,8 @@ func testFileStorageDriveGroupsOneFileStorageDriveGroupsOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -94,7 +94,7 @@ func testFileStorageDriveGroupsOneFileStorageDriveGroupsOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -106,8 +106,8 @@ func testFileStorageDriveGroupsOneFileStorageDriveGroupsOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -115,7 +115,7 @@ func testFileStorageDriveGroupsOneFileStorageDriveGroupsOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrives.go b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrives.go index 4f87aa9f..1c4e6e0b 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrives.go +++ b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrives.go @@ -64,8 +64,8 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -73,7 +73,7 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -81,7 +81,7 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -93,8 +93,8 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -117,8 +117,8 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -141,8 +141,8 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -150,7 +150,7 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -162,8 +162,8 @@ func testFileStorageDrivesAllFileStorageDrivesAll0(w http.ResponseWriter, req *h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivesid.go b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivesid.go index 79a7e9eb..ce7e0ba2 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetfilestoragedrivesid.go @@ -63,8 +63,8 @@ func testFileStorageDrivesOneFileStorageDrivesOne0(w http.ResponseWriter, req *h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -72,7 +72,7 @@ func testFileStorageDrivesOneFileStorageDrivesOne0(w http.ResponseWriter, req *h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -84,8 +84,8 @@ func testFileStorageDrivesOneFileStorageDrivesOne0(w http.ResponseWriter, req *h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -93,7 +93,7 @@ func testFileStorageDrivesOneFileStorageDrivesOne0(w http.ResponseWriter, req *h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -105,8 +105,8 @@ func testFileStorageDrivesOneFileStorageDrivesOne0(w http.ResponseWriter, req *h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -114,7 +114,7 @@ func testFileStorageDrivesOneFileStorageDrivesOne0(w http.ResponseWriter, req *h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinks.go b/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinks.go index c08d6914..823e64af 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinks.go +++ b/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinks.go @@ -52,8 +52,8 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit Service: "dropbox", Resource: "Shared Links", Operation: "all", - Data: []components.SharedLink{ - components.SharedLink{ + Data: []components.SharedLinkOutput{ + components.SharedLinkOutput{ URL: types.String("https://www.box.com/s/vspke7y05sb214wjokpk"), DownloadURL: types.String("https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg"), Target: &components.SharedLinkTarget{ @@ -68,8 +68,8 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -77,7 +77,7 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -85,7 +85,7 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -97,8 +97,8 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -110,7 +110,7 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit }, }, }, - components.SharedLink{ + components.SharedLinkOutput{ URL: types.String("https://www.box.com/s/vspke7y05sb214wjokpk"), DownloadURL: types.String("https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg"), Target: &components.SharedLinkTarget{ @@ -125,8 +125,8 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -138,7 +138,7 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit }, }, }, - components.SharedLink{ + components.SharedLinkOutput{ URL: types.String("https://www.box.com/s/vspke7y05sb214wjokpk"), DownloadURL: types.String("https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg"), Target: &components.SharedLinkTarget{ @@ -153,8 +153,8 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -162,7 +162,7 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -174,8 +174,8 @@ func testFileStorageSharedLinksAllFileStorageSharedLinksAll0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinksid.go b/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinksid.go index aaa54ded..7b918e08 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinksid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetfilestoragesharedlinksid.go @@ -52,7 +52,7 @@ func testFileStorageSharedLinksOneFileStorageSharedLinksOne0(w http.ResponseWrit Service: "dropbox", Resource: "Shared Links", Operation: "one", - Data: components.SharedLink{ + Data: components.SharedLinkOutput{ URL: types.String("https://www.box.com/s/vspke7y05sb214wjokpk"), DownloadURL: types.String("https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg"), Target: &components.SharedLinkTarget{ @@ -67,8 +67,8 @@ func testFileStorageSharedLinksOneFileStorageSharedLinksOne0(w http.ResponseWrit PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -76,7 +76,7 @@ func testFileStorageSharedLinksOneFileStorageSharedLinksOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -88,8 +88,8 @@ func testFileStorageSharedLinksOneFileStorageSharedLinksOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -97,7 +97,7 @@ func testFileStorageSharedLinksOneFileStorageSharedLinksOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -109,8 +109,8 @@ func testFileStorageSharedLinksOneFileStorageSharedLinksOne0(w http.ResponseWrit }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -118,7 +118,7 @@ func testFileStorageSharedLinksOneFileStorageSharedLinksOne0(w http.ResponseWrit }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethriscompanies.go b/src/__tests__/mockserver/internal/handler/pathgethriscompanies.go index 1722a127..299e8f56 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethriscompanies.go +++ b/src/__tests__/mockserver/internal/handler/pathgethriscompanies.go @@ -64,7 +64,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -90,7 +90,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -164,8 +164,8 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -173,7 +173,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -196,7 +196,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -222,7 +222,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -290,8 +290,8 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -299,7 +299,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -307,7 +307,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -330,7 +330,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -356,7 +356,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -422,8 +422,8 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -431,7 +431,7 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -443,8 +443,8 @@ func testHrisCompaniesAllHrisCompaniesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethriscompaniesid.go b/src/__tests__/mockserver/internal/handler/pathgethriscompaniesid.go index d1ae65a1..df65c3d7 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethriscompaniesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgethriscompaniesid.go @@ -63,7 +63,7 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -89,7 +89,7 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -115,7 +115,7 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -191,8 +191,8 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -200,7 +200,7 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -212,8 +212,8 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -221,7 +221,7 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -233,8 +233,8 @@ func testHrisCompaniesOneHrisCompaniesOne0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethrisdepartments.go b/src/__tests__/mockserver/internal/handler/pathgethrisdepartments.go index 328e5c63..c2a24009 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethrisdepartments.go +++ b/src/__tests__/mockserver/internal/handler/pathgethrisdepartments.go @@ -66,8 +66,8 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -75,7 +75,7 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -83,7 +83,7 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -95,8 +95,8 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -121,8 +121,8 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -147,8 +147,8 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -156,7 +156,7 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -168,8 +168,8 @@ func testHrisDepartmentsAllHrisDepartmentsAll0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethrisdepartmentsid.go b/src/__tests__/mockserver/internal/handler/pathgethrisdepartmentsid.go index 33939a72..24ee6f7e 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethrisdepartmentsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgethrisdepartmentsid.go @@ -65,8 +65,8 @@ func testHrisDepartmentsOneHrisDepartmentsOne0(w http.ResponseWriter, req *http. PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -74,7 +74,7 @@ func testHrisDepartmentsOneHrisDepartmentsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -86,8 +86,8 @@ func testHrisDepartmentsOneHrisDepartmentsOne0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -95,7 +95,7 @@ func testHrisDepartmentsOneHrisDepartmentsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -107,8 +107,8 @@ func testHrisDepartmentsOneHrisDepartmentsOne0(w http.ResponseWriter, req *http. }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -116,7 +116,7 @@ func testHrisDepartmentsOneHrisDepartmentsOne0(w http.ResponseWriter, req *http. }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethrisemployees.go b/src/__tests__/mockserver/internal/handler/pathgethrisemployees.go index dc69697a..17ac9dcc 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethrisemployees.go +++ b/src/__tests__/mockserver/internal/handler/pathgethrisemployees.go @@ -139,7 +139,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -180,7 +180,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -220,7 +220,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -246,7 +246,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -272,7 +272,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -319,8 +319,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -373,8 +373,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -386,8 +386,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -399,8 +399,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -408,7 +408,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -416,7 +416,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -514,7 +514,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -555,7 +555,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -595,7 +595,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -621,7 +621,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -668,7 +668,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -676,7 +676,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -748,8 +748,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -757,7 +757,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -769,8 +769,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -782,8 +782,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -881,7 +881,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -922,7 +922,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -963,7 +963,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -1003,7 +1003,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -1071,7 +1071,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -1079,7 +1079,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -1087,8 +1087,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueFour( - components.Four{}, + Value: types.Pointer(components.CreateCustomFieldValueUnionCustomFieldValue1( + components.CustomFieldValue1{}, )), }, }, @@ -1154,8 +1154,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1163,7 +1163,7 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -1175,8 +1175,8 @@ func testHrisEmployeesAllHrisEmployeesAll0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethrisemployeesid.go b/src/__tests__/mockserver/internal/handler/pathgethrisemployeesid.go index df42dd65..7dba27ab 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethrisemployeesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgethrisemployeesid.go @@ -138,7 +138,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -179,7 +179,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -220,7 +220,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -260,7 +260,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -286,7 +286,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -346,7 +346,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -354,7 +354,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueBoolean( + Value: types.Pointer(components.CreateCustomFieldValueUnionBoolean( true, )), }, @@ -362,7 +362,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueNumber( + Value: types.Pointer(components.CreateCustomFieldValueUnionNumber( 10, )), }, @@ -437,8 +437,8 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -446,7 +446,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -454,7 +454,7 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -466,8 +466,8 @@ func testHrisEmployeesOneHrisEmployeesOne0(w http.ResponseWriter, req *http.Requ }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethrisschedulesemployeesemployeeid.go b/src/__tests__/mockserver/internal/handler/pathgethrisschedulesemployeesemployeeid.go index f49a25f6..4fbf5931 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethrisschedulesemployeesemployeeid.go +++ b/src/__tests__/mockserver/internal/handler/pathgethrisschedulesemployeesemployeeid.go @@ -139,7 +139,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -180,7 +180,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -221,7 +221,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter Status: components.EmployeeJobStatusActive.ToPointer(), Location: &components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -261,7 +261,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter Addresses: []components.Address{ components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -287,7 +287,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter }, components.Address{ ID: types.String("123"), - Type: components.TypePrimary.ToPointer(), + Type: components.AddressTypePrimary.ToPointer(), String: types.String("25 Spring Street, Blackburn, VIC 3130"), Name: types.String("HQ US"), Line1: types.String("Main street"), @@ -350,7 +350,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter ID: types.String("2389328923893298"), Name: types.String("employee_level"), Description: types.String("Employee Level"), - Value: types.Pointer(components.CreateValueStr( + Value: types.Pointer(components.CreateCustomFieldValueUnionStr( "Uses Salesforce and Marketo", )), }, @@ -417,8 +417,8 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -426,7 +426,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -434,7 +434,7 @@ func testHrisEmployeeSchedulesAllHrisEmployeeSchedulesAll0(w http.ResponseWriter }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequests.go b/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequests.go index 9de9d605..8e1afe94 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequests.go +++ b/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequests.go @@ -57,7 +57,7 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re ID: types.String("12345"), EmployeeID: types.String("12345"), PolicyID: types.String("12345"), - Status: components.TimeOffRequestStatusStatusApproved.ToPointer(), + Status: components.TimeOffRequestStatusApproved.ToPointer(), Description: types.String("Enjoying some sun."), StartDate: types.String("2022-04-01"), EndDate: types.String("2022-04-01"), @@ -78,8 +78,8 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -87,7 +87,7 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -95,7 +95,7 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -107,8 +107,8 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -125,7 +125,7 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re ID: types.String("12345"), EmployeeID: types.String("12345"), PolicyID: types.String("12345"), - Status: components.TimeOffRequestStatusStatusApproved.ToPointer(), + Status: components.TimeOffRequestStatusApproved.ToPointer(), Description: types.String("Enjoying some sun."), StartDate: types.String("2022-04-01"), EndDate: types.String("2022-04-01"), @@ -146,8 +146,8 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -164,7 +164,7 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re ID: types.String("12345"), EmployeeID: types.String("12345"), PolicyID: types.String("12345"), - Status: components.TimeOffRequestStatusStatusApproved.ToPointer(), + Status: components.TimeOffRequestStatusApproved.ToPointer(), Description: types.String("Enjoying some sun."), StartDate: types.String("2022-04-01"), EndDate: types.String("2022-04-01"), @@ -185,8 +185,8 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -194,7 +194,7 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -206,8 +206,8 @@ func testHrisTimeOffRequestsAllHrisTimeOffRequestsAll0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequestsemployeesemployeeidtimeoffrequestsid.go b/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequestsemployeesemployeeidtimeoffrequestsid.go index 4a88e28b..ae0e3667 100644 --- a/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequestsemployeesemployeeidtimeoffrequestsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgethristimeoffrequestsemployeesemployeeidtimeoffrequestsid.go @@ -56,7 +56,7 @@ func testHrisTimeOffRequestsOneHrisTimeOffRequestsOne0(w http.ResponseWriter, re ID: types.String("12345"), EmployeeID: types.String("12345"), PolicyID: types.String("12345"), - Status: components.TimeOffRequestStatusStatusApproved.ToPointer(), + Status: components.TimeOffRequestStatusApproved.ToPointer(), Description: types.String("Enjoying some sun."), StartDate: types.String("2022-04-01"), EndDate: types.String("2022-04-01"), @@ -77,8 +77,8 @@ func testHrisTimeOffRequestsOneHrisTimeOffRequestsOne0(w http.ResponseWriter, re PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -86,7 +86,7 @@ func testHrisTimeOffRequestsOneHrisTimeOffRequestsOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -98,8 +98,8 @@ func testHrisTimeOffRequestsOneHrisTimeOffRequestsOne0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -107,7 +107,7 @@ func testHrisTimeOffRequestsOneHrisTimeOffRequestsOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -119,8 +119,8 @@ func testHrisTimeOffRequestsOneHrisTimeOffRequestsOne0(w http.ResponseWriter, re }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -128,7 +128,7 @@ func testHrisTimeOffRequestsOneHrisTimeOffRequestsOne0(w http.ResponseWriter, re }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go index a156e7b8..2d922151 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go +++ b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go @@ -94,8 +94,8 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -140,8 +140,8 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -153,8 +153,8 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -162,7 +162,7 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -170,7 +170,7 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -211,8 +211,8 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -220,7 +220,7 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -232,8 +232,8 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -241,7 +241,7 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -253,8 +253,8 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go index 4fc2c936..fa675b13 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go @@ -93,8 +93,8 @@ func testIssueTrackingCollectionTicketsOneIssueTrackingCollectionTicketsOne0(w h PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -102,7 +102,7 @@ func testIssueTrackingCollectionTicketsOneIssueTrackingCollectionTicketsOne0(w h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -114,8 +114,8 @@ func testIssueTrackingCollectionTicketsOneIssueTrackingCollectionTicketsOne0(w h }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -123,7 +123,7 @@ func testIssueTrackingCollectionTicketsOneIssueTrackingCollectionTicketsOne0(w h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -131,7 +131,7 @@ func testIssueTrackingCollectionTicketsOneIssueTrackingCollectionTicketsOne0(w h }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcomments.go b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcomments.go index 14744ed7..6187afd7 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcomments.go +++ b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcomments.go @@ -62,8 +62,8 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -71,7 +71,7 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -79,7 +79,7 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -91,8 +91,8 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -113,8 +113,8 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -135,8 +135,8 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -144,7 +144,7 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -156,8 +156,8 @@ func testIssueTrackingCollectionTicketCommentsAllIssueTrackingCollectionTicketCo }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcommentsid.go b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcommentsid.go index 6311095a..cd4e35d3 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcommentsid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketidcommentsid.go @@ -61,8 +61,8 @@ func testIssueTrackingCollectionTicketCommentsOneIssueTrackingCollectionTicketCo PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -70,7 +70,7 @@ func testIssueTrackingCollectionTicketCommentsOneIssueTrackingCollectionTicketCo }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -82,8 +82,8 @@ func testIssueTrackingCollectionTicketCommentsOneIssueTrackingCollectionTicketCo }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -91,7 +91,7 @@ func testIssueTrackingCollectionTicketCommentsOneIssueTrackingCollectionTicketCo }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -103,8 +103,8 @@ func testIssueTrackingCollectionTicketCommentsOneIssueTrackingCollectionTicketCo }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -112,7 +112,7 @@ func testIssueTrackingCollectionTicketCommentsOneIssueTrackingCollectionTicketCo }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetsmsmessages.go b/src/__tests__/mockserver/internal/handler/pathgetsmsmessages.go index 8b568030..d7b2cf9a 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetsmsmessages.go +++ b/src/__tests__/mockserver/internal/handler/pathgetsmsmessages.go @@ -85,8 +85,8 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -94,7 +94,7 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -102,7 +102,7 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -114,8 +114,8 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -159,8 +159,8 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -204,8 +204,8 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -213,7 +213,7 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -225,8 +225,8 @@ func testSmsMessagesAllSmsMessagesAll0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetsmsmessagesid.go b/src/__tests__/mockserver/internal/handler/pathgetsmsmessagesid.go index c110f235..f6acb459 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetsmsmessagesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetsmsmessagesid.go @@ -84,8 +84,8 @@ func testSmsMessagesOneSmsMessagesOne0(w http.ResponseWriter, req *http.Request) PassThrough: []components.PassThroughBody{ components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -93,7 +93,7 @@ func testSmsMessagesOneSmsMessagesOne0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -105,8 +105,8 @@ func testSmsMessagesOneSmsMessagesOne0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -114,7 +114,7 @@ func testSmsMessagesOneSmsMessagesOne0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -126,8 +126,8 @@ func testSmsMessagesOneSmsMessagesOne0(w http.ResponseWriter, req *http.Request) }, components.PassThroughBody{ ServiceID: "", - ExtendPaths: []components.ExtendPaths{ - components.ExtendPaths{ + ExtendPaths: []components.ExtendPath{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ @@ -135,7 +135,7 @@ func testSmsMessagesOneSmsMessagesOne0(w http.ResponseWriter, req *http.Request) }, }, }, - components.ExtendPaths{ + components.ExtendPath{ Path: "$.nested.property", Value: map[string]any{ "TaxClassificationRef": map[string]any{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetvaultconnections.go b/src/__tests__/mockserver/internal/handler/pathgetvaultconnections.go index 467cc511..9b1c99c5 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetvaultconnections.go +++ b/src/__tests__/mockserver/internal/handler/pathgetvaultconnections.go @@ -104,53 +104,53 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Configuration: []components.Configuration{ components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueBoolean( + Value: types.Pointer(components.CreateConnectionValue2Boolean( true, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueBoolean( + Value: types.Pointer(components.CreateConnectionValue2Boolean( true, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -165,14 +165,14 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueNumber( + Value: types.Pointer(components.CreateConnectionValue2Number( 10.5, )), }, @@ -180,8 +180,8 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -192,24 +192,24 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -230,24 +230,24 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, @@ -376,53 +376,53 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Configuration: []components.Configuration{ components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueArrayOfValue5( - []components.Value5{ - components.CreateValue5Number( + Value: types.Pointer(components.CreateConnectionValue2ArrayOfConnectionValue1( + []components.ConnectionValue1{ + components.CreateConnectionValue1Number( 10.5, ), }, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, @@ -551,18 +551,18 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Configuration: []components.Configuration{ components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionGroup( @@ -572,38 +572,38 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -612,28 +612,28 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueArrayOfValue5( - []components.Value5{ - components.CreateValue5Str( + Value: types.Pointer(components.CreateConnectionValue2ArrayOfConnectionValue1( + []components.ConnectionValue1{ + components.CreateConnectionValue1Str( "GC6000 series", ), - components.CreateValue5Integer( + components.CreateConnectionValue1Integer( 10, ), - components.CreateValue5Str( + components.CreateConnectionValue1Str( "GC6000 series", ), }, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -648,10 +648,10 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionGroup( @@ -661,38 +661,38 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionGroup( @@ -702,31 +702,31 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -741,7 +741,7 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt }, ), }, - Value: types.Pointer(components.CreateConnectionValueNumber( + Value: types.Pointer(components.CreateConnectionValue2Number( 10.5, )), }, @@ -749,8 +749,8 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -761,10 +761,10 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -777,17 +777,17 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -796,35 +796,35 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueInteger( + Value: types.Pointer(components.CreateConnectionValue2Integer( 10, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionGroup( @@ -834,67 +834,67 @@ func testVaultConnectionsAllVaultConnectionsAll0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, }, ), }, - Value: types.Pointer(components.CreateConnectionValueInteger( + Value: types.Pointer(components.CreateConnectionValue2Integer( 10, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceid.go b/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceid.go index 4143b51e..6a6d9477 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceid.go @@ -103,8 +103,8 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt Configuration: []components.Configuration{ components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -115,24 +115,24 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -141,44 +141,44 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueNumber( + Value: types.Pointer(components.CreateConnectionValue2Number( 10.5, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionGroup( @@ -188,31 +188,31 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, }, ), }, - Value: types.Pointer(components.CreateConnectionValueNumber( + Value: types.Pointer(components.CreateConnectionValue2Number( 10.5, )), }, @@ -220,22 +220,22 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueBoolean( + Value: types.Pointer(components.CreateConnectionValue2Boolean( true, )), }, @@ -243,8 +243,8 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -255,24 +255,24 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -281,30 +281,30 @@ func testVaultConnectionsOneVaultConnectionsOne0(w http.ResponseWriter, req *htt components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceidresourceconfig.go b/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceidresourceconfig.go index 89ea2863..cad98652 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceidresourceconfig.go +++ b/src/__tests__/mockserver/internal/handler/pathgetvaultconnectionsunifiedapiserviceidresourceconfig.go @@ -103,27 +103,27 @@ func testVaultConnectionSettingsAllVaultConnectionSettingsAll0(w http.ResponseWr Configuration: []components.Configuration{ components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionGroup( @@ -135,25 +135,25 @@ func testVaultConnectionSettingsAllVaultConnectionSettingsAll0(w http.ResponseWr }, ), }, - Value: types.Pointer(components.CreateConnectionValueBoolean( + Value: types.Pointer(components.CreateConnectionValue2Boolean( true, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueNumber( + Value: types.Pointer(components.CreateConnectionValue2Number( 10.5, )), }, @@ -161,26 +161,26 @@ func testVaultConnectionSettingsAllVaultConnectionSettingsAll0(w http.ResponseWr }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueNumber( + Value: types.Pointer(components.CreateConnectionValue2Number( 10.5, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -191,31 +191,31 @@ func testVaultConnectionSettingsAllVaultConnectionSettingsAll0(w http.ResponseWr Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, @@ -223,55 +223,55 @@ func testVaultConnectionSettingsAllVaultConnectionSettingsAll0(w http.ResponseWr }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueArrayOfValue5( - []components.Value5{}, + Value: types.Pointer(components.CreateConnectionValue2ArrayOfConnectionValue1( + []components.ConnectionValue1{}, )), }, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetvaultconsumers.go b/src/__tests__/mockserver/internal/handler/pathgetvaultconsumers.go index 0c8b29cc..07a2a5b0 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetvaultconsumers.go +++ b/src/__tests__/mockserver/internal/handler/pathgetvaultconsumers.go @@ -49,8 +49,8 @@ func testVaultConsumersAllVaultConsumersAll0(w http.ResponseWriter, req *http.Re respBody := &components.GetConsumersResponse{ StatusCode: 200, Status: "OK", - Data: []components.Data{ - components.Data{ + Data: []components.GetConsumersResponseData{ + components.GetConsumersResponseData{ ConsumerID: types.String("test_consumer_id"), ApplicationID: types.String("1111"), Metadata: &components.ConsumerMetadata{ @@ -73,7 +73,7 @@ func testVaultConsumersAllVaultConsumersAll0(w http.ResponseWriter, req *http.Re "stripe", }, }, - components.Data{ + components.GetConsumersResponseData{ ConsumerID: types.String("test_consumer_id"), ApplicationID: types.String("1111"), Metadata: &components.ConsumerMetadata{ @@ -96,7 +96,7 @@ func testVaultConsumersAllVaultConsumersAll0(w http.ResponseWriter, req *http.Re "stripe", }, }, - components.Data{ + components.GetConsumersResponseData{ ConsumerID: types.String("test_consumer_id"), ApplicationID: types.String("1111"), Metadata: &components.ConsumerMetadata{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetvaultlogs.go b/src/__tests__/mockserver/internal/handler/pathgetvaultlogs.go index 46830a49..56c8883c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetvaultlogs.go +++ b/src/__tests__/mockserver/internal/handler/pathgetvaultlogs.go @@ -69,7 +69,7 @@ func testVaultLogsAllVaultLogsAll0(w http.ResponseWriter, req *http.Request) { ParentID: types.String("0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f"), Path: "/vault/connections", Sandbox: false, - Service: components.Service{ + Service: components.LogService{ ID: "apideck-vault", Name: "Apideck Vault", }, @@ -77,7 +77,7 @@ func testVaultLogsAllVaultLogsAll0(w http.ResponseWriter, req *http.Request) { StatusCode: 200, Success: true, Timestamp: "2021-07-12T14:26:17.420Z", - UnifiedAPI: components.UnifiedAPIVault, + UnifiedAPI: components.UnifiedAPIEnumVault, }, components.Log{ APIStyle: "REST", @@ -98,7 +98,7 @@ func testVaultLogsAllVaultLogsAll0(w http.ResponseWriter, req *http.Request) { ParentID: types.String("0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f"), Path: "/vault/connections", Sandbox: false, - Service: components.Service{ + Service: components.LogService{ ID: "apideck-vault", Name: "Apideck Vault", }, @@ -106,7 +106,7 @@ func testVaultLogsAllVaultLogsAll0(w http.ResponseWriter, req *http.Request) { StatusCode: 200, Success: true, Timestamp: "2021-07-12T14:26:17.420Z", - UnifiedAPI: components.UnifiedAPIVault, + UnifiedAPI: components.UnifiedAPIEnumVault, }, components.Log{ APIStyle: "REST", @@ -127,7 +127,7 @@ func testVaultLogsAllVaultLogsAll0(w http.ResponseWriter, req *http.Request) { ParentID: types.String("0b5f7480-5550-4f5c-a5fc-3c01ac43dd0f"), Path: "/vault/connections", Sandbox: false, - Service: components.Service{ + Service: components.LogService{ ID: "apideck-vault", Name: "Apideck Vault", }, @@ -135,7 +135,7 @@ func testVaultLogsAllVaultLogsAll0(w http.ResponseWriter, req *http.Request) { StatusCode: 200, Success: true, Timestamp: "2021-07-12T14:26:17.420Z", - UnifiedAPI: components.UnifiedAPIVault, + UnifiedAPI: components.UnifiedAPIEnumVault, }, }, Meta: &components.Meta{ diff --git a/src/__tests__/mockserver/internal/handler/pathgetwebhooklogs.go b/src/__tests__/mockserver/internal/handler/pathgetwebhooklogs.go index eda7883c..ec5d3aef 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetwebhooklogs.go +++ b/src/__tests__/mockserver/internal/handler/pathgetwebhooklogs.go @@ -70,14 +70,14 @@ func testWebhookEventLogsAllWebhookEventLogsAll0(w http.ResponseWriter, req *htt RequestBody: types.String("{\"entity\":{\"id\":\"2222+test_user_id\",\"application_id\":\"2222\",\"consumer_id\":\"test_user_id\",\"name\":\"ActiveCampaign\",\"icon\":\"https://res.cloudinary.com/apideck/image/upload/v1529455970/catalog/activecampaign/icon128x128.png\",\"logo\":\"https://www.activecampaign.com/site/assets/social-2x.png\",\"unified_api\":\"crm\",\"service_id\":\"activecampaign\",\"auth_type\":\"apiKey\",\"enabled\":true,\"tag_line\":\"Integrated email marketing, marketing automation, and small business CRM. Save time while growing your business with sales automation.\",\"website\":\"https://www.activecampaign.com/\",\"settings\":{\"instance_url\":\"https://eu28.salesforce.com\",\"base_url\":\"https://updated.api-us1.com\"},\"metadata\":{\"plan\":\"enterprise\",\"account\":{\"name\":\"My Company\"}},\"state\":\"callable\",\"created_at\":\"2021-09-10T10:39:49.628Z\",\"updated_at\":\"2021-09-10T10:39:52.715Z\"},\"entityType\":\"Connection\"}"), ResponseBody: types.String("{\"status\":\"OK\"}"), RetryScheduled: types.Bool(true), - Attempts: []components.Attempts{ - components.Attempts{ + Attempts: []components.Attempt{ + components.Attempt{ Timestamp: types.String("2021-07-12T14:26:17.420Z"), ExecutionAttempt: types.Float64(3), StatusCode: types.Int64(200), Success: types.Bool(true), }, - components.Attempts{ + components.Attempt{ Timestamp: types.String("2021-07-12T14:26:17.420Z"), ExecutionAttempt: types.Float64(3), StatusCode: types.Int64(200), @@ -105,20 +105,20 @@ func testWebhookEventLogsAllWebhookEventLogsAll0(w http.ResponseWriter, req *htt RequestBody: types.String("{\"entity\":{\"id\":\"2222+test_user_id\",\"application_id\":\"2222\",\"consumer_id\":\"test_user_id\",\"name\":\"ActiveCampaign\",\"icon\":\"https://res.cloudinary.com/apideck/image/upload/v1529455970/catalog/activecampaign/icon128x128.png\",\"logo\":\"https://www.activecampaign.com/site/assets/social-2x.png\",\"unified_api\":\"crm\",\"service_id\":\"activecampaign\",\"auth_type\":\"apiKey\",\"enabled\":true,\"tag_line\":\"Integrated email marketing, marketing automation, and small business CRM. Save time while growing your business with sales automation.\",\"website\":\"https://www.activecampaign.com/\",\"settings\":{\"instance_url\":\"https://eu28.salesforce.com\",\"base_url\":\"https://updated.api-us1.com\"},\"metadata\":{\"plan\":\"enterprise\",\"account\":{\"name\":\"My Company\"}},\"state\":\"callable\",\"created_at\":\"2021-09-10T10:39:49.628Z\",\"updated_at\":\"2021-09-10T10:39:52.715Z\"},\"entityType\":\"Connection\"}"), ResponseBody: types.String("{\"status\":\"OK\"}"), RetryScheduled: types.Bool(true), - Attempts: []components.Attempts{ - components.Attempts{ + Attempts: []components.Attempt{ + components.Attempt{ Timestamp: types.String("2021-07-12T14:26:17.420Z"), ExecutionAttempt: types.Float64(3), StatusCode: types.Int64(200), Success: types.Bool(true), }, - components.Attempts{ + components.Attempt{ Timestamp: types.String("2021-07-12T14:26:17.420Z"), ExecutionAttempt: types.Float64(3), StatusCode: types.Int64(200), Success: types.Bool(true), }, - components.Attempts{ + components.Attempt{ Timestamp: types.String("2021-07-12T14:26:17.420Z"), ExecutionAttempt: types.Float64(3), StatusCode: types.Int64(200), @@ -146,8 +146,8 @@ func testWebhookEventLogsAllWebhookEventLogsAll0(w http.ResponseWriter, req *htt RequestBody: types.String("{\"entity\":{\"id\":\"2222+test_user_id\",\"application_id\":\"2222\",\"consumer_id\":\"test_user_id\",\"name\":\"ActiveCampaign\",\"icon\":\"https://res.cloudinary.com/apideck/image/upload/v1529455970/catalog/activecampaign/icon128x128.png\",\"logo\":\"https://www.activecampaign.com/site/assets/social-2x.png\",\"unified_api\":\"crm\",\"service_id\":\"activecampaign\",\"auth_type\":\"apiKey\",\"enabled\":true,\"tag_line\":\"Integrated email marketing, marketing automation, and small business CRM. Save time while growing your business with sales automation.\",\"website\":\"https://www.activecampaign.com/\",\"settings\":{\"instance_url\":\"https://eu28.salesforce.com\",\"base_url\":\"https://updated.api-us1.com\"},\"metadata\":{\"plan\":\"enterprise\",\"account\":{\"name\":\"My Company\"}},\"state\":\"callable\",\"created_at\":\"2021-09-10T10:39:49.628Z\",\"updated_at\":\"2021-09-10T10:39:52.715Z\"},\"entityType\":\"Connection\"}"), ResponseBody: types.String("{\"status\":\"OK\"}"), RetryScheduled: types.Bool(true), - Attempts: []components.Attempts{ - components.Attempts{ + Attempts: []components.Attempt{ + components.Attempt{ Timestamp: types.String("2021-07-12T14:26:17.420Z"), ExecutionAttempt: types.Float64(3), StatusCode: types.Int64(200), diff --git a/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidimport.go b/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidimport.go index 0379baa9..a44e1334 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidimport.go +++ b/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidimport.go @@ -108,8 +108,8 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re Configuration: []components.Configuration{ components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -120,35 +120,35 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, }, ), }, - Value: types.Pointer(components.CreateConnectionValueInteger( + Value: types.Pointer(components.CreateConnectionValue2Integer( 10, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -159,31 +159,31 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -192,23 +192,23 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueInteger( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Integer( 123, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueInteger( + Value: types.Pointer(components.CreateConnectionValue2Integer( 10, )), }, @@ -216,8 +216,8 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -228,24 +228,24 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -258,17 +258,17 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -283,36 +283,36 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ @@ -323,24 +323,24 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueNumber( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Number( 12.5, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, @@ -349,10 +349,10 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionGroup( @@ -362,26 +362,26 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re Options: []components.SimpleFormFieldOption{ components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueArrayOf5( - []components.Five{ - components.CreateFiveStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1( + []components.SimpleFormFieldOptionValue1{ + components.CreateSimpleFormFieldOptionValue1Str( "team", ), - components.CreateFiveStr( + components.CreateSimpleFormFieldOptionValue1Str( "general", ), }, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, }, OptionType: components.FormFieldOptionGroupOptionTypeGroup, }, ), }, - Value: types.Pointer(components.CreateConnectionValueArrayOfValue5( - []components.Value5{ - components.CreateValue5Integer( + Value: types.Pointer(components.CreateConnectionValue2ArrayOfConnectionValue1( + []components.ConnectionValue1{ + components.CreateConnectionValue1Integer( 10, ), }, @@ -391,30 +391,30 @@ func testVaultConnectionsImportVaultConnectionsImport0(w http.ResponseWriter, re }, components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueStr( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Str( "general", )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueArrayOfValue5( - []components.Value5{ - components.CreateValue5Str( + Value: types.Pointer(components.CreateConnectionValue2ArrayOfConnectionValue1( + []components.ConnectionValue1{ + components.CreateConnectionValue1Str( "GC6000 series", ), - components.CreateValue5Number( + components.CreateConnectionValue1Number( 10.5, ), - components.CreateValue5Integer( + components.CreateConnectionValue1Integer( 10, ), }, diff --git a/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidtoken.go b/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidtoken.go index 466fb7ef..4b21d71d 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidtoken.go +++ b/src/__tests__/mockserver/internal/handler/pathpostvaultconnectionsunifiedapiserviceidtoken.go @@ -108,49 +108,49 @@ func testVaultConnectionsTokenVaultConnectionsToken0(w http.ResponseWriter, req Configuration: []components.Configuration{ components.Configuration{ Resource: types.String("leads"), - Defaults: []components.Defaults{ - components.Defaults{ + Defaults: []components.Default{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueArrayOfValue5( - []components.Value5{}, + Value: types.Pointer(components.CreateConnectionValue2ArrayOfConnectionValue1( + []components.ConnectionValue1{}, )), }, - components.Defaults{ + components.Default{ Target: components.TargetCustomFields.ToPointer(), ID: types.String("ProductInterest"), Options: []components.FormFieldOption{ components.CreateFormFieldOptionSimple( components.SimpleFormFieldOption{ Label: "General Channel", - Value: types.Pointer(components.CreateSimpleFormFieldOptionValueBoolean( + Value: types.Pointer(components.CreateSimpleFormFieldOptionValue2Boolean( true, )), - OptionType: components.OptionTypeSimple, + OptionType: components.SimpleFormFieldOptionOptionTypeSimple, }, ), }, - Value: types.Pointer(components.CreateConnectionValueStr( + Value: types.Pointer(components.CreateConnectionValue2Str( "GC5000 series", )), }, diff --git a/src/__tests__/mockserver/internal/sdk/models/components/address.go b/src/__tests__/mockserver/internal/sdk/models/components/address.go index de372737..75275aa0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/address.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/address.go @@ -7,23 +7,23 @@ import ( "fmt" ) -// Type - The type of address. -type Type string +// AddressType - The type of address. +type AddressType string const ( - TypePrimary Type = "primary" - TypeSecondary Type = "secondary" - TypeHome Type = "home" - TypeOffice Type = "office" - TypeShipping Type = "shipping" - TypeBilling Type = "billing" - TypeOther Type = "other" + AddressTypePrimary AddressType = "primary" + AddressTypeSecondary AddressType = "secondary" + AddressTypeHome AddressType = "home" + AddressTypeOffice AddressType = "office" + AddressTypeShipping AddressType = "shipping" + AddressTypeBilling AddressType = "billing" + AddressTypeOther AddressType = "other" ) -func (e Type) ToPointer() *Type { +func (e AddressType) ToPointer() *AddressType { return &e } -func (e *Type) UnmarshalJSON(data []byte) error { +func (e *AddressType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -42,10 +42,10 @@ func (e *Type) UnmarshalJSON(data []byte) error { case "billing": fallthrough case "other": - *e = Type(v) + *e = AddressType(v) return nil default: - return fmt.Errorf("invalid value for Type: %v", v) + return fmt.Errorf("invalid value for AddressType: %v", v) } } @@ -53,7 +53,7 @@ type Address struct { // Unique identifier for the address. ID *string `json:"id,omitempty"` // The type of address. - Type *Type `json:"type,omitempty"` + Type *AddressType `json:"type,omitempty"` // The address string. Some APIs don't provide structured address data. String *string `json:"string,omitempty"` // The name of the address. @@ -107,7 +107,7 @@ func (o *Address) GetID() *string { return o.ID } -func (o *Address) GetType() *Type { +func (o *Address) GetType() *AddressType { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/allocation.go b/src/__tests__/mockserver/internal/sdk/models/components/allocation.go index 1fa09cef..f9a9f16c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/allocation.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/allocation.go @@ -7,25 +7,25 @@ import ( "fmt" ) -// AllocationType - Type of entity this payment should be attributed to. -type AllocationType string +// AllocationAllocationType - Type of entity this payment should be attributed to. +type AllocationAllocationType string const ( - AllocationTypeInvoice AllocationType = "invoice" - AllocationTypeOrder AllocationType = "order" - AllocationTypeExpense AllocationType = "expense" - AllocationTypeCreditMemo AllocationType = "credit_memo" - AllocationTypeOverPayment AllocationType = "over_payment" - AllocationTypePrePayment AllocationType = "pre_payment" - AllocationTypeJournalEntry AllocationType = "journal_entry" - AllocationTypeOther AllocationType = "other" - AllocationTypeBill AllocationType = "bill" + AllocationAllocationTypeInvoice AllocationAllocationType = "invoice" + AllocationAllocationTypeOrder AllocationAllocationType = "order" + AllocationAllocationTypeExpense AllocationAllocationType = "expense" + AllocationAllocationTypeCreditMemo AllocationAllocationType = "credit_memo" + AllocationAllocationTypeOverPayment AllocationAllocationType = "over_payment" + AllocationAllocationTypePrePayment AllocationAllocationType = "pre_payment" + AllocationAllocationTypeJournalEntry AllocationAllocationType = "journal_entry" + AllocationAllocationTypeOther AllocationAllocationType = "other" + AllocationAllocationTypeBill AllocationAllocationType = "bill" ) -func (e AllocationType) ToPointer() *AllocationType { +func (e AllocationAllocationType) ToPointer() *AllocationAllocationType { return &e } -func (e *AllocationType) UnmarshalJSON(data []byte) error { +func (e *AllocationAllocationType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -48,10 +48,10 @@ func (e *AllocationType) UnmarshalJSON(data []byte) error { case "other": fallthrough case "bill": - *e = AllocationType(v) + *e = AllocationAllocationType(v) return nil default: - return fmt.Errorf("invalid value for AllocationType: %v", v) + return fmt.Errorf("invalid value for AllocationAllocationType: %v", v) } } @@ -59,8 +59,8 @@ type Allocation struct { // Unique identifier of entity this payment should be attributed to. ID *string `json:"id,omitempty"` // Type of entity this payment should be attributed to. - Type *AllocationType `json:"type,omitempty"` - Code *string `json:"code,omitempty"` + Type *AllocationAllocationType `json:"type,omitempty"` + Code *string `json:"code,omitempty"` // Amount of payment that should be attributed to this allocation. If null, the total_amount will be used. Amount *float64 `json:"amount,omitempty"` // Unique identifier of the allocation @@ -74,7 +74,7 @@ func (o *Allocation) GetID() *string { return o.ID } -func (o *Allocation) GetType() *AllocationType { +func (o *Allocation) GetType() *AllocationAllocationType { if o == nil { return nil } @@ -106,7 +106,7 @@ type AllocationInput struct { // Unique identifier of entity this payment should be attributed to. ID *string `json:"id,omitempty"` // Type of entity this payment should be attributed to. - Type *AllocationType `json:"type,omitempty"` + Type *AllocationAllocationType `json:"type,omitempty"` // Amount of payment that should be attributed to this allocation. If null, the total_amount will be used. Amount *float64 `json:"amount,omitempty"` // Unique identifier of the allocation @@ -120,7 +120,7 @@ func (o *AllocationInput) GetID() *string { return o.ID } -func (o *AllocationInput) GetType() *AllocationType { +func (o *AllocationInput) GetType() *AllocationAllocationType { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/api.go b/src/__tests__/mockserver/internal/sdk/models/components/api.go index 381b11b3..8e426808 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/api.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/api.go @@ -34,7 +34,7 @@ func (e *APIType) UnmarshalJSON(data []byte) error { } } -type Resources struct { +type Resource struct { // ID of the resource, typically a lowercased version of its name. ID *string `json:"id,omitempty"` // Name of the resource (plural) @@ -45,28 +45,28 @@ type Resources struct { ExcludedFromCoverage *bool `json:"excluded_from_coverage,omitempty"` } -func (o *Resources) GetID() *string { +func (o *Resource) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Resources) GetName() *string { +func (o *Resource) GetName() *string { if o == nil { return nil } return o.Name } -func (o *Resources) GetStatus() *ResourceStatus { +func (o *Resource) GetStatus() *ResourceStatus { if o == nil { return nil } return o.Status } -func (o *Resources) GetExcludedFromCoverage() *bool { +func (o *Resource) GetExcludedFromCoverage() *bool { if o == nil { return nil } @@ -93,7 +93,7 @@ type API struct { // List of categories the API belongs to. Categories []string `json:"categories,omitempty"` // List of resources supported in this API. - Resources []Resources `json:"resources,omitempty"` + Resources []Resource `json:"resources,omitempty"` // List of event types this API supports. Events []string `json:"events,omitempty"` } @@ -161,7 +161,7 @@ func (o *API) GetCategories() []string { return o.Categories } -func (o *API) GetResources() []Resources { +func (o *API) GetResources() []Resource { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/apiresource.go b/src/__tests__/mockserver/internal/sdk/models/components/apiresource.go index d21f99ff..b553e6a8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/apiresource.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/apiresource.go @@ -2,21 +2,21 @@ package components -type LinkedResources struct { +type LinkedResource struct { // ID of the resource, typically a lowercased version of name. ID *string `json:"id,omitempty"` // Name of the property in our Unified API. UnifiedProperty *string `json:"unified_property,omitempty"` } -func (o *LinkedResources) GetID() *string { +func (o *LinkedResource) GetID() *string { if o == nil { return nil } return o.ID } -func (o *LinkedResources) GetUnifiedProperty() *string { +func (o *LinkedResource) GetUnifiedProperty() *string { if o == nil { return nil } @@ -35,7 +35,7 @@ type APIResource struct { // Status of the resource. Resources with status live or beta are callable. Status *ResourceStatus `json:"status,omitempty"` // List of linked resources. - LinkedResources []LinkedResources `json:"linked_resources,omitempty"` + LinkedResources []LinkedResource `json:"linked_resources,omitempty"` // JSON Schema of the resource in our Unified API Schema *Schema `json:"schema,omitempty"` } @@ -61,7 +61,7 @@ func (o *APIResource) GetStatus() *ResourceStatus { return o.Status } -func (o *APIResource) GetLinkedResources() []LinkedResources { +func (o *APIResource) GetLinkedResources() []LinkedResource { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/applicant.go b/src/__tests__/mockserver/internal/sdk/models/components/applicant.go index c564be77..68ccac08 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/applicant.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/applicant.go @@ -46,7 +46,7 @@ func (e *ApplicantType) UnmarshalJSON(data []byte) error { } } -type Websites struct { +type ApplicantWebsite struct { // Unique identifier for the website ID *string `json:"id,omitempty"` // The website URL @@ -55,28 +55,28 @@ type Websites struct { Type *ApplicantType `json:"type,omitempty"` } -func (o *Websites) GetID() *string { +func (o *ApplicantWebsite) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Websites) GetURL() string { +func (o *ApplicantWebsite) GetURL() string { if o == nil { return "" } return o.URL } -func (o *Websites) GetType() *ApplicantType { +func (o *ApplicantWebsite) GetType() *ApplicantType { if o == nil { return nil } return o.Type } -type SocialLinks struct { +type ApplicantSocialLink struct { // Unique identifier of the social link ID *string `json:"id,omitempty"` // URL of the social link, e.g. https://www.twitter.com/apideck @@ -85,21 +85,21 @@ type SocialLinks struct { Type *string `json:"type,omitempty"` } -func (o *SocialLinks) GetID() *string { +func (o *ApplicantSocialLink) GetID() *string { if o == nil { return nil } return o.ID } -func (o *SocialLinks) GetURL() string { +func (o *ApplicantSocialLink) GetURL() string { if o == nil { return "" } return o.URL } -func (o *SocialLinks) GetType() *string { +func (o *ApplicantSocialLink) GetType() *string { if o == nil { return nil } @@ -128,31 +128,31 @@ type Applicant struct { // Typically a list of previous companies where the contact has worked or schools that the contact has attended Headline *string `json:"headline,omitempty"` // The job title of the person. - Title *string `json:"title,omitempty"` - Emails []Email `json:"emails,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` - Addresses []Address `json:"addresses,omitempty"` - Websites []Websites `json:"websites,omitempty"` - SocialLinks []SocialLinks `json:"social_links,omitempty"` - StageID *string `json:"stage_id,omitempty"` - RecruiterID *string `json:"recruiter_id,omitempty"` - CoordinatorID *string `json:"coordinator_id,omitempty"` - ApplicationIds []string `json:"application_ids,omitempty"` - Applications []string `json:"applications,omitempty"` - Followers []string `json:"followers,omitempty"` - Sources []string `json:"sources,omitempty"` - SourceID *string `json:"source_id,omitempty"` - Confidential *bool `json:"confidential,omitempty"` - Anonymized *bool `json:"anonymized,omitempty"` - Tags []string `json:"tags,omitempty"` - Archived *bool `json:"archived,omitempty"` - LastInteractionAt *time.Time `json:"last_interaction_at,omitempty"` - OwnerID *string `json:"owner_id,omitempty"` - SourcedBy *string `json:"sourced_by,omitempty"` - CvURL *string `json:"cv_url,omitempty"` - RecordURL *string `json:"record_url,omitempty"` - RejectedAt *time.Time `json:"rejected_at,omitempty"` + Title *string `json:"title,omitempty"` + Emails []Email `json:"emails,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` + PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` + Addresses []Address `json:"addresses,omitempty"` + Websites []ApplicantWebsite `json:"websites,omitempty"` + SocialLinks []ApplicantSocialLink `json:"social_links,omitempty"` + StageID *string `json:"stage_id,omitempty"` + RecruiterID *string `json:"recruiter_id,omitempty"` + CoordinatorID *string `json:"coordinator_id,omitempty"` + ApplicationIds []string `json:"application_ids,omitempty"` + Applications []string `json:"applications,omitempty"` + Followers []string `json:"followers,omitempty"` + Sources []string `json:"sources,omitempty"` + SourceID *string `json:"source_id,omitempty"` + Confidential *bool `json:"confidential,omitempty"` + Anonymized *bool `json:"anonymized,omitempty"` + Tags []string `json:"tags,omitempty"` + Archived *bool `json:"archived,omitempty"` + LastInteractionAt *time.Time `json:"last_interaction_at,omitempty"` + OwnerID *string `json:"owner_id,omitempty"` + SourcedBy *string `json:"sourced_by,omitempty"` + CvURL *string `json:"cv_url,omitempty"` + RecordURL *string `json:"record_url,omitempty"` + RejectedAt *time.Time `json:"rejected_at,omitempty"` // When custom mappings are configured on the resource, the result is included here. CustomMappings map[string]any `json:"custom_mappings,omitempty"` // Flag to indicate if the object is deleted. @@ -296,14 +296,14 @@ func (o *Applicant) GetAddresses() []Address { return o.Addresses } -func (o *Applicant) GetWebsites() []Websites { +func (o *Applicant) GetWebsites() []ApplicantWebsite { if o == nil { return nil } return o.Websites } -func (o *Applicant) GetSocialLinks() []SocialLinks { +func (o *Applicant) GetSocialLinks() []ApplicantSocialLink { if o == nil { return nil } @@ -518,26 +518,26 @@ type ApplicantInput struct { // Typically a list of previous companies where the contact has worked or schools that the contact has attended Headline *string `json:"headline,omitempty"` // The job title of the person. - Title *string `json:"title,omitempty"` - Emails []Email `json:"emails,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` - PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` - Addresses []Address `json:"addresses,omitempty"` - Websites []Websites `json:"websites,omitempty"` - SocialLinks []SocialLinks `json:"social_links,omitempty"` - StageID *string `json:"stage_id,omitempty"` - RecruiterID *string `json:"recruiter_id,omitempty"` - CoordinatorID *string `json:"coordinator_id,omitempty"` - ApplicationIds []string `json:"application_ids,omitempty"` - Applications []string `json:"applications,omitempty"` - Followers []string `json:"followers,omitempty"` - Sources []string `json:"sources,omitempty"` - Confidential *bool `json:"confidential,omitempty"` - Anonymized *bool `json:"anonymized,omitempty"` - Tags []string `json:"tags,omitempty"` - Archived *bool `json:"archived,omitempty"` - OwnerID *string `json:"owner_id,omitempty"` - RecordURL *string `json:"record_url,omitempty"` + Title *string `json:"title,omitempty"` + Emails []Email `json:"emails,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` + PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` + Addresses []Address `json:"addresses,omitempty"` + Websites []ApplicantWebsite `json:"websites,omitempty"` + SocialLinks []ApplicantSocialLink `json:"social_links,omitempty"` + StageID *string `json:"stage_id,omitempty"` + RecruiterID *string `json:"recruiter_id,omitempty"` + CoordinatorID *string `json:"coordinator_id,omitempty"` + ApplicationIds []string `json:"application_ids,omitempty"` + Applications []string `json:"applications,omitempty"` + Followers []string `json:"followers,omitempty"` + Sources []string `json:"sources,omitempty"` + Confidential *bool `json:"confidential,omitempty"` + Anonymized *bool `json:"anonymized,omitempty"` + Tags []string `json:"tags,omitempty"` + Archived *bool `json:"archived,omitempty"` + OwnerID *string `json:"owner_id,omitempty"` + RecordURL *string `json:"record_url,omitempty"` // Flag to indicate if the object is deleted. Deleted *bool `json:"deleted,omitempty"` // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. @@ -653,14 +653,14 @@ func (o *ApplicantInput) GetAddresses() []Address { return o.Addresses } -func (o *ApplicantInput) GetWebsites() []Websites { +func (o *ApplicantInput) GetWebsites() []ApplicantWebsite { if o == nil { return nil } return o.Websites } -func (o *ApplicantInput) GetSocialLinks() []SocialLinks { +func (o *ApplicantInput) GetSocialLinks() []ApplicantSocialLink { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/application.go b/src/__tests__/mockserver/internal/sdk/models/components/application.go index 34969e2a..6aca4741 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/application.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/application.go @@ -44,20 +44,20 @@ func (e *ApplicationStatus) UnmarshalJSON(data []byte) error { } } -type Stage struct { +type ApplicationStage struct { // Stage the candidate should be in. If omitted, the default stage for this job will be used. ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` } -func (o *Stage) GetID() *string { +func (o *ApplicationStage) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Stage) GetName() *string { +func (o *ApplicationStage) GetName() *string { if o == nil { return nil } @@ -70,7 +70,7 @@ type Application struct { ApplicantID *string `json:"applicant_id"` JobID *string `json:"job_id"` Status *ApplicationStatus `json:"status,omitempty"` - Stage *Stage `json:"stage,omitempty"` + Stage *ApplicationStage `json:"stage,omitempty"` // When custom mappings are configured on the resource, the result is included here. CustomMappings map[string]any `json:"custom_mappings,omitempty"` // The user who last updated the object. @@ -124,7 +124,7 @@ func (o *Application) GetStatus() *ApplicationStatus { return o.Status } -func (o *Application) GetStage() *Stage { +func (o *Application) GetStage() *ApplicationStage { if o == nil { return nil } @@ -177,7 +177,7 @@ type ApplicationInput struct { ApplicantID *string `json:"applicant_id"` JobID *string `json:"job_id"` Status *ApplicationStatus `json:"status,omitempty"` - Stage *Stage `json:"stage,omitempty"` + Stage *ApplicationStage `json:"stage,omitempty"` // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. PassThrough []PassThroughBody `json:"pass_through,omitempty"` } @@ -203,7 +203,7 @@ func (o *ApplicationInput) GetStatus() *ApplicationStatus { return o.Status } -func (o *ApplicationInput) GetStage() *Stage { +func (o *ApplicationInput) GetStage() *ApplicationStage { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/badrequestresponseerror.go b/src/__tests__/mockserver/internal/sdk/models/components/badrequestresponseerror.go new file mode 100644 index 00000000..7e020a0b --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/badrequestresponseerror.go @@ -0,0 +1,73 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "errors" + "fmt" + "mockserver/internal/sdk/utils" +) + +type BadRequestResponseDetailType string + +const ( + BadRequestResponseDetailTypeStr BadRequestResponseDetailType = "str" + BadRequestResponseDetailTypeMapOfAny BadRequestResponseDetailType = "mapOfAny" +) + +// BadRequestResponseDetail - Contains parameter or domain specific information related to the error and why it occurred. +type BadRequestResponseDetail struct { + Str *string + MapOfAny map[string]any + + Type BadRequestResponseDetailType +} + +func CreateBadRequestResponseDetailStr(str string) BadRequestResponseDetail { + typ := BadRequestResponseDetailTypeStr + + return BadRequestResponseDetail{ + Str: &str, + Type: typ, + } +} + +func CreateBadRequestResponseDetailMapOfAny(mapOfAny map[string]any) BadRequestResponseDetail { + typ := BadRequestResponseDetailTypeMapOfAny + + return BadRequestResponseDetail{ + MapOfAny: mapOfAny, + Type: typ, + } +} + +func (u *BadRequestResponseDetail) UnmarshalJSON(data []byte) error { + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + u.Str = &str + u.Type = BadRequestResponseDetailTypeStr + return nil + } + + var mapOfAny map[string]any = map[string]any{} + if err := utils.UnmarshalJSON(data, &mapOfAny, "", true, true); err == nil { + u.MapOfAny = mapOfAny + u.Type = BadRequestResponseDetailTypeMapOfAny + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for BadRequestResponseDetail", string(data)) +} + +func (u BadRequestResponseDetail) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.MapOfAny != nil { + return utils.MarshalJSON(u.MapOfAny, "", true) + } + + return nil, errors.New("could not marshal union type BadRequestResponseDetail: all fields are null") +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/balancebytransaction.go b/src/__tests__/mockserver/internal/sdk/models/components/balancebytransaction.go index ba93cd24..c394445c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/balancebytransaction.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/balancebytransaction.go @@ -9,21 +9,21 @@ import ( "mockserver/internal/sdk/utils" ) -// TransactionType - Type of the transaction. -type TransactionType string +// BalanceByTransactionTransactionType - Type of the transaction. +type BalanceByTransactionTransactionType string const ( - TransactionTypeInvoice TransactionType = "invoice" - TransactionTypeCreditNote TransactionType = "credit_note" - TransactionTypeBill TransactionType = "bill" - TransactionTypePayment TransactionType = "payment" - TransactionTypeBillPayment TransactionType = "bill_payment" + BalanceByTransactionTransactionTypeInvoice BalanceByTransactionTransactionType = "invoice" + BalanceByTransactionTransactionTypeCreditNote BalanceByTransactionTransactionType = "credit_note" + BalanceByTransactionTransactionTypeBill BalanceByTransactionTransactionType = "bill" + BalanceByTransactionTransactionTypePayment BalanceByTransactionTransactionType = "payment" + BalanceByTransactionTransactionTypeBillPayment BalanceByTransactionTransactionType = "bill_payment" ) -func (e TransactionType) ToPointer() *TransactionType { +func (e BalanceByTransactionTransactionType) ToPointer() *BalanceByTransactionTransactionType { return &e } -func (e *TransactionType) UnmarshalJSON(data []byte) error { +func (e *BalanceByTransactionTransactionType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -38,10 +38,10 @@ func (e *TransactionType) UnmarshalJSON(data []byte) error { case "payment": fallthrough case "bill_payment": - *e = TransactionType(v) + *e = BalanceByTransactionTransactionType(v) return nil default: - return fmt.Errorf("invalid value for TransactionType: %v", v) + return fmt.Errorf("invalid value for BalanceByTransactionTransactionType: %v", v) } } @@ -51,7 +51,7 @@ type BalanceByTransaction struct { // Date of the transaction. TransactionDate *types.Date `json:"transaction_date,omitempty"` // Type of the transaction. - TransactionType *TransactionType `json:"transaction_type,omitempty"` + TransactionType *BalanceByTransactionTransactionType `json:"transaction_type,omitempty"` // Due date of the transaction. DueDate *types.Date `json:"due_date,omitempty"` // Original amount of the transaction. @@ -87,7 +87,7 @@ func (o *BalanceByTransaction) GetTransactionDate() *types.Date { return o.TransactionDate } -func (o *BalanceByTransaction) GetTransactionType() *TransactionType { +func (o *BalanceByTransaction) GetTransactionType() *BalanceByTransactionTransactionType { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/balancesheet.go b/src/__tests__/mockserver/internal/sdk/models/components/balancesheet.go index 6b704323..30ad166d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/balancesheet.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/balancesheet.go @@ -203,7 +203,7 @@ func (o *BalanceSheetUncategorizedItemsAccount) GetItems() any { return o.Items } -type Reports struct { +type Report struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` // The name of the report @@ -236,116 +236,116 @@ type Reports struct { UncategorizedItems *BalanceSheetUncategorizedItemsAccount `json:"uncategorized_items,omitempty"` } -func (r Reports) MarshalJSON() ([]byte, error) { +func (r Report) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(r, "", false) } -func (r *Reports) UnmarshalJSON(data []byte) error { +func (r *Report) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &r, "", false, false); err != nil { return err } return nil } -func (o *Reports) GetID() *string { +func (o *Report) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Reports) GetReportName() *string { +func (o *Report) GetReportName() *string { if o == nil { return nil } return o.ReportName } -func (o *Reports) GetStartDate() *string { +func (o *Report) GetStartDate() *string { if o == nil { return nil } return o.StartDate } -func (o *Reports) GetEndDate() string { +func (o *Report) GetEndDate() string { if o == nil { return "" } return o.EndDate } -func (o *Reports) GetCurrency() *Currency { +func (o *Report) GetCurrency() *Currency { if o == nil { return nil } return o.Currency } -func (o *Reports) GetAssets() BalanceSheetAssetsAccount { +func (o *Report) GetAssets() BalanceSheetAssetsAccount { if o == nil { return BalanceSheetAssetsAccount{} } return o.Assets } -func (o *Reports) GetLiabilities() BalanceSheetLiabilitiesAccount { +func (o *Report) GetLiabilities() BalanceSheetLiabilitiesAccount { if o == nil { return BalanceSheetLiabilitiesAccount{} } return o.Liabilities } -func (o *Reports) GetEquity() BalanceSheetEquityAccount { +func (o *Report) GetEquity() BalanceSheetEquityAccount { if o == nil { return BalanceSheetEquityAccount{} } return o.Equity } -func (o *Reports) GetNetAssets() *float64 { +func (o *Report) GetNetAssets() *float64 { if o == nil { return nil } return o.NetAssets } -func (o *Reports) GetCustomMappings() map[string]any { +func (o *Report) GetCustomMappings() map[string]any { if o == nil { return nil } return o.CustomMappings } -func (o *Reports) GetUpdatedBy() *string { +func (o *Report) GetUpdatedBy() *string { if o == nil { return nil } return o.UpdatedBy } -func (o *Reports) GetCreatedBy() *string { +func (o *Report) GetCreatedBy() *string { if o == nil { return nil } return o.CreatedBy } -func (o *Reports) GetUpdatedAt() *time.Time { +func (o *Report) GetUpdatedAt() *time.Time { if o == nil { return nil } return o.UpdatedAt } -func (o *Reports) GetCreatedAt() *time.Time { +func (o *Report) GetCreatedAt() *time.Time { if o == nil { return nil } return o.CreatedAt } -func (o *Reports) GetUncategorizedItems() *BalanceSheetUncategorizedItemsAccount { +func (o *Report) GetUncategorizedItems() *BalanceSheetUncategorizedItemsAccount { if o == nil { return nil } @@ -353,12 +353,12 @@ func (o *Reports) GetUncategorizedItems() *BalanceSheetUncategorizedItemsAccount } type BalanceSheet struct { - Reports []Reports `json:"reports"` + Reports []Report `json:"reports"` } -func (o *BalanceSheet) GetReports() []Reports { +func (o *BalanceSheet) GetReports() []Report { if o == nil { - return []Reports{} + return []Report{} } return o.Reports } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/bankfeedstatement.go b/src/__tests__/mockserver/internal/sdk/models/components/bankfeedstatement.go index f81d4ad2..6e126434 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/bankfeedstatement.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/bankfeedstatement.go @@ -78,7 +78,7 @@ func (e *BankFeedStatementTransactionType) UnmarshalJSON(data []byte) error { } } -type Transactions struct { +type Transaction struct { // The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD PostedDate time.Time `json:"posted_date"` // A description of the transaction. @@ -97,67 +97,67 @@ type Transactions struct { TransactionType *BankFeedStatementTransactionType `json:"transaction_type,omitempty"` } -func (t Transactions) MarshalJSON() ([]byte, error) { +func (t Transaction) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(t, "", false) } -func (t *Transactions) UnmarshalJSON(data []byte) error { +func (t *Transaction) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil { return err } return nil } -func (o *Transactions) GetPostedDate() time.Time { +func (o *Transaction) GetPostedDate() time.Time { if o == nil { return time.Time{} } return o.PostedDate } -func (o *Transactions) GetDescription() *string { +func (o *Transaction) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *Transactions) GetAmount() float64 { +func (o *Transaction) GetAmount() float64 { if o == nil { return 0.0 } return o.Amount } -func (o *Transactions) GetCreditOrDebit() CreditOrDebit { +func (o *Transaction) GetCreditOrDebit() CreditOrDebit { if o == nil { return CreditOrDebit("") } return o.CreditOrDebit } -func (o *Transactions) GetSourceTransactionID() string { +func (o *Transaction) GetSourceTransactionID() string { if o == nil { return "" } return o.SourceTransactionID } -func (o *Transactions) GetCounterparty() *string { +func (o *Transaction) GetCounterparty() *string { if o == nil { return nil } return o.Counterparty } -func (o *Transactions) GetReference() *string { +func (o *Transaction) GetReference() *string { if o == nil { return nil } return o.Reference } -func (o *Transactions) GetTransactionType() *BankFeedStatementTransactionType { +func (o *Transaction) GetTransactionType() *BankFeedStatementTransactionType { if o == nil { return nil } @@ -184,7 +184,7 @@ type BankFeedStatement struct { // Whether the amount is a credit or debit. EndBalanceCreditOrDebit *CreditOrDebit `json:"end_balance_credit_or_debit,omitempty"` // List of transactions in the bank feed statement. - Transactions []Transactions `json:"transactions,omitempty"` + Transactions []Transaction `json:"transactions,omitempty"` // The date and time when the object was created. CreatedAt *time.Time `json:"created_at,omitempty"` // The user who created the object. @@ -269,7 +269,7 @@ func (o *BankFeedStatement) GetEndBalanceCreditOrDebit() *CreditOrDebit { return o.EndBalanceCreditOrDebit } -func (o *BankFeedStatement) GetTransactions() []Transactions { +func (o *BankFeedStatement) GetTransactions() []Transaction { if o == nil { return nil } @@ -322,7 +322,7 @@ type BankFeedStatementInput struct { // Whether the amount is a credit or debit. EndBalanceCreditOrDebit *CreditOrDebit `json:"end_balance_credit_or_debit,omitempty"` // List of transactions in the bank feed statement. - Transactions []Transactions `json:"transactions,omitempty"` + Transactions []Transaction `json:"transactions,omitempty"` } func (b BankFeedStatementInput) MarshalJSON() ([]byte, error) { @@ -392,7 +392,7 @@ func (o *BankFeedStatementInput) GetEndBalanceCreditOrDebit() *CreditOrDebit { return o.EndBalanceCreditOrDebit } -func (o *BankFeedStatementInput) GetTransactions() []Transactions { +func (o *BankFeedStatementInput) GetTransactions() []Transaction { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go b/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go index 13d17b97..3b3b2cab 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/billpayment.go @@ -84,7 +84,7 @@ func (e *BillPaymentAllocationType) UnmarshalJSON(data []byte) error { } } -type Allocations struct { +type BillPaymentAllocation struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` // Type of entity this payment should be attributed to. @@ -96,35 +96,35 @@ type Allocations struct { AllocationID *string `json:"allocation_id,omitempty"` } -func (o *Allocations) GetID() *string { +func (o *BillPaymentAllocation) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Allocations) GetType() *BillPaymentAllocationType { +func (o *BillPaymentAllocation) GetType() *BillPaymentAllocationType { if o == nil { return nil } return o.Type } -func (o *Allocations) GetCode() *string { +func (o *BillPaymentAllocation) GetCode() *string { if o == nil { return nil } return o.Code } -func (o *Allocations) GetAmount() *float64 { +func (o *BillPaymentAllocation) GetAmount() *float64 { if o == nil { return nil } return o.Amount } -func (o *Allocations) GetAllocationID() *string { +func (o *BillPaymentAllocation) GetAllocationID() *string { if o == nil { return nil } @@ -162,8 +162,8 @@ type BillPayment struct { // Status of payment Status *PaymentStatus `json:"status,omitempty"` // Type of payment - Type *BillPaymentType `json:"type,omitempty"` - Allocations []Allocations `json:"allocations,omitempty"` + Type *BillPaymentType `json:"type,omitempty"` + Allocations []BillPaymentAllocation `json:"allocations,omitempty"` // Note associated with the transaction Note *string `json:"note,omitempty"` // Number associated with the transaction @@ -312,7 +312,7 @@ func (o *BillPayment) GetType() *BillPaymentType { return o.Type } -func (o *BillPayment) GetAllocations() []Allocations { +func (o *BillPayment) GetAllocations() []BillPaymentAllocation { if o == nil { return nil } @@ -403,7 +403,7 @@ func (o *BillPayment) GetPassThrough() []PassThroughBody { return o.PassThrough } -type BillPaymentAllocations struct { +type BillPaymentAllocationInput struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` // Type of entity this payment should be attributed to. @@ -414,28 +414,28 @@ type BillPaymentAllocations struct { AllocationID *string `json:"allocation_id,omitempty"` } -func (o *BillPaymentAllocations) GetID() *string { +func (o *BillPaymentAllocationInput) GetID() *string { if o == nil { return nil } return o.ID } -func (o *BillPaymentAllocations) GetType() *BillPaymentAllocationType { +func (o *BillPaymentAllocationInput) GetType() *BillPaymentAllocationType { if o == nil { return nil } return o.Type } -func (o *BillPaymentAllocations) GetAmount() *float64 { +func (o *BillPaymentAllocationInput) GetAmount() *float64 { if o == nil { return nil } return o.Amount } -func (o *BillPaymentAllocations) GetAllocationID() *string { +func (o *BillPaymentAllocationInput) GetAllocationID() *string { if o == nil { return nil } @@ -469,8 +469,8 @@ type BillPaymentInput struct { // Status of payment Status *PaymentStatus `json:"status,omitempty"` // Type of payment - Type *BillPaymentType `json:"type,omitempty"` - Allocations []BillPaymentAllocations `json:"allocations,omitempty"` + Type *BillPaymentType `json:"type,omitempty"` + Allocations []BillPaymentAllocationInput `json:"allocations,omitempty"` // Note associated with the transaction Note *string `json:"note,omitempty"` // Number associated with the transaction @@ -595,7 +595,7 @@ func (o *BillPaymentInput) GetType() *BillPaymentType { return o.Type } -func (o *BillPaymentInput) GetAllocations() []BillPaymentAllocations { +func (o *BillPaymentInput) GetAllocations() []BillPaymentAllocationInput { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/billssort.go b/src/__tests__/mockserver/internal/sdk/models/components/billssort.go index 84231d23..4dfdeb58 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/billssort.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/billssort.go @@ -8,18 +8,18 @@ import ( "mockserver/internal/sdk/utils" ) -// By - The field on which to sort the Bills -type By string +// BillsSortBy - The field on which to sort the Bills +type BillsSortBy string const ( - ByUpdatedAt By = "updated_at" - ByCreatedAt By = "created_at" + BillsSortByUpdatedAt BillsSortBy = "updated_at" + BillsSortByCreatedAt BillsSortBy = "created_at" ) -func (e By) ToPointer() *By { +func (e BillsSortBy) ToPointer() *BillsSortBy { return &e } -func (e *By) UnmarshalJSON(data []byte) error { +func (e *BillsSortBy) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -28,16 +28,16 @@ func (e *By) UnmarshalJSON(data []byte) error { case "updated_at": fallthrough case "created_at": - *e = By(v) + *e = BillsSortBy(v) return nil default: - return fmt.Errorf("invalid value for By: %v", v) + return fmt.Errorf("invalid value for BillsSortBy: %v", v) } } type BillsSort struct { // The field on which to sort the Bills - By *By `queryParam:"name=by"` + By *BillsSortBy `queryParam:"name=by"` // The direction in which to sort the results Direction *SortDirection `default:"asc" queryParam:"name=direction"` } @@ -53,7 +53,7 @@ func (b *BillsSort) UnmarshalJSON(data []byte) error { return nil } -func (o *BillsSort) GetBy() *By { +func (o *BillsSort) GetBy() *BillsSortBy { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/connection.go b/src/__tests__/mockserver/internal/sdk/models/components/connection.go index 2a89f40c..a96777da 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/connection.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/connection.go @@ -65,76 +65,76 @@ func (e *Target) UnmarshalJSON(data []byte) error { } } -type Value5Type string +type ConnectionValue1Type string const ( - Value5TypeStr Value5Type = "str" - Value5TypeInteger Value5Type = "integer" - Value5TypeNumber Value5Type = "number" + ConnectionValue1TypeStr ConnectionValue1Type = "str" + ConnectionValue1TypeInteger ConnectionValue1Type = "integer" + ConnectionValue1TypeNumber ConnectionValue1Type = "number" ) -type Value5 struct { +type ConnectionValue1 struct { Str *string Integer *int64 Number *float64 - Type Value5Type + Type ConnectionValue1Type } -func CreateValue5Str(str string) Value5 { - typ := Value5TypeStr +func CreateConnectionValue1Str(str string) ConnectionValue1 { + typ := ConnectionValue1TypeStr - return Value5{ + return ConnectionValue1{ Str: &str, Type: typ, } } -func CreateValue5Integer(integer int64) Value5 { - typ := Value5TypeInteger +func CreateConnectionValue1Integer(integer int64) ConnectionValue1 { + typ := ConnectionValue1TypeInteger - return Value5{ + return ConnectionValue1{ Integer: &integer, Type: typ, } } -func CreateValue5Number(number float64) Value5 { - typ := Value5TypeNumber +func CreateConnectionValue1Number(number float64) ConnectionValue1 { + typ := ConnectionValue1TypeNumber - return Value5{ + return ConnectionValue1{ Number: &number, Type: typ, } } -func (u *Value5) UnmarshalJSON(data []byte) error { +func (u *ConnectionValue1) UnmarshalJSON(data []byte) error { var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { u.Str = &str - u.Type = Value5TypeStr + u.Type = ConnectionValue1TypeStr return nil } var integer int64 = int64(0) if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { u.Integer = &integer - u.Type = Value5TypeInteger + u.Type = ConnectionValue1TypeInteger return nil } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { u.Number = &number - u.Type = Value5TypeNumber + u.Type = ConnectionValue1TypeNumber return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for Value5", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ConnectionValue1", string(data)) } -func (u Value5) MarshalJSON() ([]byte, error) { +func (u ConnectionValue1) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } @@ -147,115 +147,115 @@ func (u Value5) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Number, "", true) } - return nil, errors.New("could not marshal union type Value5: all fields are null") + return nil, errors.New("could not marshal union type ConnectionValue1: all fields are null") } -type ConnectionValueType string +type ConnectionValue2Type string const ( - ConnectionValueTypeStr ConnectionValueType = "str" - ConnectionValueTypeInteger ConnectionValueType = "integer" - ConnectionValueTypeNumber ConnectionValueType = "number" - ConnectionValueTypeBoolean ConnectionValueType = "boolean" - ConnectionValueTypeArrayOfValue5 ConnectionValueType = "arrayOfValue5" + ConnectionValue2TypeStr ConnectionValue2Type = "str" + ConnectionValue2TypeInteger ConnectionValue2Type = "integer" + ConnectionValue2TypeNumber ConnectionValue2Type = "number" + ConnectionValue2TypeBoolean ConnectionValue2Type = "boolean" + ConnectionValue2TypeArrayOfConnectionValue1 ConnectionValue2Type = "arrayOfConnectionValue1" ) -type ConnectionValue struct { - Str *string - Integer *int64 - Number *float64 - Boolean *bool - ArrayOfValue5 []Value5 +type ConnectionValue2 struct { + Str *string + Integer *int64 + Number *float64 + Boolean *bool + ArrayOfConnectionValue1 []ConnectionValue1 - Type ConnectionValueType + Type ConnectionValue2Type } -func CreateConnectionValueStr(str string) ConnectionValue { - typ := ConnectionValueTypeStr +func CreateConnectionValue2Str(str string) ConnectionValue2 { + typ := ConnectionValue2TypeStr - return ConnectionValue{ + return ConnectionValue2{ Str: &str, Type: typ, } } -func CreateConnectionValueInteger(integer int64) ConnectionValue { - typ := ConnectionValueTypeInteger +func CreateConnectionValue2Integer(integer int64) ConnectionValue2 { + typ := ConnectionValue2TypeInteger - return ConnectionValue{ + return ConnectionValue2{ Integer: &integer, Type: typ, } } -func CreateConnectionValueNumber(number float64) ConnectionValue { - typ := ConnectionValueTypeNumber +func CreateConnectionValue2Number(number float64) ConnectionValue2 { + typ := ConnectionValue2TypeNumber - return ConnectionValue{ + return ConnectionValue2{ Number: &number, Type: typ, } } -func CreateConnectionValueBoolean(boolean bool) ConnectionValue { - typ := ConnectionValueTypeBoolean +func CreateConnectionValue2Boolean(boolean bool) ConnectionValue2 { + typ := ConnectionValue2TypeBoolean - return ConnectionValue{ + return ConnectionValue2{ Boolean: &boolean, Type: typ, } } -func CreateConnectionValueArrayOfValue5(arrayOfValue5 []Value5) ConnectionValue { - typ := ConnectionValueTypeArrayOfValue5 +func CreateConnectionValue2ArrayOfConnectionValue1(arrayOfConnectionValue1 []ConnectionValue1) ConnectionValue2 { + typ := ConnectionValue2TypeArrayOfConnectionValue1 - return ConnectionValue{ - ArrayOfValue5: arrayOfValue5, - Type: typ, + return ConnectionValue2{ + ArrayOfConnectionValue1: arrayOfConnectionValue1, + Type: typ, } } -func (u *ConnectionValue) UnmarshalJSON(data []byte) error { +func (u *ConnectionValue2) UnmarshalJSON(data []byte) error { var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { u.Str = &str - u.Type = ConnectionValueTypeStr + u.Type = ConnectionValue2TypeStr return nil } var integer int64 = int64(0) if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { u.Integer = &integer - u.Type = ConnectionValueTypeInteger + u.Type = ConnectionValue2TypeInteger return nil } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { u.Number = &number - u.Type = ConnectionValueTypeNumber + u.Type = ConnectionValue2TypeNumber return nil } var boolean bool = false if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { u.Boolean = &boolean - u.Type = ConnectionValueTypeBoolean + u.Type = ConnectionValue2TypeBoolean return nil } - var arrayOfValue5 []Value5 = []Value5{} - if err := utils.UnmarshalJSON(data, &arrayOfValue5, "", true, true); err == nil { - u.ArrayOfValue5 = arrayOfValue5 - u.Type = ConnectionValueTypeArrayOfValue5 + var arrayOfConnectionValue1 []ConnectionValue1 = []ConnectionValue1{} + if err := utils.UnmarshalJSON(data, &arrayOfConnectionValue1, "", true, true); err == nil { + u.ArrayOfConnectionValue1 = arrayOfConnectionValue1 + u.Type = ConnectionValue2TypeArrayOfConnectionValue1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for ConnectionValue", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ConnectionValue2", string(data)) } -func (u ConnectionValue) MarshalJSON() ([]byte, error) { +func (u ConnectionValue2) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } @@ -272,42 +272,42 @@ func (u ConnectionValue) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Boolean, "", true) } - if u.ArrayOfValue5 != nil { - return utils.MarshalJSON(u.ArrayOfValue5, "", true) + if u.ArrayOfConnectionValue1 != nil { + return utils.MarshalJSON(u.ArrayOfConnectionValue1, "", true) } - return nil, errors.New("could not marshal union type ConnectionValue: all fields are null") + return nil, errors.New("could not marshal union type ConnectionValue2: all fields are null") } -type Defaults struct { +type Default struct { Target *Target `json:"target,omitempty"` ID *string `json:"id,omitempty"` Options []FormFieldOption `json:"options,omitempty"` - Value *ConnectionValue `json:"value,omitempty"` + Value *ConnectionValue2 `json:"value,omitempty"` } -func (o *Defaults) GetTarget() *Target { +func (o *Default) GetTarget() *Target { if o == nil { return nil } return o.Target } -func (o *Defaults) GetID() *string { +func (o *Default) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Defaults) GetOptions() []FormFieldOption { +func (o *Default) GetOptions() []FormFieldOption { if o == nil { return nil } return o.Options } -func (o *Defaults) GetValue() *ConnectionValue { +func (o *Default) GetValue() *ConnectionValue2 { if o == nil { return nil } @@ -315,8 +315,8 @@ func (o *Defaults) GetValue() *ConnectionValue { } type Configuration struct { - Resource *string `json:"resource,omitempty"` - Defaults []Defaults `json:"defaults,omitempty"` + Resource *string `json:"resource,omitempty"` + Defaults []Default `json:"defaults,omitempty"` } func (o *Configuration) GetResource() *string { @@ -326,7 +326,7 @@ func (o *Configuration) GetResource() *string { return o.Resource } -func (o *Configuration) GetDefaults() []Defaults { +func (o *Configuration) GetDefaults() []Default { if o == nil { return nil } @@ -605,46 +605,46 @@ func (o *Connection) GetUpdatedAt() *float64 { return o.UpdatedAt } -type ConnectionDefaults struct { +type DefaultInput struct { ID *string `json:"id,omitempty"` Options []FormFieldOption `json:"options,omitempty"` - Value *ConnectionValue `json:"value,omitempty"` + Value *ConnectionValue2 `json:"value,omitempty"` } -func (o *ConnectionDefaults) GetID() *string { +func (o *DefaultInput) GetID() *string { if o == nil { return nil } return o.ID } -func (o *ConnectionDefaults) GetOptions() []FormFieldOption { +func (o *DefaultInput) GetOptions() []FormFieldOption { if o == nil { return nil } return o.Options } -func (o *ConnectionDefaults) GetValue() *ConnectionValue { +func (o *DefaultInput) GetValue() *ConnectionValue2 { if o == nil { return nil } return o.Value } -type ConnectionConfiguration struct { - Resource *string `json:"resource,omitempty"` - Defaults []ConnectionDefaults `json:"defaults,omitempty"` +type ConfigurationInput struct { + Resource *string `json:"resource,omitempty"` + Defaults []DefaultInput `json:"defaults,omitempty"` } -func (o *ConnectionConfiguration) GetResource() *string { +func (o *ConfigurationInput) GetResource() *string { if o == nil { return nil } return o.Resource } -func (o *ConnectionConfiguration) GetDefaults() []ConnectionDefaults { +func (o *ConfigurationInput) GetDefaults() []DefaultInput { if o == nil { return nil } @@ -657,8 +657,8 @@ type ConnectionInput struct { // Connection settings. Values will persist to `form_fields` with corresponding id Settings map[string]any `json:"settings,omitempty"` // Attach your own consumer specific metadata - Metadata map[string]any `json:"metadata,omitempty"` - Configuration []ConnectionConfiguration `json:"configuration,omitempty"` + Metadata map[string]any `json:"metadata,omitempty"` + Configuration []ConfigurationInput `json:"configuration,omitempty"` // List of custom mappings configured for this connection CustomMappings []CustomMappingInput `json:"custom_mappings,omitempty"` } @@ -684,7 +684,7 @@ func (o *ConnectionInput) GetMetadata() map[string]any { return o.Metadata } -func (o *ConnectionInput) GetConfiguration() []ConnectionConfiguration { +func (o *ConnectionInput) GetConfiguration() []ConfigurationInput { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/connectionimportdata.go b/src/__tests__/mockserver/internal/sdk/models/components/connectionimportdata.go index b6c72523..4747925f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/connectionimportdata.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/connectionimportdata.go @@ -57,14 +57,10 @@ func (o *Credentials) GetExpiresIn() *int64 { return o.ExpiresIn } -// Settings - Connection settings. Values will persist to `form_fields` with corresponding id -type Settings struct { -} - type ConnectionImportData struct { Credentials *Credentials `json:"credentials,omitempty"` // Connection settings. Values will persist to `form_fields` with corresponding id - Settings *Settings `json:"settings,omitempty"` + Settings map[string]any `json:"settings,omitempty"` // Attach your own consumer specific metadata Metadata map[string]any `json:"metadata,omitempty"` } @@ -76,7 +72,7 @@ func (o *ConnectionImportData) GetCredentials() *Credentials { return o.Credentials } -func (o *ConnectionImportData) GetSettings() *Settings { +func (o *ConnectionImportData) GetSettings() map[string]any { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/connector.go b/src/__tests__/mockserver/internal/sdk/models/components/connector.go index d39580c3..a6434ac0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/connector.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/connector.go @@ -100,7 +100,7 @@ func (e *OauthCredentialsSource) UnmarshalJSON(data []byte) error { } } -type OauthScopes struct { +type OauthScope struct { // ID of the OAuth scope. ID *string `json:"id,omitempty"` // Label of the OAuth scope. @@ -109,57 +109,57 @@ type OauthScopes struct { DefaultApis []string `json:"default_apis,omitempty"` } -func (o *OauthScopes) GetID() *string { +func (o *OauthScope) GetID() *string { if o == nil { return nil } return o.ID } -func (o *OauthScopes) GetLabel() *string { +func (o *OauthScope) GetLabel() *string { if o == nil { return nil } return o.Label } -func (o *OauthScopes) GetDefaultApis() []string { +func (o *OauthScope) GetDefaultApis() []string { if o == nil { return nil } return o.DefaultApis } -// ConnectorOauthScopes - OAuth scopes required for the connector. Add these scopes to your OAuth app. -type ConnectorOauthScopes struct { +// UnifiedAPIOauthScope - OAuth scopes required for the connector. Add these scopes to your OAuth app. +type UnifiedAPIOauthScope struct { // ID of the OAuth scope. ID *string `json:"id,omitempty"` // Label of the OAuth scope. Label *string `json:"label,omitempty"` } -func (o *ConnectorOauthScopes) GetID() *string { +func (o *UnifiedAPIOauthScope) GetID() *string { if o == nil { return nil } return o.ID } -func (o *ConnectorOauthScopes) GetLabel() *string { +func (o *UnifiedAPIOauthScope) GetLabel() *string { if o == nil { return nil } return o.Label } -type UnifiedApis struct { +type ConnectorUnifiedAPI struct { // Name of Apideck Unified API ID *UnifiedAPIID `json:"id,omitempty"` // Name of the API. Name *string `json:"name,omitempty"` // Indicates whether a connector only supports authentication. In this case the connector is not mapped to a Unified API, but can be used with the Proxy API AuthOnly *bool `json:"auth_only,omitempty"` - OauthScopes []ConnectorOauthScopes `json:"oauth_scopes,omitempty"` + OauthScopes []UnifiedAPIOauthScope `json:"oauth_scopes,omitempty"` // List of resources that are supported on the connector. SupportedResources []LinkedConnectorResource `json:"supported_resources,omitempty"` // List of resources that are not supported on the downstream. @@ -168,49 +168,49 @@ type UnifiedApis struct { SupportedEvents []ConnectorEvent `json:"supported_events,omitempty"` } -func (o *UnifiedApis) GetID() *UnifiedAPIID { +func (o *ConnectorUnifiedAPI) GetID() *UnifiedAPIID { if o == nil { return nil } return o.ID } -func (o *UnifiedApis) GetName() *string { +func (o *ConnectorUnifiedAPI) GetName() *string { if o == nil { return nil } return o.Name } -func (o *UnifiedApis) GetAuthOnly() *bool { +func (o *ConnectorUnifiedAPI) GetAuthOnly() *bool { if o == nil { return nil } return o.AuthOnly } -func (o *UnifiedApis) GetOauthScopes() []ConnectorOauthScopes { +func (o *ConnectorUnifiedAPI) GetOauthScopes() []UnifiedAPIOauthScope { if o == nil { return nil } return o.OauthScopes } -func (o *UnifiedApis) GetSupportedResources() []LinkedConnectorResource { +func (o *ConnectorUnifiedAPI) GetSupportedResources() []LinkedConnectorResource { if o == nil { return nil } return o.SupportedResources } -func (o *UnifiedApis) GetDownstreamUnsupportedResources() []string { +func (o *ConnectorUnifiedAPI) GetDownstreamUnsupportedResources() []string { if o == nil { return nil } return o.DownstreamUnsupportedResources } -func (o *UnifiedApis) GetSupportedEvents() []ConnectorEvent { +func (o *ConnectorUnifiedAPI) GetSupportedEvents() []ConnectorEvent { if o == nil { return nil } @@ -269,7 +269,7 @@ type Connector struct { // Location of the OAuth client credentials. For most connectors the OAuth client credentials are stored on integration and managed by the application owner. For others they are stored on connection and managed by the consumer in Vault. OauthCredentialsSource *OauthCredentialsSource `json:"oauth_credentials_source,omitempty"` // List of OAuth Scopes available for this connector. - OauthScopes []OauthScopes `json:"oauth_scopes,omitempty"` + OauthScopes []OauthScope `json:"oauth_scopes,omitempty"` // Set to `true` when connector allows the definition of custom scopes. CustomScopes *bool `json:"custom_scopes,omitempty"` // Indicates whether Apideck Sandbox OAuth credentials are available. @@ -278,7 +278,7 @@ type Connector struct { // Service provider identifier ServiceID *string `json:"service_id,omitempty"` // List of Unified APIs that feature this connector. - UnifiedApis []UnifiedApis `json:"unified_apis,omitempty"` + UnifiedApis []ConnectorUnifiedAPI `json:"unified_apis,omitempty"` // List of resources that are supported on the connector. SupportedResources []LinkedConnectorResource `json:"supported_resources,omitempty"` // List of resources that have settings that can be configured. @@ -398,7 +398,7 @@ func (o *Connector) GetOauthCredentialsSource() *OauthCredentialsSource { return o.OauthCredentialsSource } -func (o *Connector) GetOauthScopes() []OauthScopes { +func (o *Connector) GetOauthScopes() []OauthScope { if o == nil { return nil } @@ -433,7 +433,7 @@ func (o *Connector) GetServiceID() *string { return o.ServiceID } -func (o *Connector) GetUnifiedApis() []UnifiedApis { +func (o *Connector) GetUnifiedApis() []ConnectorUnifiedAPI { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customer.go b/src/__tests__/mockserver/internal/sdk/models/components/customer.go index ab3db441..8872026b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customer.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customer.go @@ -9,21 +9,21 @@ import ( "time" ) -// CustomerStatusStatus - Customer status -type CustomerStatusStatus string +// CustomerStatus - Customer status +type CustomerStatus string const ( - CustomerStatusStatusActive CustomerStatusStatus = "active" - CustomerStatusStatusInactive CustomerStatusStatus = "inactive" - CustomerStatusStatusArchived CustomerStatusStatus = "archived" - CustomerStatusStatusGdprErasureRequest CustomerStatusStatus = "gdpr-erasure-request" - CustomerStatusStatusUnknown CustomerStatusStatus = "unknown" + CustomerStatusActive CustomerStatus = "active" + CustomerStatusInactive CustomerStatus = "inactive" + CustomerStatusArchived CustomerStatus = "archived" + CustomerStatusGdprErasureRequest CustomerStatus = "gdpr-erasure-request" + CustomerStatusUnknown CustomerStatus = "unknown" ) -func (e CustomerStatusStatus) ToPointer() *CustomerStatusStatus { +func (e CustomerStatus) ToPointer() *CustomerStatus { return &e } -func (e *CustomerStatusStatus) UnmarshalJSON(data []byte) error { +func (e *CustomerStatus) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -38,10 +38,10 @@ func (e *CustomerStatusStatus) UnmarshalJSON(data []byte) error { case "gdpr-erasure-request": fallthrough case "unknown": - *e = CustomerStatusStatus(v) + *e = CustomerStatus(v) return nil default: - return fmt.Errorf("invalid value for CustomerStatusStatus: %v", v) + return fmt.Errorf("invalid value for CustomerStatus: %v", v) } } @@ -86,7 +86,7 @@ type Customer struct { // The parent customer this entity is linked to. Parent *LinkedParentCustomer `json:"parent,omitempty"` // Customer status - Status *CustomerStatusStatus `json:"status,omitempty"` + Status *CustomerStatus `json:"status,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check PaymentMethod *string `json:"payment_method,omitempty"` // The channel through which the transaction is processed. @@ -287,7 +287,7 @@ func (o *Customer) GetParent() *LinkedParentCustomer { return o.Parent } -func (o *Customer) GetStatus() *CustomerStatusStatus { +func (o *Customer) GetStatus() *CustomerStatus { if o == nil { return nil } @@ -401,7 +401,7 @@ type CustomerInput struct { // The parent customer this entity is linked to. Parent *LinkedParentCustomer `json:"parent,omitempty"` // Customer status - Status *CustomerStatusStatus `json:"status,omitempty"` + Status *CustomerStatus `json:"status,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check PaymentMethod *string `json:"payment_method,omitempty"` // The channel through which the transaction is processed. @@ -567,7 +567,7 @@ func (o *CustomerInput) GetParent() *LinkedParentCustomer { return o.Parent } -func (o *CustomerInput) GetStatus() *CustomerStatusStatus { +func (o *CustomerInput) GetStatus() *CustomerStatus { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customfield.go b/src/__tests__/mockserver/internal/sdk/models/components/customfield.go index 4af17bfd..ddf369ea 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customfield.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customfield.go @@ -8,136 +8,136 @@ import ( "mockserver/internal/sdk/utils" ) -type Six struct { +type CustomFieldValue2 struct { } -type Four struct { +type CustomFieldValue1 struct { } -type ValueType string +type CustomFieldValueUnionType string const ( - ValueTypeStr ValueType = "str" - ValueTypeNumber ValueType = "number" - ValueTypeBoolean ValueType = "boolean" - ValueTypeFour ValueType = "4" - ValueTypeArrayOfStr ValueType = "arrayOfStr" - ValueTypeArrayOf6 ValueType = "arrayOf6" + CustomFieldValueUnionTypeStr CustomFieldValueUnionType = "str" + CustomFieldValueUnionTypeNumber CustomFieldValueUnionType = "number" + CustomFieldValueUnionTypeBoolean CustomFieldValueUnionType = "boolean" + CustomFieldValueUnionTypeCustomFieldValue1 CustomFieldValueUnionType = "CustomField_value_1" + CustomFieldValueUnionTypeArrayOfStr CustomFieldValueUnionType = "arrayOfStr" + CustomFieldValueUnionTypeArrayOfCustomFieldValue2 CustomFieldValueUnionType = "arrayOfCustomFieldValue2" ) -type Value struct { - Str *string - Number *float64 - Boolean *bool - Four *Four - ArrayOfStr []string - ArrayOf6 []Six +type CustomFieldValueUnion struct { + Str *string + Number *float64 + Boolean *bool + CustomFieldValue1 *CustomFieldValue1 + ArrayOfStr []string + ArrayOfCustomFieldValue2 []CustomFieldValue2 - Type ValueType + Type CustomFieldValueUnionType } -func CreateValueStr(str string) Value { - typ := ValueTypeStr +func CreateCustomFieldValueUnionStr(str string) CustomFieldValueUnion { + typ := CustomFieldValueUnionTypeStr - return Value{ + return CustomFieldValueUnion{ Str: &str, Type: typ, } } -func CreateValueNumber(number float64) Value { - typ := ValueTypeNumber +func CreateCustomFieldValueUnionNumber(number float64) CustomFieldValueUnion { + typ := CustomFieldValueUnionTypeNumber - return Value{ + return CustomFieldValueUnion{ Number: &number, Type: typ, } } -func CreateValueBoolean(boolean bool) Value { - typ := ValueTypeBoolean +func CreateCustomFieldValueUnionBoolean(boolean bool) CustomFieldValueUnion { + typ := CustomFieldValueUnionTypeBoolean - return Value{ + return CustomFieldValueUnion{ Boolean: &boolean, Type: typ, } } -func CreateValueFour(four Four) Value { - typ := ValueTypeFour +func CreateCustomFieldValueUnionCustomFieldValue1(customFieldValue1 CustomFieldValue1) CustomFieldValueUnion { + typ := CustomFieldValueUnionTypeCustomFieldValue1 - return Value{ - Four: &four, - Type: typ, + return CustomFieldValueUnion{ + CustomFieldValue1: &customFieldValue1, + Type: typ, } } -func CreateValueArrayOfStr(arrayOfStr []string) Value { - typ := ValueTypeArrayOfStr +func CreateCustomFieldValueUnionArrayOfStr(arrayOfStr []string) CustomFieldValueUnion { + typ := CustomFieldValueUnionTypeArrayOfStr - return Value{ + return CustomFieldValueUnion{ ArrayOfStr: arrayOfStr, Type: typ, } } -func CreateValueArrayOf6(arrayOf6 []Six) Value { - typ := ValueTypeArrayOf6 +func CreateCustomFieldValueUnionArrayOfCustomFieldValue2(arrayOfCustomFieldValue2 []CustomFieldValue2) CustomFieldValueUnion { + typ := CustomFieldValueUnionTypeArrayOfCustomFieldValue2 - return Value{ - ArrayOf6: arrayOf6, - Type: typ, + return CustomFieldValueUnion{ + ArrayOfCustomFieldValue2: arrayOfCustomFieldValue2, + Type: typ, } } -func (u *Value) UnmarshalJSON(data []byte) error { +func (u *CustomFieldValueUnion) UnmarshalJSON(data []byte) error { - var four Four = Four{} - if err := utils.UnmarshalJSON(data, &four, "", true, true); err == nil { - u.Four = &four - u.Type = ValueTypeFour + var customFieldValue1 CustomFieldValue1 = CustomFieldValue1{} + if err := utils.UnmarshalJSON(data, &customFieldValue1, "", true, true); err == nil { + u.CustomFieldValue1 = &customFieldValue1 + u.Type = CustomFieldValueUnionTypeCustomFieldValue1 return nil } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { u.Str = &str - u.Type = ValueTypeStr + u.Type = CustomFieldValueUnionTypeStr return nil } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { u.Number = &number - u.Type = ValueTypeNumber + u.Type = CustomFieldValueUnionTypeNumber return nil } var boolean bool = false if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { u.Boolean = &boolean - u.Type = ValueTypeBoolean + u.Type = CustomFieldValueUnionTypeBoolean return nil } var arrayOfStr []string = []string{} if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { u.ArrayOfStr = arrayOfStr - u.Type = ValueTypeArrayOfStr + u.Type = CustomFieldValueUnionTypeArrayOfStr return nil } - var arrayOf6 []Six = []Six{} - if err := utils.UnmarshalJSON(data, &arrayOf6, "", true, true); err == nil { - u.ArrayOf6 = arrayOf6 - u.Type = ValueTypeArrayOf6 + var arrayOfCustomFieldValue2 []CustomFieldValue2 = []CustomFieldValue2{} + if err := utils.UnmarshalJSON(data, &arrayOfCustomFieldValue2, "", true, true); err == nil { + u.ArrayOfCustomFieldValue2 = arrayOfCustomFieldValue2 + u.Type = CustomFieldValueUnionTypeArrayOfCustomFieldValue2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for Value", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CustomFieldValueUnion", string(data)) } -func (u Value) MarshalJSON() ([]byte, error) { +func (u CustomFieldValueUnion) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } @@ -150,19 +150,19 @@ func (u Value) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Boolean, "", true) } - if u.Four != nil { - return utils.MarshalJSON(u.Four, "", true) + if u.CustomFieldValue1 != nil { + return utils.MarshalJSON(u.CustomFieldValue1, "", true) } if u.ArrayOfStr != nil { return utils.MarshalJSON(u.ArrayOfStr, "", true) } - if u.ArrayOf6 != nil { - return utils.MarshalJSON(u.ArrayOf6, "", true) + if u.ArrayOfCustomFieldValue2 != nil { + return utils.MarshalJSON(u.ArrayOfCustomFieldValue2, "", true) } - return nil, errors.New("could not marshal union type Value: all fields are null") + return nil, errors.New("could not marshal union type CustomFieldValueUnion: all fields are null") } type CustomField struct { @@ -171,8 +171,8 @@ type CustomField struct { // Name of the custom field. Name *string `json:"name,omitempty"` // More information about the custom field - Description *string `json:"description,omitempty"` - Value *Value `json:"value,omitempty"` + Description *string `json:"description,omitempty"` + Value *CustomFieldValueUnion `json:"value,omitempty"` } func (o *CustomField) GetID() *string { @@ -196,7 +196,7 @@ func (o *CustomField) GetDescription() *string { return o.Description } -func (o *CustomField) GetValue() *Value { +func (o *CustomField) GetValue() *CustomFieldValueUnion { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customobject.go b/src/__tests__/mockserver/internal/sdk/models/components/customobject.go index 49ff8260..67d189b8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customobject.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customobject.go @@ -2,19 +2,19 @@ package components -type CustomObjectFields struct { +type CustomObjectField struct { Name *string `json:"name,omitempty"` Value *string `json:"value,omitempty"` } -func (o *CustomObjectFields) GetName() *string { +func (o *CustomObjectField) GetName() *string { if o == nil { return nil } return o.Name } -func (o *CustomObjectFields) GetValue() *string { +func (o *CustomObjectField) GetValue() *string { if o == nil { return nil } @@ -27,8 +27,8 @@ type CustomObject struct { // The unique identifier of the owner of the custom object OwnerID *string `json:"owner_id,omitempty"` // The name of the custom object - Name *string `json:"name,omitempty"` - Fields []CustomObjectFields `json:"fields,omitempty"` + Name *string `json:"name,omitempty"` + Fields []CustomObjectField `json:"fields,omitempty"` // The unique identifier of the user who last updated the custom object UpdatedBy *string `json:"updated_by,omitempty"` // The unique identifier of the user who created the custom object @@ -62,7 +62,7 @@ func (o *CustomObject) GetName() *string { return o.Name } -func (o *CustomObject) GetFields() []CustomObjectFields { +func (o *CustomObject) GetFields() []CustomObjectField { if o == nil { return nil } @@ -106,8 +106,8 @@ func (o *CustomObject) GetPassThrough() []PassThroughBody { type CustomObjectInput struct { // The name of the custom object - Name *string `json:"name,omitempty"` - Fields []CustomObjectFields `json:"fields,omitempty"` + Name *string `json:"name,omitempty"` + Fields []CustomObjectField `json:"fields,omitempty"` // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. PassThrough []PassThroughBody `json:"pass_through,omitempty"` } @@ -119,7 +119,7 @@ func (o *CustomObjectInput) GetName() *string { return o.Name } -func (o *CustomObjectInput) GetFields() []CustomObjectFields { +func (o *CustomObjectInput) GetFields() []CustomObjectField { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customobjectschema.go b/src/__tests__/mockserver/internal/sdk/models/components/customobjectschema.go index f6145c5e..6f041a5e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customobjectschema.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customobjectschema.go @@ -63,80 +63,80 @@ func (e *CustomObjectSchemaType) UnmarshalJSON(data []byte) error { } } -type CustomObjectSchemaOptions struct { +type CustomObjectSchemaOption struct { Value *string `json:"value,omitempty"` Label *string `json:"label,omitempty"` } -func (o *CustomObjectSchemaOptions) GetValue() *string { +func (o *CustomObjectSchemaOption) GetValue() *string { if o == nil { return nil } return o.Value } -func (o *CustomObjectSchemaOptions) GetLabel() *string { +func (o *CustomObjectSchemaOption) GetLabel() *string { if o == nil { return nil } return o.Label } -type Fields struct { +type CustomObjectSchemaField struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Type *CustomObjectSchemaType `json:"type,omitempty"` Required *bool `json:"required,omitempty"` // Options for select and multiselect types - Options []CustomObjectSchemaOptions `json:"options,omitempty"` + Options []CustomObjectSchemaOption `json:"options,omitempty"` // Default value for the field DefaultValue *string `json:"default_value,omitempty"` } -func (o *Fields) GetID() *string { +func (o *CustomObjectSchemaField) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Fields) GetName() *string { +func (o *CustomObjectSchemaField) GetName() *string { if o == nil { return nil } return o.Name } -func (o *Fields) GetDescription() *string { +func (o *CustomObjectSchemaField) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *Fields) GetType() *CustomObjectSchemaType { +func (o *CustomObjectSchemaField) GetType() *CustomObjectSchemaType { if o == nil { return nil } return o.Type } -func (o *Fields) GetRequired() *bool { +func (o *CustomObjectSchemaField) GetRequired() *bool { if o == nil { return nil } return o.Required } -func (o *Fields) GetOptions() []CustomObjectSchemaOptions { +func (o *CustomObjectSchemaField) GetOptions() []CustomObjectSchemaOption { if o == nil { return nil } return o.Options } -func (o *Fields) GetDefaultValue() *string { +func (o *CustomObjectSchemaField) GetDefaultValue() *string { if o == nil { return nil } @@ -151,7 +151,7 @@ type CustomObjectSchema struct { // The description of the custom object schema Description *string `json:"description,omitempty"` // The fields defined in the schema - Fields []Fields `json:"fields,omitempty"` + Fields []CustomObjectSchemaField `json:"fields,omitempty"` // Whether the custom object schema is visible in the UI Visible *bool `json:"visible,omitempty"` // Whether the custom object schema is active @@ -189,7 +189,7 @@ func (o *CustomObjectSchema) GetDescription() *string { return o.Description } -func (o *CustomObjectSchema) GetFields() []Fields { +func (o *CustomObjectSchema) GetFields() []CustomObjectSchemaField { if o == nil { return nil } @@ -251,7 +251,7 @@ type CustomObjectSchemaInput struct { // The description of the custom object schema Description *string `json:"description,omitempty"` // The fields defined in the schema - Fields []Fields `json:"fields,omitempty"` + Fields []CustomObjectSchemaField `json:"fields,omitempty"` // Whether the custom object schema is visible in the UI Visible *bool `json:"visible,omitempty"` // Whether the custom object schema is active @@ -274,7 +274,7 @@ func (o *CustomObjectSchemaInput) GetDescription() *string { return o.Description } -func (o *CustomObjectSchemaInput) GetFields() []Fields { +func (o *CustomObjectSchemaInput) GetFields() []CustomObjectSchemaField { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/ecommercecustomer.go b/src/__tests__/mockserver/internal/sdk/models/components/ecommercecustomer.go index 7074b7fc..a0ee94db 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/ecommercecustomer.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/ecommercecustomer.go @@ -9,18 +9,18 @@ import ( "time" ) -// CustomerStatus - The current status of the customer -type CustomerStatus string +// EcommerceCustomerStatusCustomerStatus - The current status of the customer +type EcommerceCustomerStatusCustomerStatus string const ( - CustomerStatusActive CustomerStatus = "active" - CustomerStatusArchived CustomerStatus = "archived" + EcommerceCustomerStatusCustomerStatusActive EcommerceCustomerStatusCustomerStatus = "active" + EcommerceCustomerStatusCustomerStatusArchived EcommerceCustomerStatusCustomerStatus = "archived" ) -func (e CustomerStatus) ToPointer() *CustomerStatus { +func (e EcommerceCustomerStatusCustomerStatus) ToPointer() *EcommerceCustomerStatusCustomerStatus { return &e } -func (e *CustomerStatus) UnmarshalJSON(data []byte) error { +func (e *EcommerceCustomerStatusCustomerStatus) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -29,10 +29,10 @@ func (e *CustomerStatus) UnmarshalJSON(data []byte) error { case "active": fallthrough case "archived": - *e = CustomerStatus(v) + *e = EcommerceCustomerStatusCustomerStatus(v) return nil default: - return fmt.Errorf("invalid value for CustomerStatus: %v", v) + return fmt.Errorf("invalid value for EcommerceCustomerStatusCustomerStatus: %v", v) } } @@ -65,7 +65,7 @@ func (e *EcommerceCustomerType) UnmarshalJSON(data []byte) error { } } -type Addresses struct { +type EcommerceCustomerAddress struct { Type *EcommerceCustomerType `json:"type,omitempty"` // A unique identifier for an object. ID *string `json:"id,omitempty"` @@ -83,56 +83,56 @@ type Addresses struct { Country *string `json:"country,omitempty"` } -func (o *Addresses) GetType() *EcommerceCustomerType { +func (o *EcommerceCustomerAddress) GetType() *EcommerceCustomerType { if o == nil { return nil } return o.Type } -func (o *Addresses) GetID() *string { +func (o *EcommerceCustomerAddress) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Addresses) GetLine1() *string { +func (o *EcommerceCustomerAddress) GetLine1() *string { if o == nil { return nil } return o.Line1 } -func (o *Addresses) GetLine2() *string { +func (o *EcommerceCustomerAddress) GetLine2() *string { if o == nil { return nil } return o.Line2 } -func (o *Addresses) GetCity() *string { +func (o *EcommerceCustomerAddress) GetCity() *string { if o == nil { return nil } return o.City } -func (o *Addresses) GetState() *string { +func (o *EcommerceCustomerAddress) GetState() *string { if o == nil { return nil } return o.State } -func (o *Addresses) GetPostalCode() *string { +func (o *EcommerceCustomerAddress) GetPostalCode() *string { if o == nil { return nil } return o.PostalCode } -func (o *Addresses) GetCountry() *string { +func (o *EcommerceCustomerAddress) GetCountry() *string { if o == nil { return nil } @@ -151,7 +151,7 @@ type EcommerceCustomer struct { // Company name of the customer CompanyName *string `json:"company_name,omitempty"` // The current status of the customer - Status *CustomerStatus `json:"status,omitempty"` + Status *EcommerceCustomerStatusCustomerStatus `json:"status,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). Currency *Currency `json:"currency,omitempty"` // An array of email addresses for the customer. @@ -159,8 +159,8 @@ type EcommerceCustomer struct { // An array of phone numbers for the customer. PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"` // An array of addresses for the customer. - Addresses []Addresses `json:"addresses,omitempty"` - Orders []LinkedEcommerceOrder `json:"orders,omitempty"` + Addresses []EcommerceCustomerAddress `json:"addresses,omitempty"` + Orders []LinkedEcommerceOrder `json:"orders,omitempty"` // When custom mappings are configured on the resource, the result is included here. CustomMappings map[string]any `json:"custom_mappings,omitempty"` // The date and time when the object was created. @@ -215,7 +215,7 @@ func (o *EcommerceCustomer) GetCompanyName() *string { return o.CompanyName } -func (o *EcommerceCustomer) GetStatus() *CustomerStatus { +func (o *EcommerceCustomer) GetStatus() *EcommerceCustomerStatusCustomerStatus { if o == nil { return nil } @@ -243,7 +243,7 @@ func (o *EcommerceCustomer) GetPhoneNumbers() []PhoneNumber { return o.PhoneNumbers } -func (o *EcommerceCustomer) GetAddresses() []Addresses { +func (o *EcommerceCustomer) GetAddresses() []EcommerceCustomerAddress { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/ecommerceorderlineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/ecommerceorderlineitem.go index 3a20ee4c..55e107d9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/ecommerceorderlineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/ecommerceorderlineitem.go @@ -2,7 +2,7 @@ package components -type Options struct { +type EcommerceOrderLineItemOption struct { // A unique identifier for the option. ID *string `json:"id,omitempty"` // The name of the option. @@ -11,21 +11,21 @@ type Options struct { Value *string `json:"value,omitempty"` } -func (o *Options) GetID() *string { +func (o *EcommerceOrderLineItemOption) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Options) GetName() *string { +func (o *EcommerceOrderLineItemOption) GetName() *string { if o == nil { return nil } return o.Name } -func (o *Options) GetValue() *string { +func (o *EcommerceOrderLineItemOption) GetValue() *string { if o == nil { return nil } @@ -45,8 +45,8 @@ type EcommerceOrderLineItem struct { // The name of the product or variant associated with the line item. Name *string `json:"name"` // The description of the product or variant associated with the line item. - Description *string `json:"description,omitempty"` - Options []Options `json:"options,omitempty"` + Description *string `json:"description,omitempty"` + Options []EcommerceOrderLineItemOption `json:"options,omitempty"` // The quantity of the product or variant associated with the line item. Quantity *string `json:"quantity"` // The unit price of the product or variant associated with the line item. @@ -110,7 +110,7 @@ func (o *EcommerceOrderLineItem) GetDescription() *string { return o.Description } -func (o *EcommerceOrderLineItem) GetOptions() []Options { +func (o *EcommerceOrderLineItem) GetOptions() []EcommerceOrderLineItemOption { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/ecommerceproduct.go b/src/__tests__/mockserver/internal/sdk/models/components/ecommerceproduct.go index a65305bc..ec545fc0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/ecommerceproduct.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/ecommerceproduct.go @@ -36,28 +36,28 @@ func (e *ProductStatus) UnmarshalJSON(data []byte) error { } } -type Images struct { +type Image struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` // The URL of an image of the product. URL *string `json:"url,omitempty"` } -func (o *Images) GetID() *string { +func (o *Image) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Images) GetURL() *string { +func (o *Image) GetURL() *string { if o == nil { return nil } return o.URL } -type EcommerceProductOptions struct { +type EcommerceProductOption struct { // A unique identifier for the option of the product. ID *string `json:"id,omitempty"` // The name of the option for the product. @@ -65,28 +65,28 @@ type EcommerceProductOptions struct { Values []*string `json:"values,omitempty"` } -func (o *EcommerceProductOptions) GetID() *string { +func (o *EcommerceProductOption) GetID() *string { if o == nil { return nil } return o.ID } -func (o *EcommerceProductOptions) GetName() *string { +func (o *EcommerceProductOption) GetName() *string { if o == nil { return nil } return o.Name } -func (o *EcommerceProductOptions) GetValues() []*string { +func (o *EcommerceProductOption) GetValues() []*string { if o == nil { return nil } return o.Values } -type EcommerceProductVariantsOptions struct { +type VariantOption struct { // A unique identifier for the option of the variant. ID *string `json:"id,omitempty"` // The name of the option for the variant. @@ -95,49 +95,49 @@ type EcommerceProductVariantsOptions struct { Value *string `json:"value,omitempty"` } -func (o *EcommerceProductVariantsOptions) GetID() *string { +func (o *VariantOption) GetID() *string { if o == nil { return nil } return o.ID } -func (o *EcommerceProductVariantsOptions) GetName() *string { +func (o *VariantOption) GetName() *string { if o == nil { return nil } return o.Name } -func (o *EcommerceProductVariantsOptions) GetValue() *string { +func (o *VariantOption) GetValue() *string { if o == nil { return nil } return o.Value } -type EcommerceProductImages struct { +type VariantImage struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` // The URL of an image of the variant. URL *string `json:"url,omitempty"` } -func (o *EcommerceProductImages) GetID() *string { +func (o *VariantImage) GetID() *string { if o == nil { return nil } return o.ID } -func (o *EcommerceProductImages) GetURL() *string { +func (o *VariantImage) GetURL() *string { if o == nil { return nil } return o.URL } -type Variants struct { +type Variant struct { // A unique identifier for the variant of the product. ID *string `json:"id,omitempty"` // The name for the variant, used for displaying to customers. @@ -151,89 +151,89 @@ type Variants struct { // The weight of the variant. Weight *string `json:"weight,omitempty"` // The unit of measurement for the weight of the variant. - WeightUnit *string `json:"weight_unit,omitempty"` - Options []EcommerceProductVariantsOptions `json:"options,omitempty"` - Images []EcommerceProductImages `json:"images,omitempty"` + WeightUnit *string `json:"weight_unit,omitempty"` + Options []VariantOption `json:"options,omitempty"` + Images []VariantImage `json:"images,omitempty"` } -func (o *Variants) GetID() *string { +func (o *Variant) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Variants) GetName() *string { +func (o *Variant) GetName() *string { if o == nil { return nil } return o.Name } -func (o *Variants) GetPrice() *string { +func (o *Variant) GetPrice() *string { if o == nil { return nil } return o.Price } -func (o *Variants) GetSku() *string { +func (o *Variant) GetSku() *string { if o == nil { return nil } return o.Sku } -func (o *Variants) GetInventoryQuantity() *string { +func (o *Variant) GetInventoryQuantity() *string { if o == nil { return nil } return o.InventoryQuantity } -func (o *Variants) GetWeight() *string { +func (o *Variant) GetWeight() *string { if o == nil { return nil } return o.Weight } -func (o *Variants) GetWeightUnit() *string { +func (o *Variant) GetWeightUnit() *string { if o == nil { return nil } return o.WeightUnit } -func (o *Variants) GetOptions() []EcommerceProductVariantsOptions { +func (o *Variant) GetOptions() []VariantOption { if o == nil { return nil } return o.Options } -func (o *Variants) GetImages() []EcommerceProductImages { +func (o *Variant) GetImages() []VariantImage { if o == nil { return nil } return o.Images } -type EcommerceProductCategories struct { +type EcommerceProductCategory struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` // The name of the category. Name *string `json:"name,omitempty"` } -func (o *EcommerceProductCategories) GetID() *string { +func (o *EcommerceProductCategory) GetID() *string { if o == nil { return nil } return o.ID } -func (o *EcommerceProductCategories) GetName() *string { +func (o *EcommerceProductCategory) GetName() *string { if o == nil { return nil } @@ -256,18 +256,18 @@ type EcommerceProduct struct { // The quantity of the product in stock. InventoryQuantity *string `json:"inventory_quantity,omitempty"` // An array of image URLs for the product. - Images []Images `json:"images,omitempty"` + Images []Image `json:"images,omitempty"` // The weight of the product. Weight *string `json:"weight,omitempty"` // The unit of measurement for the weight of the product. WeightUnit *string `json:"weight_unit,omitempty"` // An array of options for the product. - Options []EcommerceProductOptions `json:"options,omitempty"` - Variants []Variants `json:"variants,omitempty"` + Options []EcommerceProductOption `json:"options,omitempty"` + Variants []Variant `json:"variants,omitempty"` // An array of tags for the product, used for organization and searching. Tags []*string `json:"tags,omitempty"` // An array of categories for the product, used for organization and searching. - Categories []EcommerceProductCategories `json:"categories,omitempty"` + Categories []EcommerceProductCategory `json:"categories,omitempty"` // When custom mappings are configured on the resource, the result is included here. CustomMappings map[string]any `json:"custom_mappings,omitempty"` // The date and time when the object was created. @@ -336,7 +336,7 @@ func (o *EcommerceProduct) GetInventoryQuantity() *string { return o.InventoryQuantity } -func (o *EcommerceProduct) GetImages() []Images { +func (o *EcommerceProduct) GetImages() []Image { if o == nil { return nil } @@ -357,14 +357,14 @@ func (o *EcommerceProduct) GetWeightUnit() *string { return o.WeightUnit } -func (o *EcommerceProduct) GetOptions() []EcommerceProductOptions { +func (o *EcommerceProduct) GetOptions() []EcommerceProductOption { if o == nil { return nil } return o.Options } -func (o *EcommerceProduct) GetVariants() []Variants { +func (o *EcommerceProduct) GetVariants() []Variant { if o == nil { return nil } @@ -378,7 +378,7 @@ func (o *EcommerceProduct) GetTags() []*string { return o.Tags } -func (o *EcommerceProduct) GetCategories() []EcommerceProductCategories { +func (o *EcommerceProduct) GetCategories() []EcommerceProductCategory { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/formfieldoption.go b/src/__tests__/mockserver/internal/sdk/models/components/formfieldoption.go index 650b7562..101e14e4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/formfieldoption.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/formfieldoption.go @@ -26,7 +26,7 @@ type FormFieldOption struct { func CreateFormFieldOptionSimple(simple SimpleFormFieldOption) FormFieldOption { typ := FormFieldOptionTypeSimple - typStr := OptionType(typ) + typStr := SimpleFormFieldOptionOptionType(typ) simple.OptionType = typStr return FormFieldOption{ diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getconsumersresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getconsumersresponse.go index 09e5739e..341dda54 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/getconsumersresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/getconsumersresponse.go @@ -2,7 +2,7 @@ package components -type Data struct { +type GetConsumersResponseData struct { ConsumerID *string `json:"consumer_id,omitempty"` ApplicationID *string `json:"application_id,omitempty"` // The metadata of the consumer. This is used to display the consumer in the sidebar. This is optional, but recommended. @@ -15,63 +15,63 @@ type Data struct { Services []string `json:"services,omitempty"` } -func (o *Data) GetConsumerID() *string { +func (o *GetConsumersResponseData) GetConsumerID() *string { if o == nil { return nil } return o.ConsumerID } -func (o *Data) GetApplicationID() *string { +func (o *GetConsumersResponseData) GetApplicationID() *string { if o == nil { return nil } return o.ApplicationID } -func (o *Data) GetMetadata() *ConsumerMetadata { +func (o *GetConsumersResponseData) GetMetadata() *ConsumerMetadata { if o == nil { return nil } return o.Metadata } -func (o *Data) GetAggregatedRequestCount() *float64 { +func (o *GetConsumersResponseData) GetAggregatedRequestCount() *float64 { if o == nil { return nil } return o.AggregatedRequestCount } -func (o *Data) GetRequestCounts() *RequestCountAllocation { +func (o *GetConsumersResponseData) GetRequestCounts() *RequestCountAllocation { if o == nil { return nil } return o.RequestCounts } -func (o *Data) GetCreated() *string { +func (o *GetConsumersResponseData) GetCreated() *string { if o == nil { return nil } return o.Created } -func (o *Data) GetModified() *string { +func (o *GetConsumersResponseData) GetModified() *string { if o == nil { return nil } return o.Modified } -func (o *Data) GetRequestCountUpdated() *string { +func (o *GetConsumersResponseData) GetRequestCountUpdated() *string { if o == nil { return nil } return o.RequestCountUpdated } -func (o *Data) GetServices() []string { +func (o *GetConsumersResponseData) GetServices() []string { if o == nil { return nil } @@ -83,8 +83,8 @@ type GetConsumersResponse struct { // HTTP Response Status Code StatusCode int64 `json:"status_code"` // HTTP Response Status - Status string `json:"status"` - Data []Data `json:"data"` + Status string `json:"status"` + Data []GetConsumersResponseData `json:"data"` // Response metadata Meta *Meta `json:"meta,omitempty"` // Links to navigate to previous or next pages through the API @@ -107,9 +107,9 @@ func (o *GetConsumersResponse) GetStatus() string { return o.Status } -func (o *GetConsumersResponse) GetData() []Data { +func (o *GetConsumersResponse) GetData() []GetConsumersResponseData { if o == nil { - return []Data{} + return []GetConsumersResponseData{} } return o.Data } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinkresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinkresponse.go index 3894f096..d3c5ad47 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinkresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinkresponse.go @@ -13,8 +13,8 @@ type GetSharedLinkResponse struct { // Unified API resource name Resource string `json:"resource"` // Operation performed - Operation string `json:"operation"` - Data SharedLink `json:"data"` + Operation string `json:"operation"` + Data SharedLinkOutput `json:"data"` // Raw response from the integration when raw=true query param is provided Raw map[string]any `json:"_raw,omitempty"` } @@ -54,9 +54,9 @@ func (o *GetSharedLinkResponse) GetOperation() string { return o.Operation } -func (o *GetSharedLinkResponse) GetData() SharedLink { +func (o *GetSharedLinkResponse) GetData() SharedLinkOutput { if o == nil { - return SharedLink{} + return SharedLinkOutput{} } return o.Data } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinksresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinksresponse.go index e306b799..3d6c5500 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinksresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/getsharedlinksresponse.go @@ -13,8 +13,8 @@ type GetSharedLinksResponse struct { // Unified API resource name Resource string `json:"resource"` // Operation performed - Operation string `json:"operation"` - Data []SharedLink `json:"data"` + Operation string `json:"operation"` + Data []SharedLinkOutput `json:"data"` // Raw response from the integration when raw=true query param is provided Raw map[string]any `json:"_raw,omitempty"` // Response metadata @@ -58,9 +58,9 @@ func (o *GetSharedLinksResponse) GetOperation() string { return o.Operation } -func (o *GetSharedLinksResponse) GetData() []SharedLink { +func (o *GetSharedLinksResponse) GetData() []SharedLinkOutput { if o == nil { - return []SharedLink{} + return []SharedLinkOutput{} } return o.Data } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getuserresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getuserresponse.go index 06ea4ce5..e203c9bb 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/getuserresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/getuserresponse.go @@ -13,8 +13,8 @@ type GetUserResponse struct { // Unified API resource name Resource string `json:"resource"` // Operation performed - Operation string `json:"operation"` - Data User `json:"data"` + Operation string `json:"operation"` + Data UserOutput `json:"data"` // Raw response from the integration when raw=true query param is provided Raw map[string]any `json:"_raw,omitempty"` } @@ -54,9 +54,9 @@ func (o *GetUserResponse) GetOperation() string { return o.Operation } -func (o *GetUserResponse) GetData() User { +func (o *GetUserResponse) GetData() UserOutput { if o == nil { - return User{} + return UserOutput{} } return o.Data } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getusersresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getusersresponse.go index 8d5d1c11..88685743 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/getusersresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/getusersresponse.go @@ -13,8 +13,8 @@ type GetUsersResponse struct { // Unified API resource name Resource string `json:"resource"` // Operation performed - Operation string `json:"operation"` - Data []User `json:"data"` + Operation string `json:"operation"` + Data []UserOutput `json:"data"` // Raw response from the integration when raw=true query param is provided Raw map[string]any `json:"_raw,omitempty"` // Response metadata @@ -58,9 +58,9 @@ func (o *GetUsersResponse) GetOperation() string { return o.Operation } -func (o *GetUsersResponse) GetData() []User { +func (o *GetUsersResponse) GetData() []UserOutput { if o == nil { - return []User{} + return []UserOutput{} } return o.Data } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoice.go b/src/__tests__/mockserver/internal/sdk/models/components/invoice.go index 65691f83..813f2131 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoice.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoice.go @@ -94,7 +94,7 @@ func (e *InvoiceStatus) UnmarshalJSON(data []byte) error { } } -type PaymentAllocations struct { +type PaymentAllocation struct { // ID of the payment ID *string `json:"id,omitempty"` // Amount of the payment allocated to the invoice @@ -103,32 +103,32 @@ type PaymentAllocations struct { Date *time.Time `json:"date,omitempty"` } -func (p PaymentAllocations) MarshalJSON() ([]byte, error) { +func (p PaymentAllocation) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(p, "", false) } -func (p *PaymentAllocations) UnmarshalJSON(data []byte) error { +func (p *PaymentAllocation) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { return err } return nil } -func (o *PaymentAllocations) GetID() *string { +func (o *PaymentAllocation) GetID() *string { if o == nil { return nil } return o.ID } -func (o *PaymentAllocations) GetAllocatedAmount() *float64 { +func (o *PaymentAllocation) GetAllocatedAmount() *float64 { if o == nil { return nil } return o.AllocatedAmount } -func (o *PaymentAllocations) GetDate() *time.Time { +func (o *PaymentAllocation) GetDate() *time.Time { if o == nil { return nil } @@ -198,7 +198,7 @@ type Invoice struct { // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. SourceDocumentURL *string `json:"source_document_url,omitempty"` // IDs of payments made on the invoice - PaymentAllocations []PaymentAllocations `json:"payment_allocations,omitempty"` + PaymentAllocations []PaymentAllocation `json:"payment_allocations,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check PaymentMethod *string `json:"payment_method,omitempty"` // The channel through which the transaction is processed. @@ -461,7 +461,7 @@ func (o *Invoice) GetSourceDocumentURL() *string { return o.SourceDocumentURL } -func (o *Invoice) GetPaymentAllocations() []PaymentAllocations { +func (o *Invoice) GetPaymentAllocations() []PaymentAllocation { if o == nil { return nil } @@ -625,7 +625,7 @@ type InvoiceInput struct { // URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. SourceDocumentURL *string `json:"source_document_url,omitempty"` // IDs of payments made on the invoice - PaymentAllocations []PaymentAllocations `json:"payment_allocations,omitempty"` + PaymentAllocations []PaymentAllocation `json:"payment_allocations,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check PaymentMethod *string `json:"payment_method,omitempty"` // The channel through which the transaction is processed. @@ -864,7 +864,7 @@ func (o *InvoiceInput) GetSourceDocumentURL() *string { return o.SourceDocumentURL } -func (o *InvoiceInput) GetPaymentAllocations() []PaymentAllocations { +func (o *InvoiceInput) GetPaymentAllocations() []PaymentAllocation { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go index 418e99a3..82ba3556 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitem.go @@ -10,21 +10,21 @@ import ( "time" ) -// InvoiceItemTypeType - Item type -type InvoiceItemTypeType string +// InvoiceItemType - Item type +type InvoiceItemType string const ( - InvoiceItemTypeTypeInventory InvoiceItemTypeType = "inventory" - InvoiceItemTypeTypeNonInventory InvoiceItemTypeType = "non_inventory" - InvoiceItemTypeTypeService InvoiceItemTypeType = "service" - InvoiceItemTypeTypeDescription InvoiceItemTypeType = "description" - InvoiceItemTypeTypeOther InvoiceItemTypeType = "other" + InvoiceItemTypeInventory InvoiceItemType = "inventory" + InvoiceItemTypeNonInventory InvoiceItemType = "non_inventory" + InvoiceItemTypeService InvoiceItemType = "service" + InvoiceItemTypeDescription InvoiceItemType = "description" + InvoiceItemTypeOther InvoiceItemType = "other" ) -func (e InvoiceItemTypeType) ToPointer() *InvoiceItemTypeType { +func (e InvoiceItemType) ToPointer() *InvoiceItemType { return &e } -func (e *InvoiceItemTypeType) UnmarshalJSON(data []byte) error { +func (e *InvoiceItemType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -39,10 +39,10 @@ func (e *InvoiceItemTypeType) UnmarshalJSON(data []byte) error { case "description": fallthrough case "other": - *e = InvoiceItemTypeType(v) + *e = InvoiceItemType(v) return nil default: - return fmt.Errorf("invalid value for InvoiceItemTypeType: %v", v) + return fmt.Errorf("invalid value for InvoiceItemType: %v", v) } } @@ -140,7 +140,7 @@ type InvoiceItem struct { // The date of opening balance if inventory item is tracked - YYYY-MM-DD. InventoryDate *types.Date `json:"inventory_date,omitempty"` // Item type - Type *InvoiceItemTypeType `json:"type,omitempty"` + Type *InvoiceItemType `json:"type,omitempty"` SalesDetails *SalesDetails `json:"sales_details,omitempty"` PurchaseDetails *PurchaseDetails `json:"purchase_details,omitempty"` Quantity *float64 `json:"quantity,omitempty"` @@ -251,7 +251,7 @@ func (o *InvoiceItem) GetInventoryDate() *types.Date { return o.InventoryDate } -func (o *InvoiceItem) GetType() *InvoiceItemTypeType { +func (o *InvoiceItem) GetType() *InvoiceItemType { if o == nil { return nil } @@ -405,7 +405,7 @@ func (o *InvoiceItem) GetPassThrough() []PassThroughBody { return o.PassThrough } -type InvoiceItemSalesDetails struct { +type SalesDetailsInput struct { UnitPrice *float64 `json:"unit_price,omitempty"` // Description of the unit type the item is sold as, ie: kg, hour. UnitOfMeasure *string `json:"unit_of_measure,omitempty"` @@ -414,35 +414,35 @@ type InvoiceItemSalesDetails struct { TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` } -func (o *InvoiceItemSalesDetails) GetUnitPrice() *float64 { +func (o *SalesDetailsInput) GetUnitPrice() *float64 { if o == nil { return nil } return o.UnitPrice } -func (o *InvoiceItemSalesDetails) GetUnitOfMeasure() *string { +func (o *SalesDetailsInput) GetUnitOfMeasure() *string { if o == nil { return nil } return o.UnitOfMeasure } -func (o *InvoiceItemSalesDetails) GetTaxInclusive() *bool { +func (o *SalesDetailsInput) GetTaxInclusive() *bool { if o == nil { return nil } return o.TaxInclusive } -func (o *InvoiceItemSalesDetails) GetTaxRate() *LinkedTaxRateInput { +func (o *SalesDetailsInput) GetTaxRate() *LinkedTaxRateInput { if o == nil { return nil } return o.TaxRate } -type InvoiceItemPurchaseDetails struct { +type PurchaseDetailsInput struct { UnitPrice *float64 `json:"unit_price,omitempty"` // Description of the unit type the item is sold as, ie: kg, hour. UnitOfMeasure *string `json:"unit_of_measure,omitempty"` @@ -451,28 +451,28 @@ type InvoiceItemPurchaseDetails struct { TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` } -func (o *InvoiceItemPurchaseDetails) GetUnitPrice() *float64 { +func (o *PurchaseDetailsInput) GetUnitPrice() *float64 { if o == nil { return nil } return o.UnitPrice } -func (o *InvoiceItemPurchaseDetails) GetUnitOfMeasure() *string { +func (o *PurchaseDetailsInput) GetUnitOfMeasure() *string { if o == nil { return nil } return o.UnitOfMeasure } -func (o *InvoiceItemPurchaseDetails) GetTaxInclusive() *bool { +func (o *PurchaseDetailsInput) GetTaxInclusive() *bool { if o == nil { return nil } return o.TaxInclusive } -func (o *InvoiceItemPurchaseDetails) GetTaxRate() *LinkedTaxRateInput { +func (o *PurchaseDetailsInput) GetTaxRate() *LinkedTaxRateInput { if o == nil { return nil } @@ -497,14 +497,14 @@ type InvoiceItemInput struct { // The date of opening balance if inventory item is tracked - YYYY-MM-DD. InventoryDate *types.Date `json:"inventory_date,omitempty"` // Item type - Type *InvoiceItemTypeType `json:"type,omitempty"` - SalesDetails *InvoiceItemSalesDetails `json:"sales_details,omitempty"` - PurchaseDetails *InvoiceItemPurchaseDetails `json:"purchase_details,omitempty"` - Quantity *float64 `json:"quantity,omitempty"` - UnitPrice *float64 `json:"unit_price,omitempty"` - AssetAccount *LinkedLedgerAccountInput `json:"asset_account,omitempty"` - IncomeAccount *LinkedLedgerAccountInput `json:"income_account,omitempty"` - ExpenseAccount *LinkedLedgerAccountInput `json:"expense_account,omitempty"` + Type *InvoiceItemType `json:"type,omitempty"` + SalesDetails *SalesDetailsInput `json:"sales_details,omitempty"` + PurchaseDetails *PurchaseDetailsInput `json:"purchase_details,omitempty"` + Quantity *float64 `json:"quantity,omitempty"` + UnitPrice *float64 `json:"unit_price,omitempty"` + AssetAccount *LinkedLedgerAccountInput `json:"asset_account,omitempty"` + IncomeAccount *LinkedLedgerAccountInput `json:"income_account,omitempty"` + ExpenseAccount *LinkedLedgerAccountInput `json:"expense_account,omitempty"` // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. TrackingCategory *DeprecatedLinkedTrackingCategory `json:"tracking_category,omitempty"` // A list of linked tracking categories. @@ -591,21 +591,21 @@ func (o *InvoiceItemInput) GetInventoryDate() *types.Date { return o.InventoryDate } -func (o *InvoiceItemInput) GetType() *InvoiceItemTypeType { +func (o *InvoiceItemInput) GetType() *InvoiceItemType { if o == nil { return nil } return o.Type } -func (o *InvoiceItemInput) GetSalesDetails() *InvoiceItemSalesDetails { +func (o *InvoiceItemInput) GetSalesDetails() *SalesDetailsInput { if o == nil { return nil } return o.SalesDetails } -func (o *InvoiceItemInput) GetPurchaseDetails() *InvoiceItemPurchaseDetails { +func (o *InvoiceItemInput) GetPurchaseDetails() *PurchaseDetailsInput { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go index 3535fd5f..2c17d24b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go @@ -7,19 +7,19 @@ import ( "fmt" ) -// InvoiceItemType - The type of invoice item, indicating whether it is an inventory item, a service, or another type. -type InvoiceItemType string +// InvoiceItemsFilterInvoiceItemType - The type of invoice item, indicating whether it is an inventory item, a service, or another type. +type InvoiceItemsFilterInvoiceItemType string const ( - InvoiceItemTypeInventory InvoiceItemType = "inventory" - InvoiceItemTypeService InvoiceItemType = "service" - InvoiceItemTypeOther InvoiceItemType = "other" + InvoiceItemsFilterInvoiceItemTypeInventory InvoiceItemsFilterInvoiceItemType = "inventory" + InvoiceItemsFilterInvoiceItemTypeService InvoiceItemsFilterInvoiceItemType = "service" + InvoiceItemsFilterInvoiceItemTypeOther InvoiceItemsFilterInvoiceItemType = "other" ) -func (e InvoiceItemType) ToPointer() *InvoiceItemType { +func (e InvoiceItemsFilterInvoiceItemType) ToPointer() *InvoiceItemsFilterInvoiceItemType { return &e } -func (e *InvoiceItemType) UnmarshalJSON(data []byte) error { +func (e *InvoiceItemsFilterInvoiceItemType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -30,10 +30,10 @@ func (e *InvoiceItemType) UnmarshalJSON(data []byte) error { case "service": fallthrough case "other": - *e = InvoiceItemType(v) + *e = InvoiceItemsFilterInvoiceItemType(v) return nil default: - return fmt.Errorf("invalid value for InvoiceItemType: %v", v) + return fmt.Errorf("invalid value for InvoiceItemsFilterInvoiceItemType: %v", v) } } @@ -41,7 +41,7 @@ type InvoiceItemsFilter struct { // Name of Invoice Items to search for Name *string `queryParam:"name=name"` // The type of invoice item, indicating whether it is an inventory item, a service, or another type. - Type *InvoiceItemType `queryParam:"name=type"` + Type *InvoiceItemsFilterInvoiceItemType `queryParam:"name=type"` } func (o *InvoiceItemsFilter) GetName() *string { @@ -51,7 +51,7 @@ func (o *InvoiceItemsFilter) GetName() *string { return o.Name } -func (o *InvoiceItemsFilter) GetType() *InvoiceItemType { +func (o *InvoiceItemsFilter) GetType() *InvoiceItemsFilterInvoiceItemType { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/job.go b/src/__tests__/mockserver/internal/sdk/models/components/job.go index 0bfc4f01..865684ce 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/job.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/job.go @@ -112,19 +112,19 @@ func (o *Branch) GetName() *string { return o.Name } -type Blocks struct { +type Block struct { Title *string `json:"title,omitempty"` Content *string `json:"content,omitempty"` } -func (o *Blocks) GetTitle() *string { +func (o *Block) GetTitle() *string { if o == nil { return nil } return o.Title } -func (o *Blocks) GetContent() *string { +func (o *Block) GetContent() *string { if o == nil { return nil } @@ -195,19 +195,19 @@ func (e *JobType) UnmarshalJSON(data []byte) error { } } -type JobLinks struct { +type Link struct { Type *JobType `json:"type,omitempty"` URL *string `json:"url,omitempty"` } -func (o *JobLinks) GetType() *JobType { +func (o *Link) GetType() *JobType { if o == nil { return nil } return o.Type } -func (o *JobLinks) GetURL() *string { +func (o *Link) GetURL() *string { if o == nil { return nil } @@ -249,9 +249,9 @@ type Job struct { // A description of the object. Description *string `json:"description,omitempty"` // The job description in HTML format - DescriptionHTML *string `json:"description_html,omitempty"` - Blocks []Blocks `json:"blocks,omitempty"` - Closing *string `json:"closing,omitempty"` + DescriptionHTML *string `json:"description_html,omitempty"` + Blocks []Block `json:"blocks,omitempty"` + Closing *string `json:"closing,omitempty"` // The closing section of the job description in HTML format ClosingHTML *string `json:"closing_html,omitempty"` ClosingDate *types.Date `json:"closing_date,omitempty"` @@ -265,9 +265,9 @@ type Job struct { // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. JobPortalURL *string `json:"job_portal_url,omitempty"` // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - RecordURL *string `json:"record_url,omitempty"` - Links []JobLinks `json:"links,omitempty"` - Confidential *bool `json:"confidential,omitempty"` + RecordURL *string `json:"record_url,omitempty"` + Links []Link `json:"links,omitempty"` + Confidential *bool `json:"confidential,omitempty"` // Specifies whether an employee of the organization can apply for the job. AvailableToEmployees *bool `json:"available_to_employees,omitempty"` Tags []string `json:"tags,omitempty"` @@ -440,7 +440,7 @@ func (o *Job) GetDescriptionHTML() *string { return o.DescriptionHTML } -func (o *Job) GetBlocks() []Blocks { +func (o *Job) GetBlocks() []Block { if o == nil { return nil } @@ -496,7 +496,7 @@ func (o *Job) GetRecordURL() *string { return o.RecordURL } -func (o *Job) GetLinks() []JobLinks { +func (o *Job) GetLinks() []Link { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go b/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go index e9062e31..a9bcbc0e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go @@ -172,20 +172,20 @@ func (e *AccountStatus) UnmarshalJSON(data []byte) error { } } -type Categories struct { +type LedgerAccountCategory struct { ID *string `json:"id,omitempty"` // The name of the category. Name *string `json:"name,omitempty"` } -func (o *Categories) GetID() *string { +func (o *LedgerAccountCategory) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Categories) GetName() *string { +func (o *LedgerAccountCategory) GetName() *string { if o == nil { return nil } @@ -222,33 +222,33 @@ func (o *ParentAccount) GetDisplayID() *string { return o.DisplayID } -type SubAccounts struct { +type SubAccount struct { // The ID of the sub account. ID *string `json:"id,omitempty"` // The name of the sub account. AccountSubName *string `json:"account_sub_name,omitempty"` } -func (o *SubAccounts) GetID() *string { +func (o *SubAccount) GetID() *string { if o == nil { return nil } return o.ID } -func (o *SubAccounts) GetAccountSubName() *string { +func (o *SubAccount) GetAccountSubName() *string { if o == nil { return nil } return o.AccountSubName } -type LedgerAccountSubsidiaries struct { +type LedgerAccountSubsidiary struct { // The ID of the subsidiary. ID *string `json:"id,omitempty"` } -func (o *LedgerAccountSubsidiaries) GetID() *string { +func (o *LedgerAccountSubsidiary) GetID() *string { if o == nil { return nil } @@ -296,16 +296,16 @@ type LedgerAccount struct { Header *bool `json:"header,omitempty"` BankAccount *BankAccount `json:"bank_account,omitempty"` // The categories of the account. - Categories []Categories `json:"categories,omitempty"` - ParentAccount *ParentAccount `json:"parent_account,omitempty"` + Categories []LedgerAccountCategory `json:"categories,omitempty"` + ParentAccount *ParentAccount `json:"parent_account,omitempty"` // Whether the account is a sub account or not. SubAccount *bool `json:"sub_account,omitempty"` // The sub accounts of the account. - SubAccounts []SubAccounts `json:"sub_accounts,omitempty"` + SubAccounts []SubAccount `json:"sub_accounts,omitempty"` // Reconciliation Date means the last calendar day of each Reconciliation Period. LastReconciliationDate *types.Date `json:"last_reconciliation_date,omitempty"` // The subsidiaries the account belongs to. - Subsidiaries []LedgerAccountSubsidiaries `json:"subsidiaries,omitempty"` + Subsidiaries []LedgerAccountSubsidiary `json:"subsidiaries,omitempty"` // When custom mappings are configured on the resource, the result is included here. CustomMappings map[string]any `json:"custom_mappings,omitempty"` CustomFields []CustomField `json:"custom_fields,omitempty"` @@ -474,7 +474,7 @@ func (o *LedgerAccount) GetBankAccount() *BankAccount { return o.BankAccount } -func (o *LedgerAccount) GetCategories() []Categories { +func (o *LedgerAccount) GetCategories() []LedgerAccountCategory { if o == nil { return nil } @@ -495,7 +495,7 @@ func (o *LedgerAccount) GetSubAccount() *bool { return o.SubAccount } -func (o *LedgerAccount) GetSubAccounts() []SubAccounts { +func (o *LedgerAccount) GetSubAccounts() []SubAccount { if o == nil { return nil } @@ -509,7 +509,7 @@ func (o *LedgerAccount) GetLastReconciliationDate() *types.Date { return o.LastReconciliationDate } -func (o *LedgerAccount) GetSubsidiaries() []LedgerAccountSubsidiaries { +func (o *LedgerAccount) GetSubsidiaries() []LedgerAccountSubsidiary { if o == nil { return nil } @@ -616,8 +616,8 @@ type LedgerAccountInput struct { // Reconciliation Date means the last calendar day of each Reconciliation Period. LastReconciliationDate *types.Date `json:"last_reconciliation_date,omitempty"` // The subsidiaries the account belongs to. - Subsidiaries []LedgerAccountSubsidiaries `json:"subsidiaries,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` + Subsidiaries []LedgerAccountSubsidiary `json:"subsidiaries,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` // A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. RowVersion *string `json:"row_version,omitempty"` // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. @@ -789,7 +789,7 @@ func (o *LedgerAccountInput) GetLastReconciliationDate() *types.Date { return o.LastReconciliationDate } -func (o *LedgerAccountInput) GetSubsidiaries() []LedgerAccountSubsidiaries { +func (o *LedgerAccountInput) GetSubsidiaries() []LedgerAccountSubsidiary { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/log.go b/src/__tests__/mockserver/internal/sdk/models/components/log.go index 13570742..8f2e7ae6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/log.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/log.go @@ -29,50 +29,50 @@ func (o *Operation) GetName() string { return o.Name } -// Service - Apideck service provider associated with request. -type Service struct { +// LogService - Apideck service provider associated with request. +type LogService struct { // Apideck service provider id. ID string `json:"id"` // Apideck service provider name. Name string `json:"name"` } -func (o *Service) GetID() string { +func (o *LogService) GetID() string { if o == nil { return "" } return o.ID } -func (o *Service) GetName() string { +func (o *LogService) GetName() string { if o == nil { return "" } return o.Name } -// UnifiedAPI - Which Unified Api request was made to. -type UnifiedAPI string +// UnifiedAPIEnum - Which Unified Api request was made to. +type UnifiedAPIEnum string const ( - UnifiedAPICrm UnifiedAPI = "crm" - UnifiedAPILead UnifiedAPI = "lead" - UnifiedAPIProxy UnifiedAPI = "proxy" - UnifiedAPIVault UnifiedAPI = "vault" - UnifiedAPIAccounting UnifiedAPI = "accounting" - UnifiedAPIHris UnifiedAPI = "hris" - UnifiedAPIAts UnifiedAPI = "ats" - UnifiedAPIEcommerce UnifiedAPI = "ecommerce" - UnifiedAPIIssueTracking UnifiedAPI = "issue-tracking" - UnifiedAPIPos UnifiedAPI = "pos" - UnifiedAPIFileStorage UnifiedAPI = "file-storage" - UnifiedAPISms UnifiedAPI = "sms" + UnifiedAPIEnumCrm UnifiedAPIEnum = "crm" + UnifiedAPIEnumLead UnifiedAPIEnum = "lead" + UnifiedAPIEnumProxy UnifiedAPIEnum = "proxy" + UnifiedAPIEnumVault UnifiedAPIEnum = "vault" + UnifiedAPIEnumAccounting UnifiedAPIEnum = "accounting" + UnifiedAPIEnumHris UnifiedAPIEnum = "hris" + UnifiedAPIEnumAts UnifiedAPIEnum = "ats" + UnifiedAPIEnumEcommerce UnifiedAPIEnum = "ecommerce" + UnifiedAPIEnumIssueTracking UnifiedAPIEnum = "issue-tracking" + UnifiedAPIEnumPos UnifiedAPIEnum = "pos" + UnifiedAPIEnumFileStorage UnifiedAPIEnum = "file-storage" + UnifiedAPIEnumSms UnifiedAPIEnum = "sms" ) -func (e UnifiedAPI) ToPointer() *UnifiedAPI { +func (e UnifiedAPIEnum) ToPointer() *UnifiedAPIEnum { return &e } -func (e *UnifiedAPI) UnmarshalJSON(data []byte) error { +func (e *UnifiedAPIEnum) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -101,10 +101,10 @@ func (e *UnifiedAPI) UnmarshalJSON(data []byte) error { case "file-storage": fallthrough case "sms": - *e = UnifiedAPI(v) + *e = UnifiedAPIEnum(v) return nil default: - return fmt.Errorf("invalid value for UnifiedAPI: %v", v) + return fmt.Errorf("invalid value for UnifiedAPIEnum: %v", v) } } @@ -140,7 +140,7 @@ type Log struct { // Indicates whether the request was made using Apidecks sandbox credentials or not. Sandbox bool `json:"sandbox"` // Apideck service provider associated with request. - Service Service `json:"service"` + Service LogService `json:"service"` // The IP address of the source of the request. SourceIP *string `json:"source_ip,omitempty"` // HTTP Status code that was returned. @@ -150,7 +150,7 @@ type Log struct { // ISO Date and time when the request was made. Timestamp string `json:"timestamp"` // Which Unified Api request was made to. - UnifiedAPI UnifiedAPI `json:"unified_api"` + UnifiedAPI UnifiedAPIEnum `json:"unified_api"` } func (o *Log) GetAPIStyle() string { @@ -258,9 +258,9 @@ func (o *Log) GetSandbox() bool { return o.Sandbox } -func (o *Log) GetService() Service { +func (o *Log) GetService() LogService { if o == nil { - return Service{} + return LogService{} } return o.Service } @@ -293,9 +293,9 @@ func (o *Log) GetTimestamp() string { return o.Timestamp } -func (o *Log) GetUnifiedAPI() UnifiedAPI { +func (o *Log) GetUnifiedAPI() UnifiedAPIEnum { if o == nil { - return UnifiedAPI("") + return UnifiedAPIEnum("") } return o.UnifiedAPI } diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/notfoundresponseerror.go similarity index 59% rename from src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponse.go rename to src/__tests__/mockserver/internal/sdk/models/components/notfoundresponseerror.go index 523c68f5..3971e57c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/notfoundresponseerror.go @@ -1,9 +1,8 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package sdkerrors +package components import ( - "encoding/json" "errors" "fmt" "mockserver/internal/sdk/utils" @@ -24,8 +23,6 @@ type NotFoundResponseDetail struct { Type NotFoundResponseDetailType } -var _ error = &NotFoundResponseDetail{} - func CreateNotFoundResponseDetailStr(str string) NotFoundResponseDetail { typ := NotFoundResponseDetailTypeStr @@ -74,42 +71,3 @@ func (u NotFoundResponseDetail) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type NotFoundResponseDetail: all fields are null") } - -func (u NotFoundResponseDetail) Error() string { - switch u.Type { - case NotFoundResponseDetailTypeStr: - data, _ := json.Marshal(u.Str) - return string(data) - case NotFoundResponseDetailTypeMapOfAny: - data, _ := json.Marshal(u.MapOfAny) - return string(data) - default: - return "unknown error" - } -} - -// NotFoundResponse - The specified resource was not found -type NotFoundResponse struct { - // HTTP status code - StatusCode *float64 `json:"status_code,omitempty"` - // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) - Error_ *string `json:"error,omitempty"` - // The type of error returned - TypeName *string `json:"type_name,omitempty"` - // A human-readable message providing more details about the error. - Message *string `json:"message,omitempty"` - // Contains parameter or domain specific information related to the error and why it occurred. - Detail *NotFoundResponseDetail `json:"detail,omitempty"` - // Link to documentation of error type - Ref *string `json:"ref,omitempty"` -} - -var _ error = &NotFoundResponse{} - -func (e *NotFoundResponse) Error() string { - if e.Message == nil { - return "unknown error" - } - - return *e.Message -} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go b/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go index 124a946a..8bdd0124 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/passthroughbody.go @@ -2,21 +2,21 @@ package components -type ExtendPaths struct { +type ExtendPath struct { // JSONPath string specifying where to apply the value. Path string `json:"path"` // The value to set at the specified path, can be any type. Value any `json:"value"` } -func (o *ExtendPaths) GetPath() string { +func (o *ExtendPath) GetPath() string { if o == nil { return "" } return o.Path } -func (o *ExtendPaths) GetValue() any { +func (o *ExtendPath) GetValue() any { if o == nil { return nil } @@ -31,7 +31,7 @@ type PassThroughBody struct { // Simple object allowing any properties for direct extension. ExtendObject map[string]any `json:"extend_object,omitempty"` // Array of objects for structured data modifications via paths. - ExtendPaths []ExtendPaths `json:"extend_paths,omitempty"` + ExtendPaths []ExtendPath `json:"extend_paths,omitempty"` } func (o *PassThroughBody) GetServiceID() string { @@ -55,7 +55,7 @@ func (o *PassThroughBody) GetExtendObject() map[string]any { return o.ExtendObject } -func (o *PassThroughBody) GetExtendPaths() []ExtendPaths { +func (o *PassThroughBody) GetExtendPaths() []ExtendPath { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/pipeline.go b/src/__tests__/mockserver/internal/sdk/models/components/pipeline.go index 428fc1e0..a7ac40be 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/pipeline.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/pipeline.go @@ -7,7 +7,7 @@ import ( "time" ) -type Stages struct { +type PipelineStage struct { // The unique identifier of the Pipeline Stage. ID *string `json:"id,omitempty"` // The name of the Pipeline Stage. @@ -20,35 +20,35 @@ type Stages struct { DisplayOrder *int64 `json:"display_order,omitempty"` } -func (o *Stages) GetID() *string { +func (o *PipelineStage) GetID() *string { if o == nil { return nil } return o.ID } -func (o *Stages) GetName() *string { +func (o *PipelineStage) GetName() *string { if o == nil { return nil } return o.Name } -func (o *Stages) GetValue() *string { +func (o *PipelineStage) GetValue() *string { if o == nil { return nil } return o.Value } -func (o *Stages) GetWinProbability() *int64 { +func (o *PipelineStage) GetWinProbability() *int64 { if o == nil { return nil } return o.WinProbability } -func (o *Stages) GetDisplayOrder() *int64 { +func (o *PipelineStage) GetDisplayOrder() *int64 { if o == nil { return nil } @@ -71,7 +71,7 @@ type Pipeline struct { // Whether the Pipeline has win probability enabled or not. WinProbabilityEnabled *bool `json:"win_probability_enabled,omitempty"` // The Pipeline Stages. - Stages []Stages `json:"stages,omitempty"` + Stages []PipelineStage `json:"stages,omitempty"` // The date and time when the object was last updated. UpdatedAt *time.Time `json:"updated_at,omitempty"` // The date and time when the object was created. @@ -140,7 +140,7 @@ func (o *Pipeline) GetWinProbabilityEnabled() *bool { return o.WinProbabilityEnabled } -func (o *Pipeline) GetStages() []Stages { +func (o *Pipeline) GetStages() []PipelineStage { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/pipelineinput.go b/src/__tests__/mockserver/internal/sdk/models/components/pipelineinput.go index 847f884f..f638320b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/pipelineinput.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/pipelineinput.go @@ -2,7 +2,7 @@ package components -type PipelineStages struct { +type StageInput struct { // The name of the Pipeline Stage. Name *string `json:"name,omitempty"` // The value of the Pipeline Stage. @@ -13,28 +13,28 @@ type PipelineStages struct { DisplayOrder *int64 `json:"display_order,omitempty"` } -func (o *PipelineStages) GetName() *string { +func (o *StageInput) GetName() *string { if o == nil { return nil } return o.Name } -func (o *PipelineStages) GetValue() *string { +func (o *StageInput) GetValue() *string { if o == nil { return nil } return o.Value } -func (o *PipelineStages) GetWinProbability() *int64 { +func (o *StageInput) GetWinProbability() *int64 { if o == nil { return nil } return o.WinProbability } -func (o *PipelineStages) GetDisplayOrder() *int64 { +func (o *StageInput) GetDisplayOrder() *int64 { if o == nil { return nil } @@ -57,7 +57,7 @@ type PipelineInput struct { // Whether the Pipeline has win probability enabled or not. WinProbabilityEnabled *bool `json:"win_probability_enabled,omitempty"` // The Pipeline Stages. - Stages []PipelineStages `json:"stages,omitempty"` + Stages []StageInput `json:"stages,omitempty"` // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. PassThrough []PassThroughBody `json:"pass_through,omitempty"` } @@ -111,7 +111,7 @@ func (o *PipelineInput) GetWinProbabilityEnabled() *bool { return o.WinProbabilityEnabled } -func (o *PipelineInput) GetStages() []PipelineStages { +func (o *PipelineInput) GetStages() []StageInput { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/session.go b/src/__tests__/mockserver/internal/sdk/models/components/session.go index 6233163d..7e9746cd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/session.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/session.go @@ -8,19 +8,19 @@ import ( "mockserver/internal/sdk/utils" ) -type AllowActions string +type AllowAction string const ( - AllowActionsDelete AllowActions = "delete" - AllowActionsDisconnect AllowActions = "disconnect" - AllowActionsReauthorize AllowActions = "reauthorize" - AllowActionsDisable AllowActions = "disable" + AllowActionDelete AllowAction = "delete" + AllowActionDisconnect AllowAction = "disconnect" + AllowActionReauthorize AllowAction = "reauthorize" + AllowActionDisable AllowAction = "disable" ) -func (e AllowActions) ToPointer() *AllowActions { +func (e AllowAction) ToPointer() *AllowAction { return &e } -func (e *AllowActions) UnmarshalJSON(data []byte) error { +func (e *AllowAction) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -33,15 +33,15 @@ func (e *AllowActions) UnmarshalJSON(data []byte) error { case "reauthorize": fallthrough case "disable": - *e = AllowActions(v) + *e = AllowAction(v) return nil default: - return fmt.Errorf("invalid value for AllowActions: %v", v) + return fmt.Errorf("invalid value for AllowAction: %v", v) } } -// SessionSettings - Settings to change the way the Vault is displayed. -type SessionSettings struct { +// Settings to change the way the Vault is displayed. +type Settings struct { // Provide the IDs of the Unified APIs you want to be visible. Leaving it empty or omitting this field will show all Unified APIs. UnifiedApis []UnifiedAPIID `json:"unified_apis,omitempty"` // A boolean that controls the display of the configurable resources for an integration. When set to true, the resource configuration options will be hidden and not shown to the user. When set to false, the resource configuration options will be displayed to the user. @@ -65,91 +65,91 @@ type SessionSettings struct { // Hide actions from your users in [Vault](/apis/vault/reference#section/Get-Started). Actions in `allow_actions` will be shown on a connection in Vault. // Available actions are: `delete`, `disconnect`, `reauthorize` and `disable`. // Empty array will hide all actions. By default all actions are visible. - AllowActions []AllowActions `json:"allow_actions,omitempty"` + AllowActions []AllowAction `json:"allow_actions,omitempty"` } -func (s SessionSettings) MarshalJSON() ([]byte, error) { +func (s Settings) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SessionSettings) UnmarshalJSON(data []byte) error { +func (s *Settings) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { return err } return nil } -func (o *SessionSettings) GetUnifiedApis() []UnifiedAPIID { +func (o *Settings) GetUnifiedApis() []UnifiedAPIID { if o == nil { return nil } return o.UnifiedApis } -func (o *SessionSettings) GetHideResourceSettings() *bool { +func (o *Settings) GetHideResourceSettings() *bool { if o == nil { return nil } return o.HideResourceSettings } -func (o *SessionSettings) GetSandboxMode() *bool { +func (o *Settings) GetSandboxMode() *bool { if o == nil { return nil } return o.SandboxMode } -func (o *SessionSettings) GetIsolationMode() *bool { +func (o *Settings) GetIsolationMode() *bool { if o == nil { return nil } return o.IsolationMode } -func (o *SessionSettings) GetSessionLength() *string { +func (o *Settings) GetSessionLength() *string { if o == nil { return nil } return o.SessionLength } -func (o *SessionSettings) GetShowLogs() *bool { +func (o *Settings) GetShowLogs() *bool { if o == nil { return nil } return o.ShowLogs } -func (o *SessionSettings) GetShowSuggestions() *bool { +func (o *Settings) GetShowSuggestions() *bool { if o == nil { return nil } return o.ShowSuggestions } -func (o *SessionSettings) GetShowSidebar() *bool { +func (o *Settings) GetShowSidebar() *bool { if o == nil { return nil } return o.ShowSidebar } -func (o *SessionSettings) GetAutoRedirect() *bool { +func (o *Settings) GetAutoRedirect() *bool { if o == nil { return nil } return o.AutoRedirect } -func (o *SessionSettings) GetHideGuides() *bool { +func (o *Settings) GetHideGuides() *bool { if o == nil { return nil } return o.HideGuides } -func (o *SessionSettings) GetAllowActions() []AllowActions { +func (o *Settings) GetAllowActions() []AllowAction { if o == nil { return nil } @@ -238,7 +238,7 @@ type Session struct { // The URL to redirect the user to after the session has been configured. RedirectURI *string `json:"redirect_uri,omitempty"` // Settings to change the way the Vault is displayed. - Settings *SessionSettings `json:"settings,omitempty"` + Settings *Settings `json:"settings,omitempty"` // Theming options to change the look and feel of Vault. Theme *Theme `json:"theme,omitempty"` // Custom consumer settings that are passed as part of the session. @@ -259,7 +259,7 @@ func (o *Session) GetRedirectURI() *string { return o.RedirectURI } -func (o *Session) GetSettings() *SessionSettings { +func (o *Session) GetSettings() *Settings { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/sharedlink.go b/src/__tests__/mockserver/internal/sdk/models/components/sharedlinkoutput.go similarity index 83% rename from src/__tests__/mockserver/internal/sdk/models/components/sharedlink.go rename to src/__tests__/mockserver/internal/sdk/models/components/sharedlinkoutput.go index b5a7f78f..54ac2419 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/sharedlink.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/sharedlinkoutput.go @@ -36,7 +36,7 @@ func (e *Scope) UnmarshalJSON(data []byte) error { } } -type SharedLink struct { +type SharedLinkOutput struct { // The URL that can be used to view the file. URL *string `json:"url,omitempty"` // The URL that can be used to download the file. @@ -55,74 +55,74 @@ type SharedLink struct { PassThrough []PassThroughBody `json:"pass_through,omitempty"` } -func (s SharedLink) MarshalJSON() ([]byte, error) { +func (s SharedLinkOutput) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(s, "", false) } -func (s *SharedLink) UnmarshalJSON(data []byte) error { +func (s *SharedLinkOutput) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { return err } return nil } -func (o *SharedLink) GetURL() *string { +func (o *SharedLinkOutput) GetURL() *string { if o == nil { return nil } return o.URL } -func (o *SharedLink) GetDownloadURL() *string { +func (o *SharedLinkOutput) GetDownloadURL() *string { if o == nil { return nil } return o.DownloadURL } -func (o *SharedLink) GetTarget() *SharedLinkTarget { +func (o *SharedLinkOutput) GetTarget() *SharedLinkTarget { if o == nil { return nil } return o.Target } -func (o *SharedLink) GetScope() *Scope { +func (o *SharedLinkOutput) GetScope() *Scope { if o == nil { return nil } return o.Scope } -func (o *SharedLink) GetPasswordProtected() *bool { +func (o *SharedLinkOutput) GetPasswordProtected() *bool { if o == nil { return nil } return o.PasswordProtected } -func (o *SharedLink) GetExpiresAt() *time.Time { +func (o *SharedLinkOutput) GetExpiresAt() *time.Time { if o == nil { return nil } return o.ExpiresAt } -func (o *SharedLink) GetUpdatedAt() *time.Time { +func (o *SharedLinkOutput) GetUpdatedAt() *time.Time { if o == nil { return nil } return o.UpdatedAt } -func (o *SharedLink) GetCreatedAt() *time.Time { +func (o *SharedLinkOutput) GetCreatedAt() *time.Time { if o == nil { return nil } return o.CreatedAt } -func (o *SharedLink) GetPassThrough() []PassThroughBody { +func (o *SharedLinkOutput) GetPassThrough() []PassThroughBody { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/simpleformfieldoption.go b/src/__tests__/mockserver/internal/sdk/models/components/simpleformfieldoption.go index 04ef30d8..0f421e2d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/simpleformfieldoption.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/simpleformfieldoption.go @@ -9,76 +9,76 @@ import ( "mockserver/internal/sdk/utils" ) -type FiveType string +type SimpleFormFieldOptionValue1Type string const ( - FiveTypeStr FiveType = "str" - FiveTypeInteger FiveType = "integer" - FiveTypeNumber FiveType = "number" + SimpleFormFieldOptionValue1TypeStr SimpleFormFieldOptionValue1Type = "str" + SimpleFormFieldOptionValue1TypeInteger SimpleFormFieldOptionValue1Type = "integer" + SimpleFormFieldOptionValue1TypeNumber SimpleFormFieldOptionValue1Type = "number" ) -type Five struct { +type SimpleFormFieldOptionValue1 struct { Str *string Integer *int64 Number *float64 - Type FiveType + Type SimpleFormFieldOptionValue1Type } -func CreateFiveStr(str string) Five { - typ := FiveTypeStr +func CreateSimpleFormFieldOptionValue1Str(str string) SimpleFormFieldOptionValue1 { + typ := SimpleFormFieldOptionValue1TypeStr - return Five{ + return SimpleFormFieldOptionValue1{ Str: &str, Type: typ, } } -func CreateFiveInteger(integer int64) Five { - typ := FiveTypeInteger +func CreateSimpleFormFieldOptionValue1Integer(integer int64) SimpleFormFieldOptionValue1 { + typ := SimpleFormFieldOptionValue1TypeInteger - return Five{ + return SimpleFormFieldOptionValue1{ Integer: &integer, Type: typ, } } -func CreateFiveNumber(number float64) Five { - typ := FiveTypeNumber +func CreateSimpleFormFieldOptionValue1Number(number float64) SimpleFormFieldOptionValue1 { + typ := SimpleFormFieldOptionValue1TypeNumber - return Five{ + return SimpleFormFieldOptionValue1{ Number: &number, Type: typ, } } -func (u *Five) UnmarshalJSON(data []byte) error { +func (u *SimpleFormFieldOptionValue1) UnmarshalJSON(data []byte) error { var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { u.Str = &str - u.Type = FiveTypeStr + u.Type = SimpleFormFieldOptionValue1TypeStr return nil } var integer int64 = int64(0) if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { u.Integer = &integer - u.Type = FiveTypeInteger + u.Type = SimpleFormFieldOptionValue1TypeInteger return nil } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { u.Number = &number - u.Type = FiveTypeNumber + u.Type = SimpleFormFieldOptionValue1TypeNumber return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for Five", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SimpleFormFieldOptionValue1", string(data)) } -func (u Five) MarshalJSON() ([]byte, error) { +func (u SimpleFormFieldOptionValue1) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } @@ -91,115 +91,115 @@ func (u Five) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Number, "", true) } - return nil, errors.New("could not marshal union type Five: all fields are null") + return nil, errors.New("could not marshal union type SimpleFormFieldOptionValue1: all fields are null") } -type SimpleFormFieldOptionValueType string +type SimpleFormFieldOptionValue2Type string const ( - SimpleFormFieldOptionValueTypeStr SimpleFormFieldOptionValueType = "str" - SimpleFormFieldOptionValueTypeInteger SimpleFormFieldOptionValueType = "integer" - SimpleFormFieldOptionValueTypeNumber SimpleFormFieldOptionValueType = "number" - SimpleFormFieldOptionValueTypeBoolean SimpleFormFieldOptionValueType = "boolean" - SimpleFormFieldOptionValueTypeArrayOf5 SimpleFormFieldOptionValueType = "arrayOf5" + SimpleFormFieldOptionValue2TypeStr SimpleFormFieldOptionValue2Type = "str" + SimpleFormFieldOptionValue2TypeInteger SimpleFormFieldOptionValue2Type = "integer" + SimpleFormFieldOptionValue2TypeNumber SimpleFormFieldOptionValue2Type = "number" + SimpleFormFieldOptionValue2TypeBoolean SimpleFormFieldOptionValue2Type = "boolean" + SimpleFormFieldOptionValue2TypeArrayOfSimpleFormFieldOptionValue1 SimpleFormFieldOptionValue2Type = "arrayOfSimpleFormFieldOptionValue1" ) -type SimpleFormFieldOptionValue struct { - Str *string - Integer *int64 - Number *float64 - Boolean *bool - ArrayOf5 []Five +type SimpleFormFieldOptionValue2 struct { + Str *string + Integer *int64 + Number *float64 + Boolean *bool + ArrayOfSimpleFormFieldOptionValue1 []SimpleFormFieldOptionValue1 - Type SimpleFormFieldOptionValueType + Type SimpleFormFieldOptionValue2Type } -func CreateSimpleFormFieldOptionValueStr(str string) SimpleFormFieldOptionValue { - typ := SimpleFormFieldOptionValueTypeStr +func CreateSimpleFormFieldOptionValue2Str(str string) SimpleFormFieldOptionValue2 { + typ := SimpleFormFieldOptionValue2TypeStr - return SimpleFormFieldOptionValue{ + return SimpleFormFieldOptionValue2{ Str: &str, Type: typ, } } -func CreateSimpleFormFieldOptionValueInteger(integer int64) SimpleFormFieldOptionValue { - typ := SimpleFormFieldOptionValueTypeInteger +func CreateSimpleFormFieldOptionValue2Integer(integer int64) SimpleFormFieldOptionValue2 { + typ := SimpleFormFieldOptionValue2TypeInteger - return SimpleFormFieldOptionValue{ + return SimpleFormFieldOptionValue2{ Integer: &integer, Type: typ, } } -func CreateSimpleFormFieldOptionValueNumber(number float64) SimpleFormFieldOptionValue { - typ := SimpleFormFieldOptionValueTypeNumber +func CreateSimpleFormFieldOptionValue2Number(number float64) SimpleFormFieldOptionValue2 { + typ := SimpleFormFieldOptionValue2TypeNumber - return SimpleFormFieldOptionValue{ + return SimpleFormFieldOptionValue2{ Number: &number, Type: typ, } } -func CreateSimpleFormFieldOptionValueBoolean(boolean bool) SimpleFormFieldOptionValue { - typ := SimpleFormFieldOptionValueTypeBoolean +func CreateSimpleFormFieldOptionValue2Boolean(boolean bool) SimpleFormFieldOptionValue2 { + typ := SimpleFormFieldOptionValue2TypeBoolean - return SimpleFormFieldOptionValue{ + return SimpleFormFieldOptionValue2{ Boolean: &boolean, Type: typ, } } -func CreateSimpleFormFieldOptionValueArrayOf5(arrayOf5 []Five) SimpleFormFieldOptionValue { - typ := SimpleFormFieldOptionValueTypeArrayOf5 +func CreateSimpleFormFieldOptionValue2ArrayOfSimpleFormFieldOptionValue1(arrayOfSimpleFormFieldOptionValue1 []SimpleFormFieldOptionValue1) SimpleFormFieldOptionValue2 { + typ := SimpleFormFieldOptionValue2TypeArrayOfSimpleFormFieldOptionValue1 - return SimpleFormFieldOptionValue{ - ArrayOf5: arrayOf5, - Type: typ, + return SimpleFormFieldOptionValue2{ + ArrayOfSimpleFormFieldOptionValue1: arrayOfSimpleFormFieldOptionValue1, + Type: typ, } } -func (u *SimpleFormFieldOptionValue) UnmarshalJSON(data []byte) error { +func (u *SimpleFormFieldOptionValue2) UnmarshalJSON(data []byte) error { var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { u.Str = &str - u.Type = SimpleFormFieldOptionValueTypeStr + u.Type = SimpleFormFieldOptionValue2TypeStr return nil } var integer int64 = int64(0) if err := utils.UnmarshalJSON(data, &integer, "", true, true); err == nil { u.Integer = &integer - u.Type = SimpleFormFieldOptionValueTypeInteger + u.Type = SimpleFormFieldOptionValue2TypeInteger return nil } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { u.Number = &number - u.Type = SimpleFormFieldOptionValueTypeNumber + u.Type = SimpleFormFieldOptionValue2TypeNumber return nil } var boolean bool = false if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { u.Boolean = &boolean - u.Type = SimpleFormFieldOptionValueTypeBoolean + u.Type = SimpleFormFieldOptionValue2TypeBoolean return nil } - var arrayOf5 []Five = []Five{} - if err := utils.UnmarshalJSON(data, &arrayOf5, "", true, true); err == nil { - u.ArrayOf5 = arrayOf5 - u.Type = SimpleFormFieldOptionValueTypeArrayOf5 + var arrayOfSimpleFormFieldOptionValue1 []SimpleFormFieldOptionValue1 = []SimpleFormFieldOptionValue1{} + if err := utils.UnmarshalJSON(data, &arrayOfSimpleFormFieldOptionValue1, "", true, true); err == nil { + u.ArrayOfSimpleFormFieldOptionValue1 = arrayOfSimpleFormFieldOptionValue1 + u.Type = SimpleFormFieldOptionValue2TypeArrayOfSimpleFormFieldOptionValue1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for SimpleFormFieldOptionValue", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SimpleFormFieldOptionValue2", string(data)) } -func (u SimpleFormFieldOptionValue) MarshalJSON() ([]byte, error) { +func (u SimpleFormFieldOptionValue2) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } @@ -216,40 +216,40 @@ func (u SimpleFormFieldOptionValue) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Boolean, "", true) } - if u.ArrayOf5 != nil { - return utils.MarshalJSON(u.ArrayOf5, "", true) + if u.ArrayOfSimpleFormFieldOptionValue1 != nil { + return utils.MarshalJSON(u.ArrayOfSimpleFormFieldOptionValue1, "", true) } - return nil, errors.New("could not marshal union type SimpleFormFieldOptionValue: all fields are null") + return nil, errors.New("could not marshal union type SimpleFormFieldOptionValue2: all fields are null") } -type OptionType string +type SimpleFormFieldOptionOptionType string const ( - OptionTypeSimple OptionType = "simple" + SimpleFormFieldOptionOptionTypeSimple SimpleFormFieldOptionOptionType = "simple" ) -func (e OptionType) ToPointer() *OptionType { +func (e SimpleFormFieldOptionOptionType) ToPointer() *SimpleFormFieldOptionOptionType { return &e } -func (e *OptionType) UnmarshalJSON(data []byte) error { +func (e *SimpleFormFieldOptionOptionType) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "simple": - *e = OptionType(v) + *e = SimpleFormFieldOptionOptionType(v) return nil default: - return fmt.Errorf("invalid value for OptionType: %v", v) + return fmt.Errorf("invalid value for SimpleFormFieldOptionOptionType: %v", v) } } type SimpleFormFieldOption struct { - Label string `json:"label"` - Value *SimpleFormFieldOptionValue `json:"value,omitempty"` - OptionType OptionType `json:"option_type"` + Label string `json:"label"` + Value *SimpleFormFieldOptionValue2 `json:"value,omitempty"` + OptionType SimpleFormFieldOptionOptionType `json:"option_type"` } func (o *SimpleFormFieldOption) GetLabel() string { @@ -259,16 +259,16 @@ func (o *SimpleFormFieldOption) GetLabel() string { return o.Label } -func (o *SimpleFormFieldOption) GetValue() *SimpleFormFieldOptionValue { +func (o *SimpleFormFieldOption) GetValue() *SimpleFormFieldOptionValue2 { if o == nil { return nil } return o.Value } -func (o *SimpleFormFieldOption) GetOptionType() OptionType { +func (o *SimpleFormFieldOption) GetOptionType() SimpleFormFieldOptionOptionType { if o == nil { - return OptionType("") + return SimpleFormFieldOptionOptionType("") } return o.OptionType } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/taxrate.go b/src/__tests__/mockserver/internal/sdk/models/components/taxrate.go index 23ea5c00..25be2674 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/taxrate.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/taxrate.go @@ -9,35 +9,35 @@ import ( "time" ) -type ComponentsObj struct { +type Component struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Rate *float64 `json:"rate,omitempty"` Compound *bool `json:"compound,omitempty"` } -func (o *ComponentsObj) GetID() *string { +func (o *Component) GetID() *string { if o == nil { return nil } return o.ID } -func (o *ComponentsObj) GetName() *string { +func (o *Component) GetName() *string { if o == nil { return nil } return o.Name } -func (o *ComponentsObj) GetRate() *float64 { +func (o *Component) GetRate() *float64 { if o == nil { return nil } return o.Rate } -func (o *ComponentsObj) GetCompound() *bool { +func (o *Component) GetCompound() *bool { if o == nil { return nil } @@ -74,12 +74,12 @@ func (e *TaxRateStatus) UnmarshalJSON(data []byte) error { } } -type Subsidiaries struct { +type TaxRateSubsidiary struct { // The ID of the subsidiary. ID *string `json:"id,omitempty"` } -func (o *Subsidiaries) GetID() *string { +func (o *TaxRateSubsidiary) GetID() *string { if o == nil { return nil } @@ -102,8 +102,8 @@ type TaxRate struct { // Unique identifier for the account for tax collected. TaxPayableAccountID *string `json:"tax_payable_account_id,omitempty"` // Unique identifier for the account for tax remitted. - TaxRemittedAccountID *string `json:"tax_remitted_account_id,omitempty"` - Components []ComponentsObj `json:"components,omitempty"` + TaxRemittedAccountID *string `json:"tax_remitted_account_id,omitempty"` + Components []Component `json:"components,omitempty"` // Tax type used to indicate the source of tax collected or paid Type *string `json:"type,omitempty"` // Report Tax type to aggregate tax collected or paid for reporting purposes @@ -127,8 +127,8 @@ type TaxRate struct { // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. PassThrough []PassThroughBody `json:"pass_through,omitempty"` // The subsidiaries this belongs to. - Subsidiaries []Subsidiaries `json:"subsidiaries,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` + Subsidiaries []TaxRateSubsidiary `json:"subsidiaries,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` } func (t TaxRate) MarshalJSON() ([]byte, error) { @@ -198,7 +198,7 @@ func (o *TaxRate) GetTaxRemittedAccountID() *string { return o.TaxRemittedAccountID } -func (o *TaxRate) GetComponents() []ComponentsObj { +func (o *TaxRate) GetComponents() []Component { if o == nil { return nil } @@ -282,7 +282,7 @@ func (o *TaxRate) GetPassThrough() []PassThroughBody { return o.PassThrough } -func (o *TaxRate) GetSubsidiaries() []Subsidiaries { +func (o *TaxRate) GetSubsidiaries() []TaxRateSubsidiary { if o == nil { return nil } @@ -312,8 +312,8 @@ type TaxRateInput struct { // Unique identifier for the account for tax collected. TaxPayableAccountID *string `json:"tax_payable_account_id,omitempty"` // Unique identifier for the account for tax remitted. - TaxRemittedAccountID *string `json:"tax_remitted_account_id,omitempty"` - Components []ComponentsObj `json:"components,omitempty"` + TaxRemittedAccountID *string `json:"tax_remitted_account_id,omitempty"` + Components []Component `json:"components,omitempty"` // Tax type used to indicate the source of tax collected or paid Type *string `json:"type,omitempty"` // Report Tax type to aggregate tax collected or paid for reporting purposes @@ -327,8 +327,8 @@ type TaxRateInput struct { // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. PassThrough []PassThroughBody `json:"pass_through,omitempty"` // The subsidiaries this belongs to. - Subsidiaries []Subsidiaries `json:"subsidiaries,omitempty"` - CustomFields []CustomField `json:"custom_fields,omitempty"` + Subsidiaries []TaxRateSubsidiary `json:"subsidiaries,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` } func (o *TaxRateInput) GetID() *string { @@ -387,7 +387,7 @@ func (o *TaxRateInput) GetTaxRemittedAccountID() *string { return o.TaxRemittedAccountID } -func (o *TaxRateInput) GetComponents() []ComponentsObj { +func (o *TaxRateInput) GetComponents() []Component { if o == nil { return nil } @@ -436,7 +436,7 @@ func (o *TaxRateInput) GetPassThrough() []PassThroughBody { return o.PassThrough } -func (o *TaxRateInput) GetSubsidiaries() []Subsidiaries { +func (o *TaxRateInput) GetSubsidiaries() []TaxRateSubsidiary { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequest.go b/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequest.go index 3e8baba4..553498a3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequest.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequest.go @@ -9,22 +9,22 @@ import ( "time" ) -// TimeOffRequestStatusStatus - The status of the time off request. -type TimeOffRequestStatusStatus string +// TimeOffRequestStatus - The status of the time off request. +type TimeOffRequestStatus string const ( - TimeOffRequestStatusStatusRequested TimeOffRequestStatusStatus = "requested" - TimeOffRequestStatusStatusApproved TimeOffRequestStatusStatus = "approved" - TimeOffRequestStatusStatusDeclined TimeOffRequestStatusStatus = "declined" - TimeOffRequestStatusStatusCancelled TimeOffRequestStatusStatus = "cancelled" - TimeOffRequestStatusStatusDeleted TimeOffRequestStatusStatus = "deleted" - TimeOffRequestStatusStatusOther TimeOffRequestStatusStatus = "other" + TimeOffRequestStatusRequested TimeOffRequestStatus = "requested" + TimeOffRequestStatusApproved TimeOffRequestStatus = "approved" + TimeOffRequestStatusDeclined TimeOffRequestStatus = "declined" + TimeOffRequestStatusCancelled TimeOffRequestStatus = "cancelled" + TimeOffRequestStatusDeleted TimeOffRequestStatus = "deleted" + TimeOffRequestStatusOther TimeOffRequestStatus = "other" ) -func (e TimeOffRequestStatusStatus) ToPointer() *TimeOffRequestStatusStatus { +func (e TimeOffRequestStatus) ToPointer() *TimeOffRequestStatus { return &e } -func (e *TimeOffRequestStatusStatus) UnmarshalJSON(data []byte) error { +func (e *TimeOffRequestStatus) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -41,10 +41,10 @@ func (e *TimeOffRequestStatusStatus) UnmarshalJSON(data []byte) error { case "deleted": fallthrough case "other": - *e = TimeOffRequestStatusStatus(v) + *e = TimeOffRequestStatus(v) return nil default: - return fmt.Errorf("invalid value for TimeOffRequestStatusStatus: %v", v) + return fmt.Errorf("invalid value for TimeOffRequestStatus: %v", v) } } @@ -147,7 +147,7 @@ type TimeOffRequest struct { // ID of the policy PolicyID *string `json:"policy_id,omitempty"` // The status of the time off request. - Status *TimeOffRequestStatusStatus `json:"status,omitempty"` + Status *TimeOffRequestStatus `json:"status,omitempty"` // Description of the time off request. Description *string `json:"description,omitempty"` // The start date of the time off request. @@ -215,7 +215,7 @@ func (o *TimeOffRequest) GetPolicyID() *string { return o.PolicyID } -func (o *TimeOffRequest) GetStatus() *TimeOffRequestStatusStatus { +func (o *TimeOffRequest) GetStatus() *TimeOffRequestStatus { if o == nil { return nil } @@ -347,7 +347,7 @@ type TimeOffRequestInput struct { // ID of the policy PolicyID *string `json:"policy_id,omitempty"` // The status of the time off request. - Status *TimeOffRequestStatusStatus `json:"status,omitempty"` + Status *TimeOffRequestStatus `json:"status,omitempty"` // Description of the time off request. Description *string `json:"description,omitempty"` // The start date of the time off request. @@ -387,7 +387,7 @@ func (o *TimeOffRequestInput) GetPolicyID() *string { return o.PolicyID } -func (o *TimeOffRequestInput) GetStatus() *TimeOffRequestStatusStatus { +func (o *TimeOffRequestInput) GetStatus() *TimeOffRequestStatus { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequestsfilter.go b/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequestsfilter.go index 892950c0..7b241c13 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequestsfilter.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/timeoffrequestsfilter.go @@ -7,22 +7,22 @@ import ( "fmt" ) -// TimeOffRequestStatus - Time off request status to filter on -type TimeOffRequestStatus string +// TimeOffRequestsFilterTimeOffRequestStatus - Time off request status to filter on +type TimeOffRequestsFilterTimeOffRequestStatus string const ( - TimeOffRequestStatusRequested TimeOffRequestStatus = "requested" - TimeOffRequestStatusApproved TimeOffRequestStatus = "approved" - TimeOffRequestStatusDeclined TimeOffRequestStatus = "declined" - TimeOffRequestStatusCancelled TimeOffRequestStatus = "cancelled" - TimeOffRequestStatusDeleted TimeOffRequestStatus = "deleted" - TimeOffRequestStatusOther TimeOffRequestStatus = "other" + TimeOffRequestsFilterTimeOffRequestStatusRequested TimeOffRequestsFilterTimeOffRequestStatus = "requested" + TimeOffRequestsFilterTimeOffRequestStatusApproved TimeOffRequestsFilterTimeOffRequestStatus = "approved" + TimeOffRequestsFilterTimeOffRequestStatusDeclined TimeOffRequestsFilterTimeOffRequestStatus = "declined" + TimeOffRequestsFilterTimeOffRequestStatusCancelled TimeOffRequestsFilterTimeOffRequestStatus = "cancelled" + TimeOffRequestsFilterTimeOffRequestStatusDeleted TimeOffRequestsFilterTimeOffRequestStatus = "deleted" + TimeOffRequestsFilterTimeOffRequestStatusOther TimeOffRequestsFilterTimeOffRequestStatus = "other" ) -func (e TimeOffRequestStatus) ToPointer() *TimeOffRequestStatus { +func (e TimeOffRequestsFilterTimeOffRequestStatus) ToPointer() *TimeOffRequestsFilterTimeOffRequestStatus { return &e } -func (e *TimeOffRequestStatus) UnmarshalJSON(data []byte) error { +func (e *TimeOffRequestsFilterTimeOffRequestStatus) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -39,10 +39,10 @@ func (e *TimeOffRequestStatus) UnmarshalJSON(data []byte) error { case "deleted": fallthrough case "other": - *e = TimeOffRequestStatus(v) + *e = TimeOffRequestsFilterTimeOffRequestStatus(v) return nil default: - return fmt.Errorf("invalid value for TimeOffRequestStatus: %v", v) + return fmt.Errorf("invalid value for TimeOffRequestsFilterTimeOffRequestStatus: %v", v) } } @@ -56,7 +56,7 @@ type TimeOffRequestsFilter struct { // Employee ID EmployeeID *string `queryParam:"name=employee_id"` // Time off request status to filter on - TimeOffRequestStatus *TimeOffRequestStatus `queryParam:"name=time_off_request_status"` + TimeOffRequestStatus *TimeOffRequestsFilterTimeOffRequestStatus `queryParam:"name=time_off_request_status"` // Company ID CompanyID *string `queryParam:"name=company_id"` } @@ -89,7 +89,7 @@ func (o *TimeOffRequestsFilter) GetEmployeeID() *string { return o.EmployeeID } -func (o *TimeOffRequestsFilter) GetTimeOffRequestStatus() *TimeOffRequestStatus { +func (o *TimeOffRequestsFilter) GetTimeOffRequestStatus() *TimeOffRequestsFilterTimeOffRequestStatus { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/trackingcategory.go b/src/__tests__/mockserver/internal/sdk/models/components/trackingcategory.go index 274a2333..8b8403da 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/trackingcategory.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/trackingcategory.go @@ -36,12 +36,12 @@ func (e *TrackingCategoryStatus) UnmarshalJSON(data []byte) error { } } -type TrackingCategorySubsidiaries struct { +type TrackingCategorySubsidiary struct { // The ID of the subsidiary. ID *string `json:"id,omitempty"` } -func (o *TrackingCategorySubsidiaries) GetID() *string { +func (o *TrackingCategorySubsidiary) GetID() *string { if o == nil { return nil } @@ -74,7 +74,7 @@ type TrackingCategory struct { // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. PassThrough []PassThroughBody `json:"pass_through,omitempty"` // The subsidiaries the account belongs to. - Subsidiaries []TrackingCategorySubsidiaries `json:"subsidiaries,omitempty"` + Subsidiaries []TrackingCategorySubsidiary `json:"subsidiaries,omitempty"` } func (t TrackingCategory) MarshalJSON() ([]byte, error) { @@ -172,7 +172,7 @@ func (o *TrackingCategory) GetPassThrough() []PassThroughBody { return o.PassThrough } -func (o *TrackingCategory) GetSubsidiaries() []TrackingCategorySubsidiaries { +func (o *TrackingCategory) GetSubsidiaries() []TrackingCategorySubsidiary { if o == nil { return nil } @@ -193,7 +193,7 @@ type TrackingCategoryInput struct { // The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. PassThrough []PassThroughBody `json:"pass_through,omitempty"` // The subsidiaries the account belongs to. - Subsidiaries []TrackingCategorySubsidiaries `json:"subsidiaries,omitempty"` + Subsidiaries []TrackingCategorySubsidiary `json:"subsidiaries,omitempty"` } func (o *TrackingCategoryInput) GetParentID() *string { @@ -238,7 +238,7 @@ func (o *TrackingCategoryInput) GetPassThrough() []PassThroughBody { return o.PassThrough } -func (o *TrackingCategoryInput) GetSubsidiaries() []TrackingCategorySubsidiaries { +func (o *TrackingCategoryInput) GetSubsidiaries() []TrackingCategorySubsidiary { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/unauthorizedresponseerror.go similarity index 60% rename from src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponse.go rename to src/__tests__/mockserver/internal/sdk/models/components/unauthorizedresponseerror.go index 30efe904..9b2cf950 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/unauthorizedresponseerror.go @@ -1,9 +1,8 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package sdkerrors +package components import ( - "encoding/json" "errors" "fmt" "mockserver/internal/sdk/utils" @@ -24,8 +23,6 @@ type UnauthorizedResponseDetail struct { Type UnauthorizedResponseDetailType } -var _ error = &UnauthorizedResponseDetail{} - func CreateUnauthorizedResponseDetailStr(str string) UnauthorizedResponseDetail { typ := UnauthorizedResponseDetailTypeStr @@ -74,42 +71,3 @@ func (u UnauthorizedResponseDetail) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type UnauthorizedResponseDetail: all fields are null") } - -func (u UnauthorizedResponseDetail) Error() string { - switch u.Type { - case UnauthorizedResponseDetailTypeStr: - data, _ := json.Marshal(u.Str) - return string(data) - case UnauthorizedResponseDetailTypeMapOfAny: - data, _ := json.Marshal(u.MapOfAny) - return string(data) - default: - return "unknown error" - } -} - -// UnauthorizedResponse - Unauthorized -type UnauthorizedResponse struct { - // HTTP status code - StatusCode *float64 `json:"status_code,omitempty"` - // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) - Error_ *string `json:"error,omitempty"` - // The type of error returned - TypeName *string `json:"type_name,omitempty"` - // A human-readable message providing more details about the error. - Message *string `json:"message,omitempty"` - // Contains parameter or domain specific information related to the error and why it occurred. - Detail *UnauthorizedResponseDetail `json:"detail,omitempty"` - // Link to documentation of error type - Ref *string `json:"ref,omitempty"` -} - -var _ error = &UnauthorizedResponse{} - -func (e *UnauthorizedResponse) Error() string { - if e.Message == nil { - return "unknown error" - } - - return *e.Message -} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/unexpectederrorresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/unexpectederrorresponse.go index 6c6a66f4..f230378c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/unexpectederrorresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/unexpectederrorresponse.go @@ -8,59 +8,59 @@ import ( "mockserver/internal/sdk/utils" ) -type DetailType string +type UnexpectedErrorResponseDetailType string const ( - DetailTypeStr DetailType = "str" - DetailTypeMapOfAny DetailType = "mapOfAny" + UnexpectedErrorResponseDetailTypeStr UnexpectedErrorResponseDetailType = "str" + UnexpectedErrorResponseDetailTypeMapOfAny UnexpectedErrorResponseDetailType = "mapOfAny" ) -// Detail - Contains parameter or domain specific information related to the error and why it occurred. -type Detail struct { +// UnexpectedErrorResponseDetail - Contains parameter or domain specific information related to the error and why it occurred. +type UnexpectedErrorResponseDetail struct { Str *string MapOfAny map[string]any - Type DetailType + Type UnexpectedErrorResponseDetailType } -func CreateDetailStr(str string) Detail { - typ := DetailTypeStr +func CreateUnexpectedErrorResponseDetailStr(str string) UnexpectedErrorResponseDetail { + typ := UnexpectedErrorResponseDetailTypeStr - return Detail{ + return UnexpectedErrorResponseDetail{ Str: &str, Type: typ, } } -func CreateDetailMapOfAny(mapOfAny map[string]any) Detail { - typ := DetailTypeMapOfAny +func CreateUnexpectedErrorResponseDetailMapOfAny(mapOfAny map[string]any) UnexpectedErrorResponseDetail { + typ := UnexpectedErrorResponseDetailTypeMapOfAny - return Detail{ + return UnexpectedErrorResponseDetail{ MapOfAny: mapOfAny, Type: typ, } } -func (u *Detail) UnmarshalJSON(data []byte) error { +func (u *UnexpectedErrorResponseDetail) UnmarshalJSON(data []byte) error { var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { u.Str = &str - u.Type = DetailTypeStr + u.Type = UnexpectedErrorResponseDetailTypeStr return nil } var mapOfAny map[string]any = map[string]any{} if err := utils.UnmarshalJSON(data, &mapOfAny, "", true, true); err == nil { u.MapOfAny = mapOfAny - u.Type = DetailTypeMapOfAny + u.Type = UnexpectedErrorResponseDetailTypeMapOfAny return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for Detail", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UnexpectedErrorResponseDetail", string(data)) } -func (u Detail) MarshalJSON() ([]byte, error) { +func (u UnexpectedErrorResponseDetail) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } @@ -69,7 +69,7 @@ func (u Detail) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.MapOfAny, "", true) } - return nil, errors.New("could not marshal union type Detail: all fields are null") + return nil, errors.New("could not marshal union type UnexpectedErrorResponseDetail: all fields are null") } // UnexpectedErrorResponse - Unexpected error @@ -83,7 +83,7 @@ type UnexpectedErrorResponse struct { // A human-readable message providing more details about the error. Message *string `json:"message,omitempty"` // Contains parameter or domain specific information related to the error and why it occurred. - Detail *Detail `json:"detail,omitempty"` + Detail *UnexpectedErrorResponseDetail `json:"detail,omitempty"` // Link to documentation of error type Ref *string `json:"ref,omitempty"` } @@ -116,7 +116,7 @@ func (o *UnexpectedErrorResponse) GetMessage() *string { return o.Message } -func (o *UnexpectedErrorResponse) GetDetail() *Detail { +func (o *UnexpectedErrorResponse) GetDetail() *UnexpectedErrorResponseDetail { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/unprocessableresponseerror.go similarity index 60% rename from src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponse.go rename to src/__tests__/mockserver/internal/sdk/models/components/unprocessableresponseerror.go index 45ad9c7c..05d9cac2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/unprocessableresponseerror.go @@ -1,9 +1,8 @@ // Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -package sdkerrors +package components import ( - "encoding/json" "errors" "fmt" "mockserver/internal/sdk/utils" @@ -24,8 +23,6 @@ type UnprocessableResponseDetail struct { Type UnprocessableResponseDetailType } -var _ error = &UnprocessableResponseDetail{} - func CreateUnprocessableResponseDetailStr(str string) UnprocessableResponseDetail { typ := UnprocessableResponseDetailTypeStr @@ -74,42 +71,3 @@ func (u UnprocessableResponseDetail) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type UnprocessableResponseDetail: all fields are null") } - -func (u UnprocessableResponseDetail) Error() string { - switch u.Type { - case UnprocessableResponseDetailTypeStr: - data, _ := json.Marshal(u.Str) - return string(data) - case UnprocessableResponseDetailTypeMapOfAny: - data, _ := json.Marshal(u.MapOfAny) - return string(data) - default: - return "unknown error" - } -} - -// UnprocessableResponse - Unprocessable -type UnprocessableResponse struct { - // HTTP status code - StatusCode *float64 `json:"status_code,omitempty"` - // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) - Error_ *string `json:"error,omitempty"` - // The type of error returned - TypeName *string `json:"type_name,omitempty"` - // A human-readable message providing more details about the error. - Message *string `json:"message,omitempty"` - // Contains parameter or domain specific information related to the error and why it occurred. - Detail *UnprocessableResponseDetail `json:"detail,omitempty"` - // Link to documentation of error type - Ref *string `json:"ref,omitempty"` -} - -var _ error = &UnprocessableResponse{} - -func (e *UnprocessableResponse) Error() string { - if e.Message == nil { - return "unknown error" - } - - return *e.Message -} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/user.go b/src/__tests__/mockserver/internal/sdk/models/components/useroutput.go similarity index 77% rename from src/__tests__/mockserver/internal/sdk/models/components/user.go rename to src/__tests__/mockserver/internal/sdk/models/components/useroutput.go index fd82d5f9..77b9ea9b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/user.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/useroutput.go @@ -2,7 +2,7 @@ package components -type User struct { +type UserOutput struct { // The unique identifier for the user ID *string `json:"id,omitempty"` // The parent user id @@ -46,147 +46,147 @@ type User struct { PassThrough []PassThroughBody `json:"pass_through,omitempty"` } -func (o *User) GetID() *string { +func (o *UserOutput) GetID() *string { if o == nil { return nil } return o.ID } -func (o *User) GetParentID() *string { +func (o *UserOutput) GetParentID() *string { if o == nil { return nil } return o.ParentID } -func (o *User) GetUsername() *string { +func (o *UserOutput) GetUsername() *string { if o == nil { return nil } return o.Username } -func (o *User) GetFirstName() *string { +func (o *UserOutput) GetFirstName() *string { if o == nil { return nil } return o.FirstName } -func (o *User) GetLastName() *string { +func (o *UserOutput) GetLastName() *string { if o == nil { return nil } return o.LastName } -func (o *User) GetTitle() *string { +func (o *UserOutput) GetTitle() *string { if o == nil { return nil } return o.Title } -func (o *User) GetDivision() *string { +func (o *UserOutput) GetDivision() *string { if o == nil { return nil } return o.Division } -func (o *User) GetDepartment() *string { +func (o *UserOutput) GetDepartment() *string { if o == nil { return nil } return o.Department } -func (o *User) GetCompanyName() *string { +func (o *UserOutput) GetCompanyName() *string { if o == nil { return nil } return o.CompanyName } -func (o *User) GetEmployeeNumber() *string { +func (o *UserOutput) GetEmployeeNumber() *string { if o == nil { return nil } return o.EmployeeNumber } -func (o *User) GetDescription() *string { +func (o *UserOutput) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *User) GetImage() *string { +func (o *UserOutput) GetImage() *string { if o == nil { return nil } return o.Image } -func (o *User) GetLanguage() *string { +func (o *UserOutput) GetLanguage() *string { if o == nil { return nil } return o.Language } -func (o *User) GetStatus() *string { +func (o *UserOutput) GetStatus() *string { if o == nil { return nil } return o.Status } -func (o *User) GetAddresses() []Address { +func (o *UserOutput) GetAddresses() []Address { if o == nil { return nil } return o.Addresses } -func (o *User) GetPhoneNumbers() []PhoneNumber { +func (o *UserOutput) GetPhoneNumbers() []PhoneNumber { if o == nil { return nil } return o.PhoneNumbers } -func (o *User) GetEmails() []Email { +func (o *UserOutput) GetEmails() []Email { if o == nil { return []Email{} } return o.Emails } -func (o *User) GetCustomMappings() map[string]any { +func (o *UserOutput) GetCustomMappings() map[string]any { if o == nil { return nil } return o.CustomMappings } -func (o *User) GetUpdatedAt() *string { +func (o *UserOutput) GetUpdatedAt() *string { if o == nil { return nil } return o.UpdatedAt } -func (o *User) GetCreatedAt() *string { +func (o *UserOutput) GetCreatedAt() *string { if o == nil { return nil } return o.CreatedAt } -func (o *User) GetPassThrough() []PassThroughBody { +func (o *UserOutput) GetPassThrough() []PassThroughBody { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/webhookeventlog.go b/src/__tests__/mockserver/internal/sdk/models/components/webhookeventlog.go index 20e05866..d8d3d1ca 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/webhookeventlog.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/webhookeventlog.go @@ -24,7 +24,7 @@ func (o *WebhookEventLogService) GetName() string { return o.Name } -type Attempts struct { +type Attempt struct { // ISO Date and time when the request was made. Timestamp *string `json:"timestamp,omitempty"` // Number of attempts webhook endpoint was called before a success was returned or eventually failed @@ -35,28 +35,28 @@ type Attempts struct { Success *bool `json:"success,omitempty"` } -func (o *Attempts) GetTimestamp() *string { +func (o *Attempt) GetTimestamp() *string { if o == nil { return nil } return o.Timestamp } -func (o *Attempts) GetExecutionAttempt() *float64 { +func (o *Attempt) GetExecutionAttempt() *float64 { if o == nil { return nil } return o.ExecutionAttempt } -func (o *Attempts) GetStatusCode() *int64 { +func (o *Attempt) GetStatusCode() *int64 { if o == nil { return nil } return o.StatusCode } -func (o *Attempts) GetSuccess() *bool { +func (o *Attempt) GetSuccess() *bool { if o == nil { return nil } @@ -96,7 +96,7 @@ type WebhookEventLog struct { // If the request has not hit the max retry limit and will be retried. RetryScheduled *bool `json:"retry_scheduled,omitempty"` // record of each attempt to call webhook endpoint - Attempts []Attempts `json:"attempts,omitempty"` + Attempts []Attempt `json:"attempts,omitempty"` } func (o *WebhookEventLog) GetID() *string { @@ -211,7 +211,7 @@ func (o *WebhookEventLog) GetRetryScheduled() *bool { return o.RetryScheduled } -func (o *WebhookEventLog) GetAttempts() []Attempts { +func (o *WebhookEventLog) GetAttempts() []Attempt { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/webhooksupport.go b/src/__tests__/mockserver/internal/sdk/models/components/webhooksupport.go index 552e2f53..a9dfc71a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/webhooksupport.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/webhooksupport.go @@ -7,19 +7,19 @@ import ( "fmt" ) -// Mode of the webhook support. -type Mode string +// WebhookSupportMode - Mode of the webhook support. +type WebhookSupportMode string const ( - ModeNative Mode = "native" - ModeVirtual Mode = "virtual" - ModeNone Mode = "none" + WebhookSupportModeNative WebhookSupportMode = "native" + WebhookSupportModeVirtual WebhookSupportMode = "virtual" + WebhookSupportModeNone WebhookSupportMode = "none" ) -func (e Mode) ToPointer() *Mode { +func (e WebhookSupportMode) ToPointer() *WebhookSupportMode { return &e } -func (e *Mode) UnmarshalJSON(data []byte) error { +func (e *WebhookSupportMode) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -30,10 +30,10 @@ func (e *Mode) UnmarshalJSON(data []byte) error { case "virtual": fallthrough case "none": - *e = Mode(v) + *e = WebhookSupportMode(v) return nil default: - return fmt.Errorf("invalid value for Mode: %v", v) + return fmt.Errorf("invalid value for WebhookSupportMode: %v", v) } } @@ -155,11 +155,11 @@ func (o *RequestRate) GetUnit() Unit { return o.Unit } -type WebhookSupportResources struct { +type Resources struct { Events []string `json:"events,omitempty"` } -func (o *WebhookSupportResources) GetEvents() []string { +func (o *Resources) GetEvents() []string { if o == nil { return nil } @@ -171,7 +171,7 @@ type VirtualWebhooks struct { // The rate at which requests for resources will be made to downstream. RequestRate RequestRate `json:"request_rate"` // The resources that will be requested from downstream. - Resources map[string]WebhookSupportResources `json:"resources,omitempty"` + Resources map[string]Resources `json:"resources,omitempty"` } func (o *VirtualWebhooks) GetRequestRate() RequestRate { @@ -181,7 +181,7 @@ func (o *VirtualWebhooks) GetRequestRate() RequestRate { return o.RequestRate } -func (o *VirtualWebhooks) GetResources() map[string]WebhookSupportResources { +func (o *VirtualWebhooks) GetResources() map[string]Resources { if o == nil { return nil } @@ -191,7 +191,7 @@ func (o *VirtualWebhooks) GetResources() map[string]WebhookSupportResources { // WebhookSupport - How webhooks are supported for the connector. Sometimes the connector natively supports webhooks, other times Apideck virtualizes them based on polling. type WebhookSupport struct { // Mode of the webhook support. - Mode *Mode `json:"mode,omitempty"` + Mode *WebhookSupportMode `json:"mode,omitempty"` // Received events are scoped to connection or across integration. SubscriptionLevel *SubscriptionLevel `json:"subscription_level,omitempty"` // How the subscription is managed in the downstream. @@ -200,7 +200,7 @@ type WebhookSupport struct { VirtualWebhooks *VirtualWebhooks `json:"virtual_webhooks,omitempty"` } -func (o *WebhookSupport) GetMode() *Mode { +func (o *WebhookSupport) GetMode() *WebhookSupportMode { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponse.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponse.go deleted file mode 100644 index 24ffa374..00000000 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponse.go +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package sdkerrors - -import ( - "encoding/json" - "errors" - "fmt" - "mockserver/internal/sdk/utils" -) - -type DetailType string - -const ( - DetailTypeStr DetailType = "str" - DetailTypeMapOfAny DetailType = "mapOfAny" -) - -// Detail - Contains parameter or domain specific information related to the error and why it occurred. -type Detail struct { - Str *string - MapOfAny map[string]any - - Type DetailType -} - -var _ error = &Detail{} - -func CreateDetailStr(str string) Detail { - typ := DetailTypeStr - - return Detail{ - Str: &str, - Type: typ, - } -} - -func CreateDetailMapOfAny(mapOfAny map[string]any) Detail { - typ := DetailTypeMapOfAny - - return Detail{ - MapOfAny: mapOfAny, - Type: typ, - } -} - -func (u *Detail) UnmarshalJSON(data []byte) error { - - var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { - u.Str = &str - u.Type = DetailTypeStr - return nil - } - - var mapOfAny map[string]any = map[string]any{} - if err := utils.UnmarshalJSON(data, &mapOfAny, "", true, true); err == nil { - u.MapOfAny = mapOfAny - u.Type = DetailTypeMapOfAny - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for Detail", string(data)) -} - -func (u Detail) MarshalJSON() ([]byte, error) { - if u.Str != nil { - return utils.MarshalJSON(u.Str, "", true) - } - - if u.MapOfAny != nil { - return utils.MarshalJSON(u.MapOfAny, "", true) - } - - return nil, errors.New("could not marshal union type Detail: all fields are null") -} - -func (u Detail) Error() string { - switch u.Type { - case DetailTypeStr: - data, _ := json.Marshal(u.Str) - return string(data) - case DetailTypeMapOfAny: - data, _ := json.Marshal(u.MapOfAny) - return string(data) - default: - return "unknown error" - } -} - -// BadRequestResponse - Bad Request -type BadRequestResponse struct { - // HTTP status code - StatusCode *float64 `json:"status_code,omitempty"` - // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) - Error_ *string `json:"error,omitempty"` - // The type of error returned - TypeName *string `json:"type_name,omitempty"` - // A human-readable message providing more details about the error. - Message *string `json:"message,omitempty"` - // Contains parameter or domain specific information related to the error and why it occurred. - Detail *Detail `json:"detail,omitempty"` - // Link to documentation of error type - Ref *string `json:"ref,omitempty"` -} - -var _ error = &BadRequestResponse{} - -func (e *BadRequestResponse) Error() string { - if e.Message == nil { - return "unknown error" - } - - return *e.Message -} diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponseerror.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponseerror.go new file mode 100644 index 00000000..45b14752 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/badrequestresponseerror.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package sdkerrors + +import ( + "mockserver/internal/sdk/models/components" +) + +// BadRequestResponseError - Bad Request +type BadRequestResponseError struct { + // HTTP status code + StatusCode *float64 `json:"status_code,omitempty"` + // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) + Error_ *string `json:"error,omitempty"` + // The type of error returned + TypeName *string `json:"type_name,omitempty"` + // A human-readable message providing more details about the error. + Message *string `json:"message,omitempty"` + // Contains parameter or domain specific information related to the error and why it occurred. + Detail *components.BadRequestResponseDetail `json:"detail,omitempty"` + // Link to documentation of error type + Ref *string `json:"ref,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` +} + +var _ error = &BadRequestResponseError{} + +func (e *BadRequestResponseError) Error() string { + if e.Message == nil { + return "unknown error" + } + + return *e.Message +} diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponseerror.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponseerror.go new file mode 100644 index 00000000..a87dcf7b --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/notfoundresponseerror.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package sdkerrors + +import ( + "mockserver/internal/sdk/models/components" +) + +// NotFoundResponseError - The specified resource was not found +type NotFoundResponseError struct { + // HTTP status code + StatusCode *float64 `json:"status_code,omitempty"` + // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) + Error_ *string `json:"error,omitempty"` + // The type of error returned + TypeName *string `json:"type_name,omitempty"` + // A human-readable message providing more details about the error. + Message *string `json:"message,omitempty"` + // Contains parameter or domain specific information related to the error and why it occurred. + Detail *components.NotFoundResponseDetail `json:"detail,omitempty"` + // Link to documentation of error type + Ref *string `json:"ref,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` +} + +var _ error = &NotFoundResponseError{} + +func (e *NotFoundResponseError) Error() string { + if e.Message == nil { + return "unknown error" + } + + return *e.Message +} diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponse.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponseerror.go similarity index 67% rename from src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponse.go rename to src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponseerror.go index b6206701..59f47560 100644 --- a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/paymentrequiredresponseerror.go @@ -2,8 +2,12 @@ package sdkerrors -// PaymentRequiredResponse - Payment Required -type PaymentRequiredResponse struct { +import ( + "mockserver/internal/sdk/models/components" +) + +// PaymentRequiredResponseError - Payment Required +type PaymentRequiredResponseError struct { // HTTP status code StatusCode *float64 `json:"status_code,omitempty"` // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) @@ -15,12 +19,13 @@ type PaymentRequiredResponse struct { // Contains parameter or domain specific information related to the error and why it occurred. Detail *string `json:"detail,omitempty"` // Link to documentation of error type - Ref *string `json:"ref,omitempty"` + Ref *string `json:"ref,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` } -var _ error = &PaymentRequiredResponse{} +var _ error = &PaymentRequiredResponseError{} -func (e *PaymentRequiredResponse) Error() string { +func (e *PaymentRequiredResponseError) Error() string { if e.Message == nil { return "unknown error" } diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponseerror.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponseerror.go new file mode 100644 index 00000000..464e458d --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unauthorizedresponseerror.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package sdkerrors + +import ( + "mockserver/internal/sdk/models/components" +) + +// UnauthorizedResponseError - Unauthorized +type UnauthorizedResponseError struct { + // HTTP status code + StatusCode *float64 `json:"status_code,omitempty"` + // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) + Error_ *string `json:"error,omitempty"` + // The type of error returned + TypeName *string `json:"type_name,omitempty"` + // A human-readable message providing more details about the error. + Message *string `json:"message,omitempty"` + // Contains parameter or domain specific information related to the error and why it occurred. + Detail *components.UnauthorizedResponseDetail `json:"detail,omitempty"` + // Link to documentation of error type + Ref *string `json:"ref,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` +} + +var _ error = &UnauthorizedResponseError{} + +func (e *UnauthorizedResponseError) Error() string { + if e.Message == nil { + return "unknown error" + } + + return *e.Message +} diff --git a/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponseerror.go b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponseerror.go new file mode 100644 index 00000000..a5db7ab8 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/sdkerrors/unprocessableresponseerror.go @@ -0,0 +1,34 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package sdkerrors + +import ( + "mockserver/internal/sdk/models/components" +) + +// UnprocessableResponseError - Unprocessable +type UnprocessableResponseError struct { + // HTTP status code + StatusCode *float64 `json:"status_code,omitempty"` + // Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) + Error_ *string `json:"error,omitempty"` + // The type of error returned + TypeName *string `json:"type_name,omitempty"` + // A human-readable message providing more details about the error. + Message *string `json:"message,omitempty"` + // Contains parameter or domain specific information related to the error and why it occurred. + Detail *components.UnprocessableResponseDetail `json:"detail,omitempty"` + // Link to documentation of error type + Ref *string `json:"ref,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` +} + +var _ error = &UnprocessableResponseError{} + +func (e *UnprocessableResponseError) Error() string { + if e.Message == nil { + return "unknown error" + } + + return *e.Message +} diff --git a/src/__tests__/notes.test.ts b/src/__tests__/notes.test.ts index 64641fe7..6cc01373 100644 --- a/src/__tests__/notes.test.ts +++ b/src/__tests__/notes.test.ts @@ -16,6 +16,8 @@ test("Notes Crm Notes All", async () => { }); const result = await apideck.crm.notes.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -207,6 +209,8 @@ test("Notes Crm Notes One", async () => { const result = await apideck.crm.notes.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -318,6 +322,8 @@ test("Notes Crm Notes Delete", async () => { const result = await apideck.crm.notes.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/opportunities.test.ts b/src/__tests__/opportunities.test.ts index 37bc3aa3..550919d5 100644 --- a/src/__tests__/opportunities.test.ts +++ b/src/__tests__/opportunities.test.ts @@ -17,6 +17,8 @@ test("Opportunities Crm Opportunities All", async () => { }); const result = await apideck.crm.opportunities.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { status: "Completed", @@ -24,6 +26,7 @@ test("Opportunities Crm Opportunities All", async () => { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -332,6 +335,8 @@ test("Opportunities Crm Opportunities One", async () => { const result = await apideck.crm.opportunities.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -486,6 +491,8 @@ test("Opportunities Crm Opportunities Delete", async () => { const result = await apideck.crm.opportunities.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/orders.test.ts b/src/__tests__/orders.test.ts index 41ac9d1f..76e08281 100644 --- a/src/__tests__/orders.test.ts +++ b/src/__tests__/orders.test.ts @@ -16,6 +16,8 @@ test("Orders Ecommerce Orders All", async () => { }); const result = await apideck.ecommerce.orders.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { email: "elon@musk.com", @@ -25,6 +27,7 @@ test("Orders Ecommerce Orders All", async () => { }, sort: { by: "created_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -606,6 +609,8 @@ test("Orders Ecommerce Orders One", async () => { const result = await apideck.ecommerce.orders.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/payments.test.ts b/src/__tests__/payments.test.ts index bb24668b..b18d43c1 100644 --- a/src/__tests__/payments.test.ts +++ b/src/__tests__/payments.test.ts @@ -16,12 +16,15 @@ test("Payments Accounting Payments All", async () => { }); const result = await apideck.accounting.payments.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { updatedSince: new Date("2020-09-30T07:43:32.000Z"), }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -398,6 +401,8 @@ test("Payments Accounting Payments One", async () => { const result = await apideck.accounting.payments.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -540,6 +545,8 @@ test("Payments Accounting Payments Delete", async () => { const result = await apideck.accounting.payments.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/payrolls.test.ts b/src/__tests__/payrolls.test.ts index 70cf7a3d..05f80bf0 100644 --- a/src/__tests__/payrolls.test.ts +++ b/src/__tests__/payrolls.test.ts @@ -16,6 +16,8 @@ test("Payrolls Hris Payrolls All", async () => { }); const result = await apideck.hris.payrolls.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { startDate: "2022-04-08", @@ -326,6 +328,8 @@ test("Payrolls Hris Payrolls One", async () => { const result = await apideck.hris.payrolls.get({ payrollId: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/pipelines.test.ts b/src/__tests__/pipelines.test.ts index a07b8ed6..7a85858b 100644 --- a/src/__tests__/pipelines.test.ts +++ b/src/__tests__/pipelines.test.ts @@ -16,6 +16,8 @@ test("Pipelines Crm Pipelines All", async () => { }); const result = await apideck.crm.pipelines.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -257,6 +259,8 @@ test("Pipelines Crm Pipelines One", async () => { const result = await apideck.crm.pipelines.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -366,6 +370,8 @@ test("Pipelines Crm Pipelines Delete", async () => { const result = await apideck.crm.pipelines.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/products.test.ts b/src/__tests__/products.test.ts index 584d77db..31411355 100644 --- a/src/__tests__/products.test.ts +++ b/src/__tests__/products.test.ts @@ -16,6 +16,8 @@ test("Products Ecommerce Products All", async () => { }); const result = await apideck.ecommerce.products.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -369,6 +371,8 @@ test("Products Ecommerce Products One", async () => { const result = await apideck.ecommerce.products.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/profitandloss.test.ts b/src/__tests__/profitandloss.test.ts index 4c4d171b..5e47f04e 100644 --- a/src/__tests__/profitandloss.test.ts +++ b/src/__tests__/profitandloss.test.ts @@ -16,6 +16,8 @@ test("Profitandloss Accounting Profit And Loss One", async () => { }); const result = await apideck.accounting.profitAndLoss.get({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { customerId: "123abc", diff --git a/src/__tests__/purchaseorders.test.ts b/src/__tests__/purchaseorders.test.ts index 5f549dad..0d074362 100644 --- a/src/__tests__/purchaseorders.test.ts +++ b/src/__tests__/purchaseorders.test.ts @@ -17,6 +17,8 @@ test("Purchaseorders Accounting Purchase Orders All", async () => { }); const result = await apideck.accounting.purchaseOrders.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -27,6 +29,7 @@ test("Purchaseorders Accounting Purchase Orders All", async () => { }, sort: { by: "updated_at", + direction: "desc", }, }); expect(result.httpMeta.response.status).toBe(200); @@ -1027,6 +1030,8 @@ test("Purchaseorders Accounting Purchase Orders One", async () => { const result = await apideck.accounting.purchaseOrders.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -1447,6 +1452,8 @@ test("Purchaseorders Accounting Purchase Orders Delete", async () => { const result = await apideck.accounting.purchaseOrders.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/sessions.test.ts b/src/__tests__/sessions.test.ts index bf10804a..63b9c4a3 100644 --- a/src/__tests__/sessions.test.ts +++ b/src/__tests__/sessions.test.ts @@ -16,6 +16,8 @@ test("Sessions Vault Sessions Create", async () => { }); const result = await apideck.vault.sessions.create({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", session: { consumerMetadata: { accountName: "SpaceX", diff --git a/src/__tests__/sharedlinks.test.ts b/src/__tests__/sharedlinks.test.ts index 177d733f..6e47f527 100644 --- a/src/__tests__/sharedlinks.test.ts +++ b/src/__tests__/sharedlinks.test.ts @@ -16,6 +16,8 @@ test("Sharedlinks File Storage Shared Links All", async () => { }); const result = await apideck.fileStorage.sharedLinks.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -204,6 +206,8 @@ test("Sharedlinks File Storage Shared Links One", async () => { const result = await apideck.fileStorage.sharedLinks.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -314,6 +318,8 @@ test("Sharedlinks File Storage Shared Links Delete", async () => { const result = await apideck.fileStorage.sharedLinks.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/stores.test.ts b/src/__tests__/stores.test.ts index a5ced729..22e3d9d5 100644 --- a/src/__tests__/stores.test.ts +++ b/src/__tests__/stores.test.ts @@ -16,6 +16,8 @@ test("Stores Ecommerce Stores One", async () => { }); const result = await apideck.ecommerce.stores.get({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); diff --git a/src/__tests__/subsidiaries.test.ts b/src/__tests__/subsidiaries.test.ts index 8e0bfea8..00bdfc4e 100644 --- a/src/__tests__/subsidiaries.test.ts +++ b/src/__tests__/subsidiaries.test.ts @@ -16,6 +16,8 @@ test("Subsidiaries Accounting Subsidiaries All", async () => { }); const result = await apideck.accounting.subsidiaries.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -192,6 +194,8 @@ test("Subsidiaries Accounting Subsidiaries One", async () => { const result = await apideck.accounting.subsidiaries.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -299,6 +303,8 @@ test("Subsidiaries Accounting Subsidiaries Delete", async () => { const result = await apideck.accounting.subsidiaries.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/suppliers.test.ts b/src/__tests__/suppliers.test.ts index ea1b0ab6..916345d7 100644 --- a/src/__tests__/suppliers.test.ts +++ b/src/__tests__/suppliers.test.ts @@ -16,6 +16,8 @@ test("Suppliers Accounting Suppliers All", async () => { }); const result = await apideck.accounting.suppliers.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { companyName: "SpaceX", @@ -27,6 +29,7 @@ test("Suppliers Accounting Suppliers All", async () => { }, sort: { by: "updated_at", + direction: "desc", }, passThrough: { "search": "San Francisco", @@ -777,6 +780,8 @@ test("Suppliers Accounting Suppliers One", async () => { const result = await apideck.accounting.suppliers.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -1054,6 +1059,8 @@ test("Suppliers Accounting Suppliers Delete", async () => { const result = await apideck.accounting.suppliers.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/taxrates.test.ts b/src/__tests__/taxrates.test.ts index 75588681..081d472d 100644 --- a/src/__tests__/taxrates.test.ts +++ b/src/__tests__/taxrates.test.ts @@ -16,6 +16,8 @@ test("Taxrates Accounting Tax Rates All", async () => { }); const result = await apideck.accounting.taxRates.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { assets: true, @@ -321,6 +323,8 @@ test("Taxrates Accounting Tax Rates One", async () => { const result = await apideck.accounting.taxRates.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -455,6 +459,8 @@ test("Taxrates Accounting Tax Rates Delete", async () => { const result = await apideck.accounting.taxRates.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/timeoffrequests.test.ts b/src/__tests__/timeoffrequests.test.ts index 3281e290..0da7dc34 100644 --- a/src/__tests__/timeoffrequests.test.ts +++ b/src/__tests__/timeoffrequests.test.ts @@ -16,6 +16,8 @@ test("Timeoffrequests Hris Time Off Requests All", async () => { }); const result = await apideck.hris.timeOffRequests.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", filter: { startDate: "2022-04-08", @@ -242,6 +244,8 @@ test("Timeoffrequests Hris Time Off Requests One", async () => { const result = await apideck.hris.timeOffRequests.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", employeeId: "", @@ -363,6 +367,8 @@ test("Timeoffrequests Hris Time Off Requests Delete", async () => { const result = await apideck.hris.timeOffRequests.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", employeeId: "", }); diff --git a/src/__tests__/trackingcategories.test.ts b/src/__tests__/trackingcategories.test.ts index ab00269d..e5b8279c 100644 --- a/src/__tests__/trackingcategories.test.ts +++ b/src/__tests__/trackingcategories.test.ts @@ -18,6 +18,8 @@ test("Trackingcategories Accounting Tracking Categories All", async () => { }); const result = await apideck.accounting.trackingCategories.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -202,6 +204,8 @@ test("Trackingcategories Accounting Tracking Categories One", async () => { const result = await apideck.accounting.trackingCategories.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -312,6 +316,8 @@ test("Trackingcategories Accounting Tracking Categories Delete", async () => { const result = await apideck.accounting.trackingCategories.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/uploadsessions.test.ts b/src/__tests__/uploadsessions.test.ts index 9b618061..03c8170f 100644 --- a/src/__tests__/uploadsessions.test.ts +++ b/src/__tests__/uploadsessions.test.ts @@ -22,6 +22,8 @@ test("Uploadsessions File Storage Upload Sessions One", async () => { const result = await apideck.fileStorage.uploadSessions.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }, { @@ -59,6 +61,8 @@ test("Uploadsessions File Storage Upload Sessions Delete", async () => { const result = await apideck.fileStorage.uploadSessions.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); @@ -87,6 +91,8 @@ test("Uploadsessions File Storage Upload Sessions Finish", async () => { const result = await apideck.fileStorage.uploadSessions.finish({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", digest: "sha=fpRyg5eVQletdZqEKaFlqwBXJzM=", }, { diff --git a/src/__tests__/users.test.ts b/src/__tests__/users.test.ts index b9093243..0c6de09b 100644 --- a/src/__tests__/users.test.ts +++ b/src/__tests__/users.test.ts @@ -16,6 +16,8 @@ test("Users Crm Users All", async () => { }); const result = await apideck.crm.users.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", passThrough: { "search": "San Francisco", @@ -440,6 +442,8 @@ test("Users Crm Users One", async () => { const result = await apideck.crm.users.get({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", fields: "id,updated_at", }); @@ -650,6 +654,8 @@ test("Users Crm Users Delete", async () => { const result = await apideck.crm.users.delete({ id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "salesforce", }); expect(result.httpMeta.response.status).toBe(200); diff --git a/src/__tests__/validateconnection.test.ts b/src/__tests__/validateconnection.test.ts index f2e165c7..19864d1f 100644 --- a/src/__tests__/validateconnection.test.ts +++ b/src/__tests__/validateconnection.test.ts @@ -16,6 +16,8 @@ test("Validateconnection Vault Validate Connection State", async () => { }); const result = await apideck.vault.validateConnection.state({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", serviceId: "pipedrive", unifiedApi: "crm", }); diff --git a/src/__tests__/webhooks.test.ts b/src/__tests__/webhooks.test.ts index 30fd8fd8..17fc3020 100644 --- a/src/__tests__/webhooks.test.ts +++ b/src/__tests__/webhooks.test.ts @@ -15,7 +15,9 @@ test("Webhooks Webhook Webhooks All", async () => { apiKey: process.env["APIDECK_API_KEY"] ?? "value", }); - const result = await apideck.webhook.webhooks.list({}); + const result = await apideck.webhook.webhooks.list({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + }); expect(result.httpMeta.response.status).toBe(200); expect(result.getWebhooksResponse).toBeDefined(); expect(result.getWebhooksResponse).toEqual({ @@ -99,6 +101,7 @@ test("Webhooks Webhook Webhooks Add", async () => { }); const result = await apideck.webhook.webhooks.create({ + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", createWebhookRequest: { description: "A description", unifiedApi: "crm", @@ -144,6 +147,7 @@ test("Webhooks Webhook Webhooks One", async () => { const result = await apideck.webhook.webhooks.get({ id: "", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", }); expect(result.httpMeta.response.status).toBe(200); expect(result.getWebhookResponse).toBeDefined(); @@ -179,6 +183,7 @@ test("Webhooks Webhook Webhooks Update", async () => { const result = await apideck.webhook.webhooks.update({ id: "", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", updateWebhookRequest: { description: "A description", status: "enabled", @@ -223,6 +228,7 @@ test("Webhooks Webhook Webhooks Delete", async () => { const result = await apideck.webhook.webhooks.delete({ id: "", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", }); expect(result.httpMeta.response.status).toBe(200); expect(result.deleteWebhookResponse).toBeDefined(); diff --git a/src/funcs/accountingAgedCreditorsGet.ts b/src/funcs/accountingAgedCreditorsGet.ts index cc3c1a22..dc1a984d 100644 --- a/src/funcs/accountingAgedCreditorsGet.ts +++ b/src/funcs/accountingAgedCreditorsGet.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function accountingAgedCreditorsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingAgedCreditorsOneResponse$inboundSchema, { key: "GetAgedCreditorsResponse", diff --git a/src/funcs/accountingAgedDebtorsGet.ts b/src/funcs/accountingAgedDebtorsGet.ts index 9f00724e..1dff1f1e 100644 --- a/src/funcs/accountingAgedDebtorsGet.ts +++ b/src/funcs/accountingAgedDebtorsGet.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function accountingAgedDebtorsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingAgedDebtorsOneResponse$inboundSchema, { key: "GetAgedDebtorsResponse", diff --git a/src/funcs/accountingAttachmentsDelete.ts b/src/funcs/accountingAttachmentsDelete.ts index e17d4981..ac087836 100644 --- a/src/funcs/accountingAttachmentsDelete.ts +++ b/src/funcs/accountingAttachmentsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingAttachmentsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -203,13 +206,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingAttachmentsDeleteResponse$inboundSchema, { key: "DeleteAttachmentResponse", diff --git a/src/funcs/accountingAttachmentsDownload.ts b/src/funcs/accountingAttachmentsDownload.ts index 36c4e803..ad24aa76 100644 --- a/src/funcs/accountingAttachmentsDownload.ts +++ b/src/funcs/accountingAttachmentsDownload.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function accountingAttachmentsDownload( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -210,13 +213,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.stream( 200, diff --git a/src/funcs/accountingAttachmentsGet.ts b/src/funcs/accountingAttachmentsGet.ts index f4fe1d8e..586f7596 100644 --- a/src/funcs/accountingAttachmentsGet.ts +++ b/src/funcs/accountingAttachmentsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingAttachmentsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -204,13 +207,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingAttachmentsOneResponse$inboundSchema, { key: "GetAttachmentResponse", diff --git a/src/funcs/accountingAttachmentsList.ts b/src/funcs/accountingAttachmentsList.ts index ce9963b1..c4c9499a 100644 --- a/src/funcs/accountingAttachmentsList.ts +++ b/src/funcs/accountingAttachmentsList.ts @@ -11,7 +11,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +20,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -50,13 +51,14 @@ export function accountingAttachmentsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -82,13 +84,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -215,13 +218,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingAttachmentsAllResponse$inboundSchema, { key: "GetAttachmentsResponse", @@ -258,13 +262,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingAttachmentsUpload.ts b/src/funcs/accountingAttachmentsUpload.ts index cc047086..52ed60b5 100644 --- a/src/funcs/accountingAttachmentsUpload.ts +++ b/src/funcs/accountingAttachmentsUpload.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { AccountingAttachmentsUploadServerList } from "../models/operations/accountingattachmentsupload.js"; import * as operations from "../models/operations/index.js"; @@ -43,13 +44,14 @@ export function accountingAttachmentsUpload( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -72,13 +74,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingAttachmentsUploadResponse$inboundSchema, { key: "CreateAttachmentResponse", diff --git a/src/funcs/accountingBalanceSheetGet.ts b/src/funcs/accountingBalanceSheetGet.ts index a6741d3b..e4fcd7ce 100644 --- a/src/funcs/accountingBalanceSheetGet.ts +++ b/src/funcs/accountingBalanceSheetGet.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function accountingBalanceSheetGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -197,13 +200,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBalanceSheetOneResponse$inboundSchema, { key: "GetBalanceSheetResponse", diff --git a/src/funcs/accountingBankFeedAccountsCreate.ts b/src/funcs/accountingBankFeedAccountsCreate.ts index c41f9aa7..5e8ae8fe 100644 --- a/src/funcs/accountingBankFeedAccountsCreate.ts +++ b/src/funcs/accountingBankFeedAccountsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedAccountsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 201, diff --git a/src/funcs/accountingBankFeedAccountsDelete.ts b/src/funcs/accountingBankFeedAccountsDelete.ts index 2eaae4be..4e5c5c7f 100644 --- a/src/funcs/accountingBankFeedAccountsDelete.ts +++ b/src/funcs/accountingBankFeedAccountsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedAccountsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingBankFeedAccountsGet.ts b/src/funcs/accountingBankFeedAccountsGet.ts index 67cf8ad6..915ad0aa 100644 --- a/src/funcs/accountingBankFeedAccountsGet.ts +++ b/src/funcs/accountingBankFeedAccountsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedAccountsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingBankFeedAccountsList.ts b/src/funcs/accountingBankFeedAccountsList.ts index c2cdb1d5..f12841b7 100644 --- a/src/funcs/accountingBankFeedAccountsList.ts +++ b/src/funcs/accountingBankFeedAccountsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingBankFeedAccountsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -259,13 +263,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingBankFeedAccountsUpdate.ts b/src/funcs/accountingBankFeedAccountsUpdate.ts index 7e912ca5..23b8f6c1 100644 --- a/src/funcs/accountingBankFeedAccountsUpdate.ts +++ b/src/funcs/accountingBankFeedAccountsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedAccountsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingBankFeedStatementsCreate.ts b/src/funcs/accountingBankFeedStatementsCreate.ts index ae0c807c..660395ec 100644 --- a/src/funcs/accountingBankFeedStatementsCreate.ts +++ b/src/funcs/accountingBankFeedStatementsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedStatementsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 201, diff --git a/src/funcs/accountingBankFeedStatementsDelete.ts b/src/funcs/accountingBankFeedStatementsDelete.ts index 02890aa5..6684233c 100644 --- a/src/funcs/accountingBankFeedStatementsDelete.ts +++ b/src/funcs/accountingBankFeedStatementsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedStatementsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingBankFeedStatementsGet.ts b/src/funcs/accountingBankFeedStatementsGet.ts index 15ce3cfc..96eedc04 100644 --- a/src/funcs/accountingBankFeedStatementsGet.ts +++ b/src/funcs/accountingBankFeedStatementsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedStatementsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingBankFeedStatementsList.ts b/src/funcs/accountingBankFeedStatementsList.ts index 2138fd03..9a9d7b93 100644 --- a/src/funcs/accountingBankFeedStatementsList.ts +++ b/src/funcs/accountingBankFeedStatementsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingBankFeedStatementsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -259,13 +263,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingBankFeedStatementsUpdate.ts b/src/funcs/accountingBankFeedStatementsUpdate.ts index beea31a7..817f2051 100644 --- a/src/funcs/accountingBankFeedStatementsUpdate.ts +++ b/src/funcs/accountingBankFeedStatementsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBankFeedStatementsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingBillPaymentsCreate.ts b/src/funcs/accountingBillPaymentsCreate.ts index 2118ae42..fbad8181 100644 --- a/src/funcs/accountingBillPaymentsCreate.ts +++ b/src/funcs/accountingBillPaymentsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillPaymentsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingBillPaymentsAddResponse$inboundSchema, { key: "CreateBillPaymentResponse", diff --git a/src/funcs/accountingBillPaymentsDelete.ts b/src/funcs/accountingBillPaymentsDelete.ts index 1cd2c57e..74690706 100644 --- a/src/funcs/accountingBillPaymentsDelete.ts +++ b/src/funcs/accountingBillPaymentsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillPaymentsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillPaymentsDeleteResponse$inboundSchema, { key: "DeleteBillPaymentResponse", diff --git a/src/funcs/accountingBillPaymentsGet.ts b/src/funcs/accountingBillPaymentsGet.ts index bddeb972..05f2ea02 100644 --- a/src/funcs/accountingBillPaymentsGet.ts +++ b/src/funcs/accountingBillPaymentsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillPaymentsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillPaymentsOneResponse$inboundSchema, { key: "GetBillPaymentResponse", diff --git a/src/funcs/accountingBillPaymentsList.ts b/src/funcs/accountingBillPaymentsList.ts index 3d9fce45..d5fe2b8a 100644 --- a/src/funcs/accountingBillPaymentsList.ts +++ b/src/funcs/accountingBillPaymentsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingBillPaymentsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillPaymentsAllResponse$inboundSchema, { key: "GetBillPaymentsResponse", @@ -257,13 +261,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingBillPaymentsUpdate.ts b/src/funcs/accountingBillPaymentsUpdate.ts index 317cde58..10e6e4f2 100644 --- a/src/funcs/accountingBillPaymentsUpdate.ts +++ b/src/funcs/accountingBillPaymentsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillPaymentsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillPaymentsUpdateResponse$inboundSchema, { key: "UpdateBillPaymentResponse", diff --git a/src/funcs/accountingBillsCreate.ts b/src/funcs/accountingBillsCreate.ts index 20259cab..4690e13f 100644 --- a/src/funcs/accountingBillsCreate.ts +++ b/src/funcs/accountingBillsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingBillsAddResponse$inboundSchema, { key: "CreateBillResponse", diff --git a/src/funcs/accountingBillsDelete.ts b/src/funcs/accountingBillsDelete.ts index fec2e07e..79cead58 100644 --- a/src/funcs/accountingBillsDelete.ts +++ b/src/funcs/accountingBillsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillsDeleteResponse$inboundSchema, { key: "DeleteBillResponse", diff --git a/src/funcs/accountingBillsGet.ts b/src/funcs/accountingBillsGet.ts index e2642570..ca863eff 100644 --- a/src/funcs/accountingBillsGet.ts +++ b/src/funcs/accountingBillsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillsOneResponse$inboundSchema, { key: "GetBillResponse", diff --git a/src/funcs/accountingBillsList.ts b/src/funcs/accountingBillsList.ts index 38d176d6..0c1e6038 100644 --- a/src/funcs/accountingBillsList.ts +++ b/src/funcs/accountingBillsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingBillsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillsAllResponse$inboundSchema, { key: "GetBillsResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingBillsUpdate.ts b/src/funcs/accountingBillsUpdate.ts index 333bf14e..dd9daae1 100644 --- a/src/funcs/accountingBillsUpdate.ts +++ b/src/funcs/accountingBillsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingBillsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingBillsUpdateResponse$inboundSchema, { key: "UpdateBillResponse", diff --git a/src/funcs/accountingCompanyInfoGet.ts b/src/funcs/accountingCompanyInfoGet.ts index 649316de..4e67adb6 100644 --- a/src/funcs/accountingCompanyInfoGet.ts +++ b/src/funcs/accountingCompanyInfoGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCompanyInfoGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCompanyInfoOneResponse$inboundSchema, { key: "GetCompanyInfoResponse", diff --git a/src/funcs/accountingCreditNotesCreate.ts b/src/funcs/accountingCreditNotesCreate.ts index fed6955f..16ad5d26 100644 --- a/src/funcs/accountingCreditNotesCreate.ts +++ b/src/funcs/accountingCreditNotesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCreditNotesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingCreditNotesAddResponse$inboundSchema, { key: "CreateCreditNoteResponse", diff --git a/src/funcs/accountingCreditNotesDelete.ts b/src/funcs/accountingCreditNotesDelete.ts index b4c93e16..d201a451 100644 --- a/src/funcs/accountingCreditNotesDelete.ts +++ b/src/funcs/accountingCreditNotesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCreditNotesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCreditNotesDeleteResponse$inboundSchema, { key: "DeleteCreditNoteResponse", diff --git a/src/funcs/accountingCreditNotesGet.ts b/src/funcs/accountingCreditNotesGet.ts index 90069683..28123f6d 100644 --- a/src/funcs/accountingCreditNotesGet.ts +++ b/src/funcs/accountingCreditNotesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCreditNotesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCreditNotesOneResponse$inboundSchema, { key: "GetCreditNoteResponse", diff --git a/src/funcs/accountingCreditNotesList.ts b/src/funcs/accountingCreditNotesList.ts index 06befd2b..c1d37ba5 100644 --- a/src/funcs/accountingCreditNotesList.ts +++ b/src/funcs/accountingCreditNotesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingCreditNotesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCreditNotesAllResponse$inboundSchema, { key: "GetCreditNotesResponse", @@ -257,13 +261,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingCreditNotesUpdate.ts b/src/funcs/accountingCreditNotesUpdate.ts index efae44c6..2e8de5ec 100644 --- a/src/funcs/accountingCreditNotesUpdate.ts +++ b/src/funcs/accountingCreditNotesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCreditNotesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCreditNotesUpdateResponse$inboundSchema, { key: "UpdateCreditNoteResponse", diff --git a/src/funcs/accountingCustomersCreate.ts b/src/funcs/accountingCustomersCreate.ts index ee2c367f..98044f4f 100644 --- a/src/funcs/accountingCustomersCreate.ts +++ b/src/funcs/accountingCustomersCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCustomersCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingCustomersAddResponse$inboundSchema, { key: "CreateCustomerResponse", diff --git a/src/funcs/accountingCustomersDelete.ts b/src/funcs/accountingCustomersDelete.ts index 8b11be63..a3f38b94 100644 --- a/src/funcs/accountingCustomersDelete.ts +++ b/src/funcs/accountingCustomersDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCustomersDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCustomersDeleteResponse$inboundSchema, { key: "DeleteCustomerResponse", diff --git a/src/funcs/accountingCustomersGet.ts b/src/funcs/accountingCustomersGet.ts index 9b7e9b36..2e1cfd3a 100644 --- a/src/funcs/accountingCustomersGet.ts +++ b/src/funcs/accountingCustomersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCustomersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCustomersOneResponse$inboundSchema, { key: "GetCustomerResponse", diff --git a/src/funcs/accountingCustomersList.ts b/src/funcs/accountingCustomersList.ts index 67f4bdbf..ee85e633 100644 --- a/src/funcs/accountingCustomersList.ts +++ b/src/funcs/accountingCustomersList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingCustomersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCustomersAllResponse$inboundSchema, { key: "GetCustomersResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingCustomersUpdate.ts b/src/funcs/accountingCustomersUpdate.ts index 7e768471..dc6c76b5 100644 --- a/src/funcs/accountingCustomersUpdate.ts +++ b/src/funcs/accountingCustomersUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingCustomersUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingCustomersUpdateResponse$inboundSchema, { key: "UpdateCustomerResponse", diff --git a/src/funcs/accountingDepartmentsCreate.ts b/src/funcs/accountingDepartmentsCreate.ts index 7e5172c6..63d3cbe2 100644 --- a/src/funcs/accountingDepartmentsCreate.ts +++ b/src/funcs/accountingDepartmentsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingDepartmentsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingDepartmentsAddResponse$inboundSchema, { key: "CreateAccountingDepartmentResponse", diff --git a/src/funcs/accountingDepartmentsDelete.ts b/src/funcs/accountingDepartmentsDelete.ts index d4bff2aa..d4c24320 100644 --- a/src/funcs/accountingDepartmentsDelete.ts +++ b/src/funcs/accountingDepartmentsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingDepartmentsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingDepartmentsDeleteResponse$inboundSchema, { key: "DeleteAccountingDepartmentResponse", diff --git a/src/funcs/accountingDepartmentsGet.ts b/src/funcs/accountingDepartmentsGet.ts index 206c98f1..380cfe04 100644 --- a/src/funcs/accountingDepartmentsGet.ts +++ b/src/funcs/accountingDepartmentsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingDepartmentsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingDepartmentsOneResponse$inboundSchema, { key: "GetAccountingDepartmentResponse", diff --git a/src/funcs/accountingDepartmentsList.ts b/src/funcs/accountingDepartmentsList.ts index 32b5311d..20f72960 100644 --- a/src/funcs/accountingDepartmentsList.ts +++ b/src/funcs/accountingDepartmentsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingDepartmentsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -212,13 +215,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingDepartmentsAllResponse$inboundSchema, { key: "GetAccountingDepartmentsResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingDepartmentsUpdate.ts b/src/funcs/accountingDepartmentsUpdate.ts index 535706ba..05d015ee 100644 --- a/src/funcs/accountingDepartmentsUpdate.ts +++ b/src/funcs/accountingDepartmentsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingDepartmentsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingDepartmentsUpdateResponse$inboundSchema, { key: "UpdateAccountingDepartmentResponse", diff --git a/src/funcs/accountingExpensesCreate.ts b/src/funcs/accountingExpensesCreate.ts index 4f0a7923..7ba61550 100644 --- a/src/funcs/accountingExpensesCreate.ts +++ b/src/funcs/accountingExpensesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingExpensesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingExpensesAddResponse$inboundSchema, { key: "CreateExpenseResponse", diff --git a/src/funcs/accountingExpensesDelete.ts b/src/funcs/accountingExpensesDelete.ts index 2ec5ced4..a594ebfa 100644 --- a/src/funcs/accountingExpensesDelete.ts +++ b/src/funcs/accountingExpensesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingExpensesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingExpensesDeleteResponse$inboundSchema, { key: "DeleteExpenseResponse", diff --git a/src/funcs/accountingExpensesGet.ts b/src/funcs/accountingExpensesGet.ts index 52038de0..70aef412 100644 --- a/src/funcs/accountingExpensesGet.ts +++ b/src/funcs/accountingExpensesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingExpensesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingExpensesOneResponse$inboundSchema, { key: "GetExpenseResponse", diff --git a/src/funcs/accountingExpensesList.ts b/src/funcs/accountingExpensesList.ts index 14398f05..80f19a2a 100644 --- a/src/funcs/accountingExpensesList.ts +++ b/src/funcs/accountingExpensesList.ts @@ -11,7 +11,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +20,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -50,13 +51,14 @@ export function accountingExpensesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -82,13 +84,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -201,13 +204,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingExpensesAllResponse$inboundSchema, { key: "GetExpensesResponse", @@ -242,13 +246,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingExpensesUpdate.ts b/src/funcs/accountingExpensesUpdate.ts index 7abcecad..654073b5 100644 --- a/src/funcs/accountingExpensesUpdate.ts +++ b/src/funcs/accountingExpensesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingExpensesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingExpensesUpdateResponse$inboundSchema, { key: "UpdateExpenseResponse", diff --git a/src/funcs/accountingInvoiceItemsCreate.ts b/src/funcs/accountingInvoiceItemsCreate.ts index 2c07068c..5ccec6d8 100644 --- a/src/funcs/accountingInvoiceItemsCreate.ts +++ b/src/funcs/accountingInvoiceItemsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingInvoiceItemsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingInvoiceItemsAddResponse$inboundSchema, { key: "CreateInvoiceItemResponse", diff --git a/src/funcs/accountingInvoiceItemsDelete.ts b/src/funcs/accountingInvoiceItemsDelete.ts index a41ef12e..72bf6579 100644 --- a/src/funcs/accountingInvoiceItemsDelete.ts +++ b/src/funcs/accountingInvoiceItemsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingInvoiceItemsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoiceItemsDeleteResponse$inboundSchema, { key: "DeleteTaxRateResponse", diff --git a/src/funcs/accountingInvoiceItemsGet.ts b/src/funcs/accountingInvoiceItemsGet.ts index fe13a2e0..dfcd4c09 100644 --- a/src/funcs/accountingInvoiceItemsGet.ts +++ b/src/funcs/accountingInvoiceItemsGet.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function accountingInvoiceItemsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -204,13 +207,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoiceItemsOneResponse$inboundSchema, { key: "GetInvoiceItemResponse", diff --git a/src/funcs/accountingInvoiceItemsList.ts b/src/funcs/accountingInvoiceItemsList.ts index 2cca6ec4..7a787cc2 100644 --- a/src/funcs/accountingInvoiceItemsList.ts +++ b/src/funcs/accountingInvoiceItemsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingInvoiceItemsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoiceItemsAllResponse$inboundSchema, { key: "GetInvoiceItemsResponse", @@ -257,13 +261,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingInvoiceItemsUpdate.ts b/src/funcs/accountingInvoiceItemsUpdate.ts index 528dde0e..9606e36e 100644 --- a/src/funcs/accountingInvoiceItemsUpdate.ts +++ b/src/funcs/accountingInvoiceItemsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingInvoiceItemsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoiceItemsUpdateResponse$inboundSchema, { key: "UpdateInvoiceItemsResponse", diff --git a/src/funcs/accountingInvoicesCreate.ts b/src/funcs/accountingInvoicesCreate.ts index 8214ae78..198ff985 100644 --- a/src/funcs/accountingInvoicesCreate.ts +++ b/src/funcs/accountingInvoicesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingInvoicesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingInvoicesAddResponse$inboundSchema, { key: "CreateInvoiceResponse", diff --git a/src/funcs/accountingInvoicesDelete.ts b/src/funcs/accountingInvoicesDelete.ts index 07b307ad..ac5ead79 100644 --- a/src/funcs/accountingInvoicesDelete.ts +++ b/src/funcs/accountingInvoicesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingInvoicesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoicesDeleteResponse$inboundSchema, { key: "DeleteInvoiceResponse", diff --git a/src/funcs/accountingInvoicesGet.ts b/src/funcs/accountingInvoicesGet.ts index 9bb3e3cc..0f9f15be 100644 --- a/src/funcs/accountingInvoicesGet.ts +++ b/src/funcs/accountingInvoicesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingInvoicesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoicesOneResponse$inboundSchema, { key: "GetInvoiceResponse", diff --git a/src/funcs/accountingInvoicesList.ts b/src/funcs/accountingInvoicesList.ts index 8eea7293..3c6fdc7b 100644 --- a/src/funcs/accountingInvoicesList.ts +++ b/src/funcs/accountingInvoicesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingInvoicesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoicesAllResponse$inboundSchema, { key: "GetInvoicesResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingInvoicesUpdate.ts b/src/funcs/accountingInvoicesUpdate.ts index 2bce38e5..fc44554c 100644 --- a/src/funcs/accountingInvoicesUpdate.ts +++ b/src/funcs/accountingInvoicesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingInvoicesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingInvoicesUpdateResponse$inboundSchema, { key: "UpdateInvoiceResponse", diff --git a/src/funcs/accountingJournalEntriesCreate.ts b/src/funcs/accountingJournalEntriesCreate.ts index 834af482..8c86a654 100644 --- a/src/funcs/accountingJournalEntriesCreate.ts +++ b/src/funcs/accountingJournalEntriesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingJournalEntriesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingJournalEntriesAddResponse$inboundSchema, { key: "CreateJournalEntryResponse", diff --git a/src/funcs/accountingJournalEntriesDelete.ts b/src/funcs/accountingJournalEntriesDelete.ts index 1ab18f86..195474db 100644 --- a/src/funcs/accountingJournalEntriesDelete.ts +++ b/src/funcs/accountingJournalEntriesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingJournalEntriesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingJournalEntriesGet.ts b/src/funcs/accountingJournalEntriesGet.ts index 9a015036..678ce789 100644 --- a/src/funcs/accountingJournalEntriesGet.ts +++ b/src/funcs/accountingJournalEntriesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingJournalEntriesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingJournalEntriesOneResponse$inboundSchema, { key: "GetJournalEntryResponse", diff --git a/src/funcs/accountingJournalEntriesList.ts b/src/funcs/accountingJournalEntriesList.ts index 2bbe3b90..0bec014b 100644 --- a/src/funcs/accountingJournalEntriesList.ts +++ b/src/funcs/accountingJournalEntriesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingJournalEntriesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingJournalEntriesAllResponse$inboundSchema, { key: "GetJournalEntriesResponse", @@ -257,13 +261,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingJournalEntriesUpdate.ts b/src/funcs/accountingJournalEntriesUpdate.ts index 51891e1d..efe459fc 100644 --- a/src/funcs/accountingJournalEntriesUpdate.ts +++ b/src/funcs/accountingJournalEntriesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingJournalEntriesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingLedgerAccountsCreate.ts b/src/funcs/accountingLedgerAccountsCreate.ts index d5e21747..f2d6716f 100644 --- a/src/funcs/accountingLedgerAccountsCreate.ts +++ b/src/funcs/accountingLedgerAccountsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLedgerAccountsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingLedgerAccountsAddResponse$inboundSchema, { key: "CreateLedgerAccountResponse", diff --git a/src/funcs/accountingLedgerAccountsDelete.ts b/src/funcs/accountingLedgerAccountsDelete.ts index ec46c992..ac47c102 100644 --- a/src/funcs/accountingLedgerAccountsDelete.ts +++ b/src/funcs/accountingLedgerAccountsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLedgerAccountsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingLedgerAccountsGet.ts b/src/funcs/accountingLedgerAccountsGet.ts index 641dcd42..6e002841 100644 --- a/src/funcs/accountingLedgerAccountsGet.ts +++ b/src/funcs/accountingLedgerAccountsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLedgerAccountsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingLedgerAccountsOneResponse$inboundSchema, { key: "GetLedgerAccountResponse", diff --git a/src/funcs/accountingLedgerAccountsList.ts b/src/funcs/accountingLedgerAccountsList.ts index a9167859..06a6cd4d 100644 --- a/src/funcs/accountingLedgerAccountsList.ts +++ b/src/funcs/accountingLedgerAccountsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingLedgerAccountsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingLedgerAccountsAllResponse$inboundSchema, { key: "GetLedgerAccountsResponse", @@ -257,13 +261,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingLedgerAccountsUpdate.ts b/src/funcs/accountingLedgerAccountsUpdate.ts index 08ec7f65..1b065aac 100644 --- a/src/funcs/accountingLedgerAccountsUpdate.ts +++ b/src/funcs/accountingLedgerAccountsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLedgerAccountsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingLocationsCreate.ts b/src/funcs/accountingLocationsCreate.ts index 93298b2b..4a9a4229 100644 --- a/src/funcs/accountingLocationsCreate.ts +++ b/src/funcs/accountingLocationsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLocationsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingLocationsAddResponse$inboundSchema, { key: "CreateAccountingLocationResponse", diff --git a/src/funcs/accountingLocationsDelete.ts b/src/funcs/accountingLocationsDelete.ts index 3ee4fdf5..8da0ccd9 100644 --- a/src/funcs/accountingLocationsDelete.ts +++ b/src/funcs/accountingLocationsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLocationsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingLocationsDeleteResponse$inboundSchema, { key: "DeleteAccountingLocationResponse", diff --git a/src/funcs/accountingLocationsGet.ts b/src/funcs/accountingLocationsGet.ts index 99fb13cb..82210e42 100644 --- a/src/funcs/accountingLocationsGet.ts +++ b/src/funcs/accountingLocationsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLocationsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingLocationsOneResponse$inboundSchema, { key: "GetAccountingLocationResponse", diff --git a/src/funcs/accountingLocationsList.ts b/src/funcs/accountingLocationsList.ts index 80f50d2e..c92447e2 100644 --- a/src/funcs/accountingLocationsList.ts +++ b/src/funcs/accountingLocationsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingLocationsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -212,13 +215,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingLocationsAllResponse$inboundSchema, { key: "GetAccountingLocationsResponse", @@ -253,13 +257,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingLocationsUpdate.ts b/src/funcs/accountingLocationsUpdate.ts index 661d423a..7b471ab1 100644 --- a/src/funcs/accountingLocationsUpdate.ts +++ b/src/funcs/accountingLocationsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingLocationsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingLocationsUpdateResponse$inboundSchema, { key: "UpdateAccountingLocationResponse", diff --git a/src/funcs/accountingPaymentsCreate.ts b/src/funcs/accountingPaymentsCreate.ts index 29adae16..6742b9b5 100644 --- a/src/funcs/accountingPaymentsCreate.ts +++ b/src/funcs/accountingPaymentsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPaymentsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingPaymentsAddResponse$inboundSchema, { key: "CreatePaymentResponse", diff --git a/src/funcs/accountingPaymentsDelete.ts b/src/funcs/accountingPaymentsDelete.ts index 6e0935fd..90cd0145 100644 --- a/src/funcs/accountingPaymentsDelete.ts +++ b/src/funcs/accountingPaymentsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPaymentsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingPaymentsDeleteResponse$inboundSchema, { key: "DeletePaymentResponse", diff --git a/src/funcs/accountingPaymentsGet.ts b/src/funcs/accountingPaymentsGet.ts index a29c2d45..6d5dce9f 100644 --- a/src/funcs/accountingPaymentsGet.ts +++ b/src/funcs/accountingPaymentsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPaymentsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingPaymentsOneResponse$inboundSchema, { key: "GetPaymentResponse", diff --git a/src/funcs/accountingPaymentsList.ts b/src/funcs/accountingPaymentsList.ts index 6f41f6d0..996fd414 100644 --- a/src/funcs/accountingPaymentsList.ts +++ b/src/funcs/accountingPaymentsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingPaymentsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingPaymentsAllResponse$inboundSchema, { key: "GetPaymentsResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingPaymentsUpdate.ts b/src/funcs/accountingPaymentsUpdate.ts index 429d4dcc..f5c4b3d5 100644 --- a/src/funcs/accountingPaymentsUpdate.ts +++ b/src/funcs/accountingPaymentsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPaymentsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingPaymentsUpdateResponse$inboundSchema, { key: "UpdatePaymentResponse", diff --git a/src/funcs/accountingProfitAndLossGet.ts b/src/funcs/accountingProfitAndLossGet.ts index 44dbcacf..889bc984 100644 --- a/src/funcs/accountingProfitAndLossGet.ts +++ b/src/funcs/accountingProfitAndLossGet.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function accountingProfitAndLossGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingProfitAndLossOneResponse$inboundSchema, { key: "GetProfitAndLossResponse", diff --git a/src/funcs/accountingPurchaseOrdersCreate.ts b/src/funcs/accountingPurchaseOrdersCreate.ts index 06e2141d..17f43d37 100644 --- a/src/funcs/accountingPurchaseOrdersCreate.ts +++ b/src/funcs/accountingPurchaseOrdersCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPurchaseOrdersCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingPurchaseOrdersAddResponse$inboundSchema, { key: "CreatePurchaseOrderResponse", diff --git a/src/funcs/accountingPurchaseOrdersDelete.ts b/src/funcs/accountingPurchaseOrdersDelete.ts index 26e82e3d..81be0676 100644 --- a/src/funcs/accountingPurchaseOrdersDelete.ts +++ b/src/funcs/accountingPurchaseOrdersDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPurchaseOrdersDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingPurchaseOrdersGet.ts b/src/funcs/accountingPurchaseOrdersGet.ts index 8d850716..4010ba3f 100644 --- a/src/funcs/accountingPurchaseOrdersGet.ts +++ b/src/funcs/accountingPurchaseOrdersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPurchaseOrdersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingPurchaseOrdersOneResponse$inboundSchema, { key: "GetPurchaseOrderResponse", diff --git a/src/funcs/accountingPurchaseOrdersList.ts b/src/funcs/accountingPurchaseOrdersList.ts index 26b8bdeb..7ee62e02 100644 --- a/src/funcs/accountingPurchaseOrdersList.ts +++ b/src/funcs/accountingPurchaseOrdersList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingPurchaseOrdersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingPurchaseOrdersAllResponse$inboundSchema, { key: "GetPurchaseOrdersResponse", @@ -256,13 +260,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingPurchaseOrdersUpdate.ts b/src/funcs/accountingPurchaseOrdersUpdate.ts index 5edf3bd8..ffb13417 100644 --- a/src/funcs/accountingPurchaseOrdersUpdate.ts +++ b/src/funcs/accountingPurchaseOrdersUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingPurchaseOrdersUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingSubsidiariesCreate.ts b/src/funcs/accountingSubsidiariesCreate.ts index 15569e5e..0f752d9e 100644 --- a/src/funcs/accountingSubsidiariesCreate.ts +++ b/src/funcs/accountingSubsidiariesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSubsidiariesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingSubsidiariesAddResponse$inboundSchema, { key: "CreateSubsidiaryResponse", diff --git a/src/funcs/accountingSubsidiariesDelete.ts b/src/funcs/accountingSubsidiariesDelete.ts index 743a59db..b2c07738 100644 --- a/src/funcs/accountingSubsidiariesDelete.ts +++ b/src/funcs/accountingSubsidiariesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSubsidiariesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSubsidiariesDeleteResponse$inboundSchema, { key: "DeleteSubsidiaryResponse", diff --git a/src/funcs/accountingSubsidiariesGet.ts b/src/funcs/accountingSubsidiariesGet.ts index 8997c11e..2b8e7599 100644 --- a/src/funcs/accountingSubsidiariesGet.ts +++ b/src/funcs/accountingSubsidiariesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSubsidiariesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSubsidiariesOneResponse$inboundSchema, { key: "GetSubsidiaryResponse", diff --git a/src/funcs/accountingSubsidiariesList.ts b/src/funcs/accountingSubsidiariesList.ts index 899a474f..7794613f 100644 --- a/src/funcs/accountingSubsidiariesList.ts +++ b/src/funcs/accountingSubsidiariesList.ts @@ -11,7 +11,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +20,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -50,13 +51,14 @@ export function accountingSubsidiariesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -82,13 +84,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -202,13 +205,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSubsidiariesAllResponse$inboundSchema, { key: "GetSubsidiariesResponse", @@ -245,13 +249,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingSubsidiariesUpdate.ts b/src/funcs/accountingSubsidiariesUpdate.ts index 4cc65b6a..26f4e539 100644 --- a/src/funcs/accountingSubsidiariesUpdate.ts +++ b/src/funcs/accountingSubsidiariesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSubsidiariesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSubsidiariesUpdateResponse$inboundSchema, { key: "UpdateSubsidiaryResponse", diff --git a/src/funcs/accountingSuppliersCreate.ts b/src/funcs/accountingSuppliersCreate.ts index d48b55a1..44a67556 100644 --- a/src/funcs/accountingSuppliersCreate.ts +++ b/src/funcs/accountingSuppliersCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSuppliersCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingSuppliersAddResponse$inboundSchema, { key: "CreateSupplierResponse", diff --git a/src/funcs/accountingSuppliersDelete.ts b/src/funcs/accountingSuppliersDelete.ts index 4339beee..e38ee614 100644 --- a/src/funcs/accountingSuppliersDelete.ts +++ b/src/funcs/accountingSuppliersDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSuppliersDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSuppliersDeleteResponse$inboundSchema, { key: "DeleteSupplierResponse", diff --git a/src/funcs/accountingSuppliersGet.ts b/src/funcs/accountingSuppliersGet.ts index ea03e065..44c79ada 100644 --- a/src/funcs/accountingSuppliersGet.ts +++ b/src/funcs/accountingSuppliersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSuppliersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSuppliersOneResponse$inboundSchema, { key: "GetSupplierResponse", diff --git a/src/funcs/accountingSuppliersList.ts b/src/funcs/accountingSuppliersList.ts index ea322d95..19f9601a 100644 --- a/src/funcs/accountingSuppliersList.ts +++ b/src/funcs/accountingSuppliersList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingSuppliersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSuppliersAllResponse$inboundSchema, { key: "GetSuppliersResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingSuppliersUpdate.ts b/src/funcs/accountingSuppliersUpdate.ts index 5b7f2535..1caaff4e 100644 --- a/src/funcs/accountingSuppliersUpdate.ts +++ b/src/funcs/accountingSuppliersUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingSuppliersUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingSuppliersUpdateResponse$inboundSchema, { key: "UpdateSupplierResponse", diff --git a/src/funcs/accountingTaxRatesCreate.ts b/src/funcs/accountingTaxRatesCreate.ts index d9664c6c..0e50cd0c 100644 --- a/src/funcs/accountingTaxRatesCreate.ts +++ b/src/funcs/accountingTaxRatesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTaxRatesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AccountingTaxRatesAddResponse$inboundSchema, { key: "CreateTaxRateResponse", diff --git a/src/funcs/accountingTaxRatesDelete.ts b/src/funcs/accountingTaxRatesDelete.ts index f0599d9b..6ac6ba88 100644 --- a/src/funcs/accountingTaxRatesDelete.ts +++ b/src/funcs/accountingTaxRatesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTaxRatesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingTaxRatesDeleteResponse$inboundSchema, { key: "DeleteTaxRateResponse", diff --git a/src/funcs/accountingTaxRatesGet.ts b/src/funcs/accountingTaxRatesGet.ts index c7a5b981..6bdf218b 100644 --- a/src/funcs/accountingTaxRatesGet.ts +++ b/src/funcs/accountingTaxRatesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTaxRatesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingTaxRatesOneResponse$inboundSchema, { key: "GetTaxRateResponse", diff --git a/src/funcs/accountingTaxRatesList.ts b/src/funcs/accountingTaxRatesList.ts index 944e9eca..c7504957 100644 --- a/src/funcs/accountingTaxRatesList.ts +++ b/src/funcs/accountingTaxRatesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingTaxRatesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingTaxRatesAllResponse$inboundSchema, { key: "GetTaxRatesResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingTaxRatesUpdate.ts b/src/funcs/accountingTaxRatesUpdate.ts index 03642c79..f2da3990 100644 --- a/src/funcs/accountingTaxRatesUpdate.ts +++ b/src/funcs/accountingTaxRatesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTaxRatesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AccountingTaxRatesUpdateResponse$inboundSchema, { key: "UpdateTaxRateResponse", diff --git a/src/funcs/accountingTrackingCategoriesCreate.ts b/src/funcs/accountingTrackingCategoriesCreate.ts index a5e60e60..fbfdb8a6 100644 --- a/src/funcs/accountingTrackingCategoriesCreate.ts +++ b/src/funcs/accountingTrackingCategoriesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTrackingCategoriesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 201, diff --git a/src/funcs/accountingTrackingCategoriesDelete.ts b/src/funcs/accountingTrackingCategoriesDelete.ts index deb060a0..cd7dcc13 100644 --- a/src/funcs/accountingTrackingCategoriesDelete.ts +++ b/src/funcs/accountingTrackingCategoriesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTrackingCategoriesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingTrackingCategoriesGet.ts b/src/funcs/accountingTrackingCategoriesGet.ts index db8ee34e..968fceba 100644 --- a/src/funcs/accountingTrackingCategoriesGet.ts +++ b/src/funcs/accountingTrackingCategoriesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTrackingCategoriesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/accountingTrackingCategoriesList.ts b/src/funcs/accountingTrackingCategoriesList.ts index 91b455e0..79d8c75e 100644 --- a/src/funcs/accountingTrackingCategoriesList.ts +++ b/src/funcs/accountingTrackingCategoriesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function accountingTrackingCategoriesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -259,13 +263,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/accountingTrackingCategoriesUpdate.ts b/src/funcs/accountingTrackingCategoriesUpdate.ts index c42e3455..e4aa6dd4 100644 --- a/src/funcs/accountingTrackingCategoriesUpdate.ts +++ b/src/funcs/accountingTrackingCategoriesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function accountingTrackingCategoriesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/atsApplicantsCreate.ts b/src/funcs/atsApplicantsCreate.ts index 29832e99..ffa3d56f 100644 --- a/src/funcs/atsApplicantsCreate.ts +++ b/src/funcs/atsApplicantsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicantsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AtsApplicantsAddResponse$inboundSchema, { key: "CreateApplicantResponse", diff --git a/src/funcs/atsApplicantsDelete.ts b/src/funcs/atsApplicantsDelete.ts index 61e814e0..d17f0fb2 100644 --- a/src/funcs/atsApplicantsDelete.ts +++ b/src/funcs/atsApplicantsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicantsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicantsDeleteResponse$inboundSchema, { key: "DeleteApplicantResponse", diff --git a/src/funcs/atsApplicantsGet.ts b/src/funcs/atsApplicantsGet.ts index dc11fb5c..5ea44ecb 100644 --- a/src/funcs/atsApplicantsGet.ts +++ b/src/funcs/atsApplicantsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicantsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicantsOneResponse$inboundSchema, { key: "GetApplicantResponse", diff --git a/src/funcs/atsApplicantsList.ts b/src/funcs/atsApplicantsList.ts index 7cfc9f36..52e70ded 100644 --- a/src/funcs/atsApplicantsList.ts +++ b/src/funcs/atsApplicantsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function atsApplicantsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -212,13 +215,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicantsAllResponse$inboundSchema, { key: "GetApplicantsResponse", @@ -253,13 +257,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/atsApplicantsUpdate.ts b/src/funcs/atsApplicantsUpdate.ts index 1e573158..94e016ff 100644 --- a/src/funcs/atsApplicantsUpdate.ts +++ b/src/funcs/atsApplicantsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicantsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicantsUpdateResponse$inboundSchema, { key: "UpdateApplicantResponse", diff --git a/src/funcs/atsApplicationsCreate.ts b/src/funcs/atsApplicationsCreate.ts index d28cf8e5..bbbd54fc 100644 --- a/src/funcs/atsApplicationsCreate.ts +++ b/src/funcs/atsApplicationsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicationsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.AtsApplicationsAddResponse$inboundSchema, { key: "CreateApplicationResponse", diff --git a/src/funcs/atsApplicationsDelete.ts b/src/funcs/atsApplicationsDelete.ts index c760fe52..98e83913 100644 --- a/src/funcs/atsApplicationsDelete.ts +++ b/src/funcs/atsApplicationsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicationsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicationsDeleteResponse$inboundSchema, { key: "DeleteApplicationResponse", diff --git a/src/funcs/atsApplicationsGet.ts b/src/funcs/atsApplicationsGet.ts index 30208e2c..afe77bcf 100644 --- a/src/funcs/atsApplicationsGet.ts +++ b/src/funcs/atsApplicationsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicationsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicationsOneResponse$inboundSchema, { key: "GetApplicationResponse", diff --git a/src/funcs/atsApplicationsList.ts b/src/funcs/atsApplicationsList.ts index a6285a66..a3ec0e0f 100644 --- a/src/funcs/atsApplicationsList.ts +++ b/src/funcs/atsApplicationsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function atsApplicationsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -210,13 +213,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicationsAllResponse$inboundSchema, { key: "GetApplicationsResponse", @@ -251,13 +255,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/atsApplicationsUpdate.ts b/src/funcs/atsApplicationsUpdate.ts index 27f6edad..75791b89 100644 --- a/src/funcs/atsApplicationsUpdate.ts +++ b/src/funcs/atsApplicationsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsApplicationsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsApplicationsUpdateResponse$inboundSchema, { key: "UpdateApplicationResponse", diff --git a/src/funcs/atsJobsGet.ts b/src/funcs/atsJobsGet.ts index 54470860..3d463d8c 100644 --- a/src/funcs/atsJobsGet.ts +++ b/src/funcs/atsJobsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function atsJobsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsJobsOneResponse$inboundSchema, { key: "GetJobResponse", diff --git a/src/funcs/atsJobsList.ts b/src/funcs/atsJobsList.ts index 9b110bed..9887f8dc 100644 --- a/src/funcs/atsJobsList.ts +++ b/src/funcs/atsJobsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function atsJobsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.AtsJobsAllResponse$inboundSchema, { key: "GetJobsResponse", @@ -252,13 +256,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/connectorApiResourceCoverageGet.ts b/src/funcs/connectorApiResourceCoverageGet.ts index 858b27b1..4f111d36 100644 --- a/src/funcs/connectorApiResourceCoverageGet.ts +++ b/src/funcs/connectorApiResourceCoverageGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -40,13 +41,14 @@ export function connectorApiResourceCoverageGet( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -67,13 +69,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -180,13 +183,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/connectorApiResourcesGet.ts b/src/funcs/connectorApiResourcesGet.ts index e86235a9..32231764 100644 --- a/src/funcs/connectorApiResourcesGet.ts +++ b/src/funcs/connectorApiResourcesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -40,13 +41,14 @@ export function connectorApiResourcesGet( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -67,13 +69,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -178,13 +181,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.ConnectorApiResourcesOneResponse$inboundSchema, { key: "GetApiResourceResponse", diff --git a/src/funcs/connectorApisGet.ts b/src/funcs/connectorApisGet.ts index a2da5860..7ee860b5 100644 --- a/src/funcs/connectorApisGet.ts +++ b/src/funcs/connectorApisGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -40,13 +41,14 @@ export function connectorApisGet( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -67,13 +69,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -171,13 +174,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.ConnectorApisOneResponse$inboundSchema, { key: "GetApiResponse", diff --git a/src/funcs/connectorApisList.ts b/src/funcs/connectorApisList.ts index 27f079c1..8d6b9299 100644 --- a/src/funcs/connectorApisList.ts +++ b/src/funcs/connectorApisList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -53,13 +54,14 @@ export function connectorApisList( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -83,13 +85,14 @@ async function $do( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -193,13 +196,14 @@ async function $do( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.ConnectorApisAllResponse$inboundSchema, { key: "GetApisResponse", @@ -230,13 +234,14 @@ async function $do( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/connectorConnectorDocsGet.ts b/src/funcs/connectorConnectorDocsGet.ts index f427efef..5c17f2dd 100644 --- a/src/funcs/connectorConnectorDocsGet.ts +++ b/src/funcs/connectorConnectorDocsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -45,13 +46,14 @@ export function connectorConnectorDocsGet( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -72,13 +74,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -184,13 +187,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.text(200, operations.ConnectorConnectorDocsOneResponse$inboundSchema, { ctype: "text/markdown", diff --git a/src/funcs/connectorConnectorResourcesGet.ts b/src/funcs/connectorConnectorResourcesGet.ts index 380cf6ff..86c5dbda 100644 --- a/src/funcs/connectorConnectorResourcesGet.ts +++ b/src/funcs/connectorConnectorResourcesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -40,13 +41,14 @@ export function connectorConnectorResourcesGet( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -67,13 +69,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -185,13 +188,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/connectorConnectorsGet.ts b/src/funcs/connectorConnectorsGet.ts index e3132882..f79ec164 100644 --- a/src/funcs/connectorConnectorsGet.ts +++ b/src/funcs/connectorConnectorsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -40,13 +41,14 @@ export function connectorConnectorsGet( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -67,13 +69,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -172,13 +175,14 @@ async function $do( | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.ConnectorConnectorsOneResponse$inboundSchema, { key: "GetConnectorResponse", diff --git a/src/funcs/connectorConnectorsList.ts b/src/funcs/connectorConnectorsList.ts index 5fe5560d..9551ca42 100644 --- a/src/funcs/connectorConnectorsList.ts +++ b/src/funcs/connectorConnectorsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -53,13 +54,14 @@ export function connectorConnectorsList( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -83,13 +85,14 @@ async function $do( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -194,13 +197,14 @@ async function $do( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.ConnectorConnectorsAllResponse$inboundSchema, { key: "GetConnectorsResponse", @@ -231,13 +235,14 @@ async function $do( | errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmActivitiesCreate.ts b/src/funcs/crmActivitiesCreate.ts index 0c95fd1c..26382f1c 100644 --- a/src/funcs/crmActivitiesCreate.ts +++ b/src/funcs/crmActivitiesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmActivitiesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmActivitiesAddResponse$inboundSchema, { key: "CreateActivityResponse", diff --git a/src/funcs/crmActivitiesDelete.ts b/src/funcs/crmActivitiesDelete.ts index d6c3310c..66990e24 100644 --- a/src/funcs/crmActivitiesDelete.ts +++ b/src/funcs/crmActivitiesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmActivitiesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmActivitiesDeleteResponse$inboundSchema, { key: "DeleteActivityResponse", diff --git a/src/funcs/crmActivitiesGet.ts b/src/funcs/crmActivitiesGet.ts index e2dbd017..d0fb4668 100644 --- a/src/funcs/crmActivitiesGet.ts +++ b/src/funcs/crmActivitiesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmActivitiesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmActivitiesOneResponse$inboundSchema, { key: "GetActivityResponse", diff --git a/src/funcs/crmActivitiesList.ts b/src/funcs/crmActivitiesList.ts index f0652853..fa23884e 100644 --- a/src/funcs/crmActivitiesList.ts +++ b/src/funcs/crmActivitiesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmActivitiesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmActivitiesAllResponse$inboundSchema, { key: "GetActivitiesResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmActivitiesUpdate.ts b/src/funcs/crmActivitiesUpdate.ts index c64af3dc..b24908b5 100644 --- a/src/funcs/crmActivitiesUpdate.ts +++ b/src/funcs/crmActivitiesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmActivitiesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmActivitiesUpdateResponse$inboundSchema, { key: "UpdateActivityResponse", diff --git a/src/funcs/crmCompaniesCreate.ts b/src/funcs/crmCompaniesCreate.ts index 630e6b09..166aa890 100644 --- a/src/funcs/crmCompaniesCreate.ts +++ b/src/funcs/crmCompaniesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCompaniesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmCompaniesAddResponse$inboundSchema, { key: "CreateCompanyResponse", diff --git a/src/funcs/crmCompaniesDelete.ts b/src/funcs/crmCompaniesDelete.ts index d8de428f..604ba3d2 100644 --- a/src/funcs/crmCompaniesDelete.ts +++ b/src/funcs/crmCompaniesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCompaniesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCompaniesDeleteResponse$inboundSchema, { key: "DeleteCompanyResponse", diff --git a/src/funcs/crmCompaniesGet.ts b/src/funcs/crmCompaniesGet.ts index 86146270..0eb04b88 100644 --- a/src/funcs/crmCompaniesGet.ts +++ b/src/funcs/crmCompaniesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCompaniesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCompaniesOneResponse$inboundSchema, { key: "GetCompanyResponse", diff --git a/src/funcs/crmCompaniesList.ts b/src/funcs/crmCompaniesList.ts index 9d1d6dc9..7d6c6765 100644 --- a/src/funcs/crmCompaniesList.ts +++ b/src/funcs/crmCompaniesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmCompaniesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCompaniesAllResponse$inboundSchema, { key: "GetCompaniesResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmCompaniesUpdate.ts b/src/funcs/crmCompaniesUpdate.ts index 8178c095..7116a5f3 100644 --- a/src/funcs/crmCompaniesUpdate.ts +++ b/src/funcs/crmCompaniesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCompaniesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCompaniesUpdateResponse$inboundSchema, { key: "UpdateCompanyResponse", diff --git a/src/funcs/crmContactsCreate.ts b/src/funcs/crmContactsCreate.ts index 053fcf42..7e2f313d 100644 --- a/src/funcs/crmContactsCreate.ts +++ b/src/funcs/crmContactsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmContactsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmContactsAddResponse$inboundSchema, { key: "CreateContactResponse", diff --git a/src/funcs/crmContactsDelete.ts b/src/funcs/crmContactsDelete.ts index 366934c4..a51bf0b2 100644 --- a/src/funcs/crmContactsDelete.ts +++ b/src/funcs/crmContactsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmContactsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmContactsDeleteResponse$inboundSchema, { key: "DeleteContactResponse", diff --git a/src/funcs/crmContactsGet.ts b/src/funcs/crmContactsGet.ts index f946a539..da30183a 100644 --- a/src/funcs/crmContactsGet.ts +++ b/src/funcs/crmContactsGet.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function crmContactsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -203,13 +206,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmContactsOneResponse$inboundSchema, { key: "GetContactResponse", diff --git a/src/funcs/crmContactsList.ts b/src/funcs/crmContactsList.ts index c85092f0..63ed73db 100644 --- a/src/funcs/crmContactsList.ts +++ b/src/funcs/crmContactsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmContactsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmContactsAllResponse$inboundSchema, { key: "GetContactsResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmContactsUpdate.ts b/src/funcs/crmContactsUpdate.ts index 088c1c86..0fd40e3c 100644 --- a/src/funcs/crmContactsUpdate.ts +++ b/src/funcs/crmContactsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmContactsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmContactsUpdateResponse$inboundSchema, { key: "UpdateContactResponse", diff --git a/src/funcs/crmCustomObjectSchemasCreate.ts b/src/funcs/crmCustomObjectSchemasCreate.ts index 67edc2a6..9390fd6f 100644 --- a/src/funcs/crmCustomObjectSchemasCreate.ts +++ b/src/funcs/crmCustomObjectSchemasCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectSchemasCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmCustomObjectSchemasAddResponse$inboundSchema, { key: "CreateCustomObjectSchemaResponse", diff --git a/src/funcs/crmCustomObjectSchemasDelete.ts b/src/funcs/crmCustomObjectSchemasDelete.ts index ee84a969..193a059a 100644 --- a/src/funcs/crmCustomObjectSchemasDelete.ts +++ b/src/funcs/crmCustomObjectSchemasDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectSchemasDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectSchemasDeleteResponse$inboundSchema, { key: "DeleteCustomObjectSchemaResponse", diff --git a/src/funcs/crmCustomObjectSchemasGet.ts b/src/funcs/crmCustomObjectSchemasGet.ts index f5a3bd28..cc9abbf7 100644 --- a/src/funcs/crmCustomObjectSchemasGet.ts +++ b/src/funcs/crmCustomObjectSchemasGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectSchemasGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectSchemasOneResponse$inboundSchema, { key: "GetCustomObjectSchemaResponse", diff --git a/src/funcs/crmCustomObjectSchemasList.ts b/src/funcs/crmCustomObjectSchemasList.ts index cb800ef8..c81348cd 100644 --- a/src/funcs/crmCustomObjectSchemasList.ts +++ b/src/funcs/crmCustomObjectSchemasList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmCustomObjectSchemasList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectSchemasAllResponse$inboundSchema, { key: "GetCustomObjectSchemasResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmCustomObjectSchemasUpdate.ts b/src/funcs/crmCustomObjectSchemasUpdate.ts index ccca0182..82db6416 100644 --- a/src/funcs/crmCustomObjectSchemasUpdate.ts +++ b/src/funcs/crmCustomObjectSchemasUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectSchemasUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectSchemasUpdateResponse$inboundSchema, { key: "UpdateCustomObjectSchemaResponse", diff --git a/src/funcs/crmCustomObjectsCreate.ts b/src/funcs/crmCustomObjectsCreate.ts index 1411af0d..cfaf7d8f 100644 --- a/src/funcs/crmCustomObjectsCreate.ts +++ b/src/funcs/crmCustomObjectsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmCustomObjectsAddResponse$inboundSchema, { key: "CreateCustomObjectResponse", diff --git a/src/funcs/crmCustomObjectsDelete.ts b/src/funcs/crmCustomObjectsDelete.ts index 541746ba..a9add089 100644 --- a/src/funcs/crmCustomObjectsDelete.ts +++ b/src/funcs/crmCustomObjectsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -197,13 +200,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectsDeleteResponse$inboundSchema, { key: "DeleteCustomObjectResponse", diff --git a/src/funcs/crmCustomObjectsGet.ts b/src/funcs/crmCustomObjectsGet.ts index b68b0a2e..bd9dca8b 100644 --- a/src/funcs/crmCustomObjectsGet.ts +++ b/src/funcs/crmCustomObjectsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -197,13 +200,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectsOneResponse$inboundSchema, { key: "GetCustomObjectResponse", diff --git a/src/funcs/crmCustomObjectsList.ts b/src/funcs/crmCustomObjectsList.ts index 362aaf0e..fa7a0955 100644 --- a/src/funcs/crmCustomObjectsList.ts +++ b/src/funcs/crmCustomObjectsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmCustomObjectsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -219,13 +222,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectsAllResponse$inboundSchema, { key: "GetCustomObjectsResponse", @@ -260,13 +264,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmCustomObjectsUpdate.ts b/src/funcs/crmCustomObjectsUpdate.ts index 56ca965d..66597430 100644 --- a/src/funcs/crmCustomObjectsUpdate.ts +++ b/src/funcs/crmCustomObjectsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmCustomObjectsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmCustomObjectsUpdateResponse$inboundSchema, { key: "UpdateCustomObjectResponse", diff --git a/src/funcs/crmLeadsCreate.ts b/src/funcs/crmLeadsCreate.ts index e0e0fbb4..05a2dcec 100644 --- a/src/funcs/crmLeadsCreate.ts +++ b/src/funcs/crmLeadsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmLeadsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmLeadsAddResponse$inboundSchema, { key: "CreateLeadResponse", diff --git a/src/funcs/crmLeadsDelete.ts b/src/funcs/crmLeadsDelete.ts index cb2e22d5..b186f63d 100644 --- a/src/funcs/crmLeadsDelete.ts +++ b/src/funcs/crmLeadsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmLeadsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmLeadsDeleteResponse$inboundSchema, { key: "DeleteLeadResponse", diff --git a/src/funcs/crmLeadsGet.ts b/src/funcs/crmLeadsGet.ts index a3eeb2f7..124c5d28 100644 --- a/src/funcs/crmLeadsGet.ts +++ b/src/funcs/crmLeadsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmLeadsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmLeadsOneResponse$inboundSchema, { key: "GetLeadResponse", diff --git a/src/funcs/crmLeadsList.ts b/src/funcs/crmLeadsList.ts index b3efc2b2..86111689 100644 --- a/src/funcs/crmLeadsList.ts +++ b/src/funcs/crmLeadsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmLeadsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmLeadsAllResponse$inboundSchema, { key: "GetLeadsResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmLeadsUpdate.ts b/src/funcs/crmLeadsUpdate.ts index de953b5b..b0e9eedb 100644 --- a/src/funcs/crmLeadsUpdate.ts +++ b/src/funcs/crmLeadsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmLeadsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmLeadsUpdateResponse$inboundSchema, { key: "UpdateLeadResponse", diff --git a/src/funcs/crmNotesCreate.ts b/src/funcs/crmNotesCreate.ts index df645c95..9aa58c88 100644 --- a/src/funcs/crmNotesCreate.ts +++ b/src/funcs/crmNotesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmNotesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmNotesAddResponse$inboundSchema, { key: "CreateNoteResponse", diff --git a/src/funcs/crmNotesDelete.ts b/src/funcs/crmNotesDelete.ts index a9595ecc..7bdde957 100644 --- a/src/funcs/crmNotesDelete.ts +++ b/src/funcs/crmNotesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmNotesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmNotesDeleteResponse$inboundSchema, { key: "DeleteNoteResponse", diff --git a/src/funcs/crmNotesGet.ts b/src/funcs/crmNotesGet.ts index 36218abc..50a85ddd 100644 --- a/src/funcs/crmNotesGet.ts +++ b/src/funcs/crmNotesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmNotesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmNotesOneResponse$inboundSchema, { key: "GetNoteResponse", diff --git a/src/funcs/crmNotesList.ts b/src/funcs/crmNotesList.ts index 162d9f41..3e8b9763 100644 --- a/src/funcs/crmNotesList.ts +++ b/src/funcs/crmNotesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmNotesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmNotesAllResponse$inboundSchema, { key: "GetNotesResponse", @@ -252,13 +256,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmNotesUpdate.ts b/src/funcs/crmNotesUpdate.ts index 4a263e28..5c0e1900 100644 --- a/src/funcs/crmNotesUpdate.ts +++ b/src/funcs/crmNotesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmNotesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmNotesUpdateResponse$inboundSchema, { key: "UpdateNoteResponse", diff --git a/src/funcs/crmOpportunitiesCreate.ts b/src/funcs/crmOpportunitiesCreate.ts index 4b75cde4..a2b2c3a2 100644 --- a/src/funcs/crmOpportunitiesCreate.ts +++ b/src/funcs/crmOpportunitiesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmOpportunitiesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmOpportunitiesAddResponse$inboundSchema, { key: "CreateOpportunityResponse", diff --git a/src/funcs/crmOpportunitiesDelete.ts b/src/funcs/crmOpportunitiesDelete.ts index 3aa7480d..619c0424 100644 --- a/src/funcs/crmOpportunitiesDelete.ts +++ b/src/funcs/crmOpportunitiesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmOpportunitiesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmOpportunitiesDeleteResponse$inboundSchema, { key: "DeleteOpportunityResponse", diff --git a/src/funcs/crmOpportunitiesGet.ts b/src/funcs/crmOpportunitiesGet.ts index 9865c858..eafe0fe4 100644 --- a/src/funcs/crmOpportunitiesGet.ts +++ b/src/funcs/crmOpportunitiesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmOpportunitiesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmOpportunitiesOneResponse$inboundSchema, { key: "GetOpportunityResponse", diff --git a/src/funcs/crmOpportunitiesList.ts b/src/funcs/crmOpportunitiesList.ts index bfb306bb..ae383350 100644 --- a/src/funcs/crmOpportunitiesList.ts +++ b/src/funcs/crmOpportunitiesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmOpportunitiesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmOpportunitiesAllResponse$inboundSchema, { key: "GetOpportunitiesResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmOpportunitiesUpdate.ts b/src/funcs/crmOpportunitiesUpdate.ts index 1d10103c..c715ae20 100644 --- a/src/funcs/crmOpportunitiesUpdate.ts +++ b/src/funcs/crmOpportunitiesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmOpportunitiesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmOpportunitiesUpdateResponse$inboundSchema, { key: "UpdateOpportunityResponse", diff --git a/src/funcs/crmPipelinesCreate.ts b/src/funcs/crmPipelinesCreate.ts index 10e0e18a..898b1a31 100644 --- a/src/funcs/crmPipelinesCreate.ts +++ b/src/funcs/crmPipelinesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmPipelinesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmPipelinesAddResponse$inboundSchema, { key: "CreatePipelineResponse", diff --git a/src/funcs/crmPipelinesDelete.ts b/src/funcs/crmPipelinesDelete.ts index f1eb2b80..2a9c73a3 100644 --- a/src/funcs/crmPipelinesDelete.ts +++ b/src/funcs/crmPipelinesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmPipelinesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmPipelinesDeleteResponse$inboundSchema, { key: "DeletePipelineResponse", diff --git a/src/funcs/crmPipelinesGet.ts b/src/funcs/crmPipelinesGet.ts index ad827f9e..37e77dbf 100644 --- a/src/funcs/crmPipelinesGet.ts +++ b/src/funcs/crmPipelinesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmPipelinesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmPipelinesOneResponse$inboundSchema, { key: "GetPipelineResponse", diff --git a/src/funcs/crmPipelinesList.ts b/src/funcs/crmPipelinesList.ts index 5ff9e8b9..c9547fb3 100644 --- a/src/funcs/crmPipelinesList.ts +++ b/src/funcs/crmPipelinesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmPipelinesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmPipelinesAllResponse$inboundSchema, { key: "GetPipelinesResponse", @@ -252,13 +256,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmPipelinesUpdate.ts b/src/funcs/crmPipelinesUpdate.ts index d05eb05d..344b4dc4 100644 --- a/src/funcs/crmPipelinesUpdate.ts +++ b/src/funcs/crmPipelinesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmPipelinesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmPipelinesUpdateResponse$inboundSchema, { key: "UpdatePipelineResponse", diff --git a/src/funcs/crmUsersCreate.ts b/src/funcs/crmUsersCreate.ts index 5be974f9..f658b7b6 100644 --- a/src/funcs/crmUsersCreate.ts +++ b/src/funcs/crmUsersCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmUsersCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.CrmUsersAddResponse$inboundSchema, { key: "CreateUserResponse", diff --git a/src/funcs/crmUsersDelete.ts b/src/funcs/crmUsersDelete.ts index 5a571693..a17ac4bd 100644 --- a/src/funcs/crmUsersDelete.ts +++ b/src/funcs/crmUsersDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmUsersDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmUsersDeleteResponse$inboundSchema, { key: "DeleteUserResponse", diff --git a/src/funcs/crmUsersGet.ts b/src/funcs/crmUsersGet.ts index 1e1ca6bb..83f44b6e 100644 --- a/src/funcs/crmUsersGet.ts +++ b/src/funcs/crmUsersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmUsersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmUsersOneResponse$inboundSchema, { key: "GetUserResponse", diff --git a/src/funcs/crmUsersList.ts b/src/funcs/crmUsersList.ts index 9c6637c6..4b8ec002 100644 --- a/src/funcs/crmUsersList.ts +++ b/src/funcs/crmUsersList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function crmUsersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmUsersAllResponse$inboundSchema, { key: "GetUsersResponse", @@ -252,13 +256,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/crmUsersUpdate.ts b/src/funcs/crmUsersUpdate.ts index 133edce2..20820698 100644 --- a/src/funcs/crmUsersUpdate.ts +++ b/src/funcs/crmUsersUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function crmUsersUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.CrmUsersUpdateResponse$inboundSchema, { key: "UpdateUserResponse", diff --git a/src/funcs/ecommerceCustomersGet.ts b/src/funcs/ecommerceCustomersGet.ts index bc9b8ef9..86f16458 100644 --- a/src/funcs/ecommerceCustomersGet.ts +++ b/src/funcs/ecommerceCustomersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function ecommerceCustomersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.EcommerceCustomersOneResponse$inboundSchema, { key: "GetEcommerceCustomerResponse", diff --git a/src/funcs/ecommerceCustomersList.ts b/src/funcs/ecommerceCustomersList.ts index 4f2f52b1..4b7144ed 100644 --- a/src/funcs/ecommerceCustomersList.ts +++ b/src/funcs/ecommerceCustomersList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function ecommerceCustomersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.EcommerceCustomersAllResponse$inboundSchema, { key: "GetEcommerceCustomersResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/ecommerceOrdersGet.ts b/src/funcs/ecommerceOrdersGet.ts index ea8ca52c..167ab4e8 100644 --- a/src/funcs/ecommerceOrdersGet.ts +++ b/src/funcs/ecommerceOrdersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function ecommerceOrdersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.EcommerceOrdersOneResponse$inboundSchema, { key: "GetEcommerceOrderResponse", diff --git a/src/funcs/ecommerceOrdersList.ts b/src/funcs/ecommerceOrdersList.ts index b347a1af..10089631 100644 --- a/src/funcs/ecommerceOrdersList.ts +++ b/src/funcs/ecommerceOrdersList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function ecommerceOrdersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.EcommerceOrdersAllResponse$inboundSchema, { key: "GetEcommerceOrdersResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/ecommerceProductsGet.ts b/src/funcs/ecommerceProductsGet.ts index 0d4a8e28..ef8f8725 100644 --- a/src/funcs/ecommerceProductsGet.ts +++ b/src/funcs/ecommerceProductsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function ecommerceProductsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.EcommerceProductsOneResponse$inboundSchema, { key: "GetProductResponse", diff --git a/src/funcs/ecommerceProductsList.ts b/src/funcs/ecommerceProductsList.ts index e57c7013..f3614325 100644 --- a/src/funcs/ecommerceProductsList.ts +++ b/src/funcs/ecommerceProductsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function ecommerceProductsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -212,13 +215,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.EcommerceProductsAllResponse$inboundSchema, { key: "GetProductsResponse", @@ -253,13 +257,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/ecommerceStoresGet.ts b/src/funcs/ecommerceStoresGet.ts index b0dd1394..1173e73c 100644 --- a/src/funcs/ecommerceStoresGet.ts +++ b/src/funcs/ecommerceStoresGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function ecommerceStoresGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.EcommerceStoresOneResponse$inboundSchema, { key: "GetStoreResponse", diff --git a/src/funcs/fileStorageDriveGroupsCreate.ts b/src/funcs/fileStorageDriveGroupsCreate.ts index e0988411..b2428150 100644 --- a/src/funcs/fileStorageDriveGroupsCreate.ts +++ b/src/funcs/fileStorageDriveGroupsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDriveGroupsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.FileStorageDriveGroupsAddResponse$inboundSchema, { key: "CreateDriveGroupResponse", diff --git a/src/funcs/fileStorageDriveGroupsDelete.ts b/src/funcs/fileStorageDriveGroupsDelete.ts index 8847bfbc..ff5907ea 100644 --- a/src/funcs/fileStorageDriveGroupsDelete.ts +++ b/src/funcs/fileStorageDriveGroupsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDriveGroupsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDriveGroupsDeleteResponse$inboundSchema, { key: "DeleteDriveGroupResponse", diff --git a/src/funcs/fileStorageDriveGroupsGet.ts b/src/funcs/fileStorageDriveGroupsGet.ts index d042b65f..2731e99b 100644 --- a/src/funcs/fileStorageDriveGroupsGet.ts +++ b/src/funcs/fileStorageDriveGroupsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDriveGroupsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDriveGroupsOneResponse$inboundSchema, { key: "GetDriveGroupResponse", diff --git a/src/funcs/fileStorageDriveGroupsList.ts b/src/funcs/fileStorageDriveGroupsList.ts index 4690912f..47529fd4 100644 --- a/src/funcs/fileStorageDriveGroupsList.ts +++ b/src/funcs/fileStorageDriveGroupsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function fileStorageDriveGroupsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDriveGroupsAllResponse$inboundSchema, { key: "GetDriveGroupsResponse", @@ -256,13 +260,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/fileStorageDriveGroupsUpdate.ts b/src/funcs/fileStorageDriveGroupsUpdate.ts index 45706861..27f113e9 100644 --- a/src/funcs/fileStorageDriveGroupsUpdate.ts +++ b/src/funcs/fileStorageDriveGroupsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDriveGroupsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDriveGroupsUpdateResponse$inboundSchema, { key: "UpdateDriveGroupResponse", diff --git a/src/funcs/fileStorageDrivesCreate.ts b/src/funcs/fileStorageDrivesCreate.ts index ba322aa2..3b6cb4b2 100644 --- a/src/funcs/fileStorageDrivesCreate.ts +++ b/src/funcs/fileStorageDrivesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDrivesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.FileStorageDrivesAddResponse$inboundSchema, { key: "CreateDriveResponse", diff --git a/src/funcs/fileStorageDrivesDelete.ts b/src/funcs/fileStorageDrivesDelete.ts index 3df8eb8c..a22ae357 100644 --- a/src/funcs/fileStorageDrivesDelete.ts +++ b/src/funcs/fileStorageDrivesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDrivesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDrivesDeleteResponse$inboundSchema, { key: "DeleteDriveResponse", diff --git a/src/funcs/fileStorageDrivesGet.ts b/src/funcs/fileStorageDrivesGet.ts index ee586914..52eb1f85 100644 --- a/src/funcs/fileStorageDrivesGet.ts +++ b/src/funcs/fileStorageDrivesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDrivesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDrivesOneResponse$inboundSchema, { key: "GetDriveResponse", diff --git a/src/funcs/fileStorageDrivesList.ts b/src/funcs/fileStorageDrivesList.ts index 1b7e4170..5263f248 100644 --- a/src/funcs/fileStorageDrivesList.ts +++ b/src/funcs/fileStorageDrivesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function fileStorageDrivesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -212,13 +215,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDrivesAllResponse$inboundSchema, { key: "GetDrivesResponse", @@ -253,13 +257,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/fileStorageDrivesUpdate.ts b/src/funcs/fileStorageDrivesUpdate.ts index 7ebdfb07..a55a6fa9 100644 --- a/src/funcs/fileStorageDrivesUpdate.ts +++ b/src/funcs/fileStorageDrivesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageDrivesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageDrivesUpdateResponse$inboundSchema, { key: "UpdateDriveResponse", diff --git a/src/funcs/fileStorageFilesDelete.ts b/src/funcs/fileStorageFilesDelete.ts index 6911b3f1..661f3083 100644 --- a/src/funcs/fileStorageFilesDelete.ts +++ b/src/funcs/fileStorageFilesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFilesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFilesDeleteResponse$inboundSchema, { key: "DeleteFileResponse", diff --git a/src/funcs/fileStorageFilesDownload.ts b/src/funcs/fileStorageFilesDownload.ts index af53ab86..c384cc89 100644 --- a/src/funcs/fileStorageFilesDownload.ts +++ b/src/funcs/fileStorageFilesDownload.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function fileStorageFilesDownload( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.stream(200, operations.FileStorageFilesDownloadResponse$inboundSchema, { ctype: "*/*", diff --git a/src/funcs/fileStorageFilesExport.ts b/src/funcs/fileStorageFilesExport.ts index 85fdbc2d..f5680a8e 100644 --- a/src/funcs/fileStorageFilesExport.ts +++ b/src/funcs/fileStorageFilesExport.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function fileStorageFilesExport( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -199,13 +202,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.stream(200, operations.FileStorageFilesExportResponse$inboundSchema, { ctype: "*/*", diff --git a/src/funcs/fileStorageFilesGet.ts b/src/funcs/fileStorageFilesGet.ts index 93a3ce8d..54f0ddff 100644 --- a/src/funcs/fileStorageFilesGet.ts +++ b/src/funcs/fileStorageFilesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFilesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFilesOneResponse$inboundSchema, { key: "GetFileResponse", diff --git a/src/funcs/fileStorageFilesList.ts b/src/funcs/fileStorageFilesList.ts index 8d15b22d..4c211874 100644 --- a/src/funcs/fileStorageFilesList.ts +++ b/src/funcs/fileStorageFilesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function fileStorageFilesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -214,13 +217,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFilesAllResponse$inboundSchema, { key: "GetFilesResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/fileStorageFilesSearch.ts b/src/funcs/fileStorageFilesSearch.ts index 1d72ac30..09ffd2cf 100644 --- a/src/funcs/fileStorageFilesSearch.ts +++ b/src/funcs/fileStorageFilesSearch.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -48,13 +49,14 @@ export function fileStorageFilesSearch( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -77,13 +79,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -202,13 +205,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFilesSearchResponse$inboundSchema, { key: "GetFilesResponse", diff --git a/src/funcs/fileStorageFilesUpdate.ts b/src/funcs/fileStorageFilesUpdate.ts index 2c052028..20afd593 100644 --- a/src/funcs/fileStorageFilesUpdate.ts +++ b/src/funcs/fileStorageFilesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFilesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFilesUpdateResponse$inboundSchema, { key: "UpdateFileResponse", diff --git a/src/funcs/fileStorageFoldersCopy.ts b/src/funcs/fileStorageFoldersCopy.ts index e2e714a7..2ab12a37 100644 --- a/src/funcs/fileStorageFoldersCopy.ts +++ b/src/funcs/fileStorageFoldersCopy.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFoldersCopy( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFoldersCopyResponse$inboundSchema, { key: "UpdateFolderResponse", diff --git a/src/funcs/fileStorageFoldersCreate.ts b/src/funcs/fileStorageFoldersCreate.ts index 1b96eb3d..dc6c08d2 100644 --- a/src/funcs/fileStorageFoldersCreate.ts +++ b/src/funcs/fileStorageFoldersCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFoldersCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -190,13 +193,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.FileStorageFoldersAddResponse$inboundSchema, { key: "CreateFolderResponse", diff --git a/src/funcs/fileStorageFoldersDelete.ts b/src/funcs/fileStorageFoldersDelete.ts index 34b898f8..475ec6f5 100644 --- a/src/funcs/fileStorageFoldersDelete.ts +++ b/src/funcs/fileStorageFoldersDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFoldersDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFoldersDeleteResponse$inboundSchema, { key: "DeleteFolderResponse", diff --git a/src/funcs/fileStorageFoldersGet.ts b/src/funcs/fileStorageFoldersGet.ts index 8d7e4bc9..7c9f077e 100644 --- a/src/funcs/fileStorageFoldersGet.ts +++ b/src/funcs/fileStorageFoldersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFoldersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFoldersOneResponse$inboundSchema, { key: "GetFolderResponse", diff --git a/src/funcs/fileStorageFoldersUpdate.ts b/src/funcs/fileStorageFoldersUpdate.ts index 4fdec78c..b0ceeeaf 100644 --- a/src/funcs/fileStorageFoldersUpdate.ts +++ b/src/funcs/fileStorageFoldersUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageFoldersUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageFoldersUpdateResponse$inboundSchema, { key: "UpdateFolderResponse", diff --git a/src/funcs/fileStorageSharedLinksCreate.ts b/src/funcs/fileStorageSharedLinksCreate.ts index e48e5d8b..2135b3c5 100644 --- a/src/funcs/fileStorageSharedLinksCreate.ts +++ b/src/funcs/fileStorageSharedLinksCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageSharedLinksCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.FileStorageSharedLinksAddResponse$inboundSchema, { key: "CreateSharedLinkResponse", diff --git a/src/funcs/fileStorageSharedLinksDelete.ts b/src/funcs/fileStorageSharedLinksDelete.ts index b499d5d9..afa12fed 100644 --- a/src/funcs/fileStorageSharedLinksDelete.ts +++ b/src/funcs/fileStorageSharedLinksDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageSharedLinksDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageSharedLinksDeleteResponse$inboundSchema, { key: "DeleteSharedLinkResponse", diff --git a/src/funcs/fileStorageSharedLinksGet.ts b/src/funcs/fileStorageSharedLinksGet.ts index 7e178051..98bc73f8 100644 --- a/src/funcs/fileStorageSharedLinksGet.ts +++ b/src/funcs/fileStorageSharedLinksGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageSharedLinksGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageSharedLinksOneResponse$inboundSchema, { key: "GetSharedLinkResponse", diff --git a/src/funcs/fileStorageSharedLinksList.ts b/src/funcs/fileStorageSharedLinksList.ts index 11331b3f..68856e88 100644 --- a/src/funcs/fileStorageSharedLinksList.ts +++ b/src/funcs/fileStorageSharedLinksList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function fileStorageSharedLinksList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -212,13 +215,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageSharedLinksAllResponse$inboundSchema, { key: "GetSharedLinksResponse", @@ -255,13 +259,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/fileStorageSharedLinksUpdate.ts b/src/funcs/fileStorageSharedLinksUpdate.ts index a7dc6fa9..f96430f0 100644 --- a/src/funcs/fileStorageSharedLinksUpdate.ts +++ b/src/funcs/fileStorageSharedLinksUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageSharedLinksUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageSharedLinksUpdateResponse$inboundSchema, { key: "UpdateSharedLinkResponse", diff --git a/src/funcs/fileStorageUploadSessionsCreate.ts b/src/funcs/fileStorageUploadSessionsCreate.ts index aa24cf52..8456d76c 100644 --- a/src/funcs/fileStorageUploadSessionsCreate.ts +++ b/src/funcs/fileStorageUploadSessionsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { FileStorageUploadSessionsAddServerList } from "../models/operations/filestorageuploadsessionsadd.js"; import * as operations from "../models/operations/index.js"; @@ -43,13 +44,14 @@ export function fileStorageUploadSessionsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -72,13 +74,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -197,13 +200,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.FileStorageUploadSessionsAddResponse$inboundSchema, { key: "CreateUploadSessionResponse", diff --git a/src/funcs/fileStorageUploadSessionsDelete.ts b/src/funcs/fileStorageUploadSessionsDelete.ts index 5bf0b3eb..5607fe0b 100644 --- a/src/funcs/fileStorageUploadSessionsDelete.ts +++ b/src/funcs/fileStorageUploadSessionsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function fileStorageUploadSessionsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/fileStorageUploadSessionsFinish.ts b/src/funcs/fileStorageUploadSessionsFinish.ts index ce45e5ba..cab32983 100644 --- a/src/funcs/fileStorageUploadSessionsFinish.ts +++ b/src/funcs/fileStorageUploadSessionsFinish.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { FileStorageUploadSessionsFinishServerList } from "../models/operations/filestorageuploadsessionsfinish.js"; import * as operations from "../models/operations/index.js"; @@ -43,13 +44,14 @@ export function fileStorageUploadSessionsFinish( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -72,13 +74,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -208,13 +211,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 201, diff --git a/src/funcs/fileStorageUploadSessionsGet.ts b/src/funcs/fileStorageUploadSessionsGet.ts index 9cbe2bc8..49edf3a0 100644 --- a/src/funcs/fileStorageUploadSessionsGet.ts +++ b/src/funcs/fileStorageUploadSessionsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { FileStorageUploadSessionsOneServerList } from "../models/operations/filestorageuploadsessionsone.js"; import * as operations from "../models/operations/index.js"; @@ -43,13 +44,14 @@ export function fileStorageUploadSessionsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -72,13 +74,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -202,13 +205,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.FileStorageUploadSessionsOneResponse$inboundSchema, { key: "GetUploadSessionResponse", diff --git a/src/funcs/fileStorageUploadSessionsUpload.ts b/src/funcs/fileStorageUploadSessionsUpload.ts index e3ba24c6..eb445b1e 100644 --- a/src/funcs/fileStorageUploadSessionsUpload.ts +++ b/src/funcs/fileStorageUploadSessionsUpload.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { FileStorageUploadSessionsUploadServerList } from "../models/operations/filestorageuploadsessionsupload.js"; import * as operations from "../models/operations/index.js"; @@ -43,13 +44,14 @@ export function fileStorageUploadSessionsUpload( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -72,13 +74,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -207,13 +210,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/hrisCompaniesCreate.ts b/src/funcs/hrisCompaniesCreate.ts index dceeae2c..5da07f3c 100644 --- a/src/funcs/hrisCompaniesCreate.ts +++ b/src/funcs/hrisCompaniesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisCompaniesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.HrisCompaniesAddResponse$inboundSchema, { key: "CreateHrisCompanyResponse", diff --git a/src/funcs/hrisCompaniesDelete.ts b/src/funcs/hrisCompaniesDelete.ts index fdaad262..0d776555 100644 --- a/src/funcs/hrisCompaniesDelete.ts +++ b/src/funcs/hrisCompaniesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisCompaniesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisCompaniesDeleteResponse$inboundSchema, { key: "DeleteHrisCompanyResponse", diff --git a/src/funcs/hrisCompaniesGet.ts b/src/funcs/hrisCompaniesGet.ts index 34252ecf..135c01f1 100644 --- a/src/funcs/hrisCompaniesGet.ts +++ b/src/funcs/hrisCompaniesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisCompaniesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisCompaniesOneResponse$inboundSchema, { key: "GetHrisCompanyResponse", diff --git a/src/funcs/hrisCompaniesList.ts b/src/funcs/hrisCompaniesList.ts index ba47c554..573b4bcb 100644 --- a/src/funcs/hrisCompaniesList.ts +++ b/src/funcs/hrisCompaniesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function hrisCompaniesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisCompaniesAllResponse$inboundSchema, { key: "GetHrisCompaniesResponse", @@ -252,13 +256,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/hrisCompaniesUpdate.ts b/src/funcs/hrisCompaniesUpdate.ts index 9b4fb8c3..c02ecdf0 100644 --- a/src/funcs/hrisCompaniesUpdate.ts +++ b/src/funcs/hrisCompaniesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisCompaniesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisCompaniesUpdateResponse$inboundSchema, { key: "UpdateHrisCompanyResponse", diff --git a/src/funcs/hrisDepartmentsCreate.ts b/src/funcs/hrisDepartmentsCreate.ts index cc8dfb65..a64b2da3 100644 --- a/src/funcs/hrisDepartmentsCreate.ts +++ b/src/funcs/hrisDepartmentsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisDepartmentsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.HrisDepartmentsAddResponse$inboundSchema, { key: "CreateDepartmentResponse", diff --git a/src/funcs/hrisDepartmentsDelete.ts b/src/funcs/hrisDepartmentsDelete.ts index 9c09e85e..553071e0 100644 --- a/src/funcs/hrisDepartmentsDelete.ts +++ b/src/funcs/hrisDepartmentsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisDepartmentsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisDepartmentsDeleteResponse$inboundSchema, { key: "DeleteDepartmentResponse", diff --git a/src/funcs/hrisDepartmentsGet.ts b/src/funcs/hrisDepartmentsGet.ts index fec058d0..843cc62a 100644 --- a/src/funcs/hrisDepartmentsGet.ts +++ b/src/funcs/hrisDepartmentsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisDepartmentsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisDepartmentsOneResponse$inboundSchema, { key: "GetDepartmentResponse", diff --git a/src/funcs/hrisDepartmentsList.ts b/src/funcs/hrisDepartmentsList.ts index 16184ad0..a39e87f8 100644 --- a/src/funcs/hrisDepartmentsList.ts +++ b/src/funcs/hrisDepartmentsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function hrisDepartmentsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -211,13 +214,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisDepartmentsAllResponse$inboundSchema, { key: "GetDepartmentsResponse", @@ -252,13 +256,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/hrisDepartmentsUpdate.ts b/src/funcs/hrisDepartmentsUpdate.ts index 697b9ac7..abaf2319 100644 --- a/src/funcs/hrisDepartmentsUpdate.ts +++ b/src/funcs/hrisDepartmentsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisDepartmentsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisDepartmentsUpdateResponse$inboundSchema, { key: "UpdateDepartmentResponse", diff --git a/src/funcs/hrisEmployeePayrollsGet.ts b/src/funcs/hrisEmployeePayrollsGet.ts index 5dcce461..3afa5bb4 100644 --- a/src/funcs/hrisEmployeePayrollsGet.ts +++ b/src/funcs/hrisEmployeePayrollsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisEmployeePayrollsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -200,13 +203,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisEmployeePayrollsOneResponse$inboundSchema, { key: "GetEmployeePayrollResponse", diff --git a/src/funcs/hrisEmployeePayrollsList.ts b/src/funcs/hrisEmployeePayrollsList.ts index 8f65e7e4..6cd4ac21 100644 --- a/src/funcs/hrisEmployeePayrollsList.ts +++ b/src/funcs/hrisEmployeePayrollsList.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function hrisEmployeePayrollsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -205,13 +208,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisEmployeePayrollsAllResponse$inboundSchema, { key: "GetEmployeePayrollsResponse", diff --git a/src/funcs/hrisEmployeeSchedulesList.ts b/src/funcs/hrisEmployeeSchedulesList.ts index 2ea6e034..fd372d81 100644 --- a/src/funcs/hrisEmployeeSchedulesList.ts +++ b/src/funcs/hrisEmployeeSchedulesList.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function hrisEmployeeSchedulesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -206,13 +209,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisEmployeeSchedulesAllResponse$inboundSchema, { key: "GetEmployeeSchedulesResponse", diff --git a/src/funcs/hrisEmployeesCreate.ts b/src/funcs/hrisEmployeesCreate.ts index 76952cc3..9b20d16f 100644 --- a/src/funcs/hrisEmployeesCreate.ts +++ b/src/funcs/hrisEmployeesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisEmployeesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.HrisEmployeesAddResponse$inboundSchema, { key: "CreateEmployeeResponse", diff --git a/src/funcs/hrisEmployeesDelete.ts b/src/funcs/hrisEmployeesDelete.ts index 425c8c40..df565e92 100644 --- a/src/funcs/hrisEmployeesDelete.ts +++ b/src/funcs/hrisEmployeesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisEmployeesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisEmployeesDeleteResponse$inboundSchema, { key: "DeleteEmployeeResponse", diff --git a/src/funcs/hrisEmployeesGet.ts b/src/funcs/hrisEmployeesGet.ts index c45ee2c7..6f8dbb72 100644 --- a/src/funcs/hrisEmployeesGet.ts +++ b/src/funcs/hrisEmployeesGet.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function hrisEmployeesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -204,13 +207,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisEmployeesOneResponse$inboundSchema, { key: "GetEmployeeResponse", diff --git a/src/funcs/hrisEmployeesList.ts b/src/funcs/hrisEmployeesList.ts index 0e61a2ff..4c75d3a5 100644 --- a/src/funcs/hrisEmployeesList.ts +++ b/src/funcs/hrisEmployeesList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function hrisEmployeesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisEmployeesAllResponse$inboundSchema, { key: "GetEmployeesResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/hrisEmployeesUpdate.ts b/src/funcs/hrisEmployeesUpdate.ts index 69fbf367..46848be9 100644 --- a/src/funcs/hrisEmployeesUpdate.ts +++ b/src/funcs/hrisEmployeesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisEmployeesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -194,13 +197,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisEmployeesUpdateResponse$inboundSchema, { key: "UpdateEmployeeResponse", diff --git a/src/funcs/hrisPayrollsGet.ts b/src/funcs/hrisPayrollsGet.ts index 8cda6874..63962a28 100644 --- a/src/funcs/hrisPayrollsGet.ts +++ b/src/funcs/hrisPayrollsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisPayrollsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisPayrollsOneResponse$inboundSchema, { key: "GetPayrollResponse", diff --git a/src/funcs/hrisPayrollsList.ts b/src/funcs/hrisPayrollsList.ts index 50f1d2a2..e9e6e33f 100644 --- a/src/funcs/hrisPayrollsList.ts +++ b/src/funcs/hrisPayrollsList.ts @@ -15,7 +15,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -24,6 +24,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function hrisPayrollsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -197,13 +200,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisPayrollsAllResponse$inboundSchema, { key: "GetPayrollsResponse", diff --git a/src/funcs/hrisTimeOffRequestsCreate.ts b/src/funcs/hrisTimeOffRequestsCreate.ts index e85a500e..1664f1d2 100644 --- a/src/funcs/hrisTimeOffRequestsCreate.ts +++ b/src/funcs/hrisTimeOffRequestsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisTimeOffRequestsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -187,13 +190,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.HrisTimeOffRequestsAddResponse$inboundSchema, { key: "CreateTimeOffRequestResponse", diff --git a/src/funcs/hrisTimeOffRequestsDelete.ts b/src/funcs/hrisTimeOffRequestsDelete.ts index ffca79ae..7cc1725d 100644 --- a/src/funcs/hrisTimeOffRequestsDelete.ts +++ b/src/funcs/hrisTimeOffRequestsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisTimeOffRequestsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -199,13 +202,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisTimeOffRequestsDeleteResponse$inboundSchema, { key: "DeleteTimeOffRequestResponse", diff --git a/src/funcs/hrisTimeOffRequestsGet.ts b/src/funcs/hrisTimeOffRequestsGet.ts index 2317de46..562f8f9d 100644 --- a/src/funcs/hrisTimeOffRequestsGet.ts +++ b/src/funcs/hrisTimeOffRequestsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisTimeOffRequestsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -200,13 +203,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisTimeOffRequestsOneResponse$inboundSchema, { key: "GetTimeOffRequestResponse", diff --git a/src/funcs/hrisTimeOffRequestsList.ts b/src/funcs/hrisTimeOffRequestsList.ts index 272cdd3a..ce4149e4 100644 --- a/src/funcs/hrisTimeOffRequestsList.ts +++ b/src/funcs/hrisTimeOffRequestsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function hrisTimeOffRequestsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisTimeOffRequestsAllResponse$inboundSchema, { key: "GetTimeOffRequestsResponse", @@ -254,13 +258,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/hrisTimeOffRequestsUpdate.ts b/src/funcs/hrisTimeOffRequestsUpdate.ts index 0bc41ab3..647981c8 100644 --- a/src/funcs/hrisTimeOffRequestsUpdate.ts +++ b/src/funcs/hrisTimeOffRequestsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function hrisTimeOffRequestsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -200,13 +203,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.HrisTimeOffRequestsUpdateResponse$inboundSchema, { key: "UpdateTimeOffRequestResponse", diff --git a/src/funcs/issueTrackingCollectionTagsList.ts b/src/funcs/issueTrackingCollectionTagsList.ts index 20a75754..c9e2161e 100644 --- a/src/funcs/issueTrackingCollectionTagsList.ts +++ b/src/funcs/issueTrackingCollectionTagsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function issueTrackingCollectionTagsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -223,13 +226,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -268,13 +272,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts b/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts index f7f3a128..fcd0cbb6 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionTicketCommentsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -203,13 +206,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 201, diff --git a/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts b/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts index 1ecb5306..a8b76d1a 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionTicketCommentsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -205,13 +208,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/issueTrackingCollectionTicketCommentsGet.ts b/src/funcs/issueTrackingCollectionTicketCommentsGet.ts index e739a459..d0ae5c05 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsGet.ts @@ -11,7 +11,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +20,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -50,13 +51,14 @@ export function issueTrackingCollectionTicketCommentsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -82,13 +84,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -220,13 +223,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -265,13 +269,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/issueTrackingCollectionTicketCommentsList.ts b/src/funcs/issueTrackingCollectionTicketCommentsList.ts index d88a2ef1..b5c78b03 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsList.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function issueTrackingCollectionTicketCommentsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -227,13 +230,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -272,13 +276,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts b/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts index 58f0b321..4429fe67 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionTicketCommentsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -208,13 +211,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/issueTrackingCollectionTicketsCreate.ts b/src/funcs/issueTrackingCollectionTicketsCreate.ts index be4e5510..ae30fe9a 100644 --- a/src/funcs/issueTrackingCollectionTicketsCreate.ts +++ b/src/funcs/issueTrackingCollectionTicketsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionTicketsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 201, diff --git a/src/funcs/issueTrackingCollectionTicketsDelete.ts b/src/funcs/issueTrackingCollectionTicketsDelete.ts index bb6c7f87..f097eb29 100644 --- a/src/funcs/issueTrackingCollectionTicketsDelete.ts +++ b/src/funcs/issueTrackingCollectionTicketsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionTicketsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -200,13 +203,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/issueTrackingCollectionTicketsGet.ts b/src/funcs/issueTrackingCollectionTicketsGet.ts index 3b8a47b1..74b28436 100644 --- a/src/funcs/issueTrackingCollectionTicketsGet.ts +++ b/src/funcs/issueTrackingCollectionTicketsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionTicketsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -202,13 +205,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/issueTrackingCollectionTicketsList.ts b/src/funcs/issueTrackingCollectionTicketsList.ts index 97d5ee01..ee5304f2 100644 --- a/src/funcs/issueTrackingCollectionTicketsList.ts +++ b/src/funcs/issueTrackingCollectionTicketsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function issueTrackingCollectionTicketsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -225,13 +228,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -270,13 +274,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/issueTrackingCollectionTicketsUpdate.ts b/src/funcs/issueTrackingCollectionTicketsUpdate.ts index ce83b54e..85d00a5d 100644 --- a/src/funcs/issueTrackingCollectionTicketsUpdate.ts +++ b/src/funcs/issueTrackingCollectionTicketsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionTicketsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -201,13 +204,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/issueTrackingCollectionUsersGet.ts b/src/funcs/issueTrackingCollectionUsersGet.ts index c0d76ac1..7087322c 100644 --- a/src/funcs/issueTrackingCollectionUsersGet.ts +++ b/src/funcs/issueTrackingCollectionUsersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionUsersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -202,13 +205,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/issueTrackingCollectionUsersList.ts b/src/funcs/issueTrackingCollectionUsersList.ts index 3c19520e..134dfe1c 100644 --- a/src/funcs/issueTrackingCollectionUsersList.ts +++ b/src/funcs/issueTrackingCollectionUsersList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function issueTrackingCollectionUsersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -223,13 +226,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, @@ -268,13 +272,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/issueTrackingCollectionsGet.ts b/src/funcs/issueTrackingCollectionsGet.ts index d3fe03aa..fa954818 100644 --- a/src/funcs/issueTrackingCollectionsGet.ts +++ b/src/funcs/issueTrackingCollectionsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function issueTrackingCollectionsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.IssueTrackingCollectionsOneResponse$inboundSchema, { key: "GetCollectionResponse", diff --git a/src/funcs/issueTrackingCollectionsList.ts b/src/funcs/issueTrackingCollectionsList.ts index 264d9a88..75640dae 100644 --- a/src/funcs/issueTrackingCollectionsList.ts +++ b/src/funcs/issueTrackingCollectionsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function issueTrackingCollectionsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -213,13 +216,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.IssueTrackingCollectionsAllResponse$inboundSchema, { key: "GetCollectionsResponse", @@ -256,13 +260,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/smsMessagesCreate.ts b/src/funcs/smsMessagesCreate.ts index ba323f80..f407f594 100644 --- a/src/funcs/smsMessagesCreate.ts +++ b/src/funcs/smsMessagesCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function smsMessagesCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.SmsMessagesAddResponse$inboundSchema, { key: "CreateMessageResponse", diff --git a/src/funcs/smsMessagesDelete.ts b/src/funcs/smsMessagesDelete.ts index 6c13d2e1..bfa26066 100644 --- a/src/funcs/smsMessagesDelete.ts +++ b/src/funcs/smsMessagesDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function smsMessagesDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.SmsMessagesDeleteResponse$inboundSchema, { key: "DeleteMessageResponse", diff --git a/src/funcs/smsMessagesGet.ts b/src/funcs/smsMessagesGet.ts index 146a7f7b..81ae9911 100644 --- a/src/funcs/smsMessagesGet.ts +++ b/src/funcs/smsMessagesGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function smsMessagesGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.SmsMessagesOneResponse$inboundSchema, { key: "GetMessageResponse", diff --git a/src/funcs/smsMessagesList.ts b/src/funcs/smsMessagesList.ts index 86670988..de1ba394 100644 --- a/src/funcs/smsMessagesList.ts +++ b/src/funcs/smsMessagesList.ts @@ -11,7 +11,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +20,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -50,13 +51,14 @@ export function smsMessagesList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -82,13 +84,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -201,13 +204,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.SmsMessagesAllResponse$inboundSchema, { key: "GetMessagesResponse", @@ -242,13 +246,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/smsMessagesUpdate.ts b/src/funcs/smsMessagesUpdate.ts index ec99dc06..7b0b38d6 100644 --- a/src/funcs/smsMessagesUpdate.ts +++ b/src/funcs/smsMessagesUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function smsMessagesUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.SmsMessagesUpdateResponse$inboundSchema, { key: "UpdateMessageResponse", diff --git a/src/funcs/vaultConnectionCustomMappingsList.ts b/src/funcs/vaultConnectionCustomMappingsList.ts index e30299cf..75c05295 100644 --- a/src/funcs/vaultConnectionCustomMappingsList.ts +++ b/src/funcs/vaultConnectionCustomMappingsList.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConnectionCustomMappingsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -200,13 +203,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/vaultConnectionSettingsList.ts b/src/funcs/vaultConnectionSettingsList.ts index fb56dddd..1b857018 100644 --- a/src/funcs/vaultConnectionSettingsList.ts +++ b/src/funcs/vaultConnectionSettingsList.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConnectionSettingsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -193,13 +196,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConnectionSettingsAllResponse$inboundSchema, { key: "GetConnectionResponse", diff --git a/src/funcs/vaultConnectionSettingsUpdate.ts b/src/funcs/vaultConnectionSettingsUpdate.ts index 2da5e113..91efc1a9 100644 --- a/src/funcs/vaultConnectionSettingsUpdate.ts +++ b/src/funcs/vaultConnectionSettingsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConnectionSettingsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -196,13 +199,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/vaultConnectionsDelete.ts b/src/funcs/vaultConnectionsDelete.ts index f9446b7b..ce1ce154 100644 --- a/src/funcs/vaultConnectionsDelete.ts +++ b/src/funcs/vaultConnectionsDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConnectionsDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.nil(204, operations.VaultConnectionsDeleteResponse$inboundSchema), M.jsonErr(400, errors.BadRequestResponse$inboundSchema), diff --git a/src/funcs/vaultConnectionsGet.ts b/src/funcs/vaultConnectionsGet.ts index cd60e7d0..6548f793 100644 --- a/src/funcs/vaultConnectionsGet.ts +++ b/src/funcs/vaultConnectionsGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConnectionsGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConnectionsOneResponse$inboundSchema, { key: "GetConnectionResponse", diff --git a/src/funcs/vaultConnectionsImports.ts b/src/funcs/vaultConnectionsImports.ts index c6a9f81c..02811b87 100644 --- a/src/funcs/vaultConnectionsImports.ts +++ b/src/funcs/vaultConnectionsImports.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConnectionsImports( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConnectionsImportResponse$inboundSchema, { key: "CreateConnectionResponse", diff --git a/src/funcs/vaultConnectionsList.ts b/src/funcs/vaultConnectionsList.ts index d770fd68..4e2d62aa 100644 --- a/src/funcs/vaultConnectionsList.ts +++ b/src/funcs/vaultConnectionsList.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -44,13 +45,14 @@ export function vaultConnectionsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -73,13 +75,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -184,13 +187,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConnectionsAllResponse$inboundSchema, { key: "GetConnectionsResponse", diff --git a/src/funcs/vaultConnectionsToken.ts b/src/funcs/vaultConnectionsToken.ts index 4f8fbc14..9aee89b8 100644 --- a/src/funcs/vaultConnectionsToken.ts +++ b/src/funcs/vaultConnectionsToken.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function vaultConnectionsToken( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -195,13 +198,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConnectionsTokenResponse$inboundSchema, { key: "GetConnectionResponse", diff --git a/src/funcs/vaultConnectionsUpdate.ts b/src/funcs/vaultConnectionsUpdate.ts index 2429617f..3d8212af 100644 --- a/src/funcs/vaultConnectionsUpdate.ts +++ b/src/funcs/vaultConnectionsUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConnectionsUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -190,13 +193,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConnectionsUpdateResponse$inboundSchema, { key: "UpdateConnectionResponse", diff --git a/src/funcs/vaultConsumerRequestCountsList.ts b/src/funcs/vaultConsumerRequestCountsList.ts index 77348f78..dd49b7cf 100644 --- a/src/funcs/vaultConsumerRequestCountsList.ts +++ b/src/funcs/vaultConsumerRequestCountsList.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConsumerRequestCountsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -186,13 +189,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json( 200, diff --git a/src/funcs/vaultConsumersCreate.ts b/src/funcs/vaultConsumersCreate.ts index dfdb72c2..1270f95d 100644 --- a/src/funcs/vaultConsumersCreate.ts +++ b/src/funcs/vaultConsumersCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConsumersCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -171,13 +174,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConsumersAddResponse$inboundSchema, { key: "CreateConsumerResponse", diff --git a/src/funcs/vaultConsumersDelete.ts b/src/funcs/vaultConsumersDelete.ts index 86e10b6d..7e25048e 100644 --- a/src/funcs/vaultConsumersDelete.ts +++ b/src/funcs/vaultConsumersDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConsumersDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -178,13 +181,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConsumersDeleteResponse$inboundSchema, { key: "DeleteConsumerResponse", diff --git a/src/funcs/vaultConsumersGet.ts b/src/funcs/vaultConsumersGet.ts index 6777f07b..d95f1c67 100644 --- a/src/funcs/vaultConsumersGet.ts +++ b/src/funcs/vaultConsumersGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConsumersGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -177,13 +180,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConsumersOneResponse$inboundSchema, { key: "GetConsumerResponse", diff --git a/src/funcs/vaultConsumersList.ts b/src/funcs/vaultConsumersList.ts index a840e9ec..d5737be7 100644 --- a/src/funcs/vaultConsumersList.ts +++ b/src/funcs/vaultConsumersList.ts @@ -11,7 +11,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +20,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -50,13 +51,14 @@ export function vaultConsumersList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -82,13 +84,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConsumersAllResponse$inboundSchema, { key: "GetConsumersResponse", @@ -230,13 +234,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/vaultConsumersUpdate.ts b/src/funcs/vaultConsumersUpdate.ts index 120471ec..fab4ac92 100644 --- a/src/funcs/vaultConsumersUpdate.ts +++ b/src/funcs/vaultConsumersUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultConsumersUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -181,13 +184,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultConsumersUpdateResponse$inboundSchema, { key: "UpdateConsumerResponse", diff --git a/src/funcs/vaultCreateCallbackState.ts b/src/funcs/vaultCreateCallbackState.ts index a50f29ba..27991085 100644 --- a/src/funcs/vaultCreateCallbackState.ts +++ b/src/funcs/vaultCreateCallbackState.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultCreateCallbackState( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -192,13 +195,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultCreateCallbackStateResponse$inboundSchema, { key: "CreateCallbackStateResponse", diff --git a/src/funcs/vaultCustomFieldsList.ts b/src/funcs/vaultCustomFieldsList.ts index f9c37dd8..5235ae36 100644 --- a/src/funcs/vaultCustomFieldsList.ts +++ b/src/funcs/vaultCustomFieldsList.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultCustomFieldsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -198,13 +201,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultCustomFieldsAllResponse$inboundSchema, { key: "GetCustomFieldsResponse", diff --git a/src/funcs/vaultCustomMappingsList.ts b/src/funcs/vaultCustomMappingsList.ts index 5abd7c48..17969b3f 100644 --- a/src/funcs/vaultCustomMappingsList.ts +++ b/src/funcs/vaultCustomMappingsList.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function vaultCustomMappingsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultCustomMappingsAllResponse$inboundSchema, { key: "GetCustomMappingsResponse", diff --git a/src/funcs/vaultLogsList.ts b/src/funcs/vaultLogsList.ts index 88ed7eee..d0269aa2 100644 --- a/src/funcs/vaultLogsList.ts +++ b/src/funcs/vaultLogsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function vaultLogsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -204,13 +207,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultLogsAllResponse$inboundSchema, { key: "GetLogsResponse", @@ -245,13 +249,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/vaultSessionsCreate.ts b/src/funcs/vaultSessionsCreate.ts index d7144ea4..ccb8cfbf 100644 --- a/src/funcs/vaultSessionsCreate.ts +++ b/src/funcs/vaultSessionsCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -45,13 +46,14 @@ export function vaultSessionsCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -74,13 +76,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -180,13 +183,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultSessionsCreateResponse$inboundSchema, { key: "CreateSessionResponse", diff --git a/src/funcs/vaultValidateConnectionState.ts b/src/funcs/vaultValidateConnectionState.ts index 5c58917a..a4180327 100644 --- a/src/funcs/vaultValidateConnectionState.ts +++ b/src/funcs/vaultValidateConnectionState.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -47,13 +48,14 @@ export function vaultValidateConnectionState( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -76,13 +78,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -197,13 +200,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.VaultValidateConnectionStateResponse$inboundSchema, { key: "ValidateConnectionStateResponse", diff --git a/src/funcs/webhookEventLogsList.ts b/src/funcs/webhookEventLogsList.ts index 9088bb13..6cde0649 100644 --- a/src/funcs/webhookEventLogsList.ts +++ b/src/funcs/webhookEventLogsList.ts @@ -16,7 +16,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -55,13 +56,14 @@ export function webhookEventLogsList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -87,13 +89,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -200,13 +203,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.WebhookEventLogsAllResponse$inboundSchema, { key: "GetWebhookEventLogsResponse", @@ -241,13 +245,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/webhookWebhooksCreate.ts b/src/funcs/webhookWebhooksCreate.ts index 09c0a559..1d88ee22 100644 --- a/src/funcs/webhookWebhooksCreate.ts +++ b/src/funcs/webhookWebhooksCreate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function webhookWebhooksCreate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -173,13 +176,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(201, operations.WebhookWebhooksAddResponse$inboundSchema, { key: "CreateWebhookResponse", diff --git a/src/funcs/webhookWebhooksDelete.ts b/src/funcs/webhookWebhooksDelete.ts index 86c71e84..1e733592 100644 --- a/src/funcs/webhookWebhooksDelete.ts +++ b/src/funcs/webhookWebhooksDelete.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function webhookWebhooksDelete( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -178,13 +181,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.WebhookWebhooksDeleteResponse$inboundSchema, { key: "DeleteWebhookResponse", diff --git a/src/funcs/webhookWebhooksGet.ts b/src/funcs/webhookWebhooksGet.ts index 88f83196..b57bec64 100644 --- a/src/funcs/webhookWebhooksGet.ts +++ b/src/funcs/webhookWebhooksGet.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function webhookWebhooksGet( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -177,13 +180,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.WebhookWebhooksOneResponse$inboundSchema, { key: "GetWebhookResponse", diff --git a/src/funcs/webhookWebhooksList.ts b/src/funcs/webhookWebhooksList.ts index c1c1c214..0b30f2a2 100644 --- a/src/funcs/webhookWebhooksList.ts +++ b/src/funcs/webhookWebhooksList.ts @@ -11,7 +11,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -20,6 +20,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -50,13 +51,14 @@ export function webhookWebhooksList( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } > @@ -82,13 +84,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, { cursor: string } >, @@ -189,13 +192,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.WebhookWebhooksAllResponse$inboundSchema, { key: "GetWebhooksResponse", @@ -230,13 +234,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > >; "~next"?: { cursor: string }; diff --git a/src/funcs/webhookWebhooksUpdate.ts b/src/funcs/webhookWebhooksUpdate.ts index 34d270a1..5121a582 100644 --- a/src/funcs/webhookWebhooksUpdate.ts +++ b/src/funcs/webhookWebhooksUpdate.ts @@ -10,7 +10,7 @@ import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; -import { APIError } from "../models/errors/apierror.js"; +import { ApideckError } from "../models/errors/apideckerror.js"; import { ConnectionError, InvalidRequestError, @@ -19,6 +19,7 @@ import { UnexpectedClientError, } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { APICall, APIPromise } from "../types/async.js"; @@ -42,13 +43,14 @@ export function webhookWebhooksUpdate( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError > > { return new APIPromise($do( @@ -71,13 +73,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >, APICall, ] @@ -181,13 +184,14 @@ async function $do( | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse - | APIError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError + | ApideckError + | ResponseValidationError + | ConnectionError | RequestAbortedError | RequestTimeoutError - | ConnectionError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError >( M.json(200, operations.WebhookWebhooksUpdateResponse$inboundSchema, { key: "UpdateWebhookResponse", diff --git a/src/lib/config.ts b/src/lib/config.ts index c7d1d505..c99c860a 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "10.17.2", - sdkVersion: "0.24.1", - genVersion: "2.618.0", - userAgent: "speakeasy-sdk/typescript 0.24.1 2.618.0 10.17.2 @apideck/unify", + sdkVersion: "0.25.0", + genVersion: "2.624.0", + userAgent: "speakeasy-sdk/typescript 0.25.0 2.624.0 10.17.2 @apideck/unify", } as const; diff --git a/src/lib/matchers.ts b/src/lib/matchers.ts index 2f1e3d16..f7392e5d 100644 --- a/src/lib/matchers.ts +++ b/src/lib/matchers.ts @@ -3,11 +3,10 @@ */ import { APIError } from "../models/errors/apierror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { ERR, OK, Result } from "../types/fp.js"; import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js"; import { isPlainObject } from "./is-plain-object.js"; -import { safeParse } from "./schemas.js"; export type Encoding = | "jsonl" @@ -182,13 +181,13 @@ export type MatchFunc = ( export function match( ...matchers: Array> -): MatchFunc { +): MatchFunc { return async function matchFunc( response: Response, request: Request, options?: { resultKey?: string; extraFields?: Record }, ): Promise< - [result: Result, raw: unknown] + [result: Result, raw: unknown] > { let raw: unknown; let matcher: Matcher | undefined; @@ -207,20 +206,22 @@ export function match( } if (!matcher) { - await discardResponseBody(response); return [{ ok: false, - error: new APIError("Unexpected API response status or content-type", { + error: new APIError("Unexpected Status or Content-Type", { response, request, + body: await response.text().catch(() => ""), }), }, raw]; } const encoding = matcher.enc; + let body = ""; switch (encoding) { case "json": - raw = await response.json(); + body = await response.text(); + raw = JSON.parse(body); break; case "jsonl": raw = response.body; @@ -232,16 +233,19 @@ export function match( raw = response.body; break; case "text": - raw = await response.text(); + body = await response.text(); + raw = body; break; case "sse": raw = response.body; break; case "nil": - raw = await discardResponseBody(response); + body = await response.text(); + raw = undefined; break; case "fail": - raw = await discardResponseBody(response); + body = await response.text(); + raw = undefined; break; default: encoding satisfies never; @@ -251,7 +255,7 @@ export function match( if (matcher.enc === "fail") { return [{ ok: false, - error: new APIError("API error occurred", { response, request }), + error: new APIError("API error occurred", { request, response, body }), }, raw]; } @@ -263,6 +267,9 @@ export function match( ...options?.extraFields, ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), ...(isPlainObject(raw) ? raw : null), + request$: request, + response$: response, + body$: body, }; } else if (resultKey) { data = { @@ -278,18 +285,20 @@ export function match( } if ("err" in matcher) { - const result = safeParse( + const result = safeParseResponse( data, (v: unknown) => matcher.schema.parse(v), "Response validation failed", + { request, response, body }, ); return [result.ok ? { ok: false, error: result.value } : result, raw]; } else { return [ - safeParse( + safeParseResponse( data, (v: unknown) => matcher.schema.parse(v), "Response validation failed", + { request, response, body }, ), raw, ]; @@ -312,25 +321,22 @@ export function unpackHeaders(headers: Headers): Record { return out; } -/** - * Discards the response body to free up resources. - * - * To learn why this is need, see the undici docs: - * https://undici.nodejs.org/#/?id=garbage-collection - */ -export async function discardResponseBody(res: Response) { - const reader = res.body?.getReader(); - if (reader == null) { - return; - } - +function safeParseResponse( + rawValue: Inp, + fn: (value: Inp) => Out, + errorMessage: string, + httpMeta: { response: Response; request: Request; body: string }, +): Result { try { - let done = false; - while (!done) { - const res = await reader.read(); - done = res.done; - } - } finally { - reader.releaseLock(); + return OK(fn(rawValue)); + } catch (err) { + return ERR( + new ResponseValidationError(errorMessage, { + cause: err, + rawValue, + rawMessage: errorMessage, + ...httpMeta, + }), + ); } } diff --git a/src/models/components/connectionimportdata.ts b/src/models/components/connectionimportdata.ts index bc1e6154..f74849da 100644 --- a/src/models/components/connectionimportdata.ts +++ b/src/models/components/connectionimportdata.ts @@ -27,17 +27,12 @@ export type Credentials = { expiresIn?: number | null | undefined; }; -/** - * Connection settings. Values will persist to `form_fields` with corresponding id - */ -export type Settings = {}; - export type ConnectionImportData = { credentials?: Credentials | undefined; /** * Connection settings. Values will persist to `form_fields` with corresponding id */ - settings?: Settings | null | undefined; + settings?: { [k: string]: any } | null | undefined; /** * Attach your own consumer specific metadata */ @@ -119,50 +114,6 @@ export function credentialsFromJSON( ); } -/** @internal */ -export const Settings$inboundSchema: z.ZodType< - Settings, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type Settings$Outbound = {}; - -/** @internal */ -export const Settings$outboundSchema: z.ZodType< - Settings$Outbound, - z.ZodTypeDef, - Settings -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Settings$ { - /** @deprecated use `Settings$inboundSchema` instead. */ - export const inboundSchema = Settings$inboundSchema; - /** @deprecated use `Settings$outboundSchema` instead. */ - export const outboundSchema = Settings$outboundSchema; - /** @deprecated use `Settings$Outbound` instead. */ - export type Outbound = Settings$Outbound; -} - -export function settingsToJSON(settings: Settings): string { - return JSON.stringify(Settings$outboundSchema.parse(settings)); -} - -export function settingsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Settings$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Settings' from JSON`, - ); -} - /** @internal */ export const ConnectionImportData$inboundSchema: z.ZodType< ConnectionImportData, @@ -170,14 +121,14 @@ export const ConnectionImportData$inboundSchema: z.ZodType< unknown > = z.object({ credentials: z.lazy(() => Credentials$inboundSchema).optional(), - settings: z.nullable(z.lazy(() => Settings$inboundSchema)).optional(), + settings: z.nullable(z.record(z.any())).optional(), metadata: z.nullable(z.record(z.any())).optional(), }); /** @internal */ export type ConnectionImportData$Outbound = { credentials?: Credentials$Outbound | undefined; - settings?: Settings$Outbound | null | undefined; + settings?: { [k: string]: any } | null | undefined; metadata?: { [k: string]: any } | null | undefined; }; @@ -188,7 +139,7 @@ export const ConnectionImportData$outboundSchema: z.ZodType< ConnectionImportData > = z.object({ credentials: z.lazy(() => Credentials$outboundSchema).optional(), - settings: z.nullable(z.lazy(() => Settings$outboundSchema)).optional(), + settings: z.nullable(z.record(z.any())).optional(), metadata: z.nullable(z.record(z.any())).optional(), }); diff --git a/src/models/components/session.ts b/src/models/components/session.ts index 3e7373f0..fedff792 100644 --- a/src/models/components/session.ts +++ b/src/models/components/session.ts @@ -31,7 +31,7 @@ export type AllowActions = ClosedEnum; /** * Settings to change the way the Vault is displayed. */ -export type SessionSettings = { +export type Settings = { /** * Provide the IDs of the Unified APIs you want to be visible. Leaving it empty or omitting this field will show all Unified APIs. */ @@ -132,7 +132,7 @@ export type Session = { /** * Settings to change the way the Vault is displayed. */ - settings?: SessionSettings | undefined; + settings?: Settings | undefined; /** * Theming options to change the look and feel of Vault. */ @@ -163,8 +163,8 @@ export namespace AllowActions$ { } /** @internal */ -export const SessionSettings$inboundSchema: z.ZodType< - SessionSettings, +export const Settings$inboundSchema: z.ZodType< + Settings, z.ZodTypeDef, unknown > = z.object({ @@ -196,7 +196,7 @@ export const SessionSettings$inboundSchema: z.ZodType< }); /** @internal */ -export type SessionSettings$Outbound = { +export type Settings$Outbound = { unified_apis?: Array | undefined; hide_resource_settings: boolean; sandbox_mode: boolean; @@ -211,10 +211,10 @@ export type SessionSettings$Outbound = { }; /** @internal */ -export const SessionSettings$outboundSchema: z.ZodType< - SessionSettings$Outbound, +export const Settings$outboundSchema: z.ZodType< + Settings$Outbound, z.ZodTypeDef, - SessionSettings + Settings > = z.object({ unifiedApis: z.array(UnifiedApiId$outboundSchema).optional(), hideResourceSettings: z.boolean().default(false), @@ -247,28 +247,26 @@ export const SessionSettings$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace SessionSettings$ { - /** @deprecated use `SessionSettings$inboundSchema` instead. */ - export const inboundSchema = SessionSettings$inboundSchema; - /** @deprecated use `SessionSettings$outboundSchema` instead. */ - export const outboundSchema = SessionSettings$outboundSchema; - /** @deprecated use `SessionSettings$Outbound` instead. */ - export type Outbound = SessionSettings$Outbound; +export namespace Settings$ { + /** @deprecated use `Settings$inboundSchema` instead. */ + export const inboundSchema = Settings$inboundSchema; + /** @deprecated use `Settings$outboundSchema` instead. */ + export const outboundSchema = Settings$outboundSchema; + /** @deprecated use `Settings$Outbound` instead. */ + export type Outbound = Settings$Outbound; } -export function sessionSettingsToJSON( - sessionSettings: SessionSettings, -): string { - return JSON.stringify(SessionSettings$outboundSchema.parse(sessionSettings)); +export function settingsToJSON(settings: Settings): string { + return JSON.stringify(Settings$outboundSchema.parse(settings)); } -export function sessionSettingsFromJSON( +export function settingsFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => SessionSettings$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SessionSettings' from JSON`, + (x) => Settings$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Settings' from JSON`, ); } @@ -363,7 +361,7 @@ export const Session$inboundSchema: z.ZodType = z.object({ consumer_metadata: ConsumerMetadata$inboundSchema.optional(), redirect_uri: z.string().optional(), - settings: z.lazy(() => SessionSettings$inboundSchema).optional(), + settings: z.lazy(() => Settings$inboundSchema).optional(), theme: z.lazy(() => Theme$inboundSchema).optional(), custom_consumer_settings: z.record(z.any()).optional(), }).transform((v) => { @@ -378,7 +376,7 @@ export const Session$inboundSchema: z.ZodType = export type Session$Outbound = { consumer_metadata?: ConsumerMetadata$Outbound | undefined; redirect_uri?: string | undefined; - settings?: SessionSettings$Outbound | undefined; + settings?: Settings$Outbound | undefined; theme?: Theme$Outbound | undefined; custom_consumer_settings?: { [k: string]: any } | undefined; }; @@ -391,7 +389,7 @@ export const Session$outboundSchema: z.ZodType< > = z.object({ consumerMetadata: ConsumerMetadata$outboundSchema.optional(), redirectUri: z.string().optional(), - settings: z.lazy(() => SessionSettings$outboundSchema).optional(), + settings: z.lazy(() => Settings$outboundSchema).optional(), theme: z.lazy(() => Theme$outboundSchema).optional(), customConsumerSettings: z.record(z.any()).optional(), }).transform((v) => { diff --git a/src/models/errors/apideckerror.ts b/src/models/errors/apideckerror.ts new file mode 100644 index 00000000..d7fc5871 --- /dev/null +++ b/src/models/errors/apideckerror.ts @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +/** The base class for all HTTP error responses */ +export class ApideckError extends Error { + /** HTTP meta data */ + public readonly httpMeta: { + response: Response; + request: Request; + body: string; + }; + + constructor( + message: string, + httpMeta: { + response: Response; + request: Request; + body: string; + }, + ) { + super(message); + this.httpMeta = httpMeta; + + this.name = "ApideckError"; + } +} diff --git a/src/models/errors/apierror.ts b/src/models/errors/apierror.ts index e0166ff2..08189335 100644 --- a/src/models/errors/apierror.ts +++ b/src/models/errors/apierror.ts @@ -2,20 +2,33 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -export class APIError extends Error { +import { ApideckError } from "./apideckerror.js"; + +/** The fallback error class if no more specific error class is matched */ +export class APIError extends ApideckError { constructor( message: string, - public readonly httpMeta: { + httpMeta: { response: Response; request: Request; + body: string; }, ) { - super( - `${message}: Status ${httpMeta.response.status} Content-Type ${ - httpMeta.response.headers.get("content-type") || "" - }`, - ); - + if (message) { + message += `: `; + } + message += `Status ${httpMeta.response.status}`; + const contentType = httpMeta.response.headers.get("content-type") || `""`; + if (contentType !== "application/json") { + message += ` Content-Type ${ + contentType.includes(" ") ? `"${contentType}"` : contentType + }`; + } + const body = httpMeta.body || `""`; + message += body.length > 100 ? "\n" : " "; + message += `Body ${body}`; + message = message.trim(); + super(message, httpMeta); this.name = "APIError"; } } diff --git a/src/models/errors/badrequestresponse.ts b/src/models/errors/badrequestresponse.ts index 8e0001e3..fdd112ba 100644 --- a/src/models/errors/badrequestresponse.ts +++ b/src/models/errors/badrequestresponse.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { ApideckError } from "./apideckerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** @@ -46,7 +47,7 @@ export type BadRequestResponseData = { /** * Bad Request */ -export class BadRequestResponse extends Error { +export class BadRequestResponse extends ApideckError { /** * HTTP status code */ @@ -71,11 +72,13 @@ export class BadRequestResponse extends Error { /** The original data that was passed to this error instance. */ data$: BadRequestResponseData; - constructor(err: BadRequestResponseData) { + constructor( + err: BadRequestResponseData, + httpMeta: { response: Response; request: Request; body: string }, + ) { const message = err.message || "API error occurred"; - super(message); + super(message, httpMeta); this.data$ = err; - if (err.statusCode != null) this.statusCode = err.statusCode; if (err.error != null) this.error = err.error; if (err.typeName != null) this.typeName = err.typeName; @@ -139,6 +142,9 @@ export const BadRequestResponse$inboundSchema: z.ZodType< message: z.string().optional(), detail: z.union([z.string(), z.record(z.any())]).optional(), ref: z.string().optional(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), }) .transform((v) => { const remapped = remap$(v, { @@ -146,7 +152,11 @@ export const BadRequestResponse$inboundSchema: z.ZodType< "type_name": "typeName", }); - return new BadRequestResponse(remapped); + return new BadRequestResponse(remapped, { + request: v.request$, + response: v.response$, + body: v.body$, + }); }); /** @internal */ diff --git a/src/models/errors/index.ts b/src/models/errors/index.ts index 88c5bfe3..58c20b4f 100644 --- a/src/models/errors/index.ts +++ b/src/models/errors/index.ts @@ -7,6 +7,7 @@ export * from "./badrequestresponse.js"; export * from "./httpclienterrors.js"; export * from "./notfoundresponse.js"; export * from "./paymentrequiredresponse.js"; +export * from "./responsevalidationerror.js"; export * from "./sdkvalidationerror.js"; export * from "./unauthorizedresponse.js"; export * from "./unprocessableresponse.js"; diff --git a/src/models/errors/notfoundresponse.ts b/src/models/errors/notfoundresponse.ts index 70e31d5f..a6e3d68b 100644 --- a/src/models/errors/notfoundresponse.ts +++ b/src/models/errors/notfoundresponse.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { ApideckError } from "./apideckerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** @@ -46,7 +47,7 @@ export type NotFoundResponseData = { /** * The specified resource was not found */ -export class NotFoundResponse extends Error { +export class NotFoundResponse extends ApideckError { /** * HTTP status code */ @@ -71,11 +72,13 @@ export class NotFoundResponse extends Error { /** The original data that was passed to this error instance. */ data$: NotFoundResponseData; - constructor(err: NotFoundResponseData) { + constructor( + err: NotFoundResponseData, + httpMeta: { response: Response; request: Request; body: string }, + ) { const message = err.message || "API error occurred"; - super(message); + super(message, httpMeta); this.data$ = err; - if (err.statusCode != null) this.statusCode = err.statusCode; if (err.error != null) this.error = err.error; if (err.typeName != null) this.typeName = err.typeName; @@ -146,6 +149,9 @@ export const NotFoundResponse$inboundSchema: z.ZodType< message: z.string().optional(), detail: z.union([z.string(), z.record(z.any())]).optional(), ref: z.string().optional(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), }) .transform((v) => { const remapped = remap$(v, { @@ -153,7 +159,11 @@ export const NotFoundResponse$inboundSchema: z.ZodType< "type_name": "typeName", }); - return new NotFoundResponse(remapped); + return new NotFoundResponse(remapped, { + request: v.request$, + response: v.response$, + body: v.body$, + }); }); /** @internal */ diff --git a/src/models/errors/paymentrequiredresponse.ts b/src/models/errors/paymentrequiredresponse.ts index 6e95c373..4638c796 100644 --- a/src/models/errors/paymentrequiredresponse.ts +++ b/src/models/errors/paymentrequiredresponse.ts @@ -4,6 +4,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; +import { ApideckError } from "./apideckerror.js"; /** * Payment Required @@ -38,7 +39,7 @@ export type PaymentRequiredResponseData = { /** * Payment Required */ -export class PaymentRequiredResponse extends Error { +export class PaymentRequiredResponse extends ApideckError { /** * HTTP status code */ @@ -63,11 +64,13 @@ export class PaymentRequiredResponse extends Error { /** The original data that was passed to this error instance. */ data$: PaymentRequiredResponseData; - constructor(err: PaymentRequiredResponseData) { + constructor( + err: PaymentRequiredResponseData, + httpMeta: { response: Response; request: Request; body: string }, + ) { const message = err.message || "API error occurred"; - super(message); + super(message, httpMeta); this.data$ = err; - if (err.statusCode != null) this.statusCode = err.statusCode; if (err.error != null) this.error = err.error; if (err.typeName != null) this.typeName = err.typeName; @@ -90,6 +93,9 @@ export const PaymentRequiredResponse$inboundSchema: z.ZodType< message: z.string().optional(), detail: z.string().optional(), ref: z.string().optional(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), }) .transform((v) => { const remapped = remap$(v, { @@ -97,7 +103,11 @@ export const PaymentRequiredResponse$inboundSchema: z.ZodType< "type_name": "typeName", }); - return new PaymentRequiredResponse(remapped); + return new PaymentRequiredResponse(remapped, { + request: v.request$, + response: v.response$, + body: v.body$, + }); }); /** @internal */ diff --git a/src/models/errors/responsevalidationerror.ts b/src/models/errors/responsevalidationerror.ts new file mode 100644 index 00000000..42c274df --- /dev/null +++ b/src/models/errors/responsevalidationerror.ts @@ -0,0 +1,50 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { ApideckError } from "./apideckerror.js"; +import { formatZodError } from "./sdkvalidationerror.js"; + +export class ResponseValidationError extends ApideckError { + /** + * The raw value that failed validation. + */ + public readonly rawValue: unknown; + + /** + * The raw message that failed validation. + */ + public readonly rawMessage: unknown; + + constructor( + message: string, + extra: { + response: Response; + request: Request; + body: string; + cause: unknown; + rawValue: unknown; + rawMessage: unknown; + }, + ) { + super(message, extra); + this.name = "ResponseValidationError"; + this.cause = extra.cause; + this.rawValue = extra.rawValue; + this.rawMessage = extra.rawMessage; + } + + /** + * Return a pretty-formatted error message if the underlying validation error + * is a ZodError or some other recognized error type, otherwise return the + * default error message. + */ + public pretty(): string { + if (this.cause instanceof z.ZodError) { + return `${this.rawMessage}\n${formatZodError(this.cause)}`; + } else { + return this.toString(); + } + } +} diff --git a/src/models/errors/sdkvalidationerror.ts b/src/models/errors/sdkvalidationerror.ts index 16929b9e..37face8a 100644 --- a/src/models/errors/sdkvalidationerror.ts +++ b/src/models/errors/sdkvalidationerror.ts @@ -15,6 +15,18 @@ export class SDKValidationError extends Error { */ public readonly rawMessage: unknown; + // Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError` + static override [Symbol.hasInstance]( + instance: unknown, + ): instance is SDKValidationError { + if (!(instance instanceof Error)) return false; + if (!("rawValue" in instance)) return false; + if (!("rawMessage" in instance)) return false; + if (!("pretty" in instance)) return false; + if (typeof instance.pretty !== "function") return false; + return true; + } + constructor(message: string, cause: unknown, rawValue: unknown) { super(`${message}: ${cause}`); this.name = "SDKValidationError"; diff --git a/src/models/errors/unauthorizedresponse.ts b/src/models/errors/unauthorizedresponse.ts index d597aa1a..98ff5252 100644 --- a/src/models/errors/unauthorizedresponse.ts +++ b/src/models/errors/unauthorizedresponse.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { ApideckError } from "./apideckerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** @@ -46,7 +47,7 @@ export type UnauthorizedResponseData = { /** * Unauthorized */ -export class UnauthorizedResponse extends Error { +export class UnauthorizedResponse extends ApideckError { /** * HTTP status code */ @@ -71,11 +72,13 @@ export class UnauthorizedResponse extends Error { /** The original data that was passed to this error instance. */ data$: UnauthorizedResponseData; - constructor(err: UnauthorizedResponseData) { + constructor( + err: UnauthorizedResponseData, + httpMeta: { response: Response; request: Request; body: string }, + ) { const message = err.message || "API error occurred"; - super(message); + super(message, httpMeta); this.data$ = err; - if (err.statusCode != null) this.statusCode = err.statusCode; if (err.error != null) this.error = err.error; if (err.typeName != null) this.typeName = err.typeName; @@ -146,6 +149,9 @@ export const UnauthorizedResponse$inboundSchema: z.ZodType< message: z.string().optional(), detail: z.union([z.string(), z.record(z.any())]).optional(), ref: z.string().optional(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), }) .transform((v) => { const remapped = remap$(v, { @@ -153,7 +159,11 @@ export const UnauthorizedResponse$inboundSchema: z.ZodType< "type_name": "typeName", }); - return new UnauthorizedResponse(remapped); + return new UnauthorizedResponse(remapped, { + request: v.request$, + response: v.response$, + body: v.body$, + }); }); /** @internal */ diff --git a/src/models/errors/unprocessableresponse.ts b/src/models/errors/unprocessableresponse.ts index dff4c4f5..f1e3dea4 100644 --- a/src/models/errors/unprocessableresponse.ts +++ b/src/models/errors/unprocessableresponse.ts @@ -6,6 +6,7 @@ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { ApideckError } from "./apideckerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** @@ -46,7 +47,7 @@ export type UnprocessableResponseData = { /** * Unprocessable */ -export class UnprocessableResponse extends Error { +export class UnprocessableResponse extends ApideckError { /** * HTTP status code */ @@ -71,11 +72,13 @@ export class UnprocessableResponse extends Error { /** The original data that was passed to this error instance. */ data$: UnprocessableResponseData; - constructor(err: UnprocessableResponseData) { + constructor( + err: UnprocessableResponseData, + httpMeta: { response: Response; request: Request; body: string }, + ) { const message = err.message || "API error occurred"; - super(message); + super(message, httpMeta); this.data$ = err; - if (err.statusCode != null) this.statusCode = err.statusCode; if (err.error != null) this.error = err.error; if (err.typeName != null) this.typeName = err.typeName; @@ -150,6 +153,9 @@ export const UnprocessableResponse$inboundSchema: z.ZodType< message: z.string().optional(), detail: z.union([z.string(), z.record(z.any())]).optional(), ref: z.string().optional(), + request$: z.instanceof(Request), + response$: z.instanceof(Response), + body$: z.string(), }) .transform((v) => { const remapped = remap$(v, { @@ -157,7 +163,11 @@ export const UnprocessableResponse$inboundSchema: z.ZodType< "type_name": "typeName", }); - return new UnprocessableResponse(remapped); + return new UnprocessableResponse(remapped, { + request: v.request$, + response: v.response$, + body: v.body$, + }); }); /** @internal */