Skip to content

Commit 1d21d32

Browse files
[create-pull-request] automated change (#347)
Co-authored-by: ravalikab <[email protected]>
1 parent 2566bd5 commit 1d21d32

File tree

8 files changed

+122
-6
lines changed

8 files changed

+122
-6
lines changed

openapi.yaml

Lines changed: 83 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4954,6 +4954,52 @@ paths:
49544954
schema:
49554955
$ref: '#/components/schemas/NotFoundError'
49564956
description: ''
4957+
/dashboard/api/v2/templates/{id}/delivery_count/:
4958+
get:
4959+
operationId: get_template_delivery_count
4960+
summary: Get the count of deliveries linked to a template
4961+
parameters:
4962+
- in: header
4963+
name: X-Workspace
4964+
schema:
4965+
type: string
4966+
description: Workspace unique_key
4967+
required: true
4968+
- in: path
4969+
name: id
4970+
schema:
4971+
type: integer
4972+
description: A unique integer value identifying this document.
4973+
required: true
4974+
tags:
4975+
- templates
4976+
security:
4977+
- SessionAuthentication: []
4978+
responses:
4979+
'200':
4980+
content:
4981+
application/json:
4982+
schema:
4983+
$ref: '#/components/schemas/DeliveryCount'
4984+
description: ''
4985+
'401':
4986+
content:
4987+
application/json:
4988+
schema:
4989+
$ref: '#/components/schemas/UnauthenticatedError'
4990+
description: ''
4991+
'403':
4992+
content:
4993+
application/json:
4994+
schema:
4995+
$ref: '#/components/schemas/ForbiddenError'
4996+
description: ''
4997+
'404':
4998+
content:
4999+
application/json:
5000+
schema:
5001+
$ref: '#/components/schemas/NotFoundError'
5002+
description: ''
49575003
/dashboard/api/v2/templates/{id}/download/:
49585004
get:
49595005
operationId: download_template_file
@@ -8827,8 +8873,26 @@ components:
88278873
type: integer
88288874
readOnly: true
88298875
delivery_type:
8876+
enum:
8877+
- webhook
8878+
- azure_blob_storage
8879+
- box_drive
8880+
- signature
8881+
- docu_sign
8882+
- sign_now
8883+
- zoho_crm
8884+
- dropbox
8885+
- google_drive
8886+
- podio
8887+
- one_drive
8888+
- eversign
8889+
- hellosign
8890+
- aws_s3
8891+
- signable
8892+
- yousign
8893+
- email
8894+
- sftp
88308895
type: string
8831-
maxLength: 255
88328896
status:
88338897
enum:
88348898
- pending
@@ -8919,6 +8983,7 @@ components:
89198983
type: integer
89208984
nullable: true
89218985
required:
8986+
- folder
89228987
- title
89238988
description: ''
89248989
DeleteCurrentWorkspace:
@@ -8990,6 +9055,15 @@ components:
89909055
- type
89919056
- updated_at
89929057
- used_by
9058+
DeliveryCount:
9059+
type: object
9060+
properties:
9061+
delivery_count:
9062+
type: integer
9063+
description: Number of deliveries linked to the template
9064+
required:
9065+
- delivery_count
9066+
description: ''
89939067
DemoGraphic:
89949068
type: object
89959069
properties:
@@ -9049,6 +9123,7 @@ components:
90499123
email_address:
90509124
type: string
90519125
format: email
9126+
minLength: 5
90529127
country_code:
90539128
type: string
90549129
phone_number:
@@ -9179,7 +9254,13 @@ components:
91799254
type: string
91809255
nullable: true
91819256
maxLength: 255
9257+
created_time:
9258+
type: string
9259+
format: date-time
9260+
readOnly: true
9261+
nullable: true
91829262
required:
9263+
- created_time
91839264
- executed_deliveries
91849265
- id
91859266
- is_data_expired
@@ -11826,7 +11907,7 @@ components:
1182611907
folder:
1182711908
allOf:
1182811909
- $ref: '#/components/schemas/Folder'
11829-
readOnly: true
11910+
nullable: true
1183011911
title:
1183111912
type: string
1183211913
maxLength: 255
@@ -11879,7 +11960,6 @@ components:
1187911960
- created_by
1188011961
- created_time
1188111962
- deleted_time
11882-
- folder
1188311963
- id
1188411964
- title
1188511965
- type

src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export type { CopyTemplate } from './models/CopyTemplate';
3434
export type { CSMDetails } from './models/CSMDetails';
3535
export type { DeleteCurrentWorkspace } from './models/DeleteCurrentWorkspace';
3636
export type { DeliveryAccount } from './models/DeliveryAccount';
37+
export type { DeliveryCount } from './models/DeliveryCount';
3738
export type { DemoGraphic } from './models/DemoGraphic';
3839
export type { DocumentMergeHistory } from './models/DocumentMergeHistory';
3940
export type { DocumentMergeLink } from './models/DocumentMergeLink';

src/api/models/ChildDocumentMergeHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
export type ChildDocumentMergeHistory = {
66
readonly id: number;
7-
delivery_type: string;
7+
delivery_type: 'webhook' | 'azure_blob_storage' | 'box_drive' | 'signature' | 'docu_sign' | 'sign_now' | 'zoho_crm' | 'dropbox' | 'google_drive' | 'podio' | 'one_drive' | 'eversign' | 'hellosign' | 'aws_s3' | 'signable' | 'yousign' | 'email' | 'sftp';
88
status: 'pending' | 'success' | 'error';
99
message?: Record<string, any> | null;
1010
delivery?: number | null;

src/api/models/CopyTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
export type CopyTemplate = {
66
title: string;
7-
folder?: number | null;
7+
folder: number | null;
88
};
99

src/api/models/DeliveryCount.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
export type DeliveryCount = {
6+
/**
7+
* Number of deliveries linked to the template
8+
*/
9+
delivery_count: number;
10+
};
11+

src/api/models/DocumentMergeHistory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ export type DocumentMergeHistory = {
1313
readonly is_data_expired: boolean;
1414
readonly is_document_expired: boolean;
1515
created_file_name?: string | null;
16+
readonly created_time: string | null;
1617
};
1718

src/api/models/Template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { TemplateSettings } from './TemplateSettings';
88
export type Template = {
99
readonly id: number;
1010
preferences?: TemplateSettings;
11-
readonly folder: Folder;
11+
folder?: Folder | null;
1212
title: string;
1313
description?: string | null;
1414
readonly type: 'docx' | 'html' | 'fillable_pdf' | 'pptx' | 'xlsx' | 'g_document' | 'g_presentation' | 'g_spreadsheet';

src/api/services/TemplatesService.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* tslint:disable */
33
/* eslint-disable */
44
import type { CopyTemplate } from '../models/CopyTemplate';
5+
import type { DeliveryCount } from '../models/DeliveryCount';
56
import type { MoveTemplate } from '../models/MoveTemplate';
67
import type { MoveTemplateResponse } from '../models/MoveTemplateResponse';
78
import type { NewTemplate } from '../models/NewTemplate';
@@ -209,6 +210,28 @@ export class TemplatesService {
209210
});
210211
}
211212

213+
/**
214+
* Get the count of deliveries linked to a template
215+
* @returns DeliveryCount
216+
* @throws ApiError
217+
*/
218+
public static getTemplateDeliveryCount({
219+
id,
220+
}: {
221+
/**
222+
* A unique integer value identifying this document.
223+
*/
224+
id: number,
225+
}): CancelablePromise<DeliveryCount> {
226+
return __request(OpenAPI, {
227+
method: 'GET',
228+
url: '/dashboard/api/v2/templates/{id}/delivery_count/',
229+
path: {
230+
'id': id,
231+
},
232+
});
233+
}
234+
212235
/**
213236
* Download template file
214237
* @returns binary

0 commit comments

Comments
 (0)