ruby-anvil 0.0.1.pre.rc.1
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +61 -0
- data/LICENSE.txt +21 -0
- data/README.md +802 -0
- data/lib/anvil/auth.rb +66 -0
- data/lib/anvil/client.rb +624 -0
- data/lib/anvil/errors.rb +230 -0
- data/lib/anvil/graphql.rb +270 -0
- data/lib/anvil/multipart.rb +104 -0
- data/lib/anvil/payloads/base.rb +92 -0
- data/lib/anvil/payloads/create_etch_packet.rb +13 -0
- data/lib/anvil/payloads/etch_file.rb +21 -0
- data/lib/anvil/payloads/etch_signer.rb +22 -0
- data/lib/anvil/payloads/fill_pdf.rb +13 -0
- data/lib/anvil/payloads/forge_submit.rb +16 -0
- data/lib/anvil/payloads/generate_pdf.rb +26 -0
- data/lib/anvil/rate_limiter.rb +236 -0
- data/lib/anvil/response.rb +84 -0
- data/lib/anvil/types/base.rb +147 -0
- data/lib/anvil/types/etch_packet.rb +15 -0
- data/lib/anvil/types/generated/graphql.rb +1713 -0
- data/lib/anvil/types/generated/operations.rb +1342 -0
- data/lib/anvil/types/generated/rest.rb +496 -0
- data/lib/anvil/upload_with_options.rb +113 -0
- data/lib/anvil/uploads.rb +119 -0
- data/lib/anvil/version.rb +5 -0
- data/lib/anvil.rb +98 -0
- data/lib/ruby-anvil.rb +5 -0
- metadata +73 -0
|
@@ -0,0 +1,1342 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by dev/generate-types.mjs from @anvilco/types@1.1.0 schema.graphql. Do not edit by hand:
|
|
4
|
+
# run `npm run generate` in dev/ to regenerate.
|
|
5
|
+
|
|
6
|
+
module Anvil
|
|
7
|
+
module Payloads
|
|
8
|
+
# Declared empty first, so an attribute below can name a class defined later in the file
|
|
9
|
+
class EtchFile < Base; end
|
|
10
|
+
class GenerateExpressionDataInput < Base; end
|
|
11
|
+
class WebhookActionConfigInput < Base; end
|
|
12
|
+
class WeldFile < Base; end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
module Anvil
|
|
17
|
+
module Operations
|
|
18
|
+
# Declared empty first, so an attribute below can name a class defined later in the file
|
|
19
|
+
class CastArgs < Anvil::Payloads::Base; end
|
|
20
|
+
class CurrentUserArgs < Anvil::Payloads::Base; end
|
|
21
|
+
class DownloadArgs < Anvil::Payloads::Base; end
|
|
22
|
+
class EtchPacketArgs < Anvil::Payloads::Base; end
|
|
23
|
+
class ForgeArgs < Anvil::Payloads::Base; end
|
|
24
|
+
class IntegrationArgs < Anvil::Payloads::Base; end
|
|
25
|
+
class OrganizationArgs < Anvil::Payloads::Base; end
|
|
26
|
+
class SignerArgs < Anvil::Payloads::Base; end
|
|
27
|
+
class SubmissionArgs < Anvil::Payloads::Base; end
|
|
28
|
+
class WeldArgs < Anvil::Payloads::Base; end
|
|
29
|
+
class WeldDataArgs < Anvil::Payloads::Base; end
|
|
30
|
+
class CreateCastArgs < Anvil::Payloads::Base; end
|
|
31
|
+
class CreateEtchPacketArgs < Anvil::Payloads::Base; end
|
|
32
|
+
class CreateForgeArgs < Anvil::Payloads::Base; end
|
|
33
|
+
class CreateSubmissionArgs < Anvil::Payloads::Base; end
|
|
34
|
+
class CreateWebhookArgs < Anvil::Payloads::Base; end
|
|
35
|
+
class CreateWebhookActionArgs < Anvil::Payloads::Base; end
|
|
36
|
+
class CreateWeldArgs < Anvil::Payloads::Base; end
|
|
37
|
+
class CreateWeldDataArgs < Anvil::Payloads::Base; end
|
|
38
|
+
class DestroySubmissionArgs < Anvil::Payloads::Base; end
|
|
39
|
+
class DisconnectDocusignArgs < Anvil::Payloads::Base; end
|
|
40
|
+
class DuplicateCastArgs < Anvil::Payloads::Base; end
|
|
41
|
+
class DuplicateWeldArgs < Anvil::Payloads::Base; end
|
|
42
|
+
class ExpireSessionTokenArgs < Anvil::Payloads::Base; end
|
|
43
|
+
class ExpireSignerTokensArgs < Anvil::Payloads::Base; end
|
|
44
|
+
class ForgeSubmitArgs < Anvil::Payloads::Base; end
|
|
45
|
+
class GenerateEmbedUrlArgs < Anvil::Payloads::Base; end
|
|
46
|
+
class GenerateEtchSignUrlArgs < Anvil::Payloads::Base; end
|
|
47
|
+
class MergeWeldsArgs < Anvil::Payloads::Base; end
|
|
48
|
+
class NotifySignerArgs < Anvil::Payloads::Base; end
|
|
49
|
+
class PublishCastArgs < Anvil::Payloads::Base; end
|
|
50
|
+
class PublishWeldArgs < Anvil::Payloads::Base; end
|
|
51
|
+
class RemoveEtchPacketArgs < Anvil::Payloads::Base; end
|
|
52
|
+
class RemoveWebhookArgs < Anvil::Payloads::Base; end
|
|
53
|
+
class RemoveWebhookActionArgs < Anvil::Payloads::Base; end
|
|
54
|
+
class RemoveWeldDataArgs < Anvil::Payloads::Base; end
|
|
55
|
+
class RetryWebhookLogArgs < Anvil::Payloads::Base; end
|
|
56
|
+
class SendEtchPacketArgs < Anvil::Payloads::Base; end
|
|
57
|
+
class SkipSignerArgs < Anvil::Payloads::Base; end
|
|
58
|
+
class StartIntegrationConnectSessionArgs < Anvil::Payloads::Base; end
|
|
59
|
+
class StartIntegrationReconnectSessionArgs < Anvil::Payloads::Base; end
|
|
60
|
+
class UpdateCastArgs < Anvil::Payloads::Base; end
|
|
61
|
+
class UpdateEtchFreeArgs < Anvil::Payloads::Base; end
|
|
62
|
+
class UpdateEtchPacketArgs < Anvil::Payloads::Base; end
|
|
63
|
+
class UpdateEtchTemplateArgs < Anvil::Payloads::Base; end
|
|
64
|
+
class UpdateForgeArgs < Anvil::Payloads::Base; end
|
|
65
|
+
class UpdateOrganizationArgs < Anvil::Payloads::Base; end
|
|
66
|
+
class UpdateOrganizationUserArgs < Anvil::Payloads::Base; end
|
|
67
|
+
class UpdateSignerArgs < Anvil::Payloads::Base; end
|
|
68
|
+
class UpdateSubmissionArgs < Anvil::Payloads::Base; end
|
|
69
|
+
class UpdateWebhookArgs < Anvil::Payloads::Base; end
|
|
70
|
+
class UpdateWeldArgs < Anvil::Payloads::Base; end
|
|
71
|
+
class UpdateWeldDataArgs < Anvil::Payloads::Base; end
|
|
72
|
+
class VoidDocumentGroupArgs < Anvil::Payloads::Base; end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
module Anvil
|
|
77
|
+
module Payloads
|
|
78
|
+
# An object used by `createEtchPacket` to specify a file. See the
|
|
79
|
+
# [Etch e-sign guide](/docs/api/e-signatures) for more info.
|
|
80
|
+
class EtchFile
|
|
81
|
+
# What the API requires in this payload
|
|
82
|
+
REQUIRED = %w[id].freeze
|
|
83
|
+
|
|
84
|
+
attribute :base64_file
|
|
85
|
+
attribute :cast_eid
|
|
86
|
+
attribute :fields
|
|
87
|
+
attribute :file
|
|
88
|
+
|
|
89
|
+
# Filename set when creating the `EtchPacket`.
|
|
90
|
+
attribute :filename
|
|
91
|
+
|
|
92
|
+
attribute :font_size
|
|
93
|
+
|
|
94
|
+
# An id string set when creating the `EtchPacket`.
|
|
95
|
+
attribute :id
|
|
96
|
+
|
|
97
|
+
# For generated PDFs, set to false to disable the "Generated at XXX" timestamp at the bottom of the document.
|
|
98
|
+
attribute :include_timestamp
|
|
99
|
+
|
|
100
|
+
# For generated PDFs, you can specify a logo to be rendered at the top of the document.
|
|
101
|
+
attribute :logo
|
|
102
|
+
|
|
103
|
+
# Holds HTML/CSS to generate PDF
|
|
104
|
+
attribute :markup
|
|
105
|
+
|
|
106
|
+
# Holds page customizations to generate PDF
|
|
107
|
+
attribute :page
|
|
108
|
+
|
|
109
|
+
attribute :page_sizes
|
|
110
|
+
attribute :text_color
|
|
111
|
+
attribute :title
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
class GenerateExpressionDataInput
|
|
115
|
+
# What the API requires in this payload
|
|
116
|
+
REQUIRED = %w[userStatement].freeze
|
|
117
|
+
|
|
118
|
+
# A `Boolean` indicating whether the resulting expression shoudl resolve to a boolean value.
|
|
119
|
+
# Defaults to `false` when left out.
|
|
120
|
+
attribute :is_boolean
|
|
121
|
+
|
|
122
|
+
# A human-readable statement representing the expression you are trying to create. References to fields must be
|
|
123
|
+
# wrapped in double-brackets like so: `{{<forgeId>:<fieldId>}}`
|
|
124
|
+
attribute :user_statement
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Configuration options for a [`Webhook Action`]({{Types.WebhookAction}}).
|
|
128
|
+
class WebhookActionConfigInput
|
|
129
|
+
# Whether actually make the webhook call on Staging
|
|
130
|
+
attribute :do_on_staging
|
|
131
|
+
|
|
132
|
+
# Whether to encrypt the data payloads delivered by the [`Webhook`]({{Types.Webhook}}) call. Defaults to `false`.
|
|
133
|
+
# Defaults to `false` when left out.
|
|
134
|
+
attribute :encrypt_data
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# An object used by `createWeld` to specify a file. See the
|
|
138
|
+
# [GraphQL reference](/docs/api/graphql/reference/#operation-createweld-Mutations) for more info.
|
|
139
|
+
class WeldFile
|
|
140
|
+
# What the API requires in this payload
|
|
141
|
+
REQUIRED = %w[id].freeze
|
|
142
|
+
|
|
143
|
+
attribute :cast_eid
|
|
144
|
+
attribute :file
|
|
145
|
+
|
|
146
|
+
# An id string set when creating the `Weld`.
|
|
147
|
+
attribute :id
|
|
148
|
+
|
|
149
|
+
attribute :mimetype
|
|
150
|
+
attribute :name
|
|
151
|
+
attribute :src
|
|
152
|
+
attribute :stamp
|
|
153
|
+
attribute :title
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
module Anvil
|
|
159
|
+
module Operations
|
|
160
|
+
# Arguments of the `cast` query, which returns `Cast`.
|
|
161
|
+
# Fetch a single `Cast`. A `Cast` is a PDF Template. See our
|
|
162
|
+
# [terminology guide](/docs/api/getting-started#terminology) for more info.
|
|
163
|
+
class CastArgs
|
|
164
|
+
# The Cast's `eid` (which is the same as the PDF template ID)
|
|
165
|
+
attribute :eid
|
|
166
|
+
|
|
167
|
+
# Optional argument to request a specific version of the `Cast`. If not provided,
|
|
168
|
+
# the last ***published*** version will be returned, unless it has not been published
|
|
169
|
+
# in which case the latest ***draft*** version will be returned.
|
|
170
|
+
#
|
|
171
|
+
# Providing `-1` is a special value that will return the latest
|
|
172
|
+
# draft version of the `Cast`.
|
|
173
|
+
attribute :version_number
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Arguments of the `currentUser` query, which returns `User`.
|
|
177
|
+
# Fetches the currently logged in user. When used in an API context, this will
|
|
178
|
+
# return your API user. The `currentUser` query is useful to fetch objects
|
|
179
|
+
# in your organization. e.g. your `Organization`, its `Weld`s, etc.
|
|
180
|
+
class CurrentUserArgs
|
|
181
|
+
# This operation takes no arguments
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Arguments of the `download` query, which returns `Download`.
|
|
185
|
+
# A short-lived signed URL for a file Anvil stores: a Document Template's
|
|
186
|
+
# PDF, or the documents of an e-sign packet as a zip. The link downloads it
|
|
187
|
+
# with a plain GET and stops working at `expiresAt`.
|
|
188
|
+
class DownloadArgs
|
|
189
|
+
# What the API requires in this payload
|
|
190
|
+
REQUIRED = %w[eid objectType].freeze
|
|
191
|
+
|
|
192
|
+
# The `eid` of the object to download.
|
|
193
|
+
attribute :eid
|
|
194
|
+
|
|
195
|
+
# The file to return. Optional for an object with one format; required
|
|
196
|
+
# when it has several.
|
|
197
|
+
attribute :format
|
|
198
|
+
|
|
199
|
+
# What `eid` refers to.
|
|
200
|
+
attribute :object_type
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Arguments of the `etchPacket` query, which returns `EtchPacket`.
|
|
204
|
+
# Fetch a single `EtchPacket`. An `EtchPacket` represents a signature
|
|
205
|
+
# packet containing PDFs, signers, signed documents. This is the result of
|
|
206
|
+
# `createEtchPacket`. See the
|
|
207
|
+
# [e-signature API guide](/docs/api/e-signatures) for more info.
|
|
208
|
+
class EtchPacketArgs
|
|
209
|
+
# What the API requires in this payload
|
|
210
|
+
REQUIRED = %w[eid].freeze
|
|
211
|
+
|
|
212
|
+
attribute :eid
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Arguments of the `forge` query, which returns `Forge`.
|
|
216
|
+
# Fetch a single `Forge` by specifying _either_ (but not both) of the following argument sets:
|
|
217
|
+
# 1. Just the `eid` for the Forge if you know it.
|
|
218
|
+
# 2. Both the `organizationSlug` and `eidOrSlug`.
|
|
219
|
+
#
|
|
220
|
+
# A `Forge` holds configuration for a single webform. A `Forge` defines a
|
|
221
|
+
# webform's fields, the page fields are on, their types, webform logic, etc.
|
|
222
|
+
# Each Forge will be a member of only one `Weld` (Workflow). See our
|
|
223
|
+
# [terminology guide](/docs/api/getting-started#terminology) for more info.
|
|
224
|
+
#
|
|
225
|
+
# A better way to fetch `Forge`s is via the `weld` query.
|
|
226
|
+
# For example:
|
|
227
|
+
#
|
|
228
|
+
# ```graphql
|
|
229
|
+
# weld (eid: weldEid) {
|
|
230
|
+
# forges {
|
|
231
|
+
# eid
|
|
232
|
+
# slug
|
|
233
|
+
# name
|
|
234
|
+
# }
|
|
235
|
+
# }
|
|
236
|
+
# ```
|
|
237
|
+
class ForgeArgs
|
|
238
|
+
# If you are authenticated and know the EID, you can use this argument.
|
|
239
|
+
# Be sure to omit the `organizationSlug` and `eidOrSlug` arguments if passing `eid`.
|
|
240
|
+
attribute :eid
|
|
241
|
+
|
|
242
|
+
attribute :eid_or_slug
|
|
243
|
+
attribute :organization_slug
|
|
244
|
+
|
|
245
|
+
# If you want to receive the Forge and its related, versioned items in the version associated with
|
|
246
|
+
# a specific [`Submission`]({{Types.Submission}}) then pass that `Submission` EID here.
|
|
247
|
+
attribute :submission_eid
|
|
248
|
+
|
|
249
|
+
# Optional argument to request a specific version of the `Forge`. If not provided,
|
|
250
|
+
# the last ***published*** version will be returned, unless it has not been published
|
|
251
|
+
# in which case the latest ***draft*** version will be returned.
|
|
252
|
+
#
|
|
253
|
+
# All `Welds` and `Casts` that are related to this `Forge` will be returned
|
|
254
|
+
# in their state "as-of" the version requested for the `Forge`.
|
|
255
|
+
#
|
|
256
|
+
# Providing `-1` is a special value that will return the latest
|
|
257
|
+
# draft version of the `Forge`, but also the latest draft version of any related
|
|
258
|
+
# `Weld` and `Casts`.
|
|
259
|
+
attribute :version_number
|
|
260
|
+
|
|
261
|
+
# If you want to receive the Forge and its related, versioned items in the version associated with
|
|
262
|
+
# a specific [`WeldData`]({{Types.WeldData}}) then pass that `WeldData` EID here.
|
|
263
|
+
attribute :weld_data_eid
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Arguments of the `integration` query, which returns `Integration`.
|
|
267
|
+
# A connected (or connectable) third-party integration for the current
|
|
268
|
+
# organization, e.g. "hubspot". Request only the fields you need —
|
|
269
|
+
# `objectTypes` lazily calls out to the integration only when selected.
|
|
270
|
+
class IntegrationArgs
|
|
271
|
+
attribute :organization_eid
|
|
272
|
+
attribute :type
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Arguments of the `organization` query, which returns `Organization`.
|
|
276
|
+
# Fetch a single `Organization`. You obviously will only be able to access
|
|
277
|
+
# organizations you are a part of.
|
|
278
|
+
#
|
|
279
|
+
# A better way to fetch this information is via the `currentUser` query.
|
|
280
|
+
# For example:
|
|
281
|
+
#
|
|
282
|
+
# ```graphql
|
|
283
|
+
# currentUser {
|
|
284
|
+
# organizations {
|
|
285
|
+
# eid
|
|
286
|
+
# slug
|
|
287
|
+
# name
|
|
288
|
+
# }
|
|
289
|
+
# }
|
|
290
|
+
# ```
|
|
291
|
+
class OrganizationArgs
|
|
292
|
+
attribute :organization_eid
|
|
293
|
+
attribute :organization_slug
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Arguments of the `signer` query, which returns `Signer`.
|
|
297
|
+
# Fetches a single `Signer`.
|
|
298
|
+
#
|
|
299
|
+
# An alternate way to fetch signers is via a `DocumentGroup` object. For
|
|
300
|
+
# example, use the `etchPacket` or `weldData` query, then dig down to the
|
|
301
|
+
# signers in your query.
|
|
302
|
+
class SignerArgs
|
|
303
|
+
# What the API requires in this payload
|
|
304
|
+
REQUIRED = %w[eid].freeze
|
|
305
|
+
|
|
306
|
+
attribute :eid
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Arguments of the `submission` query, which returns `Submission`.
|
|
310
|
+
# Fetches a single `Submission`. A `Submission` holds data submitted to a
|
|
311
|
+
# webform. See our
|
|
312
|
+
# [terminology guide](/docs/api/getting-started#terminology) for more info.
|
|
313
|
+
#
|
|
314
|
+
# A better way to fetch submissions is via the `weldData` query. For example:
|
|
315
|
+
#
|
|
316
|
+
# ```graphql
|
|
317
|
+
# weldData (eid: weldDataEid) {
|
|
318
|
+
# displayTitle
|
|
319
|
+
# submissions {
|
|
320
|
+
# eid
|
|
321
|
+
# resolvedPayload
|
|
322
|
+
# }
|
|
323
|
+
# }
|
|
324
|
+
# ```
|
|
325
|
+
class SubmissionArgs
|
|
326
|
+
# What the API requires in this payload
|
|
327
|
+
REQUIRED = %w[eid forgeEidOrSlug organizationSlug].freeze
|
|
328
|
+
|
|
329
|
+
attribute :eid
|
|
330
|
+
attribute :force_create
|
|
331
|
+
attribute :forge_eid_or_slug
|
|
332
|
+
attribute :organization_slug
|
|
333
|
+
attribute :timezone
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Arguments of the `weld` query, which returns `Weld`.
|
|
337
|
+
# Fetch a single `Weld`. This query is a good way to fetch all of a
|
|
338
|
+
# Workflow's submissions (`WeldData`s). See the `Weld`'s `weldDatas`
|
|
339
|
+
# resolver.
|
|
340
|
+
#
|
|
341
|
+
# Specify either the `Weld`'s `eid` _or_ both the `Weld`'s `slug` and
|
|
342
|
+
# the `Weld`'s `organizationSlug`.
|
|
343
|
+
#
|
|
344
|
+
# See the [Workflow API guide](/docs/api/workflows) for more information on
|
|
345
|
+
# query usage.
|
|
346
|
+
class WeldArgs
|
|
347
|
+
# The Workflow / Weld's `eid`
|
|
348
|
+
attribute :eid
|
|
349
|
+
|
|
350
|
+
attribute :organization_slug
|
|
351
|
+
attribute :slug
|
|
352
|
+
|
|
353
|
+
# Optional argument to request a specific version of the `Weld`. If not provided,
|
|
354
|
+
# the last ***published*** version will be returned, unless it has not been published
|
|
355
|
+
# in which case the latest ***draft*** version will be returned.
|
|
356
|
+
#
|
|
357
|
+
# All `Forges` and `Casts` that are related to this `Weld` will be returned
|
|
358
|
+
# in their state "as-of" the version requested for the `Weld`.
|
|
359
|
+
#
|
|
360
|
+
# Providing `-1` is a special value that will return the latest
|
|
361
|
+
# draft version of the `Weld`, but also the latest draft version of any related
|
|
362
|
+
# `Forges` and `Casts`.
|
|
363
|
+
attribute :version_number
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Arguments of the `weldData` query, which returns `WeldData`.
|
|
367
|
+
# Fetch a single `WeldData` (Workflow submission). If you need to fetch all
|
|
368
|
+
# `WeldData`s for a given `Weld`, see the `weld` query.
|
|
369
|
+
#
|
|
370
|
+
# See the [Workflow API guide](/docs/api/workflows) for more information on
|
|
371
|
+
# query usage.
|
|
372
|
+
class WeldDataArgs
|
|
373
|
+
# What the API requires in this payload
|
|
374
|
+
REQUIRED = %w[eid].freeze
|
|
375
|
+
|
|
376
|
+
attribute :eid
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Arguments of the `createCast` mutation, which returns `Cast`.
|
|
380
|
+
# Create a `Cast` with the specified properties. This will require you to publish the `Cast`
|
|
381
|
+
# via the [`publishCast`]({{Mutations.publishCast}}) mutation before it will go live.
|
|
382
|
+
class CreateCastArgs
|
|
383
|
+
# What the API requires in this payload
|
|
384
|
+
REQUIRED = %w[file].freeze
|
|
385
|
+
|
|
386
|
+
# Uses AI to help analyze the document's fields. Will implicitly set `detectFields` to `true`.
|
|
387
|
+
# Defaults to `false` when left out.
|
|
388
|
+
attribute :advanced_detect_fields
|
|
389
|
+
|
|
390
|
+
attribute :allowed_alias_ids
|
|
391
|
+
|
|
392
|
+
# Uses AI to help detect the document's fields. Will implicitly set `detectFields` to `true`.
|
|
393
|
+
# Defaults to `false` when left out.
|
|
394
|
+
attribute :detect_boxes_advanced
|
|
395
|
+
|
|
396
|
+
# Defaults to `true` when left out.
|
|
397
|
+
attribute :detect_fields
|
|
398
|
+
|
|
399
|
+
attribute :file
|
|
400
|
+
|
|
401
|
+
# Defaults to `true` when left out.
|
|
402
|
+
attribute :is_template
|
|
403
|
+
|
|
404
|
+
attribute :organization_eid
|
|
405
|
+
|
|
406
|
+
# The schema input, interpreted according to `schemaSource`:
|
|
407
|
+
#
|
|
408
|
+
# - `schemaSource: "json"` -- `schema` *is* your aliasIds, passed
|
|
409
|
+
# inline. This is the canonical way to supply your own custom field
|
|
410
|
+
# aliases. Accepts either the object form or the array shorthand. For
|
|
411
|
+
# example:
|
|
412
|
+
# ```
|
|
413
|
+
# schemaSource: "json"
|
|
414
|
+
# schema: { employeeName: { description: "The employee's full name" } }
|
|
415
|
+
# ```
|
|
416
|
+
# or
|
|
417
|
+
# ```
|
|
418
|
+
# schemaSource: "json"
|
|
419
|
+
# schema: ["employeeName", "employeeId"]
|
|
420
|
+
# ```
|
|
421
|
+
#
|
|
422
|
+
# - If `schemaSource` is an integration (currently only `"hubspot"`),
|
|
423
|
+
# `schema` tells us which object type(s) on that integration to build
|
|
424
|
+
# `aliasIds` from. We look up each object type's properties from the
|
|
425
|
+
# integration and normalize them into the `aliasIds` shape for you.
|
|
426
|
+
# How each aliasId is named depends on how many object types you pass:
|
|
427
|
+
# - One object type: the bare property name. For example,
|
|
428
|
+
# `schema: { objectTypes: ["contacts"] }` gives aliasIds like
|
|
429
|
+
# `firstname` and `email`.
|
|
430
|
+
# - More than one: `${objectType}.${propertyName}`, so properties two
|
|
431
|
+
# object types share stay separate. For example,
|
|
432
|
+
# `schema: { objectTypes: ["contacts", "companies"] }` gives
|
|
433
|
+
# aliasIds like `contacts.email`, `contacts.phone`, and
|
|
434
|
+
# `companies.phone`.
|
|
435
|
+
#
|
|
436
|
+
# Detected fields that match a property are tagged with its aliasId,
|
|
437
|
+
# so these are also the keys to use in `data` when filling the Cast.
|
|
438
|
+
#
|
|
439
|
+
# Requires `advancedDetectFields: true`.
|
|
440
|
+
attribute :schema
|
|
441
|
+
|
|
442
|
+
# The source of the input schema (e.g. "json", "hubspot") used to create this cast. Pair it with `schema` (see
|
|
443
|
+
# below).
|
|
444
|
+
attribute :schema_source
|
|
445
|
+
|
|
446
|
+
attribute :title
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# Arguments of the `createEtchPacket` mutation, which returns `EtchPacket`.
|
|
450
|
+
# Create an e-signature packet. See the
|
|
451
|
+
# [Etch e-sign guide](/docs/api/e-signatures) for usage information.
|
|
452
|
+
class CreateEtchPacketArgs
|
|
453
|
+
# Uses AI to label uploaded documents, discover signers, and connect signers to fields.
|
|
454
|
+
# Defaults to `false` when left out.
|
|
455
|
+
attribute :advanced_create
|
|
456
|
+
|
|
457
|
+
# When enabled, the EtchPacket payload can be updated. Requires a plan that allows EtchPacket updates.
|
|
458
|
+
# Defaults to `false` when left out.
|
|
459
|
+
attribute :allow_updates
|
|
460
|
+
|
|
461
|
+
# Set to `true` to save uploaded PDFs to your PDF templates.
|
|
462
|
+
attribute :create_cast_templates_from_uploads
|
|
463
|
+
|
|
464
|
+
# Specifies data to fill documents in the `files` array. See the guide for details.
|
|
465
|
+
attribute :data
|
|
466
|
+
|
|
467
|
+
# Uses AI to help detect fields on uploaded document. Will implicitly set `detectFields` to `true`.
|
|
468
|
+
# Defaults to `false` when left out.
|
|
469
|
+
attribute :detect_boxes_advanced
|
|
470
|
+
|
|
471
|
+
# Set to `true` to duplicate all referenced PDF templates on packet
|
|
472
|
+
# creation. Setting to true is useful if you would like to edit the PDFs
|
|
473
|
+
# in the UI after packet creation.
|
|
474
|
+
# Defaults to `true` when left out.
|
|
475
|
+
attribute :duplicate_casts
|
|
476
|
+
|
|
477
|
+
# Enable all, none, or specific emails for this packet. When enabled, an
|
|
478
|
+
# email type will adhere to the organization settings for that email type.
|
|
479
|
+
# For example, when `signerViewAdmin` is enabled, an email will only be
|
|
480
|
+
# sent to organization members specified in the organization settings.
|
|
481
|
+
#
|
|
482
|
+
# Possible values: `true`, `false`, or an array of strings with any of
|
|
483
|
+
# the following `'signerViewAdmin'`, `'signerCompleteAdmin'`, or
|
|
484
|
+
# `'etchCompleteAdmin'`.
|
|
485
|
+
#
|
|
486
|
+
# The default is `false`.
|
|
487
|
+
attribute :enable_emails
|
|
488
|
+
|
|
489
|
+
# When enabled, the signature certificate is withheld from what signers
|
|
490
|
+
# download (finish page, per-file download, and the combined zip). It is
|
|
491
|
+
# still generated, stored, and available to your organization's users.
|
|
492
|
+
attribute :exclude_certificate_from_signer_downloads
|
|
493
|
+
|
|
494
|
+
# Specifies files that will be in the resulting packet. See the guide for details.
|
|
495
|
+
attribute :files, array_of: Anvil::Payloads::EtchFile
|
|
496
|
+
|
|
497
|
+
# Allows customization and whitelabeling of the signer finish page. See the guide for details.
|
|
498
|
+
attribute :finish_page_options
|
|
499
|
+
|
|
500
|
+
# When set to `false`, the packet will immediately be sent to the first
|
|
501
|
+
# signer. When set to `true`, the resulting `EtchPacket` will not be
|
|
502
|
+
# immediately sent. You will need to send the packet via the UI or
|
|
503
|
+
# the [`sendEtchPacket`](#operation-sendetchpacket-Mutations) mutation.
|
|
504
|
+
attribute :is_draft
|
|
505
|
+
|
|
506
|
+
# When `true`, the resulting packet will be in test mode. You will not
|
|
507
|
+
# be charged for test packets. Test packets will not use valid signatures.
|
|
508
|
+
# Test packets only email verified members of your organization; sending
|
|
509
|
+
# one to any other email signer is refused.
|
|
510
|
+
attribute :is_test
|
|
511
|
+
|
|
512
|
+
# When enabled, merges all PDFs before users sign. All signers will sign
|
|
513
|
+
# one (potentially large) PDF.
|
|
514
|
+
attribute :merge_pdfs, key: "mergePDFs"
|
|
515
|
+
|
|
516
|
+
attribute :name
|
|
517
|
+
attribute :organization_eid
|
|
518
|
+
|
|
519
|
+
# Overrides the replyTo header on emails sent to signers.
|
|
520
|
+
# By default, this will be the support email listed in your organization settings.
|
|
521
|
+
attribute :reply_to_email
|
|
522
|
+
|
|
523
|
+
# Overrides the replyTo header on emails sent to signers.
|
|
524
|
+
# By default, this will be your organization name.
|
|
525
|
+
attribute :reply_to_name
|
|
526
|
+
|
|
527
|
+
# When `true`, every signer on the packet must have a signature or
|
|
528
|
+
# signature initial field assigned; sending a packet with a signer missing
|
|
529
|
+
# one throws an error. When omitted, falls back to the organization's
|
|
530
|
+
# `requireSignatures` config, then defaults to `false`. Pass `false`
|
|
531
|
+
# to explicitly override an organization that has the setting enabled.
|
|
532
|
+
attribute :require_signatures
|
|
533
|
+
|
|
534
|
+
# Customizes the email body on signer emails
|
|
535
|
+
attribute :signature_email_body
|
|
536
|
+
|
|
537
|
+
# Customizes the email subject on signer emails
|
|
538
|
+
attribute :signature_email_subject
|
|
539
|
+
|
|
540
|
+
# Allows customization and whitelabeling of the signature page. See the guide for details.
|
|
541
|
+
attribute :signature_page_options
|
|
542
|
+
|
|
543
|
+
attribute :signature_provider
|
|
544
|
+
|
|
545
|
+
# BCC recipients for DocuSign envelopes. Only relevant when `signatureProvider` is set to `'docusign'`.
|
|
546
|
+
#
|
|
547
|
+
# Each recipient will receive a copy of the completed signature packet via email.
|
|
548
|
+
#
|
|
549
|
+
# Required fields:
|
|
550
|
+
# - `name`: Recipient name
|
|
551
|
+
# - `email`: Recipient email address
|
|
552
|
+
# - `type`: Must be `'carbonCopy'`
|
|
553
|
+
#
|
|
554
|
+
# Optional fields:
|
|
555
|
+
# - `disableInTestMode`: When `true`, removes recipient when packet is in test mode
|
|
556
|
+
# - `roleName`: Role name for the recipient
|
|
557
|
+
# - `accessCode`: Access code for the recipient
|
|
558
|
+
# - `templateAccessCodeRequired`: Whether access code is required
|
|
559
|
+
attribute :signature_recipients
|
|
560
|
+
|
|
561
|
+
# Specifies signers who will sign documents in the `files` array. See the guide for details.
|
|
562
|
+
#
|
|
563
|
+
# When `signatureProvider` is set to `'docusign'`, additional DocuSign-specific fields are available:
|
|
564
|
+
# - `requireIdCheck`: Boolean or string ('kb', 'sms', 'smskb', 'idsms') to require ID verification
|
|
565
|
+
# - `requireIdCheckInTest`: Boolean to require ID verification even in test mode
|
|
566
|
+
# - `idCheckPhone`: Phone number for ID verification (required when requireIdCheck is 'sms', 'smskb', or 'idsms')
|
|
567
|
+
# - `accessCode`: Access code for the signer
|
|
568
|
+
attribute :signers
|
|
569
|
+
|
|
570
|
+
# Allows you to set a webhook URL called specifically for actions on the resulting `EtchPacket`
|
|
571
|
+
attribute :webhook_url, key: "webhookURL"
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
# Arguments of the `createForge` mutation, which returns `Forge`.
|
|
575
|
+
# Create a `Forge` with the specified properties. This will require you to publish the `Weld`
|
|
576
|
+
# via the [`publishWeld`]({{Mutations.publishWeld}}) mutation before it will go live with the Workflow.
|
|
577
|
+
class CreateForgeArgs
|
|
578
|
+
# What the API requires in this payload
|
|
579
|
+
REQUIRED = %w[name slug weldEid].freeze
|
|
580
|
+
|
|
581
|
+
attribute :cast_eid
|
|
582
|
+
attribute :cast_field_ids
|
|
583
|
+
attribute :config
|
|
584
|
+
attribute :name
|
|
585
|
+
attribute :slug
|
|
586
|
+
attribute :weld_eid
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# Arguments of the `createSubmission` mutation, which returns `Submission`.
|
|
590
|
+
class CreateSubmissionArgs
|
|
591
|
+
# What the API requires in this payload
|
|
592
|
+
REQUIRED = %w[forgeEid weldDataEid].freeze
|
|
593
|
+
|
|
594
|
+
attribute :forge_eid
|
|
595
|
+
attribute :weld_data_eid
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
# Arguments of the `createWebhook` mutation, which returns `Organization`.
|
|
599
|
+
class CreateWebhookArgs
|
|
600
|
+
attribute :organization_eid
|
|
601
|
+
attribute :organization_slug
|
|
602
|
+
attribute :url
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
# Arguments of the `createWebhookAction` mutation, which returns `WebhookAction`.
|
|
606
|
+
# Create a Webhook Action to subscribe to events on objects.
|
|
607
|
+
#
|
|
608
|
+
# Here is a list of all the actions and the object types that are supported by them:
|
|
609
|
+
# - [`documentGroupCreate`](/docs/api/webhooks/#documentgroupcreate) => [`DocumentGroup`]({{Types.DocumentGroup}})
|
|
610
|
+
# - [`etchPacketComplete`](/docs/api/webhooks/#etchpacketcomplete) => [`EtchPacket`]({{Types.EtchPacket}})
|
|
611
|
+
# - [`forgeComplete`](/docs/api/webhooks/#forgecomplete) => [`Forge`]({{Types.Forge}}),
|
|
612
|
+
# [`Submission`]({{Types.Submission}}), [`WeldData`]({{Types.WeldData}}), [`Weld`]({{Types.Weld}})
|
|
613
|
+
# - [`signerUpdateStatus`](/docs/api/webhooks/#signerupdatestatus) => [`Signer`]({{Types.Signer}}),
|
|
614
|
+
# [`EtchPacket`]({{Types.EtchPacket}}), [`WeldData`]({{Types.WeldData}}), [`Weld`]({{Types.Weld}})
|
|
615
|
+
# - [`signerComplete`](/docs/api/webhooks/#signercomplete) => [`Signer`]({{Types.Signer}}),
|
|
616
|
+
# [`EtchPacket`]({{Types.EtchPacket}}), [`WeldData`]({{Types.WeldData}}), [`Weld`]({{Types.Weld}})
|
|
617
|
+
# - [`weldCreate`](/docs/api/webhooks/#weldcreate) => [`Organization`]({{Types.Organization}})
|
|
618
|
+
# - [`weldComplete`](/docs/api/webhooks/#weldcomplete) => [`WeldData`]({{Types.WeldData}}), [`Weld`]({{Types.Weld}})
|
|
619
|
+
#
|
|
620
|
+
# See the [Webhook Action documentation](/docs/api/webhooks/#webhook-actions) for usage information.
|
|
621
|
+
class CreateWebhookActionArgs
|
|
622
|
+
# What the API requires in this payload
|
|
623
|
+
REQUIRED = %w[action objectEid objectType].freeze
|
|
624
|
+
|
|
625
|
+
# The action you'd like to subscribe to on the object(s).
|
|
626
|
+
# You can also use `*` to monitor all actions.
|
|
627
|
+
attribute :action
|
|
628
|
+
|
|
629
|
+
attribute :config, type: Anvil::Payloads::WebhookActionConfigInput
|
|
630
|
+
|
|
631
|
+
# The `eid` of the specific object you'd like to monitor.
|
|
632
|
+
# You can also use `*` to monitor all objects of the specified type(s).
|
|
633
|
+
attribute :object_eid
|
|
634
|
+
|
|
635
|
+
# The type of object that you'd like to monitor for events.
|
|
636
|
+
# You can also use `*` to monitor all object types.
|
|
637
|
+
attribute :object_type
|
|
638
|
+
|
|
639
|
+
# If you want to create a new [`Webhook`]({{Types.Webhook}}) on-the-fly, you must specify the Organization `eid`
|
|
640
|
+
# here.
|
|
641
|
+
attribute :organization_eid
|
|
642
|
+
|
|
643
|
+
# If you want to create a new [`Webhook`]({{Types.Webhook}}) on-the-fly, you must specify the URL here.
|
|
644
|
+
attribute :url
|
|
645
|
+
|
|
646
|
+
# The `eid` of a pre-existing [`Webhook`]({{Types.Webhook}}) that you'd like to use for this Webhook Action.
|
|
647
|
+
# A new `Webhook` can be created as well.
|
|
648
|
+
attribute :webhook_eid
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# Arguments of the `createWeld` mutation, which returns `Weld`.
|
|
652
|
+
# Create a `Weld` with the specified properties. This will require you to publish the `Weld`
|
|
653
|
+
# via the [`publishWeld`]({{Mutations.publishWeld}}) mutation before it will go live.
|
|
654
|
+
class CreateWeldArgs
|
|
655
|
+
# Uses AI to generate webform pages, create signers, and connect webform fields to supplied documents.
|
|
656
|
+
# Defaults to `false` when left out.
|
|
657
|
+
attribute :advanced_create
|
|
658
|
+
|
|
659
|
+
# Uses AI to help detect and analyze uploaded documents' fields.
|
|
660
|
+
# Defaults to `false` when left out.
|
|
661
|
+
attribute :advanced_detect_fields
|
|
662
|
+
|
|
663
|
+
attribute :cast_eid
|
|
664
|
+
attribute :config
|
|
665
|
+
|
|
666
|
+
# Set to `true` to save uploaded PDFs to your PDF templates.
|
|
667
|
+
attribute :create_cast_templates_from_uploads
|
|
668
|
+
|
|
669
|
+
# Uses AI to help detect fields on uploaded documents.
|
|
670
|
+
# Defaults to `false` when left out.
|
|
671
|
+
attribute :detect_boxes_advanced
|
|
672
|
+
|
|
673
|
+
attribute :draft_step
|
|
674
|
+
attribute :files, array_of: Anvil::Payloads::WeldFile
|
|
675
|
+
attribute :name
|
|
676
|
+
attribute :organization_eid
|
|
677
|
+
attribute :slug
|
|
678
|
+
attribute :visibility
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
# Arguments of the `createWeldData` mutation, which returns `WeldData`.
|
|
682
|
+
class CreateWeldDataArgs
|
|
683
|
+
# What the API requires in this payload
|
|
684
|
+
REQUIRED = %w[weldEid].freeze
|
|
685
|
+
|
|
686
|
+
# Defaults to `false` when left out.
|
|
687
|
+
attribute :is_test
|
|
688
|
+
|
|
689
|
+
attribute :webhook_url, key: "webhookURL"
|
|
690
|
+
attribute :weld_data_group_eid
|
|
691
|
+
attribute :weld_eid
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# Arguments of the `destroySubmission` mutation, which returns `Boolean`.
|
|
695
|
+
class DestroySubmissionArgs
|
|
696
|
+
# What the API requires in this payload
|
|
697
|
+
REQUIRED = %w[eid].freeze
|
|
698
|
+
|
|
699
|
+
attribute :eid
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
# Arguments of the `disconnectDocusign` mutation, which returns `Organization`.
|
|
703
|
+
class DisconnectDocusignArgs
|
|
704
|
+
# What the API requires in this payload
|
|
705
|
+
REQUIRED = %w[organizationSlug].freeze
|
|
706
|
+
|
|
707
|
+
attribute :organization_slug
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# Arguments of the `duplicateCast` mutation, which returns `Cast`.
|
|
711
|
+
class DuplicateCastArgs
|
|
712
|
+
# What the API requires in this payload
|
|
713
|
+
REQUIRED = %w[eid].freeze
|
|
714
|
+
|
|
715
|
+
attribute :eid
|
|
716
|
+
attribute :name
|
|
717
|
+
attribute :organization_eid
|
|
718
|
+
attribute :title
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
# Arguments of the `duplicateWeld` mutation, which returns `Weld`.
|
|
722
|
+
class DuplicateWeldArgs
|
|
723
|
+
# What the API requires in this payload
|
|
724
|
+
REQUIRED = %w[eid].freeze
|
|
725
|
+
|
|
726
|
+
attribute :eid
|
|
727
|
+
attribute :name
|
|
728
|
+
attribute :organization_eid
|
|
729
|
+
attribute :slug
|
|
730
|
+
attribute :visibility
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Arguments of the `expireSessionToken` mutation, which returns `Boolean`.
|
|
734
|
+
# Expires the `UserToken` associated with the provided `requestTokenEid`. Any authentication attempts
|
|
735
|
+
# made using that token will be rejected.
|
|
736
|
+
class ExpireSessionTokenArgs
|
|
737
|
+
# What the API requires in this payload
|
|
738
|
+
REQUIRED = %w[requestTokenEid].freeze
|
|
739
|
+
|
|
740
|
+
# The EID of the request token that was returned from the [`generateEmbedURL`]({{Mutations.generateEmbedURL}})
|
|
741
|
+
# mutation.
|
|
742
|
+
# Used to determine which session token to invalidate.
|
|
743
|
+
attribute :request_token_eid
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
# Arguments of the `expireSignerTokens` mutation, which returns `Signer`.
|
|
747
|
+
# Expires all valid `SignerTokens` for a specific `Signer`. Signers who
|
|
748
|
+
# visit links with expired tokens will be shown a "Token Expired" error, or
|
|
749
|
+
# will be [redirected to your
|
|
750
|
+
# service](/docs/api/e-signatures#handling-signing-errors) if there is a
|
|
751
|
+
# `redirectURL` set on the signer.
|
|
752
|
+
#
|
|
753
|
+
# If the `Signer` has already completed signing, this mutation will throw an
|
|
754
|
+
# error. If you would like the `Signer` to be able to sign again, email
|
|
755
|
+
# signers will need to be notified via `sendEtchPacket`, and embedded
|
|
756
|
+
# signers will need a new signing link generated by `generateEtchSignURL`.
|
|
757
|
+
class ExpireSignerTokensArgs
|
|
758
|
+
# What the API requires in this payload
|
|
759
|
+
REQUIRED = %w[signerEid].freeze
|
|
760
|
+
|
|
761
|
+
attribute :signer_eid
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
# Arguments of the `forgeSubmit` mutation, which returns `Submission`.
|
|
765
|
+
# Submits data to a Workflow's webform (a `Forge`). You can use this
|
|
766
|
+
# mutation to start a Workflow with data from your system and submit data to
|
|
767
|
+
# an _existing_ `Submission`.
|
|
768
|
+
#
|
|
769
|
+
# See the [Workflow API guide](/docs/api/workflows) for more information on
|
|
770
|
+
# usage scenarios.
|
|
771
|
+
class ForgeSubmitArgs
|
|
772
|
+
# What the API requires in this payload
|
|
773
|
+
REQUIRED = %w[forgeEid payload].freeze
|
|
774
|
+
|
|
775
|
+
attribute :complete
|
|
776
|
+
attribute :current_step
|
|
777
|
+
|
|
778
|
+
# Defaults to `true` when left out.
|
|
779
|
+
attribute :enforce_payload_valid_on_create
|
|
780
|
+
|
|
781
|
+
attribute :forge_eid
|
|
782
|
+
attribute :group_array_id
|
|
783
|
+
attribute :group_array_index
|
|
784
|
+
|
|
785
|
+
# Defaults to `false` when left out.
|
|
786
|
+
attribute :is_test
|
|
787
|
+
|
|
788
|
+
# A `{ key: value }` object where `key` is the id or field alias of the
|
|
789
|
+
# webform (`Forge`) field, and value is the data you'd like to send.
|
|
790
|
+
#
|
|
791
|
+
# Data is additive: you only need to submit data you wish to update.
|
|
792
|
+
attribute :payload
|
|
793
|
+
|
|
794
|
+
attribute :submission_eid
|
|
795
|
+
attribute :timezone
|
|
796
|
+
attribute :webhook_url, key: "webhookURL"
|
|
797
|
+
attribute :weld_data_eid
|
|
798
|
+
end
|
|
799
|
+
|
|
800
|
+
# Arguments of the `generateEmbedURL` mutation, which returns `GenerateEmbedURLResponse`.
|
|
801
|
+
# Generate a URL for embedding the PDF template editor, the Etch packet
|
|
802
|
+
# builder, or the Workflow builder in your app. Embedding editors is an
|
|
803
|
+
# enterprise feature. Please contact sales@useanvil.com if you are interested
|
|
804
|
+
# in editor embedding.
|
|
805
|
+
class GenerateEmbedUrlArgs
|
|
806
|
+
# What the API requires in this payload
|
|
807
|
+
REQUIRED = %w[eid type].freeze
|
|
808
|
+
|
|
809
|
+
# The EID of the object you want to give embedded access to.
|
|
810
|
+
attribute :eid
|
|
811
|
+
|
|
812
|
+
# Any information that you would like to associate with this embedded URL request
|
|
813
|
+
attribute :metadata
|
|
814
|
+
|
|
815
|
+
# Options to control many parts of a token user's experience.
|
|
816
|
+
# Currently only supported when `type` is `edit-pdf-template`.
|
|
817
|
+
attribute :options
|
|
818
|
+
|
|
819
|
+
# For `type: edit-etch-packet` embeds only. When `true` (default),
|
|
820
|
+
# every signer must have at least one signature or initial field;
|
|
821
|
+
# signer-experience inference is not surfaced to the packet builder.
|
|
822
|
+
# When `false`, signers without signature fields are allowed (the
|
|
823
|
+
# packet builder UI shows a pre-send review of each signer's
|
|
824
|
+
# inferred experience). Has no effect for other embed types.
|
|
825
|
+
# Defaults to `true` when left out.
|
|
826
|
+
attribute :require_signatures
|
|
827
|
+
|
|
828
|
+
# The type of object you want to create an embedded URL for. Allowed values are `edit-etch-packet`,
|
|
829
|
+
# `edit-pdf-template`, `edit-weld`, `submit-webform`, `edit-workflow`
|
|
830
|
+
attribute :type
|
|
831
|
+
|
|
832
|
+
# The number of seconds from now that the embedded access will be valid for.
|
|
833
|
+
#
|
|
834
|
+
# Must provide either `validUntil` or `validForSeconds` arguments.
|
|
835
|
+
attribute :valid_for_seconds
|
|
836
|
+
|
|
837
|
+
# An ISO compliant date-time string such as `2030-01-01T00:00:00+00:00` that indicates when the embedded access
|
|
838
|
+
# will be valid until.
|
|
839
|
+
#
|
|
840
|
+
# Must provide either `validUntil` or `validForSeconds` arguments.
|
|
841
|
+
attribute :valid_until
|
|
842
|
+
end
|
|
843
|
+
|
|
844
|
+
# Arguments of the `generateEtchSignURL` mutation, which returns `String`.
|
|
845
|
+
# Generate a signing URL for embedded signers. See the
|
|
846
|
+
# [e-sign API guide on embedding
|
|
847
|
+
# signers](/docs/api/e-signatures#controlling-the-signature-process-with-embedded-signers)
|
|
848
|
+
# for more info.
|
|
849
|
+
class GenerateEtchSignUrlArgs
|
|
850
|
+
# What the API requires in this payload
|
|
851
|
+
REQUIRED = %w[clientUserId signerEid].freeze
|
|
852
|
+
|
|
853
|
+
# Your id for the person signing: a way to trace this signer back to a user in your system.
|
|
854
|
+
attribute :client_user_id
|
|
855
|
+
|
|
856
|
+
attribute :signer_eid
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# Arguments of the `mergeWelds` mutation, which returns `Weld`.
|
|
860
|
+
class MergeWeldsArgs
|
|
861
|
+
# What the API requires in this payload
|
|
862
|
+
REQUIRED = %w[deduplicateWebformFields name organizationEid slug].freeze
|
|
863
|
+
|
|
864
|
+
attribute :auto_publish
|
|
865
|
+
attribute :auto_publish_description
|
|
866
|
+
attribute :auto_publish_title
|
|
867
|
+
attribute :deduplicate_webform_fields
|
|
868
|
+
attribute :name
|
|
869
|
+
attribute :organization_eid
|
|
870
|
+
attribute :slug
|
|
871
|
+
attribute :weld_eids
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
# Arguments of the `notifySigner` mutation, which returns `Signer`.
|
|
875
|
+
# Notify a signer that it is their turn to sign. You can think of this as a
|
|
876
|
+
# "resend email" action for signers. This mutation will email signers with
|
|
877
|
+
# `signerType: 'email'` asking them to sign their portion of the signature
|
|
878
|
+
# packet. It will have no effect on signers with
|
|
879
|
+
# `signerType: 'embedded'` signers, it will error if the signer has already
|
|
880
|
+
# signed, or if it is not yet the signer's turn to sign.
|
|
881
|
+
class NotifySignerArgs
|
|
882
|
+
# What the API requires in this payload
|
|
883
|
+
REQUIRED = %w[signerEid].freeze
|
|
884
|
+
|
|
885
|
+
attribute :signer_eid
|
|
886
|
+
end
|
|
887
|
+
|
|
888
|
+
# Arguments of the `publishCast` mutation, which returns `Cast`.
|
|
889
|
+
# Publish a `Cast` by updating the `Cast` with all un-published changes.
|
|
890
|
+
#
|
|
891
|
+
# This is required to have any changes from an [`updateCast`]({{Mutations.updateCast}}) take effect.
|
|
892
|
+
class PublishCastArgs
|
|
893
|
+
# What the API requires in this payload
|
|
894
|
+
REQUIRED = %w[eid title].freeze
|
|
895
|
+
|
|
896
|
+
attribute :description
|
|
897
|
+
|
|
898
|
+
# The object's `eid`
|
|
899
|
+
attribute :eid
|
|
900
|
+
|
|
901
|
+
# A title for this version. This will be displayed in the version history.
|
|
902
|
+
attribute :title
|
|
903
|
+
end
|
|
904
|
+
|
|
905
|
+
# Arguments of the `publishWeld` mutation, which returns `Weld`.
|
|
906
|
+
# Publish a `Weld` by updating the `Weld` with all un-published changes.
|
|
907
|
+
#
|
|
908
|
+
# This is required to have any changes from an [`updateWeld`]({{Mutations.updateWeld}}) take effect.
|
|
909
|
+
class PublishWeldArgs
|
|
910
|
+
# What the API requires in this payload
|
|
911
|
+
REQUIRED = %w[eid title].freeze
|
|
912
|
+
|
|
913
|
+
attribute :description
|
|
914
|
+
|
|
915
|
+
# The object's `eid`
|
|
916
|
+
attribute :eid
|
|
917
|
+
|
|
918
|
+
# A boolean indicating whether you'd like to migrate all open workflow submissions to the
|
|
919
|
+
# new published version, or leave them pegged to the version under which they were created.
|
|
920
|
+
# Defaults to `true` when left out.
|
|
921
|
+
attribute :migrate_open_weld_datas
|
|
922
|
+
|
|
923
|
+
# A title for this version. This will be displayed in the version history.
|
|
924
|
+
attribute :title
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
# Arguments of the `removeEtchPacket` mutation, which returns `Boolean`.
|
|
928
|
+
class RemoveEtchPacketArgs
|
|
929
|
+
# What the API requires in this payload
|
|
930
|
+
REQUIRED = %w[eid].freeze
|
|
931
|
+
|
|
932
|
+
attribute :eid
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
# Arguments of the `removeWebhook` mutation, which returns `Organization`.
|
|
936
|
+
class RemoveWebhookArgs
|
|
937
|
+
# What the API requires in this payload
|
|
938
|
+
REQUIRED = %w[eid].freeze
|
|
939
|
+
|
|
940
|
+
attribute :eid
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
# Arguments of the `removeWebhookAction` mutation, which returns `Boolean`.
|
|
944
|
+
# Remove a Webhook Action and stop receiving Webhook calls for it.
|
|
945
|
+
class RemoveWebhookActionArgs
|
|
946
|
+
# What the API requires in this payload
|
|
947
|
+
REQUIRED = %w[eid].freeze
|
|
948
|
+
|
|
949
|
+
# The EID of the Webhook Action you want to remove.
|
|
950
|
+
attribute :eid
|
|
951
|
+
end
|
|
952
|
+
|
|
953
|
+
# Arguments of the `removeWeldData` mutation, which returns `Boolean`.
|
|
954
|
+
class RemoveWeldDataArgs
|
|
955
|
+
# What the API requires in this payload
|
|
956
|
+
REQUIRED = %w[eid].freeze
|
|
957
|
+
|
|
958
|
+
attribute :eid
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
# Arguments of the `retryWebhookLog` mutation, which returns `WebhookLog`.
|
|
962
|
+
class RetryWebhookLogArgs
|
|
963
|
+
# What the API requires in this payload
|
|
964
|
+
REQUIRED = %w[eid].freeze
|
|
965
|
+
|
|
966
|
+
attribute :eid
|
|
967
|
+
end
|
|
968
|
+
|
|
969
|
+
# Arguments of the `sendEtchPacket` mutation, which returns `EtchPacket`.
|
|
970
|
+
# This will move a `draft` `EtchPacket` into sent mode (`status` ==
|
|
971
|
+
# `sent`). If the first signer is an email signer, this will kick off an
|
|
972
|
+
# email, with a link to sign their portion of the packet.
|
|
973
|
+
#
|
|
974
|
+
# You can call this mutation after a packet is sent to "resend" signature
|
|
975
|
+
# emails to your email signers. For example, you can send a new email via
|
|
976
|
+
# `sendEtchPacket` if they lose the email, or if they have an email with an
|
|
977
|
+
# expired token. This mutation will always email the first signer who has not
|
|
978
|
+
# yet signed.
|
|
979
|
+
#
|
|
980
|
+
# When your signers are set up as `embedded` signers, they will _not_ be
|
|
981
|
+
# emailed. You must generate signing URLs via the
|
|
982
|
+
# [`generateEtchSignURL`]({{Mutations.generateEtchSignURL}}) mutation. See
|
|
983
|
+
# [our e-signature guide on embedded
|
|
984
|
+
# signers](/docs/api/e-signatures#controlling-the-signature-process-with-embedded-signers)
|
|
985
|
+
# for more info.
|
|
986
|
+
class SendEtchPacketArgs
|
|
987
|
+
# What the API requires in this payload
|
|
988
|
+
REQUIRED = %w[eid].freeze
|
|
989
|
+
|
|
990
|
+
attribute :eid
|
|
991
|
+
end
|
|
992
|
+
|
|
993
|
+
# Arguments of the `skipSigner` mutation, which returns `Signer`.
|
|
994
|
+
class SkipSignerArgs
|
|
995
|
+
# What the API requires in this payload
|
|
996
|
+
REQUIRED = %w[signerEid].freeze
|
|
997
|
+
|
|
998
|
+
# Defaults to `true` when left out.
|
|
999
|
+
attribute :clear_name_and_email
|
|
1000
|
+
|
|
1001
|
+
attribute :signer_eid
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
# Arguments of the `startIntegrationConnectSession` mutation, which returns `String`.
|
|
1005
|
+
# Mint a short-lived Nango Connect session token for the given integration
|
|
1006
|
+
# (e.g. "hubspot"), scoped to the current organization. The frontend uses
|
|
1007
|
+
# this token to open Nango's hosted Connect UI popup.
|
|
1008
|
+
class StartIntegrationConnectSessionArgs
|
|
1009
|
+
attribute :integration
|
|
1010
|
+
attribute :organization_eid
|
|
1011
|
+
end
|
|
1012
|
+
|
|
1013
|
+
# Arguments of the `startIntegrationReconnectSession` mutation, which returns `String`.
|
|
1014
|
+
# Mint a short-lived Nango Connect session token for repairing an existing,
|
|
1015
|
+
# broken connection for the given integration (e.g. "hubspot"), scoped to
|
|
1016
|
+
# the current organization. The frontend uses this token to open Nango's
|
|
1017
|
+
# hosted Connect UI popup.
|
|
1018
|
+
class StartIntegrationReconnectSessionArgs
|
|
1019
|
+
attribute :integration
|
|
1020
|
+
attribute :organization_eid
|
|
1021
|
+
end
|
|
1022
|
+
|
|
1023
|
+
# Arguments of the `updateCast` mutation, which returns `Cast`.
|
|
1024
|
+
# Update a `Cast` with new properties. This will create a new `CastVersion` and:
|
|
1025
|
+
# 1. If this being used as a Template, it will require you to publish the `Cast` via
|
|
1026
|
+
# the [`publishCast`]({{Mutations.publishCast}}) mutation
|
|
1027
|
+
# before it will go live.
|
|
1028
|
+
# 2. If the `Cast` is part of a Workflow, it will require you to publish the `Weld` via
|
|
1029
|
+
# the [`publishWeld`]({{Mutations.publishWeld}}) mutation
|
|
1030
|
+
class UpdateCastArgs
|
|
1031
|
+
# What the API requires in this payload
|
|
1032
|
+
REQUIRED = %w[eid].freeze
|
|
1033
|
+
|
|
1034
|
+
attribute :allowed_alias_ids
|
|
1035
|
+
attribute :config
|
|
1036
|
+
attribute :config_file
|
|
1037
|
+
attribute :eid
|
|
1038
|
+
attribute :feedback_message
|
|
1039
|
+
attribute :feedback_rating
|
|
1040
|
+
attribute :file
|
|
1041
|
+
attribute :is_archived
|
|
1042
|
+
attribute :is_template
|
|
1043
|
+
attribute :name
|
|
1044
|
+
attribute :organization_eid
|
|
1045
|
+
attribute :title
|
|
1046
|
+
|
|
1047
|
+
# Used to ensure that the Cast is still at the version that you believed it is.
|
|
1048
|
+
# Helps to prevent performing an update without being aware that an update has already
|
|
1049
|
+
# occurred in the meantime.
|
|
1050
|
+
attribute :version_number
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
# Arguments of the `updateEtchFree` mutation, which returns `EtchTemplate`.
|
|
1054
|
+
class UpdateEtchFreeArgs
|
|
1055
|
+
# What the API requires in this payload
|
|
1056
|
+
REQUIRED = %w[etchTemplateEid token].freeze
|
|
1057
|
+
|
|
1058
|
+
attribute :cast_fields
|
|
1059
|
+
attribute :etch_template_eid
|
|
1060
|
+
attribute :fields
|
|
1061
|
+
attribute :is_editing
|
|
1062
|
+
attribute :name
|
|
1063
|
+
attribute :owner_email
|
|
1064
|
+
attribute :owner_name
|
|
1065
|
+
attribute :signers
|
|
1066
|
+
attribute :token
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
# Arguments of the `updateEtchPacket` mutation, which returns `EtchPacket`.
|
|
1070
|
+
class UpdateEtchPacketArgs
|
|
1071
|
+
# What the API requires in this payload
|
|
1072
|
+
REQUIRED = %w[eid].freeze
|
|
1073
|
+
|
|
1074
|
+
attribute :eid
|
|
1075
|
+
attribute :is_archived
|
|
1076
|
+
|
|
1077
|
+
# If `true` we treat the provided `payload` as a partial update to be merged with the previous payload.
|
|
1078
|
+
# Any values in the `payload` that are set to `null` will be removed from the resulting merged payload.
|
|
1079
|
+
# Defaults to `false` when left out.
|
|
1080
|
+
attribute :merge_payloads
|
|
1081
|
+
|
|
1082
|
+
attribute :name
|
|
1083
|
+
attribute :payload
|
|
1084
|
+
attribute :token
|
|
1085
|
+
attribute :webhook_url, key: "webhookURL"
|
|
1086
|
+
end
|
|
1087
|
+
|
|
1088
|
+
# Arguments of the `updateEtchTemplate` mutation, which returns `EtchTemplate`.
|
|
1089
|
+
class UpdateEtchTemplateArgs
|
|
1090
|
+
# What the API requires in this payload
|
|
1091
|
+
REQUIRED = %w[eid].freeze
|
|
1092
|
+
|
|
1093
|
+
attribute :config
|
|
1094
|
+
attribute :eid
|
|
1095
|
+
attribute :is_repeatable
|
|
1096
|
+
attribute :name
|
|
1097
|
+
end
|
|
1098
|
+
|
|
1099
|
+
# Arguments of the `updateForge` mutation, which returns `Forge`.
|
|
1100
|
+
# Update a `Forge` with new properties. This will create a new `ForgeVersion` and
|
|
1101
|
+
# will require you to publish the `Weld` via the [`publishWeld`]({{Mutations.publishWeld}}) mutation
|
|
1102
|
+
# before it will go live.
|
|
1103
|
+
class UpdateForgeArgs
|
|
1104
|
+
# What the API requires in this payload
|
|
1105
|
+
REQUIRED = %w[eid].freeze
|
|
1106
|
+
|
|
1107
|
+
attribute :config
|
|
1108
|
+
attribute :config_file
|
|
1109
|
+
attribute :eid
|
|
1110
|
+
attribute :is_archived
|
|
1111
|
+
attribute :is_required
|
|
1112
|
+
attribute :name
|
|
1113
|
+
attribute :organization_role
|
|
1114
|
+
attribute :slug
|
|
1115
|
+
attribute :title
|
|
1116
|
+
attribute :unauthenticated_auth_type
|
|
1117
|
+
|
|
1118
|
+
# Used to ensure that the Forge is still at the version that you believed it is.
|
|
1119
|
+
# Helps to prevent performing an update without being aware that an update has already
|
|
1120
|
+
# occurred in the meantime.
|
|
1121
|
+
attribute :version_number
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
# Arguments of the `updateOrganization` mutation, which returns `Organization`.
|
|
1125
|
+
class UpdateOrganizationArgs
|
|
1126
|
+
attribute :billing_email
|
|
1127
|
+
attribute :config
|
|
1128
|
+
attribute :default_source_id
|
|
1129
|
+
attribute :etch_complete_email_recipients
|
|
1130
|
+
attribute :logo
|
|
1131
|
+
attribute :name
|
|
1132
|
+
attribute :organization_eid
|
|
1133
|
+
attribute :organization_slug
|
|
1134
|
+
attribute :signature_provider
|
|
1135
|
+
attribute :signer_complete_email_recipients
|
|
1136
|
+
attribute :signer_options
|
|
1137
|
+
attribute :signer_view_email_recipients
|
|
1138
|
+
attribute :slug
|
|
1139
|
+
attribute :stylesheet_url, key: "stylesheetURL"
|
|
1140
|
+
attribute :support_email
|
|
1141
|
+
attribute :weld_complete_email_enable_for_test
|
|
1142
|
+
attribute :weld_complete_email_recipients
|
|
1143
|
+
end
|
|
1144
|
+
|
|
1145
|
+
# Arguments of the `updateOrganizationUser` mutation, which returns `Organization`.
|
|
1146
|
+
class UpdateOrganizationUserArgs
|
|
1147
|
+
# What the API requires in this payload
|
|
1148
|
+
REQUIRED = %w[organizationEid role userEid].freeze
|
|
1149
|
+
|
|
1150
|
+
attribute :external_id
|
|
1151
|
+
attribute :organization_eid
|
|
1152
|
+
attribute :role
|
|
1153
|
+
attribute :user_eid
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
# Arguments of the `updateSigner` mutation, which returns `Signer`.
|
|
1157
|
+
# Update a `Signer`'s name and email address. A signer's name and email can
|
|
1158
|
+
# be updated as long as the signer has not completed signing or been skipped.
|
|
1159
|
+
#
|
|
1160
|
+
# Name and email for a signer can be updated after a previous signer
|
|
1161
|
+
# has already signed. Documents will be updated with the new signer
|
|
1162
|
+
# information. Only name and email fields that have been attached to a signer
|
|
1163
|
+
# will be updated. An invisible signature will be added to each updated
|
|
1164
|
+
# document indicating what changed and who changed it.
|
|
1165
|
+
#
|
|
1166
|
+
# This mutation can be used on signers in `EtchPackets` and in Workflows
|
|
1167
|
+
# (attached to `WeldData` objects).
|
|
1168
|
+
class UpdateSignerArgs
|
|
1169
|
+
# What the API requires in this payload
|
|
1170
|
+
REQUIRED = %w[eid].freeze
|
|
1171
|
+
|
|
1172
|
+
# If this is an Etch signer and they were created as `pending`, set this to `true` to activate them.
|
|
1173
|
+
# Defaults to `false` when left out.
|
|
1174
|
+
attribute :activate_if_pending
|
|
1175
|
+
|
|
1176
|
+
# Optionally provide a new or update an existing user-specified id for the `Signer`. This is specified as `id` in
|
|
1177
|
+
# the [`createEtchPacket`]({{Mutations.createEtchPacket}})
|
|
1178
|
+
# mutation. Note: This will only be updated if the `name` and/or the `email` are also changed.
|
|
1179
|
+
attribute :alias_id
|
|
1180
|
+
|
|
1181
|
+
# The eid of the `Signer` to update.
|
|
1182
|
+
attribute :eid
|
|
1183
|
+
|
|
1184
|
+
# The signer's new email address.
|
|
1185
|
+
attribute :email
|
|
1186
|
+
|
|
1187
|
+
# The signer's new name.
|
|
1188
|
+
attribute :name
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
# Arguments of the `updateSubmission` mutation, which returns `Submission`.
|
|
1192
|
+
class UpdateSubmissionArgs
|
|
1193
|
+
# What the API requires in this payload
|
|
1194
|
+
REQUIRED = %w[eid].freeze
|
|
1195
|
+
|
|
1196
|
+
attribute :eid
|
|
1197
|
+
attribute :is_excluded
|
|
1198
|
+
end
|
|
1199
|
+
|
|
1200
|
+
# Arguments of the `updateWebhook` mutation, which returns `Organization`.
|
|
1201
|
+
class UpdateWebhookArgs
|
|
1202
|
+
# What the API requires in this payload
|
|
1203
|
+
REQUIRED = %w[eid].freeze
|
|
1204
|
+
|
|
1205
|
+
attribute :eid
|
|
1206
|
+
attribute :url
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1209
|
+
# Arguments of the `updateWeld` mutation, which returns `Weld`.
|
|
1210
|
+
# Update a `Weld` with new properties. This will create a new `WeldVersion` and
|
|
1211
|
+
# will require you to publish the `Weld` via the [`publishWeld`]({{Mutations.publishWeld}}) mutation
|
|
1212
|
+
# before it will go live.
|
|
1213
|
+
class UpdateWeldArgs
|
|
1214
|
+
# What the API requires in this payload
|
|
1215
|
+
REQUIRED = %w[eid].freeze
|
|
1216
|
+
|
|
1217
|
+
attribute :config
|
|
1218
|
+
attribute :config_file
|
|
1219
|
+
attribute :data_display_title
|
|
1220
|
+
attribute :draft_step
|
|
1221
|
+
attribute :eid
|
|
1222
|
+
attribute :entry_button_copy_link
|
|
1223
|
+
attribute :entry_button_text
|
|
1224
|
+
attribute :entry_forge_id
|
|
1225
|
+
attribute :exclude_certificate_from_signer_downloads
|
|
1226
|
+
attribute :expire_after_days_complete
|
|
1227
|
+
attribute :expire_after_days_start
|
|
1228
|
+
attribute :expires_at
|
|
1229
|
+
attribute :is_archived
|
|
1230
|
+
attribute :locked_description_existing
|
|
1231
|
+
attribute :locked_description_new
|
|
1232
|
+
attribute :locked_title_existing
|
|
1233
|
+
attribute :locked_title_new
|
|
1234
|
+
attribute :merge_pdfs, key: "mergePDFs"
|
|
1235
|
+
attribute :name
|
|
1236
|
+
attribute :organization_eid
|
|
1237
|
+
attribute :signature_email_body
|
|
1238
|
+
attribute :signature_email_subject
|
|
1239
|
+
attribute :signature_mode
|
|
1240
|
+
attribute :signature_provider
|
|
1241
|
+
attribute :signature_steps_mode
|
|
1242
|
+
attribute :slug
|
|
1243
|
+
attribute :steps
|
|
1244
|
+
|
|
1245
|
+
# Used to ensure that the Weld is still at the version that you believed it is.
|
|
1246
|
+
# Helps to prevent performing an update without being aware that an update has already
|
|
1247
|
+
# occurred in the meantime.
|
|
1248
|
+
attribute :version_number
|
|
1249
|
+
|
|
1250
|
+
attribute :visibility
|
|
1251
|
+
attribute :weld_complete_email_enable_for_test
|
|
1252
|
+
attribute :weld_complete_email_recipients
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
# Arguments of the `updateWeldData` mutation, which returns `WeldData`.
|
|
1256
|
+
class UpdateWeldDataArgs
|
|
1257
|
+
# What the API requires in this payload
|
|
1258
|
+
REQUIRED = %w[eid].freeze
|
|
1259
|
+
|
|
1260
|
+
attribute :eid
|
|
1261
|
+
attribute :is_archived
|
|
1262
|
+
attribute :is_expired
|
|
1263
|
+
attribute :is_test
|
|
1264
|
+
attribute :pin
|
|
1265
|
+
attribute :webhook_url, key: "webhookURL"
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
# Arguments of the `voidDocumentGroup` mutation, which returns `DocumentGroup`.
|
|
1269
|
+
class VoidDocumentGroupArgs
|
|
1270
|
+
# What the API requires in this payload
|
|
1271
|
+
REQUIRED = %w[voidedReason].freeze
|
|
1272
|
+
|
|
1273
|
+
# The DocumentGroup's `eid`
|
|
1274
|
+
attribute :eid
|
|
1275
|
+
|
|
1276
|
+
attribute :voided_reason
|
|
1277
|
+
attribute :weld_data_eid
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
# The names of every query and mutation in the Anvil GraphQL schema
|
|
1281
|
+
NAMES = {
|
|
1282
|
+
queries: %w[
|
|
1283
|
+
cast
|
|
1284
|
+
currentUser
|
|
1285
|
+
download
|
|
1286
|
+
etchPacket
|
|
1287
|
+
forge
|
|
1288
|
+
integration
|
|
1289
|
+
organization
|
|
1290
|
+
signer
|
|
1291
|
+
submission
|
|
1292
|
+
weld
|
|
1293
|
+
weldData
|
|
1294
|
+
].freeze,
|
|
1295
|
+
mutations: %w[
|
|
1296
|
+
createCast
|
|
1297
|
+
createEtchPacket
|
|
1298
|
+
createForge
|
|
1299
|
+
createSubmission
|
|
1300
|
+
createWebhook
|
|
1301
|
+
createWebhookAction
|
|
1302
|
+
createWeld
|
|
1303
|
+
createWeldData
|
|
1304
|
+
destroySubmission
|
|
1305
|
+
disconnectDocusign
|
|
1306
|
+
duplicateCast
|
|
1307
|
+
duplicateWeld
|
|
1308
|
+
expireSessionToken
|
|
1309
|
+
expireSignerTokens
|
|
1310
|
+
forgeSubmit
|
|
1311
|
+
generateEmbedURL
|
|
1312
|
+
generateEtchSignURL
|
|
1313
|
+
mergeWelds
|
|
1314
|
+
notifySigner
|
|
1315
|
+
publishCast
|
|
1316
|
+
publishWeld
|
|
1317
|
+
removeEtchPacket
|
|
1318
|
+
removeWebhook
|
|
1319
|
+
removeWebhookAction
|
|
1320
|
+
removeWeldData
|
|
1321
|
+
retryWebhookLog
|
|
1322
|
+
sendEtchPacket
|
|
1323
|
+
skipSigner
|
|
1324
|
+
startIntegrationConnectSession
|
|
1325
|
+
startIntegrationReconnectSession
|
|
1326
|
+
updateCast
|
|
1327
|
+
updateEtchFree
|
|
1328
|
+
updateEtchPacket
|
|
1329
|
+
updateEtchTemplate
|
|
1330
|
+
updateForge
|
|
1331
|
+
updateOrganization
|
|
1332
|
+
updateOrganizationUser
|
|
1333
|
+
updateSigner
|
|
1334
|
+
updateSubmission
|
|
1335
|
+
updateWebhook
|
|
1336
|
+
updateWeld
|
|
1337
|
+
updateWeldData
|
|
1338
|
+
voidDocumentGroup
|
|
1339
|
+
].freeze
|
|
1340
|
+
}.freeze
|
|
1341
|
+
end
|
|
1342
|
+
end
|