docspring-ts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +56 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/LICENSE +7 -0
- package/api/PDFApi.ts +2867 -0
- package/api/apis.ts +14 -0
- package/api.ts +3 -0
- package/git_push.sh +57 -0
- package/model/addFieldsData.ts +31 -0
- package/model/addFieldsTemplateResponse.ts +49 -0
- package/model/authenticationError.ts +42 -0
- package/model/authenticationSuccessResponse.ts +36 -0
- package/model/combinedSubmission.ts +111 -0
- package/model/combinedSubmissionAction.ts +79 -0
- package/model/combinedSubmissionData.ts +55 -0
- package/model/copyTemplateData.ts +37 -0
- package/model/createCombinedSubmissionResponse.ts +50 -0
- package/model/createCustomFileResponse.ts +49 -0
- package/model/createFolderData.ts +32 -0
- package/model/createFolderDataFolder.ts +37 -0
- package/model/createHtmlTemplateData.ts +32 -0
- package/model/createSubmissionBatchResponse.ts +63 -0
- package/model/createSubmissionBatchSubmissionsResponse.ts +51 -0
- package/model/createSubmissionDataRequestData.ts +122 -0
- package/model/createSubmissionDataRequestTokenResponse.ts +50 -0
- package/model/createSubmissionDataRequestTokenResponseToken.ts +49 -0
- package/model/createSubmissionResponse.ts +50 -0
- package/model/createTemplateFromUploadData.ts +32 -0
- package/model/deleteTemplateResponse.ts +43 -0
- package/model/folder.ts +49 -0
- package/model/fullTemplate.ts +267 -0
- package/model/fullTemplateDefaults.ts +43 -0
- package/model/htmlTemplateData.ts +138 -0
- package/model/invalidRequest.ts +42 -0
- package/model/listSubmissionsResponse.ts +44 -0
- package/model/modelError.ts +42 -0
- package/model/models.ts +403 -0
- package/model/moveFolderData.ts +31 -0
- package/model/moveTemplateData.ts +31 -0
- package/model/pendingTemplate.ts +134 -0
- package/model/renameFolderData.ts +31 -0
- package/model/submission.ts +156 -0
- package/model/submissionAction.ts +79 -0
- package/model/submissionBatch.ts +87 -0
- package/model/submissionBatchData.ts +50 -0
- package/model/submissionData.ts +80 -0
- package/model/submissionDataBatchRequest.ts +61 -0
- package/model/submissionDataRequest.ts +174 -0
- package/model/template.ts +152 -0
- package/model/templateData.ts +128 -0
- package/model/updateDataRequestResponse.ts +50 -0
- package/model/updateSubmissionDataRequestData.ts +122 -0
- package/model/updateTemplateData.ts +32 -0
- package/model/updateTemplateResponse.ts +43 -0
- package/model/uploadTemplateData.ts +145 -0
- package/model/uploadTemplateDataDocument.ts +49 -0
- package/model/uploadTemplateDataDocumentMetadata.ts +48 -0
- package/package.json +29 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1
|
|
3
|
+
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class Template {
|
|
16
|
+
'name': string | null;
|
|
17
|
+
'description': string | null;
|
|
18
|
+
'publicWebForm': boolean;
|
|
19
|
+
'publicSubmissions': boolean;
|
|
20
|
+
'expireSubmissions': boolean;
|
|
21
|
+
'expireAfter': number;
|
|
22
|
+
'expirationInterval': Template.ExpirationIntervalEnum;
|
|
23
|
+
'allowAdditionalProperties': boolean;
|
|
24
|
+
'editableSubmissions': boolean;
|
|
25
|
+
'locked': boolean;
|
|
26
|
+
'webhookUrl': string | null;
|
|
27
|
+
'slackWebhookUrl': string | null;
|
|
28
|
+
'redirectUrl': string | null;
|
|
29
|
+
'id': string;
|
|
30
|
+
'templateType': string;
|
|
31
|
+
'pageDimensions': Array<Array<number>> | null;
|
|
32
|
+
'documentUrl': string | null;
|
|
33
|
+
'permanentDocumentUrl': string | null;
|
|
34
|
+
'path': string;
|
|
35
|
+
'parentFolderId': string | null;
|
|
36
|
+
|
|
37
|
+
static discriminator: string | undefined = undefined;
|
|
38
|
+
|
|
39
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
40
|
+
{
|
|
41
|
+
"name": "name",
|
|
42
|
+
"baseName": "name",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "description",
|
|
47
|
+
"baseName": "description",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "publicWebForm",
|
|
52
|
+
"baseName": "public_web_form",
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "publicSubmissions",
|
|
57
|
+
"baseName": "public_submissions",
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "expireSubmissions",
|
|
62
|
+
"baseName": "expire_submissions",
|
|
63
|
+
"type": "boolean"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "expireAfter",
|
|
67
|
+
"baseName": "expire_after",
|
|
68
|
+
"type": "number"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "expirationInterval",
|
|
72
|
+
"baseName": "expiration_interval",
|
|
73
|
+
"type": "Template.ExpirationIntervalEnum"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "allowAdditionalProperties",
|
|
77
|
+
"baseName": "allow_additional_properties",
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "editableSubmissions",
|
|
82
|
+
"baseName": "editable_submissions",
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "locked",
|
|
87
|
+
"baseName": "locked",
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "webhookUrl",
|
|
92
|
+
"baseName": "webhook_url",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "slackWebhookUrl",
|
|
97
|
+
"baseName": "slack_webhook_url",
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "redirectUrl",
|
|
102
|
+
"baseName": "redirect_url",
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "id",
|
|
107
|
+
"baseName": "id",
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "templateType",
|
|
112
|
+
"baseName": "template_type",
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "pageDimensions",
|
|
117
|
+
"baseName": "page_dimensions",
|
|
118
|
+
"type": "Array<Array<number>>"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "documentUrl",
|
|
122
|
+
"baseName": "document_url",
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "permanentDocumentUrl",
|
|
127
|
+
"baseName": "permanent_document_url",
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "path",
|
|
132
|
+
"baseName": "path",
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "parentFolderId",
|
|
137
|
+
"baseName": "parent_folder_id",
|
|
138
|
+
"type": "string"
|
|
139
|
+
} ];
|
|
140
|
+
|
|
141
|
+
static getAttributeTypeMap() {
|
|
142
|
+
return Template.attributeTypeMap;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace Template {
|
|
147
|
+
export enum ExpirationIntervalEnum {
|
|
148
|
+
Minutes = <any> 'minutes',
|
|
149
|
+
Hours = <any> 'hours',
|
|
150
|
+
Days = <any> 'days'
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1
|
|
3
|
+
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class TemplateData {
|
|
16
|
+
'allowAdditionalProperties'?: boolean;
|
|
17
|
+
'description'?: string | null;
|
|
18
|
+
'editableSubmissions'?: boolean;
|
|
19
|
+
'expirationInterval'?: TemplateData.ExpirationIntervalEnum;
|
|
20
|
+
'expireAfter'?: number;
|
|
21
|
+
'expireSubmissions'?: boolean;
|
|
22
|
+
'footerHtml'?: string | null;
|
|
23
|
+
'headerHtml'?: string | null;
|
|
24
|
+
'html'?: string | null;
|
|
25
|
+
'name'?: string | null;
|
|
26
|
+
'publicSubmissions'?: boolean;
|
|
27
|
+
'publicWebForm'?: boolean;
|
|
28
|
+
'redirectUrl'?: string | null;
|
|
29
|
+
'scss'?: string | null;
|
|
30
|
+
'slackWebhookUrl'?: string | null;
|
|
31
|
+
'webhookUrl'?: string | null;
|
|
32
|
+
|
|
33
|
+
static discriminator: string | undefined = undefined;
|
|
34
|
+
|
|
35
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
36
|
+
{
|
|
37
|
+
"name": "allowAdditionalProperties",
|
|
38
|
+
"baseName": "allow_additional_properties",
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "description",
|
|
43
|
+
"baseName": "description",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "editableSubmissions",
|
|
48
|
+
"baseName": "editable_submissions",
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "expirationInterval",
|
|
53
|
+
"baseName": "expiration_interval",
|
|
54
|
+
"type": "TemplateData.ExpirationIntervalEnum"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "expireAfter",
|
|
58
|
+
"baseName": "expire_after",
|
|
59
|
+
"type": "number"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "expireSubmissions",
|
|
63
|
+
"baseName": "expire_submissions",
|
|
64
|
+
"type": "boolean"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "footerHtml",
|
|
68
|
+
"baseName": "footer_html",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "headerHtml",
|
|
73
|
+
"baseName": "header_html",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "html",
|
|
78
|
+
"baseName": "html",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "name",
|
|
83
|
+
"baseName": "name",
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "publicSubmissions",
|
|
88
|
+
"baseName": "public_submissions",
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "publicWebForm",
|
|
93
|
+
"baseName": "public_web_form",
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "redirectUrl",
|
|
98
|
+
"baseName": "redirect_url",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "scss",
|
|
103
|
+
"baseName": "scss",
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "slackWebhookUrl",
|
|
108
|
+
"baseName": "slack_webhook_url",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "webhookUrl",
|
|
113
|
+
"baseName": "webhook_url",
|
|
114
|
+
"type": "string"
|
|
115
|
+
} ];
|
|
116
|
+
|
|
117
|
+
static getAttributeTypeMap() {
|
|
118
|
+
return TemplateData.attributeTypeMap;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export namespace TemplateData {
|
|
123
|
+
export enum ExpirationIntervalEnum {
|
|
124
|
+
Minutes = <any> 'minutes',
|
|
125
|
+
Hours = <any> 'hours',
|
|
126
|
+
Days = <any> 'days'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1
|
|
3
|
+
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { SubmissionDataRequest } from './submissionDataRequest';
|
|
15
|
+
|
|
16
|
+
export class UpdateDataRequestResponse {
|
|
17
|
+
'status': UpdateDataRequestResponse.StatusEnum;
|
|
18
|
+
'errors'?: Array<string>;
|
|
19
|
+
'dataRequest': SubmissionDataRequest;
|
|
20
|
+
|
|
21
|
+
static discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "status",
|
|
26
|
+
"baseName": "status",
|
|
27
|
+
"type": "UpdateDataRequestResponse.StatusEnum"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "errors",
|
|
31
|
+
"baseName": "errors",
|
|
32
|
+
"type": "Array<string>"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "dataRequest",
|
|
36
|
+
"baseName": "data_request",
|
|
37
|
+
"type": "SubmissionDataRequest"
|
|
38
|
+
} ];
|
|
39
|
+
|
|
40
|
+
static getAttributeTypeMap() {
|
|
41
|
+
return UpdateDataRequestResponse.attributeTypeMap;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace UpdateDataRequestResponse {
|
|
46
|
+
export enum StatusEnum {
|
|
47
|
+
Success = <any> 'success',
|
|
48
|
+
Error = <any> 'error'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1
|
|
3
|
+
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class UpdateSubmissionDataRequestData {
|
|
16
|
+
'authPhoneNumberHash'?: string | null;
|
|
17
|
+
'authProvider'?: string | null;
|
|
18
|
+
'authSecondFactorType'?: UpdateSubmissionDataRequestData.AuthSecondFactorTypeEnum;
|
|
19
|
+
'authSessionIdHash'?: string | null;
|
|
20
|
+
'authSessionStartedAt'?: string | null;
|
|
21
|
+
'authType'?: UpdateSubmissionDataRequestData.AuthTypeEnum;
|
|
22
|
+
'authUserIdHash'?: string | null;
|
|
23
|
+
'authUsernameHash'?: string | null;
|
|
24
|
+
'email'?: string | null;
|
|
25
|
+
'fields'?: Array<string>;
|
|
26
|
+
'metadata'?: object;
|
|
27
|
+
'name'?: string | null;
|
|
28
|
+
'order'?: number;
|
|
29
|
+
|
|
30
|
+
static discriminator: string | undefined = undefined;
|
|
31
|
+
|
|
32
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
33
|
+
{
|
|
34
|
+
"name": "authPhoneNumberHash",
|
|
35
|
+
"baseName": "auth_phone_number_hash",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "authProvider",
|
|
40
|
+
"baseName": "auth_provider",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "authSecondFactorType",
|
|
45
|
+
"baseName": "auth_second_factor_type",
|
|
46
|
+
"type": "UpdateSubmissionDataRequestData.AuthSecondFactorTypeEnum"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "authSessionIdHash",
|
|
50
|
+
"baseName": "auth_session_id_hash",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "authSessionStartedAt",
|
|
55
|
+
"baseName": "auth_session_started_at",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "authType",
|
|
60
|
+
"baseName": "auth_type",
|
|
61
|
+
"type": "UpdateSubmissionDataRequestData.AuthTypeEnum"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "authUserIdHash",
|
|
65
|
+
"baseName": "auth_user_id_hash",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "authUsernameHash",
|
|
70
|
+
"baseName": "auth_username_hash",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "email",
|
|
75
|
+
"baseName": "email",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "fields",
|
|
80
|
+
"baseName": "fields",
|
|
81
|
+
"type": "Array<string>"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "metadata",
|
|
85
|
+
"baseName": "metadata",
|
|
86
|
+
"type": "object"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "name",
|
|
90
|
+
"baseName": "name",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "order",
|
|
95
|
+
"baseName": "order",
|
|
96
|
+
"type": "number"
|
|
97
|
+
} ];
|
|
98
|
+
|
|
99
|
+
static getAttributeTypeMap() {
|
|
100
|
+
return UpdateSubmissionDataRequestData.attributeTypeMap;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace UpdateSubmissionDataRequestData {
|
|
105
|
+
export enum AuthSecondFactorTypeEnum {
|
|
106
|
+
None = <any> 'none',
|
|
107
|
+
PhoneNumber = <any> 'phone_number',
|
|
108
|
+
Totp = <any> 'totp',
|
|
109
|
+
MobilePush = <any> 'mobile_push',
|
|
110
|
+
SecurityKey = <any> 'security_key',
|
|
111
|
+
Fingerprint = <any> 'fingerprint'
|
|
112
|
+
}
|
|
113
|
+
export enum AuthTypeEnum {
|
|
114
|
+
None = <any> 'none',
|
|
115
|
+
Password = <any> 'password',
|
|
116
|
+
Oauth = <any> 'oauth',
|
|
117
|
+
EmailLink = <any> 'email_link',
|
|
118
|
+
PhoneNumber = <any> 'phone_number',
|
|
119
|
+
Ldap = <any> 'ldap',
|
|
120
|
+
Saml = <any> 'saml'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1
|
|
3
|
+
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { TemplateData } from './templateData';
|
|
15
|
+
|
|
16
|
+
export class UpdateTemplateData {
|
|
17
|
+
'template': TemplateData;
|
|
18
|
+
|
|
19
|
+
static discriminator: string | undefined = undefined;
|
|
20
|
+
|
|
21
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
22
|
+
{
|
|
23
|
+
"name": "template",
|
|
24
|
+
"baseName": "template",
|
|
25
|
+
"type": "TemplateData"
|
|
26
|
+
} ];
|
|
27
|
+
|
|
28
|
+
static getAttributeTypeMap() {
|
|
29
|
+
return UpdateTemplateData.attributeTypeMap;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1
|
|
3
|
+
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class UpdateTemplateResponse {
|
|
16
|
+
'status': UpdateTemplateResponse.StatusEnum;
|
|
17
|
+
'errors'?: Array<string>;
|
|
18
|
+
|
|
19
|
+
static discriminator: string | undefined = undefined;
|
|
20
|
+
|
|
21
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
22
|
+
{
|
|
23
|
+
"name": "status",
|
|
24
|
+
"baseName": "status",
|
|
25
|
+
"type": "UpdateTemplateResponse.StatusEnum"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "errors",
|
|
29
|
+
"baseName": "errors",
|
|
30
|
+
"type": "Array<string>"
|
|
31
|
+
} ];
|
|
32
|
+
|
|
33
|
+
static getAttributeTypeMap() {
|
|
34
|
+
return UpdateTemplateResponse.attributeTypeMap;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace UpdateTemplateResponse {
|
|
39
|
+
export enum StatusEnum {
|
|
40
|
+
Success = <any> 'success',
|
|
41
|
+
Error = <any> 'error'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API v1
|
|
3
|
+
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { UploadTemplateDataDocument } from './uploadTemplateDataDocument';
|
|
15
|
+
|
|
16
|
+
export class UploadTemplateData {
|
|
17
|
+
'allowAdditionalProperties'?: boolean;
|
|
18
|
+
'description'?: string | null;
|
|
19
|
+
'document'?: UploadTemplateDataDocument;
|
|
20
|
+
'editableSubmissions'?: boolean;
|
|
21
|
+
'expirationInterval'?: UploadTemplateData.ExpirationIntervalEnum;
|
|
22
|
+
'expireAfter'?: number;
|
|
23
|
+
'expireSubmissions'?: boolean;
|
|
24
|
+
'footerHtml'?: string | null;
|
|
25
|
+
'headerHtml'?: string | null;
|
|
26
|
+
'html'?: string | null;
|
|
27
|
+
'name': string | null;
|
|
28
|
+
'publicSubmissions'?: boolean;
|
|
29
|
+
'publicWebForm'?: boolean;
|
|
30
|
+
'redirectUrl'?: string | null;
|
|
31
|
+
'scss'?: string | null;
|
|
32
|
+
'slackWebhookUrl'?: string | null;
|
|
33
|
+
'templateType'?: UploadTemplateData.TemplateTypeEnum;
|
|
34
|
+
'webhookUrl'?: string | null;
|
|
35
|
+
|
|
36
|
+
static discriminator: string | undefined = undefined;
|
|
37
|
+
|
|
38
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
39
|
+
{
|
|
40
|
+
"name": "allowAdditionalProperties",
|
|
41
|
+
"baseName": "allow_additional_properties",
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "description",
|
|
46
|
+
"baseName": "description",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "document",
|
|
51
|
+
"baseName": "document",
|
|
52
|
+
"type": "UploadTemplateDataDocument"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "editableSubmissions",
|
|
56
|
+
"baseName": "editable_submissions",
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "expirationInterval",
|
|
61
|
+
"baseName": "expiration_interval",
|
|
62
|
+
"type": "UploadTemplateData.ExpirationIntervalEnum"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "expireAfter",
|
|
66
|
+
"baseName": "expire_after",
|
|
67
|
+
"type": "number"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "expireSubmissions",
|
|
71
|
+
"baseName": "expire_submissions",
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "footerHtml",
|
|
76
|
+
"baseName": "footer_html",
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "headerHtml",
|
|
81
|
+
"baseName": "header_html",
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "html",
|
|
86
|
+
"baseName": "html",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "name",
|
|
91
|
+
"baseName": "name",
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "publicSubmissions",
|
|
96
|
+
"baseName": "public_submissions",
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "publicWebForm",
|
|
101
|
+
"baseName": "public_web_form",
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "redirectUrl",
|
|
106
|
+
"baseName": "redirect_url",
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "scss",
|
|
111
|
+
"baseName": "scss",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "slackWebhookUrl",
|
|
116
|
+
"baseName": "slack_webhook_url",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "templateType",
|
|
121
|
+
"baseName": "template_type",
|
|
122
|
+
"type": "UploadTemplateData.TemplateTypeEnum"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "webhookUrl",
|
|
126
|
+
"baseName": "webhook_url",
|
|
127
|
+
"type": "string"
|
|
128
|
+
} ];
|
|
129
|
+
|
|
130
|
+
static getAttributeTypeMap() {
|
|
131
|
+
return UploadTemplateData.attributeTypeMap;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export namespace UploadTemplateData {
|
|
136
|
+
export enum ExpirationIntervalEnum {
|
|
137
|
+
Minutes = <any> 'minutes',
|
|
138
|
+
Hours = <any> 'hours',
|
|
139
|
+
Days = <any> 'days'
|
|
140
|
+
}
|
|
141
|
+
export enum TemplateTypeEnum {
|
|
142
|
+
Pdf = <any> 'pdf',
|
|
143
|
+
Html = <any> 'html'
|
|
144
|
+
}
|
|
145
|
+
}
|