docspring 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +39 -0
- data/.openapi-generator-ignore +23 -0
- data/.openapi-generator/VERSION +1 -0
- data/.rspec +2 -0
- data/.rubocop.yml +154 -0
- data/.swagger-codegen-ignore +31 -0
- data/.swagger-codegen/VERSION +1 -0
- data/.swagger-revision +1 -0
- data/.travis.yml +8 -0
- data/CHANGELOG.md +48 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +80 -0
- data/LICENSE +7 -0
- data/README.md +162 -0
- data/Rakefile +10 -0
- data/docs/AuthenticationError.md +9 -0
- data/docs/AuthenticationSuccessResponse.md +8 -0
- data/docs/CombinePdfsData.md +12 -0
- data/docs/CombinedSubmission.md +16 -0
- data/docs/CombinedSubmissionAction.md +13 -0
- data/docs/CombinedSubmissionData.md +11 -0
- data/docs/CreateCombinedSubmissionResponse.md +10 -0
- data/docs/CreateCustomFileData.md +8 -0
- data/docs/CreateCustomFileResponse.md +10 -0
- data/docs/CreateFolderData.md +8 -0
- data/docs/CreateSubmissionBatchResponse.md +12 -0
- data/docs/CreateSubmissionBatchSubmissionsResponse.md +10 -0
- data/docs/CreateSubmissionDataRequestData.md +20 -0
- data/docs/CreateSubmissionDataRequestTokenResponse.md +10 -0
- data/docs/CreateSubmissionDataRequestTokenResponseToken.md +11 -0
- data/docs/CreateSubmissionResponse.md +10 -0
- data/docs/CreateTemplateData.md +8 -0
- data/docs/CustomFile.md +9 -0
- data/docs/Error.md +9 -0
- data/docs/Folder.md +11 -0
- data/docs/FoldersFolder.md +9 -0
- data/docs/InvalidRequest.md +9 -0
- data/docs/MoveFolderData.md +8 -0
- data/docs/MoveTemplateData.md +8 -0
- data/docs/PDFApi.md +1385 -0
- data/docs/PendingTemplate.md +22 -0
- data/docs/RenameFolderData.md +8 -0
- data/docs/Submission.md +21 -0
- data/docs/SubmissionAction.md +13 -0
- data/docs/SubmissionBatch.md +16 -0
- data/docs/SubmissionBatchData.md +11 -0
- data/docs/SubmissionData.md +13 -0
- data/docs/SubmissionDataBatchRequest.md +13 -0
- data/docs/SubmissionDataRequest.md +24 -0
- data/docs/Template.md +25 -0
- data/docs/Templatesv2Template.md +19 -0
- data/docs/Templatesv2TemplateDocument.md +10 -0
- data/docs/Templatesv2TemplateDocumentMetadata.md +10 -0
- data/docs/UpdateDataRequestResponse.md +10 -0
- data/docs/UpdateSubmissionDataRequestData.md +20 -0
- data/docspring.gemspec +47 -0
- data/git_push.sh +55 -0
- data/lib/docspring.rb +82 -0
- data/lib/docspring/api/client.rb +174 -0
- data/lib/docspring/api/pdf_api.rb +1481 -0
- data/lib/docspring/api_client.rb +406 -0
- data/lib/docspring/api_error.rb +38 -0
- data/lib/docspring/configuration.rb +230 -0
- data/lib/docspring/models/authentication_error.rb +231 -0
- data/lib/docspring/models/authentication_success_response.rb +217 -0
- data/lib/docspring/models/combine_pdfs_data.rb +226 -0
- data/lib/docspring/models/combined_submission.rb +295 -0
- data/lib/docspring/models/combined_submission_action.rb +316 -0
- data/lib/docspring/models/combined_submission_data.rb +217 -0
- data/lib/docspring/models/create_combined_submission_response.rb +237 -0
- data/lib/docspring/models/create_custom_file_data.rb +207 -0
- data/lib/docspring/models/create_custom_file_response.rb +237 -0
- data/lib/docspring/models/create_folder_data.rb +188 -0
- data/lib/docspring/models/create_submission_batch_response.rb +257 -0
- data/lib/docspring/models/create_submission_batch_submissions_response.rb +237 -0
- data/lib/docspring/models/create_submission_data_request_data.rb +339 -0
- data/lib/docspring/models/create_submission_data_request_token_response.rb +237 -0
- data/lib/docspring/models/create_submission_data_request_token_response_token.rb +210 -0
- data/lib/docspring/models/create_submission_response.rb +237 -0
- data/lib/docspring/models/create_template_data.rb +188 -0
- data/lib/docspring/models/custom_file.rb +192 -0
- data/lib/docspring/models/error.rb +236 -0
- data/lib/docspring/models/folder.rb +210 -0
- data/lib/docspring/models/folders_folder.rb +192 -0
- data/lib/docspring/models/invalid_request.rb +238 -0
- data/lib/docspring/models/move_folder_data.rb +183 -0
- data/lib/docspring/models/move_template_data.rb +183 -0
- data/lib/docspring/models/pending_template.rb +343 -0
- data/lib/docspring/models/rename_folder_data.rb +188 -0
- data/lib/docspring/models/submission.rb +358 -0
- data/lib/docspring/models/submission_action.rb +316 -0
- data/lib/docspring/models/submission_batch.rb +291 -0
- data/lib/docspring/models/submission_batch_data.rb +217 -0
- data/lib/docspring/models/submission_data.rb +235 -0
- data/lib/docspring/models/submission_data_batch_request.rb +228 -0
- data/lib/docspring/models/submission_data_request.rb +422 -0
- data/lib/docspring/models/template.rb +372 -0
- data/lib/docspring/models/templatesv2_template.rb +316 -0
- data/lib/docspring/models/templatesv2_template_document.rb +235 -0
- data/lib/docspring/models/templatesv2_template_document_metadata.rb +235 -0
- data/lib/docspring/models/update_data_request_response.rb +237 -0
- data/lib/docspring/models/update_submission_data_request_data.rb +339 -0
- data/lib/docspring/version.rb +15 -0
- data/spec/api/client_integration_spec.rb +259 -0
- data/spec/api/pdf_api_integration_spec.rb +377 -0
- data/spec/api/pdf_api_spec_original.skipped.rb +397 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +53 -0
- data/spec/models/authentication_error_spec.rb +51 -0
- data/spec/models/authentication_success_response_spec.rb +45 -0
- data/spec/models/combine_pdfs_data_spec.rb +65 -0
- data/spec/models/combined_submission_action_spec.rb +83 -0
- data/spec/models/combined_submission_data_spec.rb +59 -0
- data/spec/models/combined_submission_spec.rb +93 -0
- data/spec/models/create_combined_submission_response_spec.rb +57 -0
- data/spec/models/create_custom_file_data_spec.rb +41 -0
- data/spec/models/create_custom_file_response_spec.rb +57 -0
- data/spec/models/create_folder_data_spec.rb +41 -0
- data/spec/models/create_submission_batch_response_spec.rb +69 -0
- data/spec/models/create_submission_batch_submissions_response_spec.rb +57 -0
- data/spec/models/create_submission_data_request_data_spec.rb +121 -0
- data/spec/models/create_submission_data_request_token_response_spec.rb +57 -0
- data/spec/models/create_submission_data_request_token_response_token_spec.rb +59 -0
- data/spec/models/create_submission_response_spec.rb +57 -0
- data/spec/models/create_template_data_spec.rb +41 -0
- data/spec/models/custom_file_spec.rb +47 -0
- data/spec/models/error_spec.rb +51 -0
- data/spec/models/folder_spec.rb +59 -0
- data/spec/models/folders_folder_spec.rb +47 -0
- data/spec/models/invalid_request_spec.rb +51 -0
- data/spec/models/move_folder_data_spec.rb +41 -0
- data/spec/models/move_template_data_spec.rb +41 -0
- data/spec/models/pending_template_spec.rb +129 -0
- data/spec/models/rename_folder_data_spec.rb +41 -0
- data/spec/models/submission_action_spec.rb +83 -0
- data/spec/models/submission_batch_data_spec.rb +59 -0
- data/spec/models/submission_batch_spec.rb +93 -0
- data/spec/models/submission_data_batch_request_spec.rb +71 -0
- data/spec/models/submission_data_request_spec.rb +149 -0
- data/spec/models/submission_data_spec.rb +71 -0
- data/spec/models/submission_spec.rb +123 -0
- data/spec/models/template_spec.rb +147 -0
- data/spec/models/templatesv2_template_document_metadata_spec.rb +57 -0
- data/spec/models/templatesv2_template_document_spec.rb +57 -0
- data/spec/models/templatesv2_template_spec.rb +111 -0
- data/spec/models/update_data_request_response_spec.rb +57 -0
- data/spec/models/update_submission_data_request_data_spec.rb +121 -0
- data/spec/spec_helper.rb +117 -0
- metadata +430 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# DocSpring::PendingTemplate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**expiration_interval** | **String** | | [optional]
|
7
|
+
**webhook_url** | **String** | | [optional]
|
8
|
+
**parent_folder_id** | **String** | | [optional]
|
9
|
+
**expire_after** | **Float** | | [optional]
|
10
|
+
**allow_additional_properties** | **BOOLEAN** | | [optional]
|
11
|
+
**public_submissions** | **BOOLEAN** | | [optional]
|
12
|
+
**slack_webhook_url** | **String** | | [optional]
|
13
|
+
**path** | **String** | | [optional]
|
14
|
+
**public_web_form** | **BOOLEAN** | | [optional]
|
15
|
+
**editable_submissions** | **BOOLEAN** | | [optional]
|
16
|
+
**expire_submissions** | **BOOLEAN** | | [optional]
|
17
|
+
**name** | **String** | | [optional]
|
18
|
+
**template_type** | **String** | | [optional]
|
19
|
+
**id** | **String** | | [optional]
|
20
|
+
**redirect_url** | **String** | | [optional]
|
21
|
+
|
22
|
+
|
data/docs/Submission.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# DocSpring::Submission
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**template_id** | **String** | | [optional]
|
8
|
+
**test** | **BOOLEAN** | |
|
9
|
+
**editable** | **BOOLEAN** | | [optional]
|
10
|
+
**expired** | **BOOLEAN** | |
|
11
|
+
**expires_at** | **String** | | [optional]
|
12
|
+
**processed_at** | **String** | | [optional]
|
13
|
+
**state** | **String** | |
|
14
|
+
**metadata** | **Object** | | [optional]
|
15
|
+
**download_url** | **String** | | [optional]
|
16
|
+
**permanent_download_url** | **String** | | [optional]
|
17
|
+
**batch_id** | **String** | | [optional]
|
18
|
+
**data_requests** | [**Array<SubmissionDataRequest>**](SubmissionDataRequest.md) | | [optional]
|
19
|
+
**actions** | [**Array<SubmissionAction>**](SubmissionAction.md) | | [optional]
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# DocSpring::SubmissionAction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**integration_id** | **String** | |
|
8
|
+
**state** | **String** | |
|
9
|
+
**action_category** | **String** | |
|
10
|
+
**action_type** | **String** | |
|
11
|
+
**result_data** | **Object** | |
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# DocSpring::SubmissionBatch
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**pending_count** | **Integer** | | [optional]
|
7
|
+
**completion_percentage** | **Integer** | | [optional]
|
8
|
+
**metadata** | **Object** | | [optional]
|
9
|
+
**total_count** | **Integer** | | [optional]
|
10
|
+
**submissions** | [**Array<Submission>**](Submission.md) | | [optional]
|
11
|
+
**processed_at** | **String** | | [optional]
|
12
|
+
**id** | **String** | | [optional]
|
13
|
+
**state** | **String** | | [optional]
|
14
|
+
**error_count** | **Integer** | | [optional]
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# DocSpring::SubmissionBatchData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**metadata** | **Object** | | [optional]
|
7
|
+
**test** | **BOOLEAN** | | [optional]
|
8
|
+
**template_id** | **String** | | [optional]
|
9
|
+
**submissions** | [**Array<SubmissionDataBatchRequest>**](SubmissionDataBatchRequest.md) | |
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# DocSpring::SubmissionData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**test** | **BOOLEAN** | | [optional]
|
7
|
+
**data** | **Object** | |
|
8
|
+
**html** | **String** | | [optional]
|
9
|
+
**css** | **String** | | [optional]
|
10
|
+
**metadata** | **Object** | | [optional]
|
11
|
+
**data_requests** | [**Array<CreateSubmissionDataRequestData>**](CreateSubmissionDataRequestData.md) | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# DocSpring::SubmissionDataBatchRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**css** | **String** | | [optional]
|
7
|
+
**metadata** | **Object** | | [optional]
|
8
|
+
**test** | **BOOLEAN** | | [optional]
|
9
|
+
**data** | **Object** | | [optional]
|
10
|
+
**template_id** | **String** | | [optional]
|
11
|
+
**html** | **String** | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# DocSpring::SubmissionDataRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | |
|
7
|
+
**name** | **String** | |
|
8
|
+
**email** | **String** | |
|
9
|
+
**order** | **Integer** | |
|
10
|
+
**fields** | **Array<String>** | |
|
11
|
+
**metadata** | **Object** | |
|
12
|
+
**state** | **String** | |
|
13
|
+
**viewed_at** | **String** | | [optional]
|
14
|
+
**completed_at** | **String** | | [optional]
|
15
|
+
**auth_type** | **String** | | [optional]
|
16
|
+
**auth_second_factor_type** | **String** | | [optional]
|
17
|
+
**auth_provider** | **String** | | [optional]
|
18
|
+
**auth_session_started_at** | **String** | | [optional]
|
19
|
+
**auth_session_id_hash** | **String** | | [optional]
|
20
|
+
**auth_user_id_hash** | **String** | | [optional]
|
21
|
+
**auth_username_hash** | **String** | | [optional]
|
22
|
+
**auth_phone_number_hash** | **String** | | [optional]
|
23
|
+
|
24
|
+
|
data/docs/Template.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# DocSpring::Template
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**expiration_interval** | **String** | | [optional]
|
7
|
+
**webhook_url** | **String** | | [optional]
|
8
|
+
**parent_folder_id** | **String** | | [optional]
|
9
|
+
**expire_after** | **Float** | | [optional]
|
10
|
+
**allow_additional_properties** | **BOOLEAN** | | [optional]
|
11
|
+
**public_submissions** | **BOOLEAN** | | [optional]
|
12
|
+
**slack_webhook_url** | **String** | | [optional]
|
13
|
+
**path** | **String** | | [optional]
|
14
|
+
**public_web_form** | **BOOLEAN** | | [optional]
|
15
|
+
**editable_submissions** | **BOOLEAN** | | [optional]
|
16
|
+
**expire_submissions** | **BOOLEAN** | | [optional]
|
17
|
+
**name** | **String** | | [optional]
|
18
|
+
**permanent_document_url** | **String** | | [optional]
|
19
|
+
**template_type** | **String** | | [optional]
|
20
|
+
**id** | **String** | | [optional]
|
21
|
+
**page_dimensions** | **Array<Array<Float>>** | | [optional]
|
22
|
+
**redirect_url** | **String** | | [optional]
|
23
|
+
**document_url** | **String** | | [optional]
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# DocSpring::Templatesv2Template
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**expiration_interval** | **String** | | [optional]
|
7
|
+
**public_web_form** | **BOOLEAN** | | [optional]
|
8
|
+
**webhook_url** | **String** | | [optional]
|
9
|
+
**editable_submissions** | **BOOLEAN** | | [optional]
|
10
|
+
**expire_submissions** | **BOOLEAN** | | [optional]
|
11
|
+
**expire_after** | **Float** | | [optional]
|
12
|
+
**allow_additional_properties** | **BOOLEAN** | | [optional]
|
13
|
+
**document** | [**Templatesv2TemplateDocument**](Templatesv2TemplateDocument.md) | | [optional]
|
14
|
+
**name** | **String** | | [optional]
|
15
|
+
**public_submissions** | **BOOLEAN** | | [optional]
|
16
|
+
**slack_webhook_url** | **String** | | [optional]
|
17
|
+
**redirect_url** | **String** | | [optional]
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# DocSpring::Templatesv2TemplateDocument
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**metadata** | [**Templatesv2TemplateDocumentMetadata**](Templatesv2TemplateDocumentMetadata.md) | | [optional]
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**storage** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# DocSpring::Templatesv2TemplateDocumentMetadata
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**filename** | **String** | | [optional]
|
7
|
+
**size** | **Integer** | | [optional]
|
8
|
+
**mime_type** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# DocSpring::UpdateDataRequestResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data_request** | [**SubmissionDataRequest**](SubmissionDataRequest.md) | | [optional]
|
7
|
+
**errors** | **Array<String>** | | [optional]
|
8
|
+
**status** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# DocSpring::UpdateSubmissionDataRequestData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | | [optional]
|
7
|
+
**email** | **String** | | [optional]
|
8
|
+
**order** | **Integer** | | [optional]
|
9
|
+
**fields** | **Array<String>** | | [optional]
|
10
|
+
**metadata** | **Object** | | [optional]
|
11
|
+
**auth_type** | **String** | | [optional]
|
12
|
+
**auth_second_factor_type** | **String** | | [optional]
|
13
|
+
**auth_provider** | **String** | | [optional]
|
14
|
+
**auth_session_started_at** | **String** | | [optional]
|
15
|
+
**auth_session_id_hash** | **String** | | [optional]
|
16
|
+
**auth_user_id_hash** | **String** | | [optional]
|
17
|
+
**auth_username_hash** | **String** | | [optional]
|
18
|
+
**auth_phone_number_hash** | **String** | | [optional]
|
19
|
+
|
20
|
+
|
data/docspring.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#API v1
|
5
|
+
|
6
|
+
#DocSpring is a service that helps you fill out and sign PDF templates.
|
7
|
+
|
8
|
+
OpenAPI spec version: v1
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "docspring/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "docspring"
|
20
|
+
s.version = DocSpring::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Form Applications, Inc."]
|
23
|
+
s.email = ["support@docspring.com"]
|
24
|
+
s.homepage = "https://github.com/DocSpring/docspring-ruby"
|
25
|
+
s.summary = "DocSpring API Client"
|
26
|
+
s.description = "Client library for the DocSpring PDF generation and e-signature service"
|
27
|
+
s.license = 'MIT'
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'ffi', '~> 1.0', '>= 1.9.24'
|
32
|
+
s.add_runtime_dependency 'json', '>= 1.8'
|
33
|
+
|
34
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
35
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
36
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
37
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
38
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
39
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
40
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
41
|
+
|
42
|
+
# Use git ls-files to ignore anything in .gitignore
|
43
|
+
s.files = `git ls-files`.split("\n").uniq.sort.select{|f| !f.empty? }
|
44
|
+
s.test_files = `git ls-files spec test`.split("\n")
|
45
|
+
s.executables = []
|
46
|
+
s.require_paths = ["lib"]
|
47
|
+
end
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://openapi-generator.tech
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/docspring.rb
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
=begin
|
2
|
+
#API v1
|
3
|
+
|
4
|
+
#DocSpring is a service that helps you fill out and sign PDF templates.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'docspring/api_client'
|
15
|
+
require 'docspring/api_error'
|
16
|
+
require 'docspring/version'
|
17
|
+
require 'docspring/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'docspring/models/authentication_error'
|
21
|
+
require 'docspring/models/authentication_success_response'
|
22
|
+
require 'docspring/models/combine_pdfs_data'
|
23
|
+
require 'docspring/models/combined_submission'
|
24
|
+
require 'docspring/models/combined_submission_action'
|
25
|
+
require 'docspring/models/combined_submission_data'
|
26
|
+
require 'docspring/models/create_combined_submission_response'
|
27
|
+
require 'docspring/models/create_custom_file_data'
|
28
|
+
require 'docspring/models/create_custom_file_response'
|
29
|
+
require 'docspring/models/create_folder_data'
|
30
|
+
require 'docspring/models/create_submission_batch_response'
|
31
|
+
require 'docspring/models/create_submission_batch_submissions_response'
|
32
|
+
require 'docspring/models/create_submission_data_request_data'
|
33
|
+
require 'docspring/models/create_submission_data_request_token_response'
|
34
|
+
require 'docspring/models/create_submission_data_request_token_response_token'
|
35
|
+
require 'docspring/models/create_submission_response'
|
36
|
+
require 'docspring/models/create_template_data'
|
37
|
+
require 'docspring/models/custom_file'
|
38
|
+
require 'docspring/models/error'
|
39
|
+
require 'docspring/models/folder'
|
40
|
+
require 'docspring/models/folders_folder'
|
41
|
+
require 'docspring/models/invalid_request'
|
42
|
+
require 'docspring/models/move_folder_data'
|
43
|
+
require 'docspring/models/move_template_data'
|
44
|
+
require 'docspring/models/pending_template'
|
45
|
+
require 'docspring/models/rename_folder_data'
|
46
|
+
require 'docspring/models/submission'
|
47
|
+
require 'docspring/models/submission_action'
|
48
|
+
require 'docspring/models/submission_batch'
|
49
|
+
require 'docspring/models/submission_batch_data'
|
50
|
+
require 'docspring/models/submission_data'
|
51
|
+
require 'docspring/models/submission_data_batch_request'
|
52
|
+
require 'docspring/models/submission_data_request'
|
53
|
+
require 'docspring/models/template'
|
54
|
+
require 'docspring/models/templatesv2_template'
|
55
|
+
require 'docspring/models/templatesv2_template_document'
|
56
|
+
require 'docspring/models/templatesv2_template_document_metadata'
|
57
|
+
require 'docspring/models/update_data_request_response'
|
58
|
+
require 'docspring/models/update_submission_data_request_data'
|
59
|
+
|
60
|
+
# APIs
|
61
|
+
require 'docspring/api/pdf_api'
|
62
|
+
|
63
|
+
# Custom client
|
64
|
+
require 'docspring/api/client'
|
65
|
+
|
66
|
+
module DocSpring
|
67
|
+
class << self
|
68
|
+
# Customize default settings for the SDK using block.
|
69
|
+
# DocSpring.configure do |config|
|
70
|
+
# config.username = "xxx"
|
71
|
+
# config.password = "xxx"
|
72
|
+
# end
|
73
|
+
# If no block given, return the default Configuration object.
|
74
|
+
def configure
|
75
|
+
if block_given?
|
76
|
+
yield(Configuration.default)
|
77
|
+
else
|
78
|
+
Configuration.default
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|