Skip to content

Commit

Permalink
Merge pull request #156 from apideck-libraries/generator-update
Browse files Browse the repository at this point in the history
Automated update by SDK Generator
  • Loading branch information
thim81 authored Oct 25, 2023
2 parents 0db4ffd + 37b2b25 commit 15de866
Show file tree
Hide file tree
Showing 710 changed files with 3,431 additions and 778 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ Open an [issue][3]!
[1]: https://apideck.com
[2]: https://developers.apideck.com/
[3]: https://github.com/apideck-libraries/node-sdk/issues/new
[4]: https://github.com/apideck-libraries/node-sdk/blob/master/LICENSE
[4]: https://github.com/apideck-libraries/node-sdk/blob/main/LICENSE
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apideck/node",
"version": "2.9.3",
"version": "3.0.0",
"description": "Apideck Node.js SDK",
"keywords": [
"apideck",
Expand Down
30 changes: 30 additions & 0 deletions src/gen/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ CreateConnectionResponse.md
CreateConsumerResponse.md
CreateContactResponse.md
CreateCreditNoteResponse.md
CreateCustomMappingRequest.md
CreateCustomMappingResponse.md
CreateCustomerResponse.md
CreateDepartmentResponse.md
CreateDriveGroupResponse.md
Expand Down Expand Up @@ -162,6 +164,8 @@ CrmApiTest.api.test.ts
CrmEventType.md
Currency.md
CustomField.md
CustomFieldFinder.md
CustomMapping.md
Customer.md
CustomersFilter.md
Deduction.md
Expand Down Expand Up @@ -290,7 +294,10 @@ GetCompanyInfoResponse.md
GetCompanyResponse.md
GetConnectionResponse.md
GetConnectionsResponse.md
GetConnectorResourceExampleResponse.md
GetConnectorResourceExampleResponseData.md
GetConnectorResourceResponse.md
GetConnectorResourceSchemaResponse.md
GetConnectorResponse.md
GetConnectorsResponse.md
GetConsumerResponse.md
Expand All @@ -300,6 +307,8 @@ GetContactResponse.md
GetContactsResponse.md
GetCreditNoteResponse.md
GetCreditNotesResponse.md
GetCustomFieldsResponse.md
GetCustomMappingResponse.md
GetCustomerResponse.md
GetCustomersResponse.md
GetDepartmentResponse.md
Expand Down Expand Up @@ -371,6 +380,8 @@ GetProductsResponse.md
GetProfitAndLossResponse.md
GetPurchaseOrderResponse.md
GetPurchaseOrdersResponse.md
GetResourceExampleResponse.md
GetResourceSchemaResponse.md
GetSharedLinkResponse.md
GetSharedLinksResponse.md
GetStoreResponse.md
Expand Down Expand Up @@ -513,10 +524,12 @@ RequestRate.md
ResolveWebhookEventRequest.md
ResolveWebhookEventsRequest.md
ResolveWebhookResponse.md
ResourceExample.md
ResourceStatus.md
Schedule.md
ScheduleWorkPattern.md
ScheduleWorkPatternOddWeeks.md
SchemaSupport.md
ServiceCharge.md
ServiceCharges.md
Session.md
Expand Down Expand Up @@ -566,6 +579,8 @@ UpdateConsumerRequest.md
UpdateConsumerResponse.md
UpdateContactResponse.md
UpdateCreditNoteResponse.md
UpdateCustomMappingRequest.md
UpdateCustomMappingResponse.md
UpdateCustomerResponse.md
UpdateDepartmentResponse.md
UpdateDriveGroupResponse.md
Expand Down Expand Up @@ -736,6 +751,8 @@ models/CreateConnectionResponse.ts
models/CreateConsumerResponse.ts
models/CreateContactResponse.ts
models/CreateCreditNoteResponse.ts
models/CreateCustomMappingRequest.ts
models/CreateCustomMappingResponse.ts
models/CreateCustomerResponse.ts
models/CreateDepartmentResponse.ts
models/CreateDriveGroupResponse.ts
Expand Down Expand Up @@ -786,6 +803,8 @@ models/CreditNote.ts
models/CrmEventType.ts
models/Currency.ts
models/CustomField.ts
models/CustomFieldFinder.ts
models/CustomMapping.ts
models/Customer.ts
models/CustomersFilter.ts
models/Deduction.ts
Expand Down Expand Up @@ -909,7 +928,10 @@ models/GetCompanyInfoResponse.ts
models/GetCompanyResponse.ts
models/GetConnectionResponse.ts
models/GetConnectionsResponse.ts
models/GetConnectorResourceExampleResponse.ts
models/GetConnectorResourceExampleResponseData.ts
models/GetConnectorResourceResponse.ts
models/GetConnectorResourceSchemaResponse.ts
models/GetConnectorResponse.ts
models/GetConnectorsResponse.ts
models/GetConsumerResponse.ts
Expand All @@ -919,6 +941,8 @@ models/GetContactResponse.ts
models/GetContactsResponse.ts
models/GetCreditNoteResponse.ts
models/GetCreditNotesResponse.ts
models/GetCustomFieldsResponse.ts
models/GetCustomMappingResponse.ts
models/GetCustomerResponse.ts
models/GetCustomersResponse.ts
models/GetDepartmentResponse.ts
Expand Down Expand Up @@ -990,6 +1014,8 @@ models/GetProductsResponse.ts
models/GetProfitAndLossResponse.ts
models/GetPurchaseOrderResponse.ts
models/GetPurchaseOrdersResponse.ts
models/GetResourceExampleResponse.ts
models/GetResourceSchemaResponse.ts
models/GetSharedLinkResponse.ts
models/GetSharedLinksResponse.ts
models/GetStoreResponse.ts
Expand Down Expand Up @@ -1125,10 +1151,12 @@ models/RequestRate.ts
models/ResolveWebhookEventRequest.ts
models/ResolveWebhookEventsRequest.ts
models/ResolveWebhookResponse.ts
models/ResourceExample.ts
models/ResourceStatus.ts
models/Schedule.ts
models/ScheduleWorkPattern.ts
models/ScheduleWorkPatternOddWeeks.ts
models/SchemaSupport.ts
models/ServiceCharge.ts
models/ServiceCharges.ts
models/Session.ts
Expand Down Expand Up @@ -1176,6 +1204,8 @@ models/UpdateConsumerRequest.ts
models/UpdateConsumerResponse.ts
models/UpdateContactResponse.ts
models/UpdateCreditNoteResponse.ts
models/UpdateCustomMappingRequest.ts
models/UpdateCustomMappingResponse.ts
models/UpdateCustomerResponse.ts
models/UpdateDepartmentResponse.ts
models/UpdateDriveGroupResponse.ts
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/AccountingApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/AtsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/ConnectorApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/CrmApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/EcommerceApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/FileStorageApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/HrisApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/IssueTrackingApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/LeadApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/PosApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/SmsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
87 changes: 86 additions & 1 deletion src/gen/apis/VaultApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -37,6 +37,8 @@ import {
GetConsumerResponseFromJSON,
GetConsumersResponse,
GetConsumersResponseFromJSON,
GetCustomFieldsResponse,
GetCustomFieldsResponseFromJSON,
GetLogsResponse,
GetLogsResponseFromJSON,
LogsFilter,
Expand Down Expand Up @@ -139,6 +141,14 @@ export interface VaultApiConsumersUpdateRequest {
appId?: string
}

export interface VaultApiCustomFieldsAllRequest {
unifiedApi: string
serviceId: string
resource: string
consumerId?: string
appId?: string
}

export interface VaultApiLogsAllRequest {
appId?: string
consumerId?: string
Expand Down Expand Up @@ -1033,6 +1043,81 @@ export class VaultApi extends runtime.BaseAPI {
return await response.value()
}

/**
* This endpoint returns an custom fields on a connection resource.
* Get resource custom fields
*/
async customFieldsAllRaw(
requestParameters: VaultApiCustomFieldsAllRequest,
initOverrides?: RequestInit
): Promise<runtime.ApiResponse<GetCustomFieldsResponse>> {
if (requestParameters.unifiedApi === null || requestParameters.unifiedApi === undefined) {
throw new runtime.RequiredError(
'unifiedApi',
'Required parameter requestParameters.unifiedApi was null or undefined when calling customFieldsAll.'
)
}

if (requestParameters.serviceId === null || requestParameters.serviceId === undefined) {
throw new runtime.RequiredError(
'serviceId',
'Required parameter requestParameters.serviceId was null or undefined when calling customFieldsAll.'
)
}

if (requestParameters.resource === null || requestParameters.resource === undefined) {
throw new runtime.RequiredError(
'resource',
'Required parameter requestParameters.resource was null or undefined when calling customFieldsAll.'
)
}

const queryParameters: any = {}

const headerParameters: runtime.HTTPHeaders = {}

if (requestParameters.consumerId !== undefined && requestParameters.consumerId !== null) {
headerParameters['x-apideck-consumer-id'] = String(requestParameters.consumerId)
}

if (requestParameters.appId !== undefined && requestParameters.appId !== null) {
headerParameters['x-apideck-app-id'] = String(requestParameters.appId)
}

if (this.configuration && this.configuration.apiKey) {
headerParameters['Authorization'] = this.configuration.apiKey('Authorization') // apiKey authentication
}

const response = await this.request(
{
path: `/vault/connections/{unified_api}/{service_id}/{resource}/custom-fields`
.replace(`{${'unified_api'}}`, encodeURIComponent(String(requestParameters.unifiedApi)))
.replace(`{${'service_id'}}`, encodeURIComponent(String(requestParameters.serviceId)))
.replace(`{${'resource'}}`, encodeURIComponent(String(requestParameters.resource))),
method: 'GET',
headers: headerParameters,
query: queryParameters
},
initOverrides
)

return new runtime.JSONApiResponse(response, jsonValue =>
GetCustomFieldsResponseFromJSON(jsonValue)
)
}

/**
* This endpoint returns an custom fields on a connection resource.
* Get resource custom fields
*/
async customFieldsAll(
requestParameters: VaultApiCustomFieldsAllRequest,
initOverrides?: RequestInit
): Promise<GetCustomFieldsResponse> {
const response = await this.customFieldsAllRaw(requestParameters, initOverrides)
return await response.value()
}

/**
* This endpoint includes all consumer request logs.
* Get all consumer request logs
Expand Down
2 changes: 1 addition & 1 deletion src/gen/apis/WebhookApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 9.9.3
* The version of the OpenAPI document: 10.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit 15de866

Please sign in to comment.