Skip to content

Commit ae6e598

Browse files
authored
[create-pull-request] automated change
1 parent 1d21d32 commit ae6e598

File tree

5 files changed

+113
-4
lines changed

5 files changed

+113
-4
lines changed

openapi.yaml

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,42 @@ paths:
550550
schema:
551551
$ref: '#/components/schemas/NotFoundError'
552552
description: ''
553+
/dashboard/accounts/v2/organization/current/:
554+
get:
555+
operationId: get_current_organization
556+
summary: get current organization details
557+
parameters:
558+
- in: header
559+
name: X-Workspace
560+
schema:
561+
type: string
562+
description: Workspace unique_key
563+
required: true
564+
tags:
565+
- organization
566+
security:
567+
- OAuthAuthentication: []
568+
- SessionAuthentication: []
569+
- tokenAuth: []
570+
responses:
571+
'200':
572+
content:
573+
application/json:
574+
schema:
575+
$ref: '#/components/schemas/Organization'
576+
description: ''
577+
'401':
578+
content:
579+
application/json:
580+
schema:
581+
$ref: '#/components/schemas/UnauthenticatedError'
582+
description: ''
583+
'403':
584+
content:
585+
application/json:
586+
schema:
587+
$ref: '#/components/schemas/ForbiddenError'
588+
description: ''
553589
/dashboard/accounts/v2/subscription/addon_pricing_info/:
554590
get:
555591
operationId: addon_pricing_info
@@ -7934,6 +7970,13 @@ paths:
79347970
type: string
79357971
description: Workspace unique_key
79367972
required: true
7973+
- in: query
7974+
name: format
7975+
schema:
7976+
type: string
7977+
enum:
7978+
- json
7979+
- octet-stream
79377980
- in: path
79387981
name: id
79397982
schema:
@@ -7949,27 +7992,37 @@ paths:
79497992
responses:
79507993
'200':
79517994
content:
7952-
application/json:
7995+
application/octet-stream:
79537996
schema:
7954-
$ref: '#/components/schemas/Envelope'
7997+
type: string
7998+
format: binary
79557999
description: ''
79568000
'401':
79578001
content:
79588002
application/json:
79598003
schema:
79608004
$ref: '#/components/schemas/UnauthenticatedError'
8005+
application/octet-stream:
8006+
schema:
8007+
$ref: '#/components/schemas/UnauthenticatedError'
79618008
description: ''
79628009
'403':
79638010
content:
79648011
application/json:
79658012
schema:
79668013
$ref: '#/components/schemas/ForbiddenError'
8014+
application/octet-stream:
8015+
schema:
8016+
$ref: '#/components/schemas/ForbiddenError'
79678017
description: ''
79688018
'404':
79698019
content:
79708020
application/json:
79718021
schema:
79728022
$ref: '#/components/schemas/NotFoundError'
8023+
application/octet-stream:
8024+
schema:
8025+
$ref: '#/components/schemas/NotFoundError'
79738026
description: ''
79748027
/dashboard/esign/envelopes/{id}/recipient/{recipient_id}/:
79758028
put:
@@ -10814,6 +10867,21 @@ components:
1081410867
- account
1081510868
- id
1081610869
- name
10870+
Organization:
10871+
type: object
10872+
properties:
10873+
name:
10874+
type: string
10875+
readOnly: true
10876+
logo:
10877+
type: string
10878+
format: uri
10879+
readOnly: true
10880+
nullable: true
10881+
required:
10882+
- logo
10883+
- name
10884+
description: ''
1081710885
PaginatedAccountDeliveryList:
1081810886
type: object
1081910887
required:

src/api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export type { NotFoundError } from './models/NotFoundError';
8282
export type { NpsNextReminder } from './models/NpsNextReminder';
8383
export type { NpsRating } from './models/NpsRating';
8484
export type { OneDriveDelivery } from './models/OneDriveDelivery';
85+
export type { Organization } from './models/Organization';
8586
export type { PaginatedAccountDeliveryList } from './models/PaginatedAccountDeliveryList';
8687
export type { PaginatedBulkGenList } from './models/PaginatedBulkGenList';
8788
export type { PaginatedDocumentMergeHistoryList } from './models/PaginatedDocumentMergeHistoryList';
@@ -161,6 +162,7 @@ export { HistoryService } from './services/HistoryService';
161162
export { InvitationsService } from './services/InvitationsService';
162163
export { LinkedAccountsService } from './services/LinkedAccountsService';
163164
export { MergeHistoryService } from './services/MergeHistoryService';
165+
export { OrganizationService } from './services/OrganizationService';
164166
export { PermissionsService } from './services/PermissionsService';
165167
export { PersonalizationService } from './services/PersonalizationService';
166168
export { SubscriptionService } from './services/SubscriptionService';

src/api/models/Organization.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
export type Organization = {
6+
readonly name: string;
7+
readonly logo: string | null;
8+
};
9+

src/api/services/EsignService.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,23 +258,28 @@ export class EsignService {
258258

259259
/**
260260
* preview Envelope
261-
* @returns Envelope
261+
* @returns binary
262262
* @throws ApiError
263263
*/
264264
public static previewEnvelope({
265265
id,
266+
format,
266267
}: {
267268
/**
268269
* A unique integer value identifying this envelope.
269270
*/
270271
id: number,
271-
}): CancelablePromise<Envelope> {
272+
format?: 'json' | 'octet-stream',
273+
}): CancelablePromise<Blob> {
272274
return __request(OpenAPI, {
273275
method: 'GET',
274276
url: '/dashboard/esign/envelopes/{id}/preview/',
275277
path: {
276278
'id': id,
277279
},
280+
query: {
281+
'format': format,
282+
},
278283
});
279284
}
280285

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
import type { Organization } from '../models/Organization';
5+
6+
import type { CancelablePromise } from '../core/CancelablePromise';
7+
import { OpenAPI } from '../core/OpenAPI';
8+
import { request as __request } from '../core/request';
9+
import type { OmitReadonly } from '../core/utils/OmitReadonly';
10+
11+
export class OrganizationService {
12+
13+
/**
14+
* get current organization details
15+
* @returns Organization
16+
* @throws ApiError
17+
*/
18+
public static getCurrentOrganization(): CancelablePromise<Organization> {
19+
return __request(OpenAPI, {
20+
method: 'GET',
21+
url: '/dashboard/accounts/v2/organization/current/',
22+
});
23+
}
24+
25+
}

0 commit comments

Comments
 (0)