Skip to content

Commit

Permalink
Automated update by SDK Generator (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsmr authored Jul 27, 2023
1 parent 9828bbd commit b399229
Show file tree
Hide file tree
Showing 606 changed files with 2,312 additions and 1,133 deletions.
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.7.1",
"version": "2.8.0",
"description": "Apideck Node.js SDK",
"keywords": [
"apideck",
Expand Down
14 changes: 10 additions & 4 deletions src/gen/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ EcommerceProductVariants.md
EcommerceStore.md
Email.md
Employee.md
EmployeeBankAccounts.md
EmployeeCompensation.md
EmployeeEmploymentRole.md
EmployeeJob.md
EmployeeManager.md
EmployeePayroll.md
EmployeePayrolls.md
EmployeeSchedules.md
EmployeeTeam.md
EmployeesFilter.md
EmployeesSort.md
EmploymentStatus.md
Expand Down Expand Up @@ -477,6 +477,7 @@ PassThroughQuery.md
Payment.md
PaymentAllocations.md
PaymentCard.md
PaymentFrequency.md
PaymentRequiredResponse.md
PaymentUnit.md
PaymentsFilter.md
Expand Down Expand Up @@ -537,6 +538,7 @@ Tags.md
Tax.md
TaxRate.md
TaxRatesFilter.md
Team.md
Tender.md
Ticket.md
TicketsSort.md
Expand Down Expand Up @@ -617,6 +619,7 @@ WalletDetails.md
Webhook.md
WebhookApi.md
WebhookApiTest.api.test.ts
WebhookEvent.md
WebhookEventLog.md
WebhookEventLogAttempts.md
WebhookEventLogService.md
Expand Down Expand Up @@ -858,13 +861,13 @@ models/EcommerceProductVariants.ts
models/EcommerceStore.ts
models/Email.ts
models/Employee.ts
models/EmployeeBankAccounts.ts
models/EmployeeCompensation.ts
models/EmployeeEmploymentRole.ts
models/EmployeeJob.ts
models/EmployeeManager.ts
models/EmployeePayroll.ts
models/EmployeePayrolls.ts
models/EmployeeSchedules.ts
models/EmployeeTeam.ts
models/EmployeesFilter.ts
models/EmployeesSort.ts
models/EmploymentStatus.ts
Expand Down Expand Up @@ -1088,6 +1091,7 @@ models/PassThroughQuery.ts
models/Payment.ts
models/PaymentAllocations.ts
models/PaymentCard.ts
models/PaymentFrequency.ts
models/PaymentRequiredResponse.ts
models/PaymentUnit.ts
models/PaymentsFilter.ts
Expand Down Expand Up @@ -1144,6 +1148,7 @@ models/Tags.ts
models/Tax.ts
models/TaxRate.ts
models/TaxRatesFilter.ts
models/Team.ts
models/Tender.ts
models/Ticket.ts
models/TicketsSort.ts
Expand Down Expand Up @@ -1220,6 +1225,7 @@ models/VaultEventType.ts
models/VirtualWebhooks.ts
models/WalletDetails.ts
models/Webhook.ts
models/WebhookEvent.ts
models/WebhookEventLog.ts
models/WebhookEventLogAttempts.ts
models/WebhookEventLogService.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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
99 changes: 98 additions & 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.7.6
* The version of the OpenAPI document: 9.8.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -211,6 +211,15 @@ export interface FileStorageApiFilesDownloadRequest {
fields?: string | null
}

export interface FileStorageApiFilesExportRequest {
id: string
format: string
consumerId?: string
appId?: string
serviceId?: string
fields?: string | null
}

export interface FileStorageApiFilesOneRequest {
id: string
consumerId?: string
Expand All @@ -227,6 +236,8 @@ export interface FileStorageApiFilesSearchRequest {
serviceId?: string
passThrough?: PassThroughQuery
fields?: string | null
cursor?: string | null
limit?: number
}

export interface FileStorageApiFilesUpdateRequest {
Expand Down Expand Up @@ -1312,6 +1323,84 @@ export class FileStorageApi extends runtime.BaseAPI {
return await response.value()
}

/**
* Export File
* Export File
*/
async filesExportRaw(
requestParameters: FileStorageApiFilesExportRequest,
initOverrides?: RequestInit
): Promise<runtime.ApiResponse<Blob>> {
if (requestParameters.id === null || requestParameters.id === undefined) {
throw new runtime.RequiredError(
'id',
'Required parameter requestParameters.id was null or undefined when calling filesExport.'
)
}

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

const queryParameters: any = {}

if (requestParameters.fields !== undefined) {
queryParameters['fields'] = requestParameters.fields
}

if (requestParameters.format !== undefined) {
queryParameters['format'] = requestParameters.format
}

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 (requestParameters.serviceId !== undefined && requestParameters.serviceId !== null) {
headerParameters['x-apideck-service-id'] = String(requestParameters.serviceId)
}

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

const response = await this.request(
{
path: `/file-storage/files/{id}/export`.replace(
`{${'id'}}`,
encodeURIComponent(String(requestParameters.id))
),
method: 'GET',
headers: headerParameters,
query: queryParameters
},
initOverrides
)

return new runtime.BlobApiResponse(response)
}

/**
* Export File
* Export File
*/
async filesExport(
requestParameters: FileStorageApiFilesExportRequest,
initOverrides?: RequestInit
): Promise<Blob> {
const response = await this.filesExportRaw(requestParameters, initOverrides)
return await response.value()
}

/**
* Get File
* Get File
Expand Down Expand Up @@ -1408,6 +1497,14 @@ export class FileStorageApi extends runtime.BaseAPI {
queryParameters['fields'] = requestParameters.fields
}

if (requestParameters.cursor !== undefined) {
queryParameters['cursor'] = requestParameters.cursor
}

if (requestParameters.limit !== undefined) {
queryParameters['limit'] = requestParameters.limit
}

const headerParameters: runtime.HTTPHeaders = {}

headerParameters['Content-Type'] = 'application/json'
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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.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.7.6
* The version of the OpenAPI document: 9.8.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/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.7.6
* The version of the OpenAPI document: 9.8.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/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.7.6
* The version of the OpenAPI document: 9.8.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit b399229

Please sign in to comment.