Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"generatorConfig": {
"moduleName": "CloudPDF"
},
"originGitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53",
"originGitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.3.0",
"requestedVersion": "3.4.0",
"ciProvider": "github"
}
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"language": "ruby",
"canonicalVersion": "3.3.0",
"sdkVersion": "3.3.0",
"canonicalVersion": "3.4.0",
"sdkVersion": "3.4.0",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "8d6fda1d157a3f3f82d3a16835381932eaa6efe3054100bb0aa63c0ad5ac6909",
"gitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53",
"openapiSha256": "1416853fd5400e76cd33ffd218e90673faf6c8c8c50f86af1937ba6576efb27d",
"gitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
2 changes: 1 addition & 1 deletion lib/CloudPDF/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(token:, base_url: nil, max_retries: 2)
headers: {
"X-Fern-Language" => "Ruby",
Authorization: "Bearer #{token}",
"EmbedPDF-Version" => "3.3"
"EmbedPDF-Version" => "3.4"
},
max_retries: max_retries
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module CloudPDF
module Types
class ChangeOpFormsSetSignatureAppearanceResources < Internal::Types::Model
field :appearance, -> { String }, optional: false, nullable: false
field :appearance, -> { String }, optional: false, nullable: true
end
end
end
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_checkbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldCheckbox < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/form_field_combobox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldCombobox < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand All @@ -48,6 +50,8 @@ class FormFieldCombobox < Internal::Types::Model
field :edit, -> { Internal::Types::Boolean }, optional: false, nullable: false

field :options, -> { Internal::Types::Array[CloudPDF::Types::FormFieldComboboxOptionsItem] }, optional: false, nullable: false

field :format, -> { CloudPDF::Types::FormFieldFormat }, optional: false, nullable: true
end
end
end
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_draft_checkbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldDraftCheckbox < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/form_field_draft_combobox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldDraftCombobox < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand All @@ -26,6 +28,8 @@ class FormFieldDraftCombobox < Internal::Types::Model
field :options, -> { Internal::Types::Array[CloudPDF::Types::FormFieldDraftComboboxOptionsItem] }, optional: true, nullable: false

field :default_value, -> { String }, optional: true, nullable: false, api_name: "defaultValue"

field :format, -> { CloudPDF::Types::FormFieldFormatWritable }, optional: true, nullable: false
end
end
end
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_draft_listbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldDraftListbox < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_draft_pushbutton.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldDraftPushbutton < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_draft_radio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldDraftRadio < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_draft_signature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldDraftSignature < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/form_field_draft_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldDraftText < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
Expand All @@ -30,6 +32,8 @@ class FormFieldDraftText < Internal::Types::Model
field :password, -> { Internal::Types::Boolean }, optional: true, nullable: false

field :comb, -> { Internal::Types::Boolean }, optional: true, nullable: false

field :format, -> { CloudPDF::Types::FormFieldFormatWritable }, optional: true, nullable: false
end
end
end
20 changes: 20 additions & 0 deletions lib/CloudPDF/types/form_field_format.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

module CloudPDF
module Types
# The shape a text field's or a dropdown's value has, by its `kind`: a date or a time with the pattern it is shown
# in, or `other` for a format script the engine does not recognise. A newer server can add kinds: read one your
# client doesn't know as `other`.
class FormFieldFormat < Internal::Types::Model
extend CloudPDF::Internal::Types::Union

discriminant :kind

member -> { CloudPDF::Types::FormFieldFormatDate }, key: "DATE"

member -> { CloudPDF::Types::FormFieldFormatTime }, key: "TIME"

member -> { CloudPDF::Types::FormFieldFormatOther }, key: "OTHER"
end
end
end
9 changes: 9 additions & 0 deletions lib/CloudPDF/types/form_field_format_date.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FormFieldFormatDate < Internal::Types::Model
field :pattern, -> { String }, optional: false, nullable: false
end
end
end
7 changes: 7 additions & 0 deletions lib/CloudPDF/types/form_field_format_other.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FormFieldFormatOther < Internal::Types::Model; end
end
end
9 changes: 9 additions & 0 deletions lib/CloudPDF/types/form_field_format_time.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FormFieldFormatTime < Internal::Types::Model
field :pattern, -> { String }, optional: false, nullable: false
end
end
end
15 changes: 15 additions & 0 deletions lib/CloudPDF/types/form_field_format_writable.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FormFieldFormatWritable < Internal::Types::Model
extend CloudPDF::Internal::Types::Union

discriminant :kind

member -> { CloudPDF::Types::FormFieldFormatWritableDate }, key: "DATE"

member -> { CloudPDF::Types::FormFieldFormatWritableTime }, key: "TIME"
end
end
end
9 changes: 9 additions & 0 deletions lib/CloudPDF/types/form_field_format_writable_date.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FormFieldFormatWritableDate < Internal::Types::Model
field :pattern, -> { String }, optional: false, nullable: false
end
end
end
9 changes: 9 additions & 0 deletions lib/CloudPDF/types/form_field_format_writable_time.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module CloudPDF
module Types
class FormFieldFormatWritableTime < Internal::Types::Model
field :pattern, -> { String }, optional: false, nullable: false
end
end
end
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_listbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldListbox < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/form_field_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class FormFieldPatch < Internal::Types::Model

field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"

field :purpose, -> { String }, optional: true, nullable: false

field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false

field :kind, -> { CloudPDF::Types::FormFieldPatchKind }, optional: true, nullable: false
Expand All @@ -40,6 +42,8 @@ class FormFieldPatch < Internal::Types::Model
field :multi_select, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "multiSelect"

field :options, -> { Internal::Types::Array[CloudPDF::Types::FormFieldPatchOptionsItem] }, optional: true, nullable: false

field :format, -> { CloudPDF::Types::FormFieldFormatWritable }, optional: true, nullable: false
end
end
end
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_pushbutton.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldPushbutton < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_radio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldRadio < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_signature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldSignature < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/types/form_field_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldText < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand All @@ -52,6 +54,8 @@ class FormFieldText < Internal::Types::Model
field :password, -> { Internal::Types::Boolean }, optional: false, nullable: false

field :comb, -> { Internal::Types::Boolean }, optional: false, nullable: false

field :format, -> { CloudPDF::Types::FormFieldFormat }, optional: false, nullable: true
end
end
end
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/form_field_unknown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class FormFieldUnknown < Internal::Types::Model

field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"

field :purpose, -> { String }, optional: false, nullable: true

field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"

field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
Expand Down
2 changes: 1 addition & 1 deletion lib/CloudPDF/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CloudPDF
VERSION = "3.3.0"
VERSION = "3.4.0"
end
7 changes: 7 additions & 0 deletions lib/cloudpdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@
require_relative "CloudPDF/types/form_field_ref_object_number"
require_relative "CloudPDF/types/form_field_ref_fqn"
require_relative "CloudPDF/types/form_field_ref"
require_relative "CloudPDF/types/form_field_format_writable_date"
require_relative "CloudPDF/types/form_field_format_writable_time"
require_relative "CloudPDF/types/form_field_format_writable"
require_relative "CloudPDF/types/form_field_value"
require_relative "CloudPDF/types/widget_placement_rect"
require_relative "CloudPDF/types/widget_placement_box"
Expand Down Expand Up @@ -1034,6 +1037,10 @@
require_relative "CloudPDF/types/annotation_list"
require_relative "CloudPDF/types/annotation_mutation_meta"
require_relative "CloudPDF/types/form_field_text_origin"
require_relative "CloudPDF/types/form_field_format_date"
require_relative "CloudPDF/types/form_field_format_time"
require_relative "CloudPDF/types/form_field_format_other"
require_relative "CloudPDF/types/form_field_format"
require_relative "CloudPDF/types/form_value_entry_none"
require_relative "CloudPDF/types/form_value_entry_scalar"
require_relative "CloudPDF/types/form_value_entry_array"
Expand Down
Loading