docspring-ts 1.0.1 → 2.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/README.md +80 -0
- package/dist/apis/PDFApi.d.ts +121 -0
- package/dist/apis/PDFApi.js +3423 -0
- package/dist/apis/PDFApi.js.map +1 -0
- package/dist/apis/baseapi.d.ts +18 -0
- package/dist/apis/baseapi.js +46 -0
- package/dist/apis/baseapi.js.map +1 -0
- package/dist/apis/exception.d.ts +10 -0
- package/dist/apis/exception.js +32 -0
- package/dist/apis/exception.js.map +1 -0
- package/dist/auth/auth.d.ts +36 -0
- package/dist/auth/auth.js +31 -0
- package/dist/auth/auth.js.map +1 -0
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +22 -0
- package/dist/configuration.js.map +1 -0
- package/dist/http/http.d.ts +68 -0
- package/dist/http/http.js +261 -0
- package/dist/http/http.js.map +1 -0
- package/dist/http/isomorphic-fetch.d.ts +6 -0
- package/dist/http/isomorphic-fetch.js +45 -0
- package/dist/http/isomorphic-fetch.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware.d.ts +16 -0
- package/dist/middleware.js +18 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models/AddFieldsData.d.ts +20 -0
- package/dist/{model/addFieldsData.js → models/AddFieldsData.js} +4 -2
- package/dist/models/AddFieldsData.js.map +1 -0
- package/dist/models/BatchGeneratePdfs201Response.d.ts +29 -0
- package/dist/models/BatchGeneratePdfs201Response.js +52 -0
- package/dist/models/BatchGeneratePdfs201Response.js.map +1 -0
- package/dist/{model/combinePdfsData.d.ts → models/CombinePdfsData.d.ts} +10 -4
- package/dist/{model/combinePdfsData.js → models/CombinePdfsData.js} +14 -7
- package/dist/models/CombinePdfsData.js.map +1 -0
- package/dist/models/CombinedSubmission.d.ts +39 -0
- package/dist/{model/combinedSubmission.js → models/CombinedSubmission.js} +53 -36
- package/dist/models/CombinedSubmission.js.map +1 -0
- package/dist/models/CombinedSubmissionAction.d.ts +41 -0
- package/dist/models/CombinedSubmissionAction.js +72 -0
- package/dist/models/CombinedSubmissionAction.js.map +1 -0
- package/dist/{model/combinedSubmissionData.d.ts → models/CombinedSubmissionData.d.ts} +9 -3
- package/dist/{model/combinedSubmissionData.js → models/CombinedSubmissionData.js} +12 -6
- package/dist/models/CombinedSubmissionData.js.map +1 -0
- package/dist/models/CopyTemplateOptions.d.ts +21 -0
- package/dist/models/CopyTemplateOptions.js +29 -0
- package/dist/models/CopyTemplateOptions.js.map +1 -0
- package/dist/models/CreateCombinedSubmissionResponse.d.ts +27 -0
- package/dist/{model/createCombinedSubmissionResponse.js → models/CreateCombinedSubmissionResponse.js} +18 -17
- package/dist/models/CreateCombinedSubmissionResponse.js.map +1 -0
- package/dist/{model/createCustomFileData.d.ts → models/CreateCustomFileData.d.ts} +8 -2
- package/dist/{model/createCustomFileData.js → models/CreateCustomFileData.js} +4 -2
- package/dist/models/CreateCustomFileData.js.map +1 -0
- package/dist/models/CreateCustomFileResponse.d.ts +27 -0
- package/dist/{model/createCustomFileResponse.js → models/CreateCustomFileResponse.js} +18 -17
- package/dist/models/CreateCustomFileResponse.js.map +1 -0
- package/dist/models/CreateFolderData.d.ts +20 -0
- package/dist/{model/createFolderData.js → models/CreateFolderData.js} +4 -2
- package/dist/models/CreateFolderData.js.map +1 -0
- package/dist/models/CreateHtmlSubmissionData.d.ts +28 -0
- package/dist/models/CreateHtmlSubmissionData.js +71 -0
- package/dist/models/CreateHtmlSubmissionData.js.map +1 -0
- package/dist/models/CreateHtmlTemplate.d.ts +20 -0
- package/dist/models/CreateHtmlTemplate.js +23 -0
- package/dist/models/CreateHtmlTemplate.js.map +1 -0
- package/dist/models/CreatePdfSubmissionData.d.ts +28 -0
- package/dist/models/CreatePdfSubmissionData.js +65 -0
- package/dist/models/CreatePdfSubmissionData.js.map +1 -0
- package/dist/models/CreatePdfTemplate.d.ts +20 -0
- package/dist/models/CreatePdfTemplate.js +23 -0
- package/dist/models/CreatePdfTemplate.js.map +1 -0
- package/dist/models/CreateSubmissionDataRequestData.d.ts +41 -0
- package/dist/models/CreateSubmissionDataRequestData.js +66 -0
- package/dist/models/CreateSubmissionDataRequestData.js.map +1 -0
- package/dist/models/CreateSubmissionDataRequestEventRequest.d.ts +40 -0
- package/dist/models/CreateSubmissionDataRequestEventRequest.js +50 -0
- package/dist/models/CreateSubmissionDataRequestEventRequest.js.map +1 -0
- package/dist/models/CreateSubmissionDataRequestEventResponse.d.ts +27 -0
- package/dist/models/CreateSubmissionDataRequestEventResponse.js +40 -0
- package/dist/models/CreateSubmissionDataRequestEventResponse.js.map +1 -0
- package/dist/models/CreateSubmissionDataRequestResponse.d.ts +27 -0
- package/dist/models/CreateSubmissionDataRequestResponse.js +40 -0
- package/dist/models/CreateSubmissionDataRequestResponse.js.map +1 -0
- package/dist/models/CreateSubmissionDataRequestTokenResponse.d.ts +27 -0
- package/dist/models/CreateSubmissionDataRequestTokenResponse.js +40 -0
- package/dist/models/CreateSubmissionDataRequestTokenResponse.js.map +1 -0
- package/dist/models/CreateSubmissionResponse.d.ts +27 -0
- package/dist/{model/createSubmissionResponse.js → models/CreateSubmissionResponse.js} +18 -17
- package/dist/models/CreateSubmissionResponse.js.map +1 -0
- package/dist/models/CustomFile.d.ts +21 -0
- package/dist/models/CustomFile.js +29 -0
- package/dist/models/CustomFile.js.map +1 -0
- package/dist/models/ErrorResponse.d.ts +24 -0
- package/dist/models/ErrorResponse.js +33 -0
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/Folder.d.ts +23 -0
- package/dist/{model/folder.js → models/Folder.js} +10 -5
- package/dist/models/Folder.js.map +1 -0
- package/dist/models/JsonSchema.d.ts +28 -0
- package/dist/models/JsonSchema.js +71 -0
- package/dist/models/JsonSchema.js.map +1 -0
- package/dist/{model/listSubmissionsResponse.d.ts → models/ListSubmissionsResponse.d.ts} +9 -3
- package/dist/{model/listSubmissionsResponse.js → models/ListSubmissionsResponse.js} +8 -4
- package/dist/models/ListSubmissionsResponse.js.map +1 -0
- package/dist/{model/moveFolderData.d.ts → models/MoveFolderData.d.ts} +8 -2
- package/dist/{model/moveFolderData.js → models/MoveFolderData.js} +4 -2
- package/dist/models/MoveFolderData.js.map +1 -0
- package/dist/{model/moveTemplateData.d.ts → models/MoveTemplateData.d.ts} +8 -2
- package/dist/{model/moveTemplateData.js → models/MoveTemplateData.js} +4 -2
- package/dist/models/MoveTemplateData.js.map +1 -0
- package/dist/models/MultipleErrorsResponse.d.ts +24 -0
- package/dist/models/MultipleErrorsResponse.js +33 -0
- package/dist/models/MultipleErrorsResponse.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +57 -0
- package/dist/models/ObjectSerializer.js +459 -0
- package/dist/models/ObjectSerializer.js.map +1 -0
- package/dist/{model/renameFolderData.d.ts → models/RenameFolderData.d.ts} +8 -2
- package/dist/{model/renameFolderData.js → models/RenameFolderData.js} +4 -2
- package/dist/models/RenameFolderData.js.map +1 -0
- package/dist/models/Submission.d.ts +64 -0
- package/dist/models/Submission.js +182 -0
- package/dist/models/Submission.js.map +1 -0
- package/dist/models/SubmissionAction.d.ts +41 -0
- package/dist/models/SubmissionAction.js +72 -0
- package/dist/models/SubmissionAction.js.map +1 -0
- package/dist/models/SubmissionBatch.d.ts +32 -0
- package/dist/{model/submissionBatch.js → models/SubmissionBatch.js} +37 -36
- package/dist/models/SubmissionBatch.js.map +1 -0
- package/dist/models/SubmissionBatchData.d.ts +22 -0
- package/dist/{model/submissionBatchData.js → models/SubmissionBatchData.js} +8 -9
- package/dist/models/SubmissionBatchData.js.map +1 -0
- package/dist/models/SubmissionBatchWithSubmissions.d.ts +34 -0
- package/dist/models/SubmissionBatchWithSubmissions.js +77 -0
- package/dist/models/SubmissionBatchWithSubmissions.js.map +1 -0
- package/dist/models/SubmissionDataRequest.d.ts +61 -0
- package/dist/models/SubmissionDataRequest.js +167 -0
- package/dist/models/SubmissionDataRequest.js.map +1 -0
- package/dist/models/SubmissionDataRequestEvent.d.ts +45 -0
- package/dist/models/SubmissionDataRequestEvent.js +80 -0
- package/dist/models/SubmissionDataRequestEvent.js.map +1 -0
- package/dist/models/SubmissionDataRequestShow.d.ts +62 -0
- package/dist/models/SubmissionDataRequestShow.js +173 -0
- package/dist/models/SubmissionDataRequestShow.js.map +1 -0
- package/dist/models/SubmissionDataRequestToken.d.ts +23 -0
- package/dist/models/SubmissionDataRequestToken.js +41 -0
- package/dist/models/SubmissionDataRequestToken.js.map +1 -0
- package/dist/models/SubmissionPreview.d.ts +55 -0
- package/dist/models/SubmissionPreview.js +157 -0
- package/dist/models/SubmissionPreview.js.map +1 -0
- package/dist/models/SuccessErrorResponse.d.ts +25 -0
- package/dist/models/SuccessErrorResponse.js +34 -0
- package/dist/models/SuccessErrorResponse.js.map +1 -0
- package/dist/models/SuccessMultipleErrorsResponse.d.ts +25 -0
- package/dist/models/SuccessMultipleErrorsResponse.js +34 -0
- package/dist/models/SuccessMultipleErrorsResponse.js.map +1 -0
- package/dist/{model/fullTemplate.d.ts → models/Template.d.ts} +59 -43
- package/dist/models/Template.js +306 -0
- package/dist/models/Template.js.map +1 -0
- package/dist/models/TemplateAddFieldsResponse.d.ts +26 -0
- package/dist/models/TemplateAddFieldsResponse.js +40 -0
- package/dist/models/TemplateAddFieldsResponse.js.map +1 -0
- package/dist/models/TemplatePreview.d.ts +66 -0
- package/dist/models/TemplatePreview.js +246 -0
- package/dist/models/TemplatePreview.js.map +1 -0
- package/dist/models/UpdateHtmlTemplate.d.ts +20 -0
- package/dist/models/UpdateHtmlTemplate.js +23 -0
- package/dist/models/UpdateHtmlTemplate.js.map +1 -0
- package/dist/models/UpdateSubmissionDataRequestData.d.ts +32 -0
- package/dist/models/UpdateSubmissionDataRequestData.js +51 -0
- package/dist/models/UpdateSubmissionDataRequestData.js.map +1 -0
- package/dist/models/UploadPresignResponse.d.ts +26 -0
- package/dist/models/UploadPresignResponse.js +45 -0
- package/dist/models/UploadPresignResponse.js.map +1 -0
- package/dist/models/all.d.ts +48 -0
- package/dist/models/all.js +65 -0
- package/dist/models/all.js.map +1 -0
- package/dist/rxjsStub.d.ts +10 -0
- package/dist/rxjsStub.js +33 -0
- package/dist/rxjsStub.js.map +1 -0
- package/dist/servers.d.ts +17 -0
- package/dist/servers.js +32 -0
- package/dist/servers.js.map +1 -0
- package/dist/types/ObjectParamAPI.d.ts +269 -0
- package/dist/types/ObjectParamAPI.js +252 -0
- package/dist/types/ObjectParamAPI.js.map +1 -0
- package/dist/types/ObservableAPI.d.ts +124 -0
- package/dist/types/ObservableAPI.js +1042 -0
- package/dist/types/ObservableAPI.js.map +1 -0
- package/dist/types/PromiseAPI.d.ts +121 -0
- package/dist/types/PromiseAPI.js +316 -0
- package/dist/types/PromiseAPI.js.map +1 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.js +29 -0
- package/dist/util.js.map +1 -0
- package/package.json +38 -26
- package/.openapi-generator/FILES +0 -58
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/CHANGELOG.md +0 -4
- package/api/PDFApi.ts +0 -2869
- package/api/apis.ts +0 -16
- package/api.ts +0 -4
- package/dist/api/PDFApi.d.ts +0 -351
- package/dist/api/PDFApi.js +0 -2838
- package/dist/api/PDFApi.js.map +0 -1
- package/dist/api/apis.d.ts +0 -12
- package/dist/api/apis.js +0 -49
- package/dist/api/apis.js.map +0 -1
- package/dist/api.d.ts +0 -2
- package/dist/api.js +0 -19
- package/dist/api.js.map +0 -1
- package/dist/model/addFieldsData.d.ts +0 -14
- package/dist/model/addFieldsData.js.map +0 -1
- package/dist/model/addFieldsTemplateResponse.d.ts +0 -22
- package/dist/model/addFieldsTemplateResponse.js +0 -39
- package/dist/model/addFieldsTemplateResponse.js.map +0 -1
- package/dist/model/authenticationError.d.ts +0 -20
- package/dist/model/authenticationError.js +0 -33
- package/dist/model/authenticationError.js.map +0 -1
- package/dist/model/authenticationSuccessResponse.d.ts +0 -19
- package/dist/model/authenticationSuccessResponse.js +0 -28
- package/dist/model/authenticationSuccessResponse.js.map +0 -1
- package/dist/model/combinePdfsData.js.map +0 -1
- package/dist/model/combinedSubmission.d.ts +0 -34
- package/dist/model/combinedSubmission.js.map +0 -1
- package/dist/model/combinedSubmissionAction.d.ts +0 -37
- package/dist/model/combinedSubmissionAction.js +0 -68
- package/dist/model/combinedSubmissionAction.js.map +0 -1
- package/dist/model/combinedSubmissionData.js.map +0 -1
- package/dist/model/copyTemplateData.d.ts +0 -15
- package/dist/model/copyTemplateData.js +0 -26
- package/dist/model/copyTemplateData.js.map +0 -1
- package/dist/model/createCombinedSubmissionResponse.d.ts +0 -23
- package/dist/model/createCombinedSubmissionResponse.js.map +0 -1
- package/dist/model/createCustomFileData.js.map +0 -1
- package/dist/model/createCustomFileResponse.d.ts +0 -22
- package/dist/model/createCustomFileResponse.js.map +0 -1
- package/dist/model/createFolderData.d.ts +0 -15
- package/dist/model/createFolderData.js.map +0 -1
- package/dist/model/createFolderDataFolder.d.ts +0 -15
- package/dist/model/createFolderDataFolder.js +0 -26
- package/dist/model/createFolderDataFolder.js.map +0 -1
- package/dist/model/createHtmlTemplateData.d.ts +0 -15
- package/dist/model/createHtmlTemplateData.js +0 -21
- package/dist/model/createHtmlTemplateData.js.map +0 -1
- package/dist/model/createSubmissionBatchResponse.d.ts +0 -26
- package/dist/model/createSubmissionBatchResponse.js +0 -49
- package/dist/model/createSubmissionBatchResponse.js.map +0 -1
- package/dist/model/createSubmissionBatchSubmissionsResponse.d.ts +0 -24
- package/dist/model/createSubmissionBatchSubmissionsResponse.js +0 -40
- package/dist/model/createSubmissionBatchSubmissionsResponse.js.map +0 -1
- package/dist/model/createSubmissionDataRequestData.d.ts +0 -45
- package/dist/model/createSubmissionDataRequestData.js +0 -103
- package/dist/model/createSubmissionDataRequestData.js.map +0 -1
- package/dist/model/createSubmissionDataRequestTokenResponse.d.ts +0 -23
- package/dist/model/createSubmissionDataRequestTokenResponse.js +0 -39
- package/dist/model/createSubmissionDataRequestTokenResponse.js.map +0 -1
- package/dist/model/createSubmissionDataRequestTokenResponseToken.d.ts +0 -17
- package/dist/model/createSubmissionDataRequestTokenResponseToken.js +0 -36
- package/dist/model/createSubmissionDataRequestTokenResponseToken.js.map +0 -1
- package/dist/model/createSubmissionResponse.d.ts +0 -23
- package/dist/model/createSubmissionResponse.js.map +0 -1
- package/dist/model/createTemplateFromUploadData.d.ts +0 -15
- package/dist/model/createTemplateFromUploadData.js +0 -21
- package/dist/model/createTemplateFromUploadData.js.map +0 -1
- package/dist/model/deleteTemplateResponse.d.ts +0 -21
- package/dist/model/deleteTemplateResponse.js +0 -34
- package/dist/model/deleteTemplateResponse.js.map +0 -1
- package/dist/model/folder.d.ts +0 -17
- package/dist/model/folder.js.map +0 -1
- package/dist/model/fullTemplate.js +0 -220
- package/dist/model/fullTemplate.js.map +0 -1
- package/dist/model/fullTemplateDefaults.d.ts +0 -16
- package/dist/model/fullTemplateDefaults.js +0 -31
- package/dist/model/fullTemplateDefaults.js.map +0 -1
- package/dist/model/htmlTemplateData.d.ts +0 -41
- package/dist/model/htmlTemplateData.js +0 -115
- package/dist/model/htmlTemplateData.js.map +0 -1
- package/dist/model/invalidRequest.d.ts +0 -20
- package/dist/model/invalidRequest.js +0 -33
- package/dist/model/invalidRequest.js.map +0 -1
- package/dist/model/listSubmissionsResponse.js.map +0 -1
- package/dist/model/modelError.d.ts +0 -20
- package/dist/model/modelError.js +0 -33
- package/dist/model/modelError.js.map +0 -1
- package/dist/model/models.d.ts +0 -96
- package/dist/model/models.js +0 -414
- package/dist/model/models.js.map +0 -1
- package/dist/model/moveFolderData.js.map +0 -1
- package/dist/model/moveTemplateData.js.map +0 -1
- package/dist/model/pendingTemplate.d.ts +0 -37
- package/dist/model/pendingTemplate.js +0 -110
- package/dist/model/pendingTemplate.js.map +0 -1
- package/dist/model/renameFolderData.js.map +0 -1
- package/dist/model/submission.d.ts +0 -49
- package/dist/model/submission.js +0 -128
- package/dist/model/submission.js.map +0 -1
- package/dist/model/submissionAction.d.ts +0 -37
- package/dist/model/submissionAction.js +0 -68
- package/dist/model/submissionAction.js.map +0 -1
- package/dist/model/submissionBatch.d.ts +0 -30
- package/dist/model/submissionBatch.js.map +0 -1
- package/dist/model/submissionBatchData.d.ts +0 -18
- package/dist/model/submissionBatchData.js.map +0 -1
- package/dist/model/submissionData.d.ts +0 -23
- package/dist/model/submissionData.js +0 -61
- package/dist/model/submissionData.js.map +0 -1
- package/dist/model/submissionDataBatchRequest.d.ts +0 -19
- package/dist/model/submissionDataBatchRequest.js +0 -46
- package/dist/model/submissionDataBatchRequest.js.map +0 -1
- package/dist/model/submissionDataRequest.d.ts +0 -57
- package/dist/model/submissionDataRequest.js +0 -148
- package/dist/model/submissionDataRequest.js.map +0 -1
- package/dist/model/template.d.ts +0 -40
- package/dist/model/template.js +0 -125
- package/dist/model/template.js.map +0 -1
- package/dist/model/templateData.d.ts +0 -36
- package/dist/model/templateData.js +0 -105
- package/dist/model/templateData.js.map +0 -1
- package/dist/model/updateDataRequestResponse.d.ts +0 -23
- package/dist/model/updateDataRequestResponse.js +0 -39
- package/dist/model/updateDataRequestResponse.js.map +0 -1
- package/dist/model/updateSubmissionDataRequestData.d.ts +0 -45
- package/dist/model/updateSubmissionDataRequestData.js +0 -103
- package/dist/model/updateSubmissionDataRequestData.js.map +0 -1
- package/dist/model/updateTemplateData.d.ts +0 -15
- package/dist/model/updateTemplateData.js +0 -21
- package/dist/model/updateTemplateData.js.map +0 -1
- package/dist/model/updateTemplateResponse.d.ts +0 -21
- package/dist/model/updateTemplateResponse.js +0 -34
- package/dist/model/updateTemplateResponse.js.map +0 -1
- package/dist/model/uploadTemplateData.d.ts +0 -43
- package/dist/model/uploadTemplateData.js +0 -120
- package/dist/model/uploadTemplateData.js.map +0 -1
- package/dist/model/uploadTemplateDataDocument.d.ts +0 -22
- package/dist/model/uploadTemplateDataDocument.js +0 -38
- package/dist/model/uploadTemplateDataDocument.js.map +0 -1
- package/dist/model/uploadTemplateDataDocumentMetadata.d.ts +0 -21
- package/dist/model/uploadTemplateDataDocumentMetadata.js +0 -38
- package/dist/model/uploadTemplateDataDocumentMetadata.js.map +0 -1
- package/git_push.sh +0 -57
- package/model/addFieldsData.ts +0 -31
- package/model/addFieldsTemplateResponse.ts +0 -49
- package/model/authenticationError.ts +0 -42
- package/model/authenticationSuccessResponse.ts +0 -36
- package/model/combinePdfsData.ts +0 -61
- package/model/combinedSubmission.ts +0 -111
- package/model/combinedSubmissionAction.ts +0 -79
- package/model/combinedSubmissionData.ts +0 -55
- package/model/copyTemplateData.ts +0 -37
- package/model/createCombinedSubmissionResponse.ts +0 -50
- package/model/createCustomFileData.ts +0 -31
- package/model/createCustomFileResponse.ts +0 -49
- package/model/createFolderData.ts +0 -32
- package/model/createFolderDataFolder.ts +0 -37
- package/model/createHtmlTemplateData.ts +0 -32
- package/model/createSubmissionBatchResponse.ts +0 -63
- package/model/createSubmissionBatchSubmissionsResponse.ts +0 -51
- package/model/createSubmissionDataRequestData.ts +0 -122
- package/model/createSubmissionDataRequestTokenResponse.ts +0 -50
- package/model/createSubmissionDataRequestTokenResponseToken.ts +0 -49
- package/model/createSubmissionResponse.ts +0 -50
- package/model/createTemplateFromUploadData.ts +0 -32
- package/model/deleteTemplateResponse.ts +0 -43
- package/model/folder.ts +0 -49
- package/model/fullTemplate.ts +0 -267
- package/model/fullTemplateDefaults.ts +0 -43
- package/model/htmlTemplateData.ts +0 -138
- package/model/invalidRequest.ts +0 -42
- package/model/listSubmissionsResponse.ts +0 -44
- package/model/modelError.ts +0 -42
- package/model/models.ts +0 -409
- package/model/moveFolderData.ts +0 -31
- package/model/moveTemplateData.ts +0 -31
- package/model/pendingTemplate.ts +0 -134
- package/model/renameFolderData.ts +0 -31
- package/model/submission.ts +0 -156
- package/model/submissionAction.ts +0 -79
- package/model/submissionBatch.ts +0 -87
- package/model/submissionBatchData.ts +0 -50
- package/model/submissionData.ts +0 -80
- package/model/submissionDataBatchRequest.ts +0 -61
- package/model/submissionDataRequest.ts +0 -174
- package/model/template.ts +0 -152
- package/model/templateData.ts +0 -128
- package/model/updateDataRequestResponse.ts +0 -50
- package/model/updateSubmissionDataRequestData.ts +0 -122
- package/model/updateTemplateData.ts +0 -32
- package/model/updateTemplateResponse.ts +0 -43
- package/model/uploadTemplateData.ts +0 -145
- package/model/uploadTemplateDataDocument.ts +0 -49
- package/model/uploadTemplateDataDocumentMetadata.ts +0 -48
- package/tsconfig.json +0 -25
package/model/models.ts
DELETED
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
import localVarRequest from 'request';
|
|
2
|
-
|
|
3
|
-
export * from './addFieldsData';
|
|
4
|
-
export * from './addFieldsTemplateResponse';
|
|
5
|
-
export * from './authenticationError';
|
|
6
|
-
export * from './authenticationSuccessResponse';
|
|
7
|
-
export * from './combinePdfsData';
|
|
8
|
-
export * from './combinedSubmission';
|
|
9
|
-
export * from './combinedSubmissionAction';
|
|
10
|
-
export * from './combinedSubmissionData';
|
|
11
|
-
export * from './copyTemplateData';
|
|
12
|
-
export * from './createCombinedSubmissionResponse';
|
|
13
|
-
export * from './createCustomFileData';
|
|
14
|
-
export * from './createCustomFileResponse';
|
|
15
|
-
export * from './createFolderData';
|
|
16
|
-
export * from './createFolderDataFolder';
|
|
17
|
-
export * from './createHtmlTemplateData';
|
|
18
|
-
export * from './createSubmissionBatchResponse';
|
|
19
|
-
export * from './createSubmissionBatchSubmissionsResponse';
|
|
20
|
-
export * from './createSubmissionDataRequestData';
|
|
21
|
-
export * from './createSubmissionDataRequestTokenResponse';
|
|
22
|
-
export * from './createSubmissionDataRequestTokenResponseToken';
|
|
23
|
-
export * from './createSubmissionResponse';
|
|
24
|
-
export * from './createTemplateFromUploadData';
|
|
25
|
-
export * from './deleteTemplateResponse';
|
|
26
|
-
export * from './folder';
|
|
27
|
-
export * from './fullTemplate';
|
|
28
|
-
export * from './fullTemplateDefaults';
|
|
29
|
-
export * from './htmlTemplateData';
|
|
30
|
-
export * from './invalidRequest';
|
|
31
|
-
export * from './listSubmissionsResponse';
|
|
32
|
-
export * from './modelError';
|
|
33
|
-
export * from './moveFolderData';
|
|
34
|
-
export * from './moveTemplateData';
|
|
35
|
-
export * from './pendingTemplate';
|
|
36
|
-
export * from './renameFolderData';
|
|
37
|
-
export * from './submission';
|
|
38
|
-
export * from './submissionAction';
|
|
39
|
-
export * from './submissionBatch';
|
|
40
|
-
export * from './submissionBatchData';
|
|
41
|
-
export * from './submissionData';
|
|
42
|
-
export * from './submissionDataBatchRequest';
|
|
43
|
-
export * from './submissionDataRequest';
|
|
44
|
-
export * from './template';
|
|
45
|
-
export * from './templateData';
|
|
46
|
-
export * from './updateDataRequestResponse';
|
|
47
|
-
export * from './updateSubmissionDataRequestData';
|
|
48
|
-
export * from './updateTemplateData';
|
|
49
|
-
export * from './updateTemplateResponse';
|
|
50
|
-
export * from './uploadTemplateData';
|
|
51
|
-
export * from './uploadTemplateDataDocument';
|
|
52
|
-
export * from './uploadTemplateDataDocumentMetadata';
|
|
53
|
-
|
|
54
|
-
import * as fs from 'fs';
|
|
55
|
-
|
|
56
|
-
export interface RequestDetailedFile {
|
|
57
|
-
value: Buffer;
|
|
58
|
-
options?: {
|
|
59
|
-
filename?: string;
|
|
60
|
-
contentType?: string;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
import { AddFieldsData } from './addFieldsData';
|
|
68
|
-
import { AddFieldsTemplateResponse } from './addFieldsTemplateResponse';
|
|
69
|
-
import { AuthenticationError } from './authenticationError';
|
|
70
|
-
import { AuthenticationSuccessResponse } from './authenticationSuccessResponse';
|
|
71
|
-
import { CombinePdfsData } from './combinePdfsData';
|
|
72
|
-
import { CombinedSubmission } from './combinedSubmission';
|
|
73
|
-
import { CombinedSubmissionAction } from './combinedSubmissionAction';
|
|
74
|
-
import { CombinedSubmissionData } from './combinedSubmissionData';
|
|
75
|
-
import { CopyTemplateData } from './copyTemplateData';
|
|
76
|
-
import { CreateCombinedSubmissionResponse } from './createCombinedSubmissionResponse';
|
|
77
|
-
import { CreateCustomFileData } from './createCustomFileData';
|
|
78
|
-
import { CreateCustomFileResponse } from './createCustomFileResponse';
|
|
79
|
-
import { CreateFolderData } from './createFolderData';
|
|
80
|
-
import { CreateFolderDataFolder } from './createFolderDataFolder';
|
|
81
|
-
import { CreateHtmlTemplateData } from './createHtmlTemplateData';
|
|
82
|
-
import { CreateSubmissionBatchResponse } from './createSubmissionBatchResponse';
|
|
83
|
-
import { CreateSubmissionBatchSubmissionsResponse } from './createSubmissionBatchSubmissionsResponse';
|
|
84
|
-
import { CreateSubmissionDataRequestData } from './createSubmissionDataRequestData';
|
|
85
|
-
import { CreateSubmissionDataRequestTokenResponse } from './createSubmissionDataRequestTokenResponse';
|
|
86
|
-
import { CreateSubmissionDataRequestTokenResponseToken } from './createSubmissionDataRequestTokenResponseToken';
|
|
87
|
-
import { CreateSubmissionResponse } from './createSubmissionResponse';
|
|
88
|
-
import { CreateTemplateFromUploadData } from './createTemplateFromUploadData';
|
|
89
|
-
import { DeleteTemplateResponse } from './deleteTemplateResponse';
|
|
90
|
-
import { Folder } from './folder';
|
|
91
|
-
import { FullTemplate } from './fullTemplate';
|
|
92
|
-
import { FullTemplateDefaults } from './fullTemplateDefaults';
|
|
93
|
-
import { HtmlTemplateData } from './htmlTemplateData';
|
|
94
|
-
import { InvalidRequest } from './invalidRequest';
|
|
95
|
-
import { ListSubmissionsResponse } from './listSubmissionsResponse';
|
|
96
|
-
import { ModelError } from './modelError';
|
|
97
|
-
import { MoveFolderData } from './moveFolderData';
|
|
98
|
-
import { MoveTemplateData } from './moveTemplateData';
|
|
99
|
-
import { PendingTemplate } from './pendingTemplate';
|
|
100
|
-
import { RenameFolderData } from './renameFolderData';
|
|
101
|
-
import { Submission } from './submission';
|
|
102
|
-
import { SubmissionAction } from './submissionAction';
|
|
103
|
-
import { SubmissionBatch } from './submissionBatch';
|
|
104
|
-
import { SubmissionBatchData } from './submissionBatchData';
|
|
105
|
-
import { SubmissionData } from './submissionData';
|
|
106
|
-
import { SubmissionDataBatchRequest } from './submissionDataBatchRequest';
|
|
107
|
-
import { SubmissionDataRequest } from './submissionDataRequest';
|
|
108
|
-
import { Template } from './template';
|
|
109
|
-
import { TemplateData } from './templateData';
|
|
110
|
-
import { UpdateDataRequestResponse } from './updateDataRequestResponse';
|
|
111
|
-
import { UpdateSubmissionDataRequestData } from './updateSubmissionDataRequestData';
|
|
112
|
-
import { UpdateTemplateData } from './updateTemplateData';
|
|
113
|
-
import { UpdateTemplateResponse } from './updateTemplateResponse';
|
|
114
|
-
import { UploadTemplateData } from './uploadTemplateData';
|
|
115
|
-
import { UploadTemplateDataDocument } from './uploadTemplateDataDocument';
|
|
116
|
-
import { UploadTemplateDataDocumentMetadata } from './uploadTemplateDataDocumentMetadata';
|
|
117
|
-
|
|
118
|
-
/* tslint:disable:no-unused-variable */
|
|
119
|
-
let primitives = [
|
|
120
|
-
"string",
|
|
121
|
-
"boolean",
|
|
122
|
-
"double",
|
|
123
|
-
"integer",
|
|
124
|
-
"long",
|
|
125
|
-
"float",
|
|
126
|
-
"number",
|
|
127
|
-
"any"
|
|
128
|
-
];
|
|
129
|
-
|
|
130
|
-
let enumsMap: {[index: string]: any} = {
|
|
131
|
-
"AddFieldsTemplateResponse.StatusEnum": AddFieldsTemplateResponse.StatusEnum,
|
|
132
|
-
"AuthenticationError.StatusEnum": AuthenticationError.StatusEnum,
|
|
133
|
-
"AuthenticationSuccessResponse.StatusEnum": AuthenticationSuccessResponse.StatusEnum,
|
|
134
|
-
"CombinedSubmission.StateEnum": CombinedSubmission.StateEnum,
|
|
135
|
-
"CombinedSubmissionAction.StateEnum": CombinedSubmissionAction.StateEnum,
|
|
136
|
-
"CombinedSubmissionAction.ActionCategoryEnum": CombinedSubmissionAction.ActionCategoryEnum,
|
|
137
|
-
"CombinedSubmissionAction.ActionTypeEnum": CombinedSubmissionAction.ActionTypeEnum,
|
|
138
|
-
"CreateCombinedSubmissionResponse.StatusEnum": CreateCombinedSubmissionResponse.StatusEnum,
|
|
139
|
-
"CreateCustomFileResponse.StatusEnum": CreateCustomFileResponse.StatusEnum,
|
|
140
|
-
"CreateSubmissionBatchResponse.StatusEnum": CreateSubmissionBatchResponse.StatusEnum,
|
|
141
|
-
"CreateSubmissionBatchSubmissionsResponse.StatusEnum": CreateSubmissionBatchSubmissionsResponse.StatusEnum,
|
|
142
|
-
"CreateSubmissionDataRequestData.AuthSecondFactorTypeEnum": CreateSubmissionDataRequestData.AuthSecondFactorTypeEnum,
|
|
143
|
-
"CreateSubmissionDataRequestData.AuthTypeEnum": CreateSubmissionDataRequestData.AuthTypeEnum,
|
|
144
|
-
"CreateSubmissionDataRequestTokenResponse.StatusEnum": CreateSubmissionDataRequestTokenResponse.StatusEnum,
|
|
145
|
-
"CreateSubmissionResponse.StatusEnum": CreateSubmissionResponse.StatusEnum,
|
|
146
|
-
"DeleteTemplateResponse.StatusEnum": DeleteTemplateResponse.StatusEnum,
|
|
147
|
-
"FullTemplate.ExpirationIntervalEnum": FullTemplate.ExpirationIntervalEnum,
|
|
148
|
-
"HtmlTemplateData.ExpirationIntervalEnum": HtmlTemplateData.ExpirationIntervalEnum,
|
|
149
|
-
"HtmlTemplateData.TemplateTypeEnum": HtmlTemplateData.TemplateTypeEnum,
|
|
150
|
-
"InvalidRequest.StatusEnum": InvalidRequest.StatusEnum,
|
|
151
|
-
"ModelError.StatusEnum": ModelError.StatusEnum,
|
|
152
|
-
"PendingTemplate.ExpirationIntervalEnum": PendingTemplate.ExpirationIntervalEnum,
|
|
153
|
-
"Submission.StateEnum": Submission.StateEnum,
|
|
154
|
-
"SubmissionAction.StateEnum": SubmissionAction.StateEnum,
|
|
155
|
-
"SubmissionAction.ActionCategoryEnum": SubmissionAction.ActionCategoryEnum,
|
|
156
|
-
"SubmissionAction.ActionTypeEnum": SubmissionAction.ActionTypeEnum,
|
|
157
|
-
"SubmissionBatch.StateEnum": SubmissionBatch.StateEnum,
|
|
158
|
-
"SubmissionDataRequest.StateEnum": SubmissionDataRequest.StateEnum,
|
|
159
|
-
"SubmissionDataRequest.AuthTypeEnum": SubmissionDataRequest.AuthTypeEnum,
|
|
160
|
-
"SubmissionDataRequest.AuthSecondFactorTypeEnum": SubmissionDataRequest.AuthSecondFactorTypeEnum,
|
|
161
|
-
"Template.ExpirationIntervalEnum": Template.ExpirationIntervalEnum,
|
|
162
|
-
"TemplateData.ExpirationIntervalEnum": TemplateData.ExpirationIntervalEnum,
|
|
163
|
-
"UpdateDataRequestResponse.StatusEnum": UpdateDataRequestResponse.StatusEnum,
|
|
164
|
-
"UpdateSubmissionDataRequestData.AuthSecondFactorTypeEnum": UpdateSubmissionDataRequestData.AuthSecondFactorTypeEnum,
|
|
165
|
-
"UpdateSubmissionDataRequestData.AuthTypeEnum": UpdateSubmissionDataRequestData.AuthTypeEnum,
|
|
166
|
-
"UpdateTemplateResponse.StatusEnum": UpdateTemplateResponse.StatusEnum,
|
|
167
|
-
"UploadTemplateData.ExpirationIntervalEnum": UploadTemplateData.ExpirationIntervalEnum,
|
|
168
|
-
"UploadTemplateData.TemplateTypeEnum": UploadTemplateData.TemplateTypeEnum,
|
|
169
|
-
"UploadTemplateDataDocument.StorageEnum": UploadTemplateDataDocument.StorageEnum,
|
|
170
|
-
"UploadTemplateDataDocumentMetadata.MimeTypeEnum": UploadTemplateDataDocumentMetadata.MimeTypeEnum,
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
let typeMap: {[index: string]: any} = {
|
|
174
|
-
"AddFieldsData": AddFieldsData,
|
|
175
|
-
"AddFieldsTemplateResponse": AddFieldsTemplateResponse,
|
|
176
|
-
"AuthenticationError": AuthenticationError,
|
|
177
|
-
"AuthenticationSuccessResponse": AuthenticationSuccessResponse,
|
|
178
|
-
"CombinePdfsData": CombinePdfsData,
|
|
179
|
-
"CombinedSubmission": CombinedSubmission,
|
|
180
|
-
"CombinedSubmissionAction": CombinedSubmissionAction,
|
|
181
|
-
"CombinedSubmissionData": CombinedSubmissionData,
|
|
182
|
-
"CopyTemplateData": CopyTemplateData,
|
|
183
|
-
"CreateCombinedSubmissionResponse": CreateCombinedSubmissionResponse,
|
|
184
|
-
"CreateCustomFileData": CreateCustomFileData,
|
|
185
|
-
"CreateCustomFileResponse": CreateCustomFileResponse,
|
|
186
|
-
"CreateFolderData": CreateFolderData,
|
|
187
|
-
"CreateFolderDataFolder": CreateFolderDataFolder,
|
|
188
|
-
"CreateHtmlTemplateData": CreateHtmlTemplateData,
|
|
189
|
-
"CreateSubmissionBatchResponse": CreateSubmissionBatchResponse,
|
|
190
|
-
"CreateSubmissionBatchSubmissionsResponse": CreateSubmissionBatchSubmissionsResponse,
|
|
191
|
-
"CreateSubmissionDataRequestData": CreateSubmissionDataRequestData,
|
|
192
|
-
"CreateSubmissionDataRequestTokenResponse": CreateSubmissionDataRequestTokenResponse,
|
|
193
|
-
"CreateSubmissionDataRequestTokenResponseToken": CreateSubmissionDataRequestTokenResponseToken,
|
|
194
|
-
"CreateSubmissionResponse": CreateSubmissionResponse,
|
|
195
|
-
"CreateTemplateFromUploadData": CreateTemplateFromUploadData,
|
|
196
|
-
"DeleteTemplateResponse": DeleteTemplateResponse,
|
|
197
|
-
"Folder": Folder,
|
|
198
|
-
"FullTemplate": FullTemplate,
|
|
199
|
-
"FullTemplateDefaults": FullTemplateDefaults,
|
|
200
|
-
"HtmlTemplateData": HtmlTemplateData,
|
|
201
|
-
"InvalidRequest": InvalidRequest,
|
|
202
|
-
"ListSubmissionsResponse": ListSubmissionsResponse,
|
|
203
|
-
"ModelError": ModelError,
|
|
204
|
-
"MoveFolderData": MoveFolderData,
|
|
205
|
-
"MoveTemplateData": MoveTemplateData,
|
|
206
|
-
"PendingTemplate": PendingTemplate,
|
|
207
|
-
"RenameFolderData": RenameFolderData,
|
|
208
|
-
"Submission": Submission,
|
|
209
|
-
"SubmissionAction": SubmissionAction,
|
|
210
|
-
"SubmissionBatch": SubmissionBatch,
|
|
211
|
-
"SubmissionBatchData": SubmissionBatchData,
|
|
212
|
-
"SubmissionData": SubmissionData,
|
|
213
|
-
"SubmissionDataBatchRequest": SubmissionDataBatchRequest,
|
|
214
|
-
"SubmissionDataRequest": SubmissionDataRequest,
|
|
215
|
-
"Template": Template,
|
|
216
|
-
"TemplateData": TemplateData,
|
|
217
|
-
"UpdateDataRequestResponse": UpdateDataRequestResponse,
|
|
218
|
-
"UpdateSubmissionDataRequestData": UpdateSubmissionDataRequestData,
|
|
219
|
-
"UpdateTemplateData": UpdateTemplateData,
|
|
220
|
-
"UpdateTemplateResponse": UpdateTemplateResponse,
|
|
221
|
-
"UploadTemplateData": UploadTemplateData,
|
|
222
|
-
"UploadTemplateDataDocument": UploadTemplateDataDocument,
|
|
223
|
-
"UploadTemplateDataDocumentMetadata": UploadTemplateDataDocumentMetadata,
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export class ObjectSerializer {
|
|
227
|
-
public static findCorrectType(data: any, expectedType: string) {
|
|
228
|
-
if (data == undefined) {
|
|
229
|
-
return expectedType;
|
|
230
|
-
} else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
|
|
231
|
-
return expectedType;
|
|
232
|
-
} else if (expectedType === "Date") {
|
|
233
|
-
return expectedType;
|
|
234
|
-
} else {
|
|
235
|
-
if (enumsMap[expectedType]) {
|
|
236
|
-
return expectedType;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
if (!typeMap[expectedType]) {
|
|
240
|
-
return expectedType; // w/e we don't know the type
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
// Check the discriminator
|
|
244
|
-
let discriminatorProperty = typeMap[expectedType].discriminator;
|
|
245
|
-
if (discriminatorProperty == null) {
|
|
246
|
-
return expectedType; // the type does not have a discriminator. use it.
|
|
247
|
-
} else {
|
|
248
|
-
if (data[discriminatorProperty]) {
|
|
249
|
-
var discriminatorType = data[discriminatorProperty];
|
|
250
|
-
if(typeMap[discriminatorType]){
|
|
251
|
-
return discriminatorType; // use the type given in the discriminator
|
|
252
|
-
} else {
|
|
253
|
-
return expectedType; // discriminator did not map to a type
|
|
254
|
-
}
|
|
255
|
-
} else {
|
|
256
|
-
return expectedType; // discriminator was not present (or an empty string)
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
public static serialize(data: any, type: string) {
|
|
263
|
-
if (data == undefined) {
|
|
264
|
-
return data;
|
|
265
|
-
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
|
|
266
|
-
return data;
|
|
267
|
-
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
|
|
268
|
-
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
|
269
|
-
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
|
270
|
-
let transformedData: any[] = [];
|
|
271
|
-
for (let index = 0; index < data.length; index++) {
|
|
272
|
-
let datum = data[index];
|
|
273
|
-
transformedData.push(ObjectSerializer.serialize(datum, subType));
|
|
274
|
-
}
|
|
275
|
-
return transformedData;
|
|
276
|
-
} else if (type === "Date") {
|
|
277
|
-
return data.toISOString();
|
|
278
|
-
} else {
|
|
279
|
-
if (enumsMap[type]) {
|
|
280
|
-
return data;
|
|
281
|
-
}
|
|
282
|
-
if (!typeMap[type]) { // in case we dont know the type
|
|
283
|
-
return data;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
// Get the actual type of this object
|
|
287
|
-
type = this.findCorrectType(data, type);
|
|
288
|
-
|
|
289
|
-
// get the map for the correct type.
|
|
290
|
-
let attributeTypes = typeMap[type].getAttributeTypeMap();
|
|
291
|
-
let instance: {[index: string]: any} = {};
|
|
292
|
-
for (let index = 0; index < attributeTypes.length; index++) {
|
|
293
|
-
let attributeType = attributeTypes[index];
|
|
294
|
-
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
|
|
295
|
-
}
|
|
296
|
-
return instance;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
public static deserialize(data: any, type: string) {
|
|
301
|
-
// polymorphism may change the actual type.
|
|
302
|
-
type = ObjectSerializer.findCorrectType(data, type);
|
|
303
|
-
if (data == undefined) {
|
|
304
|
-
return data;
|
|
305
|
-
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
|
|
306
|
-
return data;
|
|
307
|
-
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
|
|
308
|
-
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
|
309
|
-
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
|
310
|
-
let transformedData: any[] = [];
|
|
311
|
-
for (let index = 0; index < data.length; index++) {
|
|
312
|
-
let datum = data[index];
|
|
313
|
-
transformedData.push(ObjectSerializer.deserialize(datum, subType));
|
|
314
|
-
}
|
|
315
|
-
return transformedData;
|
|
316
|
-
} else if (type === "Date") {
|
|
317
|
-
return new Date(data);
|
|
318
|
-
} else {
|
|
319
|
-
if (enumsMap[type]) {// is Enum
|
|
320
|
-
return data;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
if (!typeMap[type]) { // dont know the type
|
|
324
|
-
return data;
|
|
325
|
-
}
|
|
326
|
-
let instance = new typeMap[type]();
|
|
327
|
-
let attributeTypes = typeMap[type].getAttributeTypeMap();
|
|
328
|
-
for (let index = 0; index < attributeTypes.length; index++) {
|
|
329
|
-
let attributeType = attributeTypes[index];
|
|
330
|
-
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
|
|
331
|
-
}
|
|
332
|
-
return instance;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
export interface Authentication {
|
|
338
|
-
/**
|
|
339
|
-
* Apply authentication settings to header and query params.
|
|
340
|
-
*/
|
|
341
|
-
applyToRequest(requestOptions: localVarRequest.Options): Promise<void> | void;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export class HttpBasicAuth implements Authentication {
|
|
345
|
-
public username: string = '';
|
|
346
|
-
public password: string = '';
|
|
347
|
-
|
|
348
|
-
applyToRequest(requestOptions: localVarRequest.Options): void {
|
|
349
|
-
requestOptions.auth = {
|
|
350
|
-
username: this.username, password: this.password
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export class HttpBearerAuth implements Authentication {
|
|
356
|
-
public accessToken: string | (() => string) = '';
|
|
357
|
-
|
|
358
|
-
applyToRequest(requestOptions: localVarRequest.Options): void {
|
|
359
|
-
if (requestOptions && requestOptions.headers) {
|
|
360
|
-
const accessToken = typeof this.accessToken === 'function'
|
|
361
|
-
? this.accessToken()
|
|
362
|
-
: this.accessToken;
|
|
363
|
-
requestOptions.headers["Authorization"] = "Bearer " + accessToken;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
export class ApiKeyAuth implements Authentication {
|
|
369
|
-
public apiKey: string = '';
|
|
370
|
-
|
|
371
|
-
constructor(private location: string, private paramName: string) {
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
applyToRequest(requestOptions: localVarRequest.Options): void {
|
|
375
|
-
if (this.location == "query") {
|
|
376
|
-
(<any>requestOptions.qs)[this.paramName] = this.apiKey;
|
|
377
|
-
} else if (this.location == "header" && requestOptions && requestOptions.headers) {
|
|
378
|
-
requestOptions.headers[this.paramName] = this.apiKey;
|
|
379
|
-
} else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
|
|
380
|
-
if (requestOptions.headers['Cookie']) {
|
|
381
|
-
requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export class OAuth implements Authentication {
|
|
391
|
-
public accessToken: string = '';
|
|
392
|
-
|
|
393
|
-
applyToRequest(requestOptions: localVarRequest.Options): void {
|
|
394
|
-
if (requestOptions && requestOptions.headers) {
|
|
395
|
-
requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export class VoidAuth implements Authentication {
|
|
401
|
-
public username: string = '';
|
|
402
|
-
public password: string = '';
|
|
403
|
-
|
|
404
|
-
applyToRequest(_: localVarRequest.Options): void {
|
|
405
|
-
// Do nothing
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export type Interceptor = (requestOptions: localVarRequest.Options) => (Promise<void> | void);
|
package/model/moveFolderData.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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 MoveFolderData {
|
|
16
|
-
'parentFolderId'?: string;
|
|
17
|
-
|
|
18
|
-
static discriminator: string | undefined = undefined;
|
|
19
|
-
|
|
20
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
21
|
-
{
|
|
22
|
-
"name": "parentFolderId",
|
|
23
|
-
"baseName": "parent_folder_id",
|
|
24
|
-
"type": "string"
|
|
25
|
-
} ];
|
|
26
|
-
|
|
27
|
-
static getAttributeTypeMap() {
|
|
28
|
-
return MoveFolderData.attributeTypeMap;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
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 MoveTemplateData {
|
|
16
|
-
'parentFolderId': string;
|
|
17
|
-
|
|
18
|
-
static discriminator: string | undefined = undefined;
|
|
19
|
-
|
|
20
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
21
|
-
{
|
|
22
|
-
"name": "parentFolderId",
|
|
23
|
-
"baseName": "parent_folder_id",
|
|
24
|
-
"type": "string"
|
|
25
|
-
} ];
|
|
26
|
-
|
|
27
|
-
static getAttributeTypeMap() {
|
|
28
|
-
return MoveTemplateData.attributeTypeMap;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
package/model/pendingTemplate.ts
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
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 PendingTemplate {
|
|
16
|
-
'id': string;
|
|
17
|
-
'name': string | null;
|
|
18
|
-
'description': string | null;
|
|
19
|
-
'templateType': string;
|
|
20
|
-
'publicWebForm': boolean;
|
|
21
|
-
'publicSubmissions': boolean;
|
|
22
|
-
'expireSubmissions': boolean;
|
|
23
|
-
'expireAfter'?: number;
|
|
24
|
-
'locked': boolean;
|
|
25
|
-
'expirationInterval'?: PendingTemplate.ExpirationIntervalEnum;
|
|
26
|
-
'allowAdditionalProperties': boolean;
|
|
27
|
-
'editableSubmissions': boolean;
|
|
28
|
-
'webhookUrl': string | null;
|
|
29
|
-
'slackWebhookUrl': string | null;
|
|
30
|
-
'redirectUrl': string | null;
|
|
31
|
-
'path'?: string;
|
|
32
|
-
'parentFolderId'?: string | null;
|
|
33
|
-
|
|
34
|
-
static discriminator: string | undefined = undefined;
|
|
35
|
-
|
|
36
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
37
|
-
{
|
|
38
|
-
"name": "id",
|
|
39
|
-
"baseName": "id",
|
|
40
|
-
"type": "string"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "name",
|
|
44
|
-
"baseName": "name",
|
|
45
|
-
"type": "string"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "description",
|
|
49
|
-
"baseName": "description",
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "templateType",
|
|
54
|
-
"baseName": "template_type",
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "publicWebForm",
|
|
59
|
-
"baseName": "public_web_form",
|
|
60
|
-
"type": "boolean"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "publicSubmissions",
|
|
64
|
-
"baseName": "public_submissions",
|
|
65
|
-
"type": "boolean"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"name": "expireSubmissions",
|
|
69
|
-
"baseName": "expire_submissions",
|
|
70
|
-
"type": "boolean"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "expireAfter",
|
|
74
|
-
"baseName": "expire_after",
|
|
75
|
-
"type": "number"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "locked",
|
|
79
|
-
"baseName": "locked",
|
|
80
|
-
"type": "boolean"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "expirationInterval",
|
|
84
|
-
"baseName": "expiration_interval",
|
|
85
|
-
"type": "PendingTemplate.ExpirationIntervalEnum"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "allowAdditionalProperties",
|
|
89
|
-
"baseName": "allow_additional_properties",
|
|
90
|
-
"type": "boolean"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "editableSubmissions",
|
|
94
|
-
"baseName": "editable_submissions",
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"name": "webhookUrl",
|
|
99
|
-
"baseName": "webhook_url",
|
|
100
|
-
"type": "string"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "slackWebhookUrl",
|
|
104
|
-
"baseName": "slack_webhook_url",
|
|
105
|
-
"type": "string"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "redirectUrl",
|
|
109
|
-
"baseName": "redirect_url",
|
|
110
|
-
"type": "string"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "path",
|
|
114
|
-
"baseName": "path",
|
|
115
|
-
"type": "string"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "parentFolderId",
|
|
119
|
-
"baseName": "parent_folder_id",
|
|
120
|
-
"type": "string"
|
|
121
|
-
} ];
|
|
122
|
-
|
|
123
|
-
static getAttributeTypeMap() {
|
|
124
|
-
return PendingTemplate.attributeTypeMap;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export namespace PendingTemplate {
|
|
129
|
-
export enum ExpirationIntervalEnum {
|
|
130
|
-
Minutes = <any> 'minutes',
|
|
131
|
-
Hours = <any> 'hours',
|
|
132
|
-
Days = <any> 'days'
|
|
133
|
-
}
|
|
134
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
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 RenameFolderData {
|
|
16
|
-
'name': string;
|
|
17
|
-
|
|
18
|
-
static discriminator: string | undefined = undefined;
|
|
19
|
-
|
|
20
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
21
|
-
{
|
|
22
|
-
"name": "name",
|
|
23
|
-
"baseName": "name",
|
|
24
|
-
"type": "string"
|
|
25
|
-
} ];
|
|
26
|
-
|
|
27
|
-
static getAttributeTypeMap() {
|
|
28
|
-
return RenameFolderData.attributeTypeMap;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|