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,156 @@
|
|
|
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 { SubmissionAction } from './submissionAction';
|
|
15
|
+
import { SubmissionDataRequest } from './submissionDataRequest';
|
|
16
|
+
|
|
17
|
+
export class Submission {
|
|
18
|
+
'id': string;
|
|
19
|
+
'templateId'?: string;
|
|
20
|
+
'test': boolean;
|
|
21
|
+
'editable'?: boolean | null;
|
|
22
|
+
'expired': boolean;
|
|
23
|
+
'expiresAt'?: string | null;
|
|
24
|
+
'processedAt'?: string | null;
|
|
25
|
+
'state': Submission.StateEnum;
|
|
26
|
+
'data'?: object | null;
|
|
27
|
+
'metadata'?: object;
|
|
28
|
+
'truncatedText'?: object;
|
|
29
|
+
'pdfHash'?: string | null;
|
|
30
|
+
'downloadUrl'?: string | null;
|
|
31
|
+
'permanentDownloadUrl'?: string | null;
|
|
32
|
+
'batchId'?: string | null;
|
|
33
|
+
'dataRequests'?: Array<SubmissionDataRequest>;
|
|
34
|
+
'actions'?: Array<SubmissionAction>;
|
|
35
|
+
'source'?: string | null;
|
|
36
|
+
'referrer'?: string | null;
|
|
37
|
+
|
|
38
|
+
static discriminator: string | undefined = undefined;
|
|
39
|
+
|
|
40
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
41
|
+
{
|
|
42
|
+
"name": "id",
|
|
43
|
+
"baseName": "id",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "templateId",
|
|
48
|
+
"baseName": "template_id",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "test",
|
|
53
|
+
"baseName": "test",
|
|
54
|
+
"type": "boolean"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "editable",
|
|
58
|
+
"baseName": "editable",
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "expired",
|
|
63
|
+
"baseName": "expired",
|
|
64
|
+
"type": "boolean"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "expiresAt",
|
|
68
|
+
"baseName": "expires_at",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "processedAt",
|
|
73
|
+
"baseName": "processed_at",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "state",
|
|
78
|
+
"baseName": "state",
|
|
79
|
+
"type": "Submission.StateEnum"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "data",
|
|
83
|
+
"baseName": "data",
|
|
84
|
+
"type": "object"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "metadata",
|
|
88
|
+
"baseName": "metadata",
|
|
89
|
+
"type": "object"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "truncatedText",
|
|
93
|
+
"baseName": "truncated_text",
|
|
94
|
+
"type": "object"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "pdfHash",
|
|
98
|
+
"baseName": "pdf_hash",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "downloadUrl",
|
|
103
|
+
"baseName": "download_url",
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "permanentDownloadUrl",
|
|
108
|
+
"baseName": "permanent_download_url",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "batchId",
|
|
113
|
+
"baseName": "batch_id",
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "dataRequests",
|
|
118
|
+
"baseName": "data_requests",
|
|
119
|
+
"type": "Array<SubmissionDataRequest>"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "actions",
|
|
123
|
+
"baseName": "actions",
|
|
124
|
+
"type": "Array<SubmissionAction>"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "source",
|
|
128
|
+
"baseName": "source",
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "referrer",
|
|
133
|
+
"baseName": "referrer",
|
|
134
|
+
"type": "string"
|
|
135
|
+
} ];
|
|
136
|
+
|
|
137
|
+
static getAttributeTypeMap() {
|
|
138
|
+
return Submission.attributeTypeMap;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export namespace Submission {
|
|
143
|
+
export enum StateEnum {
|
|
144
|
+
Pending = <any> 'pending',
|
|
145
|
+
Processed = <any> 'processed',
|
|
146
|
+
InvalidData = <any> 'invalid_data',
|
|
147
|
+
Error = <any> 'error',
|
|
148
|
+
ImageDownloadFailed = <any> 'image_download_failed',
|
|
149
|
+
ImageProcessingFailed = <any> 'image_processing_failed',
|
|
150
|
+
WaitingForDataRequests = <any> 'waiting_for_data_requests',
|
|
151
|
+
SyntaxError = <any> 'syntax_error',
|
|
152
|
+
AccountSuspended = <any> 'account_suspended',
|
|
153
|
+
LicenseRevoked = <any> 'license_revoked',
|
|
154
|
+
Accidental = <any> 'accidental'
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 SubmissionAction {
|
|
16
|
+
'id': string;
|
|
17
|
+
'integrationId': string | null;
|
|
18
|
+
'state': SubmissionAction.StateEnum;
|
|
19
|
+
'actionCategory': SubmissionAction.ActionCategoryEnum;
|
|
20
|
+
'actionType': SubmissionAction.ActionTypeEnum;
|
|
21
|
+
'resultData': object;
|
|
22
|
+
|
|
23
|
+
static discriminator: string | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "id",
|
|
28
|
+
"baseName": "id",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "integrationId",
|
|
33
|
+
"baseName": "integration_id",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "state",
|
|
38
|
+
"baseName": "state",
|
|
39
|
+
"type": "SubmissionAction.StateEnum"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "actionCategory",
|
|
43
|
+
"baseName": "action_category",
|
|
44
|
+
"type": "SubmissionAction.ActionCategoryEnum"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "actionType",
|
|
48
|
+
"baseName": "action_type",
|
|
49
|
+
"type": "SubmissionAction.ActionTypeEnum"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "resultData",
|
|
53
|
+
"baseName": "result_data",
|
|
54
|
+
"type": "object"
|
|
55
|
+
} ];
|
|
56
|
+
|
|
57
|
+
static getAttributeTypeMap() {
|
|
58
|
+
return SubmissionAction.attributeTypeMap;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace SubmissionAction {
|
|
63
|
+
export enum StateEnum {
|
|
64
|
+
Pending = <any> 'pending',
|
|
65
|
+
Processed = <any> 'processed',
|
|
66
|
+
Failed = <any> 'failed',
|
|
67
|
+
Error = <any> 'error'
|
|
68
|
+
}
|
|
69
|
+
export enum ActionCategoryEnum {
|
|
70
|
+
Notification = <any> 'notification',
|
|
71
|
+
FileUpload = <any> 'file_upload'
|
|
72
|
+
}
|
|
73
|
+
export enum ActionTypeEnum {
|
|
74
|
+
Webhook = <any> 'webhook',
|
|
75
|
+
SlackWebhook = <any> 'slack_webhook',
|
|
76
|
+
Email = <any> 'email',
|
|
77
|
+
AwsS3Upload = <any> 'aws_s3_upload'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { Submission } from './submission';
|
|
15
|
+
|
|
16
|
+
export class SubmissionBatch {
|
|
17
|
+
'id': string;
|
|
18
|
+
'totalCount': number;
|
|
19
|
+
'pendingCount': number;
|
|
20
|
+
'errorCount': number;
|
|
21
|
+
'completionPercentage': number;
|
|
22
|
+
'state': SubmissionBatch.StateEnum;
|
|
23
|
+
'processedAt': string | null;
|
|
24
|
+
'metadata': object;
|
|
25
|
+
'submissions'?: Array<Submission>;
|
|
26
|
+
|
|
27
|
+
static discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
30
|
+
{
|
|
31
|
+
"name": "id",
|
|
32
|
+
"baseName": "id",
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "totalCount",
|
|
37
|
+
"baseName": "total_count",
|
|
38
|
+
"type": "number"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "pendingCount",
|
|
42
|
+
"baseName": "pending_count",
|
|
43
|
+
"type": "number"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "errorCount",
|
|
47
|
+
"baseName": "error_count",
|
|
48
|
+
"type": "number"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "completionPercentage",
|
|
52
|
+
"baseName": "completion_percentage",
|
|
53
|
+
"type": "number"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "state",
|
|
57
|
+
"baseName": "state",
|
|
58
|
+
"type": "SubmissionBatch.StateEnum"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "processedAt",
|
|
62
|
+
"baseName": "processed_at",
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "metadata",
|
|
67
|
+
"baseName": "metadata",
|
|
68
|
+
"type": "object"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "submissions",
|
|
72
|
+
"baseName": "submissions",
|
|
73
|
+
"type": "Array<Submission>"
|
|
74
|
+
} ];
|
|
75
|
+
|
|
76
|
+
static getAttributeTypeMap() {
|
|
77
|
+
return SubmissionBatch.attributeTypeMap;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export namespace SubmissionBatch {
|
|
82
|
+
export enum StateEnum {
|
|
83
|
+
Pending = <any> 'pending',
|
|
84
|
+
Processed = <any> 'processed',
|
|
85
|
+
Error = <any> 'error'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -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 { SubmissionDataBatchRequest } from './submissionDataBatchRequest';
|
|
15
|
+
|
|
16
|
+
export class SubmissionBatchData {
|
|
17
|
+
'metadata'?: object;
|
|
18
|
+
'submissions': Array<SubmissionDataBatchRequest>;
|
|
19
|
+
'templateId'?: string | null;
|
|
20
|
+
'test'?: boolean;
|
|
21
|
+
|
|
22
|
+
static discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
25
|
+
{
|
|
26
|
+
"name": "metadata",
|
|
27
|
+
"baseName": "metadata",
|
|
28
|
+
"type": "object"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "submissions",
|
|
32
|
+
"baseName": "submissions",
|
|
33
|
+
"type": "Array<SubmissionDataBatchRequest>"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "templateId",
|
|
37
|
+
"baseName": "template_id",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "test",
|
|
42
|
+
"baseName": "test",
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
} ];
|
|
45
|
+
|
|
46
|
+
static getAttributeTypeMap() {
|
|
47
|
+
return SubmissionBatchData.attributeTypeMap;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { CreateSubmissionDataRequestData } from './createSubmissionDataRequestData';
|
|
15
|
+
|
|
16
|
+
export class SubmissionData {
|
|
17
|
+
'css'?: string;
|
|
18
|
+
'data': object;
|
|
19
|
+
'dataRequests'?: Array<CreateSubmissionDataRequestData>;
|
|
20
|
+
'expiresIn'?: number;
|
|
21
|
+
'fieldOverrides'?: object;
|
|
22
|
+
'html'?: string;
|
|
23
|
+
'metadata'?: object;
|
|
24
|
+
'password'?: string;
|
|
25
|
+
'test'?: boolean;
|
|
26
|
+
|
|
27
|
+
static discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
30
|
+
{
|
|
31
|
+
"name": "css",
|
|
32
|
+
"baseName": "css",
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "data",
|
|
37
|
+
"baseName": "data",
|
|
38
|
+
"type": "object"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "dataRequests",
|
|
42
|
+
"baseName": "data_requests",
|
|
43
|
+
"type": "Array<CreateSubmissionDataRequestData>"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "expiresIn",
|
|
47
|
+
"baseName": "expires_in",
|
|
48
|
+
"type": "number"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "fieldOverrides",
|
|
52
|
+
"baseName": "field_overrides",
|
|
53
|
+
"type": "object"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "html",
|
|
57
|
+
"baseName": "html",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "metadata",
|
|
62
|
+
"baseName": "metadata",
|
|
63
|
+
"type": "object"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "password",
|
|
67
|
+
"baseName": "password",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "test",
|
|
72
|
+
"baseName": "test",
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
} ];
|
|
75
|
+
|
|
76
|
+
static getAttributeTypeMap() {
|
|
77
|
+
return SubmissionData.attributeTypeMap;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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 SubmissionDataBatchRequest {
|
|
16
|
+
'css'?: string;
|
|
17
|
+
'data': object;
|
|
18
|
+
'html'?: string;
|
|
19
|
+
'metadata'?: object;
|
|
20
|
+
'templateId': string | null;
|
|
21
|
+
'test'?: boolean;
|
|
22
|
+
|
|
23
|
+
static discriminator: string | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "css",
|
|
28
|
+
"baseName": "css",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "data",
|
|
33
|
+
"baseName": "data",
|
|
34
|
+
"type": "object"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "html",
|
|
38
|
+
"baseName": "html",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "metadata",
|
|
43
|
+
"baseName": "metadata",
|
|
44
|
+
"type": "object"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "templateId",
|
|
48
|
+
"baseName": "template_id",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "test",
|
|
53
|
+
"baseName": "test",
|
|
54
|
+
"type": "boolean"
|
|
55
|
+
} ];
|
|
56
|
+
|
|
57
|
+
static getAttributeTypeMap() {
|
|
58
|
+
return SubmissionDataBatchRequest.attributeTypeMap;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,174 @@
|
|
|
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 SubmissionDataRequest {
|
|
16
|
+
'id': string;
|
|
17
|
+
'submissionId'?: string;
|
|
18
|
+
'name': string | null;
|
|
19
|
+
'email': string | null;
|
|
20
|
+
'order': number;
|
|
21
|
+
'sortOrder': number;
|
|
22
|
+
'fields': Array<string> | null;
|
|
23
|
+
'metadata': object;
|
|
24
|
+
'state': SubmissionDataRequest.StateEnum;
|
|
25
|
+
'viewedAt'?: string | null;
|
|
26
|
+
'completedAt'?: string | null;
|
|
27
|
+
'authType'?: SubmissionDataRequest.AuthTypeEnum;
|
|
28
|
+
'authSecondFactorType'?: SubmissionDataRequest.AuthSecondFactorTypeEnum;
|
|
29
|
+
'authProvider'?: string | null;
|
|
30
|
+
'authSessionStartedAt'?: string | null;
|
|
31
|
+
'authSessionIdHash'?: string | null;
|
|
32
|
+
'authUserIdHash'?: string | null;
|
|
33
|
+
'authUsernameHash'?: string | null;
|
|
34
|
+
'authPhoneNumberHash'?: string | null;
|
|
35
|
+
'ipAddress'?: string | null;
|
|
36
|
+
'userAgent'?: string | null;
|
|
37
|
+
|
|
38
|
+
static discriminator: string | undefined = undefined;
|
|
39
|
+
|
|
40
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
41
|
+
{
|
|
42
|
+
"name": "id",
|
|
43
|
+
"baseName": "id",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "submissionId",
|
|
48
|
+
"baseName": "submission_id",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "name",
|
|
53
|
+
"baseName": "name",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "email",
|
|
58
|
+
"baseName": "email",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "order",
|
|
63
|
+
"baseName": "order",
|
|
64
|
+
"type": "number"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "sortOrder",
|
|
68
|
+
"baseName": "sort_order",
|
|
69
|
+
"type": "number"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "fields",
|
|
73
|
+
"baseName": "fields",
|
|
74
|
+
"type": "Array<string>"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "metadata",
|
|
78
|
+
"baseName": "metadata",
|
|
79
|
+
"type": "object"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "state",
|
|
83
|
+
"baseName": "state",
|
|
84
|
+
"type": "SubmissionDataRequest.StateEnum"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "viewedAt",
|
|
88
|
+
"baseName": "viewed_at",
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "completedAt",
|
|
93
|
+
"baseName": "completed_at",
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "authType",
|
|
98
|
+
"baseName": "auth_type",
|
|
99
|
+
"type": "SubmissionDataRequest.AuthTypeEnum"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "authSecondFactorType",
|
|
103
|
+
"baseName": "auth_second_factor_type",
|
|
104
|
+
"type": "SubmissionDataRequest.AuthSecondFactorTypeEnum"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "authProvider",
|
|
108
|
+
"baseName": "auth_provider",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "authSessionStartedAt",
|
|
113
|
+
"baseName": "auth_session_started_at",
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "authSessionIdHash",
|
|
118
|
+
"baseName": "auth_session_id_hash",
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "authUserIdHash",
|
|
123
|
+
"baseName": "auth_user_id_hash",
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "authUsernameHash",
|
|
128
|
+
"baseName": "auth_username_hash",
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "authPhoneNumberHash",
|
|
133
|
+
"baseName": "auth_phone_number_hash",
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "ipAddress",
|
|
138
|
+
"baseName": "ip_address",
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "userAgent",
|
|
143
|
+
"baseName": "user_agent",
|
|
144
|
+
"type": "string"
|
|
145
|
+
} ];
|
|
146
|
+
|
|
147
|
+
static getAttributeTypeMap() {
|
|
148
|
+
return SubmissionDataRequest.attributeTypeMap;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export namespace SubmissionDataRequest {
|
|
153
|
+
export enum StateEnum {
|
|
154
|
+
Pending = <any> 'pending',
|
|
155
|
+
Completed = <any> 'completed'
|
|
156
|
+
}
|
|
157
|
+
export enum AuthTypeEnum {
|
|
158
|
+
None = <any> 'none',
|
|
159
|
+
Password = <any> 'password',
|
|
160
|
+
Oauth = <any> 'oauth',
|
|
161
|
+
EmailLink = <any> 'email_link',
|
|
162
|
+
PhoneNumber = <any> 'phone_number',
|
|
163
|
+
Ldap = <any> 'ldap',
|
|
164
|
+
Saml = <any> 'saml'
|
|
165
|
+
}
|
|
166
|
+
export enum AuthSecondFactorTypeEnum {
|
|
167
|
+
None = <any> 'none',
|
|
168
|
+
PhoneNumber = <any> 'phone_number',
|
|
169
|
+
Totp = <any> 'totp',
|
|
170
|
+
MobilePush = <any> 'mobile_push',
|
|
171
|
+
SecurityKey = <any> 'security_key',
|
|
172
|
+
Fingerprint = <any> 'fingerprint'
|
|
173
|
+
}
|
|
174
|
+
}
|