dropbox-sign 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +26 -9
  4. data/VERSION +1 -0
  5. data/bin/release +39 -0
  6. data/bin/ruby +1 -0
  7. data/docs/BulkSendJobApi.md +5 -3
  8. data/docs/SignatureRequestApi.md +3 -3
  9. data/docs/SignatureRequestCreateEmbeddedRequest.md +1 -1
  10. data/docs/SignatureRequestSendRequest.md +1 -1
  11. data/docs/SubFormFieldsPerDocumentBase.md +1 -1
  12. data/docs/TeamResponse.md +1 -0
  13. data/docs/TemplateCreateEmbeddedDraftRequest.md +1 -1
  14. data/docs/TemplateResponse.md +2 -2
  15. data/docs/TemplateResponseDocument.md +3 -3
  16. data/docs/{TemplateResponseCustomField.md → TemplateResponseDocumentCustomFieldBase.md} +6 -8
  17. data/docs/TemplateResponseDocumentCustomFieldCheckbox.md +10 -0
  18. data/docs/TemplateResponseDocumentCustomFieldText.md +14 -0
  19. data/docs/TemplateResponseDocumentFieldGroup.md +1 -1
  20. data/docs/TemplateResponseDocumentFieldGroupRule.md +11 -0
  21. data/docs/{TemplateResponseDocumentFormField.md → TemplateResponseDocumentFormFieldBase.md} +5 -8
  22. data/docs/TemplateResponseDocumentFormFieldCheckbox.md +10 -0
  23. data/docs/TemplateResponseDocumentFormFieldDateSigned.md +10 -0
  24. data/docs/TemplateResponseDocumentFormFieldDropdown.md +10 -0
  25. data/docs/TemplateResponseDocumentFormFieldHyperlink.md +14 -0
  26. data/docs/TemplateResponseDocumentFormFieldInitials.md +10 -0
  27. data/docs/TemplateResponseDocumentFormFieldRadio.md +10 -0
  28. data/docs/TemplateResponseDocumentFormFieldSignature.md +10 -0
  29. data/docs/TemplateResponseDocumentFormFieldText.md +15 -0
  30. data/docs/{TemplateResponseDocumentStaticField.md → TemplateResponseDocumentStaticFieldBase.md} +6 -5
  31. data/docs/TemplateResponseDocumentStaticFieldCheckbox.md +10 -0
  32. data/docs/TemplateResponseDocumentStaticFieldDateSigned.md +10 -0
  33. data/docs/TemplateResponseDocumentStaticFieldDropdown.md +10 -0
  34. data/docs/TemplateResponseDocumentStaticFieldHyperlink.md +10 -0
  35. data/docs/TemplateResponseDocumentStaticFieldInitials.md +10 -0
  36. data/docs/TemplateResponseDocumentStaticFieldRadio.md +10 -0
  37. data/docs/TemplateResponseDocumentStaticFieldSignature.md +10 -0
  38. data/docs/TemplateResponseDocumentStaticFieldText.md +10 -0
  39. data/docs/TemplateResponseFieldAvgTextLength.md +1 -1
  40. data/docs/UnclaimedDraftApi.md +2 -2
  41. data/docs/UnclaimedDraftCreateEmbeddedRequest.md +1 -1
  42. data/docs/UnclaimedDraftCreateRequest.md +1 -1
  43. data/examples/SignatureRequestCreateEmbedded.rb +1 -1
  44. data/examples/SignatureRequestSend.rb +2 -2
  45. data/examples/UnclaimedDraftCreate.rb +2 -2
  46. data/lib/dropbox-sign/api/bulk_send_job_api.rb +6 -0
  47. data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +1 -1
  48. data/lib/dropbox-sign/models/signature_request_send_request.rb +1 -1
  49. data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +1 -1
  50. data/lib/dropbox-sign/models/team_response.rb +17 -4
  51. data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +1 -1
  52. data/lib/dropbox-sign/models/template_response.rb +5 -5
  53. data/lib/dropbox-sign/models/template_response_document.rb +9 -9
  54. data/lib/dropbox-sign/models/{template_response_document_static_field.rb → template_response_document_custom_field_base.rb} +75 -43
  55. data/lib/dropbox-sign/models/template_response_document_custom_field_checkbox.rb +263 -0
  56. data/lib/dropbox-sign/models/template_response_document_custom_field_text.rb +306 -0
  57. data/lib/dropbox-sign/models/template_response_document_field_group.rb +2 -3
  58. data/lib/dropbox-sign/models/template_response_document_field_group_rule.rb +263 -0
  59. data/lib/dropbox-sign/models/{template_response_named_form_field.rb → template_response_document_form_field_base.rb} +82 -79
  60. data/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb +263 -0
  61. data/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb +263 -0
  62. data/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +263 -0
  63. data/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb +306 -0
  64. data/lib/dropbox-sign/models/template_response_document_form_field_initials.rb +263 -0
  65. data/lib/dropbox-sign/models/template_response_document_form_field_radio.rb +263 -0
  66. data/lib/dropbox-sign/models/template_response_document_form_field_signature.rb +263 -0
  67. data/lib/dropbox-sign/models/{template_response_document_form_field.rb → template_response_document_form_field_text.rb} +53 -132
  68. data/lib/dropbox-sign/models/{template_response_custom_field.rb → template_response_document_static_field_base.rb} +94 -112
  69. data/lib/dropbox-sign/models/template_response_document_static_field_checkbox.rb +263 -0
  70. data/lib/dropbox-sign/models/template_response_document_static_field_date_signed.rb +263 -0
  71. data/lib/dropbox-sign/models/template_response_document_static_field_dropdown.rb +263 -0
  72. data/lib/dropbox-sign/models/template_response_document_static_field_hyperlink.rb +263 -0
  73. data/lib/dropbox-sign/models/template_response_document_static_field_initials.rb +263 -0
  74. data/lib/dropbox-sign/models/template_response_document_static_field_radio.rb +263 -0
  75. data/lib/dropbox-sign/models/template_response_document_static_field_signature.rb +263 -0
  76. data/lib/dropbox-sign/models/template_response_document_static_field_text.rb +263 -0
  77. data/lib/dropbox-sign/models/template_response_field_avg_text_length.rb +1 -1
  78. data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +1 -1
  79. data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +1 -1
  80. data/lib/dropbox-sign/version.rb +1 -1
  81. data/lib/dropbox-sign.rb +22 -5
  82. data/openapi-config.yaml +4 -1
  83. data/openapi-sdk.yaml +598 -186
  84. data/templates/VERSION-root.mustache +1 -0
  85. data/test_fixtures/AccountCreateResponse.json +1 -0
  86. data/test_fixtures/ApiAppGetResponse.json +1 -0
  87. data/test_fixtures/ApiAppListResponse.json +1 -0
  88. data/test_fixtures/BulkSendJobGetResponse.json +8 -3
  89. data/test_fixtures/SignatureRequestGetResponse.json +65 -65
  90. data/test_fixtures/SignatureRequestListResponse.json +11 -4
  91. data/test_fixtures/TemplateGetResponse.json +1064 -41
  92. data/test_fixtures/TemplateListResponse.json +513 -44
  93. metadata +58 -64
  94. data/docs/TemplateResponseDocumentCustomField.md +0 -25
  95. data/docs/TemplateResponseNamedFormField.md +0 -23
  96. data/lib/dropbox-sign/models/template_response_document_custom_field.rb +0 -454
  97. data/vendor/autoload.php +0 -7
  98. data/vendor/bin/yaml-lint +0 -117
  99. data/vendor/composer/ClassLoader.php +0 -572
  100. data/vendor/composer/InstalledVersions.php +0 -350
  101. data/vendor/composer/LICENSE +0 -21
  102. data/vendor/composer/autoload_classmap.php +0 -10
  103. data/vendor/composer/autoload_files.php +0 -11
  104. data/vendor/composer/autoload_namespaces.php +0 -9
  105. data/vendor/composer/autoload_psr4.php +0 -11
  106. data/vendor/composer/autoload_real.php +0 -80
  107. data/vendor/composer/autoload_static.php +0 -46
  108. data/vendor/composer/installed.json +0 -239
  109. data/vendor/composer/installed.php +0 -50
  110. data/vendor/composer/platform_check.php +0 -26
  111. data/vendor/symfony/deprecation-contracts/.gitignore +0 -3
  112. data/vendor/symfony/deprecation-contracts/CHANGELOG.md +0 -5
  113. data/vendor/symfony/deprecation-contracts/LICENSE +0 -19
  114. data/vendor/symfony/deprecation-contracts/README.md +0 -26
  115. data/vendor/symfony/deprecation-contracts/composer.json +0 -35
  116. data/vendor/symfony/deprecation-contracts/function.php +0 -27
  117. data/vendor/symfony/polyfill-ctype/Ctype.php +0 -232
  118. data/vendor/symfony/polyfill-ctype/LICENSE +0 -19
  119. data/vendor/symfony/polyfill-ctype/README.md +0 -12
  120. data/vendor/symfony/polyfill-ctype/bootstrap.php +0 -50
  121. data/vendor/symfony/polyfill-ctype/bootstrap80.php +0 -46
  122. data/vendor/symfony/polyfill-ctype/composer.json +0 -41
  123. data/vendor/symfony/yaml/CHANGELOG.md +0 -237
  124. data/vendor/symfony/yaml/Command/LintCommand.php +0 -289
  125. data/vendor/symfony/yaml/Dumper.php +0 -140
  126. data/vendor/symfony/yaml/Escaper.php +0 -95
  127. data/vendor/symfony/yaml/Exception/DumpException.php +0 -21
  128. data/vendor/symfony/yaml/Exception/ExceptionInterface.php +0 -21
  129. data/vendor/symfony/yaml/Exception/ParseException.php +0 -132
  130. data/vendor/symfony/yaml/Exception/RuntimeException.php +0 -21
  131. data/vendor/symfony/yaml/Inline.php +0 -812
  132. data/vendor/symfony/yaml/LICENSE +0 -19
  133. data/vendor/symfony/yaml/Parser.php +0 -1305
  134. data/vendor/symfony/yaml/README.md +0 -13
  135. data/vendor/symfony/yaml/Resources/bin/yaml-lint +0 -45
  136. data/vendor/symfony/yaml/Tag/TaggedValue.php +0 -38
  137. data/vendor/symfony/yaml/Unescaper.php +0 -132
  138. data/vendor/symfony/yaml/Yaml.php +0 -100
  139. data/vendor/symfony/yaml/composer.json +0 -42
@@ -1,13 +0,0 @@
1
- Yaml Component
2
- ==============
3
-
4
- The Yaml component loads and dumps YAML files.
5
-
6
- Resources
7
- ---------
8
-
9
- * [Documentation](https://symfony.com/doc/current/components/yaml.html)
10
- * [Contributing](https://symfony.com/doc/current/contributing/index.html)
11
- * [Report issues](https://github.com/symfony/symfony/issues) and
12
- [send Pull Requests](https://github.com/symfony/symfony/pulls)
13
- in the [main Symfony repository](https://github.com/symfony/symfony)
@@ -1,45 +0,0 @@
1
- #!/usr/bin/env php
2
- <?php
3
-
4
- /*
5
- * This file is part of the Symfony package.
6
- *
7
- * (c) Fabien Potencier <fabien@symfony.com>
8
- *
9
- * For the full copyright and license information, please view the LICENSE
10
- * file that was distributed with this source code.
11
- */
12
-
13
- /**
14
- * Runs the Yaml lint command.
15
- *
16
- * @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
17
- */
18
-
19
- use Symfony\Component\Console\Application;
20
- use Symfony\Component\Yaml\Command\LintCommand;
21
-
22
- function includeIfExists(string $file): bool
23
- {
24
- return file_exists($file) && include $file;
25
- }
26
-
27
- if (
28
- !includeIfExists(__DIR__ . '/../../../../autoload.php') &&
29
- !includeIfExists(__DIR__ . '/../../vendor/autoload.php') &&
30
- !includeIfExists(__DIR__ . '/../../../../../../vendor/autoload.php')
31
- ) {
32
- fwrite(STDERR, 'Install dependencies using Composer.'.PHP_EOL);
33
- exit(1);
34
- }
35
-
36
- if (!class_exists(Application::class)) {
37
- fwrite(STDERR, 'You need the "symfony/console" component in order to run the Yaml linter.'.PHP_EOL);
38
- exit(1);
39
- }
40
-
41
- (new Application())->add($command = new LintCommand())
42
- ->getApplication()
43
- ->setDefaultCommand($command->getName(), true)
44
- ->run()
45
- ;
@@ -1,38 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- namespace Symfony\Component\Yaml\Tag;
13
-
14
- /**
15
- * @author Nicolas Grekas <p@tchwork.com>
16
- * @author Guilhem N. <egetick@gmail.com>
17
- */
18
- final class TaggedValue
19
- {
20
- private $tag;
21
- private $value;
22
-
23
- public function __construct(string $tag, $value)
24
- {
25
- $this->tag = $tag;
26
- $this->value = $value;
27
- }
28
-
29
- public function getTag(): string
30
- {
31
- return $this->tag;
32
- }
33
-
34
- public function getValue()
35
- {
36
- return $this->value;
37
- }
38
- }
@@ -1,132 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- namespace Symfony\Component\Yaml;
13
-
14
- use Symfony\Component\Yaml\Exception\ParseException;
15
-
16
- /**
17
- * Unescaper encapsulates unescaping rules for single and double-quoted
18
- * YAML strings.
19
- *
20
- * @author Matthew Lewinski <matthew@lewinski.org>
21
- *
22
- * @internal
23
- */
24
- class Unescaper
25
- {
26
- /**
27
- * Regex fragment that matches an escaped character in a double quoted string.
28
- */
29
- public const REGEX_ESCAPED_CHARACTER = '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';
30
-
31
- /**
32
- * Unescapes a single quoted string.
33
- *
34
- * @param string $value A single quoted string
35
- */
36
- public function unescapeSingleQuotedString(string $value): string
37
- {
38
- return str_replace('\'\'', '\'', $value);
39
- }
40
-
41
- /**
42
- * Unescapes a double quoted string.
43
- *
44
- * @param string $value A double quoted string
45
- */
46
- public function unescapeDoubleQuotedString(string $value): string
47
- {
48
- $callback = function ($match) {
49
- return $this->unescapeCharacter($match[0]);
50
- };
51
-
52
- // evaluate the string
53
- return preg_replace_callback('/'.self::REGEX_ESCAPED_CHARACTER.'/u', $callback, $value);
54
- }
55
-
56
- /**
57
- * Unescapes a character that was found in a double-quoted string.
58
- *
59
- * @param string $value An escaped character
60
- */
61
- private function unescapeCharacter(string $value): string
62
- {
63
- switch ($value[1]) {
64
- case '0':
65
- return "\x0";
66
- case 'a':
67
- return "\x7";
68
- case 'b':
69
- return "\x8";
70
- case 't':
71
- return "\t";
72
- case "\t":
73
- return "\t";
74
- case 'n':
75
- return "\n";
76
- case 'v':
77
- return "\xB";
78
- case 'f':
79
- return "\xC";
80
- case 'r':
81
- return "\r";
82
- case 'e':
83
- return "\x1B";
84
- case ' ':
85
- return ' ';
86
- case '"':
87
- return '"';
88
- case '/':
89
- return '/';
90
- case '\\':
91
- return '\\';
92
- case 'N':
93
- // U+0085 NEXT LINE
94
- return "\xC2\x85";
95
- case '_':
96
- // U+00A0 NO-BREAK SPACE
97
- return "\xC2\xA0";
98
- case 'L':
99
- // U+2028 LINE SEPARATOR
100
- return "\xE2\x80\xA8";
101
- case 'P':
102
- // U+2029 PARAGRAPH SEPARATOR
103
- return "\xE2\x80\xA9";
104
- case 'x':
105
- return self::utf8chr(hexdec(substr($value, 2, 2)));
106
- case 'u':
107
- return self::utf8chr(hexdec(substr($value, 2, 4)));
108
- case 'U':
109
- return self::utf8chr(hexdec(substr($value, 2, 8)));
110
- default:
111
- throw new ParseException(sprintf('Found unknown escape character "%s".', $value));
112
- }
113
- }
114
-
115
- /**
116
- * Get the UTF-8 character for the given code point.
117
- */
118
- private static function utf8chr(int $c): string
119
- {
120
- if (0x80 > $c %= 0x200000) {
121
- return \chr($c);
122
- }
123
- if (0x800 > $c) {
124
- return \chr(0xC0 | $c >> 6).\chr(0x80 | $c & 0x3F);
125
- }
126
- if (0x10000 > $c) {
127
- return \chr(0xE0 | $c >> 12).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F);
128
- }
129
-
130
- return \chr(0xF0 | $c >> 18).\chr(0x80 | $c >> 12 & 0x3F).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F);
131
- }
132
- }
@@ -1,100 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- namespace Symfony\Component\Yaml;
13
-
14
- use Symfony\Component\Yaml\Exception\ParseException;
15
-
16
- /**
17
- * Yaml offers convenience methods to load and dump YAML.
18
- *
19
- * @author Fabien Potencier <fabien@symfony.com>
20
- *
21
- * @final
22
- */
23
- class Yaml
24
- {
25
- public const DUMP_OBJECT = 1;
26
- public const PARSE_EXCEPTION_ON_INVALID_TYPE = 2;
27
- public const PARSE_OBJECT = 4;
28
- public const PARSE_OBJECT_FOR_MAP = 8;
29
- public const DUMP_EXCEPTION_ON_INVALID_TYPE = 16;
30
- public const PARSE_DATETIME = 32;
31
- public const DUMP_OBJECT_AS_MAP = 64;
32
- public const DUMP_MULTI_LINE_LITERAL_BLOCK = 128;
33
- public const PARSE_CONSTANT = 256;
34
- public const PARSE_CUSTOM_TAGS = 512;
35
- public const DUMP_EMPTY_ARRAY_AS_SEQUENCE = 1024;
36
- public const DUMP_NULL_AS_TILDE = 2048;
37
-
38
- /**
39
- * Parses a YAML file into a PHP value.
40
- *
41
- * Usage:
42
- *
43
- * $array = Yaml::parseFile('config.yml');
44
- * print_r($array);
45
- *
46
- * @param string $filename The path to the YAML file to be parsed
47
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
48
- *
49
- * @return mixed
50
- *
51
- * @throws ParseException If the file could not be read or the YAML is not valid
52
- */
53
- public static function parseFile(string $filename, int $flags = 0)
54
- {
55
- $yaml = new Parser();
56
-
57
- return $yaml->parseFile($filename, $flags);
58
- }
59
-
60
- /**
61
- * Parses YAML into a PHP value.
62
- *
63
- * Usage:
64
- * <code>
65
- * $array = Yaml::parse(file_get_contents('config.yml'));
66
- * print_r($array);
67
- * </code>
68
- *
69
- * @param string $input A string containing YAML
70
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
71
- *
72
- * @return mixed
73
- *
74
- * @throws ParseException If the YAML is not valid
75
- */
76
- public static function parse(string $input, int $flags = 0)
77
- {
78
- $yaml = new Parser();
79
-
80
- return $yaml->parse($input, $flags);
81
- }
82
-
83
- /**
84
- * Dumps a PHP value to a YAML string.
85
- *
86
- * The dump method, when supplied with an array, will do its best
87
- * to convert the array into friendly YAML.
88
- *
89
- * @param mixed $input The PHP value
90
- * @param int $inline The level where you switch to inline YAML
91
- * @param int $indent The amount of spaces to use for indentation of nested nodes
92
- * @param int $flags A bit field of DUMP_* constants to customize the dumped YAML string
93
- */
94
- public static function dump($input, int $inline = 2, int $indent = 4, int $flags = 0): string
95
- {
96
- $yaml = new Dumper($indent);
97
-
98
- return $yaml->dump($input, $inline, 0, $flags);
99
- }
100
- }
@@ -1,42 +0,0 @@
1
- {
2
- "name": "symfony/yaml",
3
- "type": "library",
4
- "description": "Loads and dumps YAML files",
5
- "keywords": [],
6
- "homepage": "https://symfony.com",
7
- "license": "MIT",
8
- "authors": [
9
- {
10
- "name": "Fabien Potencier",
11
- "email": "fabien@symfony.com"
12
- },
13
- {
14
- "name": "Symfony Community",
15
- "homepage": "https://symfony.com/contributors"
16
- }
17
- ],
18
- "require": {
19
- "php": ">=7.2.5",
20
- "symfony/deprecation-contracts": "^2.1|^3",
21
- "symfony/polyfill-ctype": "^1.8"
22
- },
23
- "require-dev": {
24
- "symfony/console": "^5.3|^6.0"
25
- },
26
- "conflict": {
27
- "symfony/console": "<5.3"
28
- },
29
- "suggest": {
30
- "symfony/console": "For validating YAML files using the lint command"
31
- },
32
- "autoload": {
33
- "psr-4": { "Symfony\\Component\\Yaml\\": "" },
34
- "exclude-from-classmap": [
35
- "/Tests/"
36
- ]
37
- },
38
- "bin": [
39
- "Resources/bin/yaml-lint"
40
- ],
41
- "minimum-stability": "dev"
42
- }