Skip to content

Commit 1c6f153

Browse files
Maestro API code examples (#156)
* added Maestro code examples
1 parent 505bee7 commit 1c6f153

22 files changed

+1185
-60
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ end
7171
gem 'docusign_admin', '~> 1.3.0'
7272
gem 'docusign_click', '~> 1.4.0'
7373
gem 'docusign_esign', '~> 3.25.0'
74+
gem 'docusign_maestro', '~> 1.0.0.rc1'
7475
gem 'docusign_monitor', '~> 1.2.0'
7576
gem 'docusign_rooms', '~> 1.3.0'
76-
gem 'docusign_webforms', '~> 1.0.0'
7777
gem 'omniauth-oauth2', '~> 1.8.0'
7878
gem 'omniauth-rails_csrf_protection'
7979

Gemfile.lock

+61-59
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ GEM
6666
i18n (>= 1.6, < 2)
6767
minitest (>= 5.1)
6868
tzinfo (~> 2.0)
69-
addressable (2.8.5)
69+
addressable (2.8.6)
7070
public_suffix (>= 2.0.2, < 6.0)
7171
archive-zip (0.12.0)
7272
io-like (~> 0.3.0)
7373
ast (2.4.2)
74+
base64 (0.2.0)
7475
bindex (0.8.1)
7576
bootsnap (1.7.7)
7677
msgpack (~> 1.0)
@@ -96,9 +97,9 @@ GEM
9697
coffee-script-source
9798
execjs
9899
coffee-script-source (1.12.2)
99-
concurrent-ruby (1.2.2)
100+
concurrent-ruby (1.2.3)
100101
crass (1.0.6)
101-
date (3.3.3)
102+
date (3.3.4)
102103
docusign_admin (1.3.0)
103104
addressable (~> 2.7, >= 2.7.0)
104105
json (~> 2.1, >= 2.1.0)
@@ -114,75 +115,76 @@ GEM
114115
json (~> 2.1, >= 2.1.0)
115116
jwt (~> 2.2, >= 2.2.1)
116117
typhoeus (~> 1.0, >= 1.0.1)
117-
docusign_monitor (1.2.0)
118+
docusign_maestro (1.0.0.rc1)
118119
addressable (~> 2.7, >= 2.7.0)
119120
json (~> 2.1, >= 2.1.0)
120121
jwt (~> 2.2, >= 2.2.1)
121122
typhoeus (~> 1.0, >= 1.0.1)
122-
docusign_rooms (1.3.0)
123+
docusign_monitor (1.2.0)
123124
addressable (~> 2.7, >= 2.7.0)
124125
json (~> 2.1, >= 2.1.0)
125126
jwt (~> 2.2, >= 2.2.1)
126127
typhoeus (~> 1.0, >= 1.0.1)
127-
docusign_webforms (1.0.0)
128+
docusign_rooms (1.3.0)
128129
addressable (~> 2.7, >= 2.7.0)
129130
json (~> 2.1, >= 2.1.0)
130131
jwt (~> 2.2, >= 2.2.1)
131132
typhoeus (~> 1.0, >= 1.0.1)
132133
erubi (1.12.0)
133134
ethon (0.16.0)
134135
ffi (>= 1.15.0)
135-
execjs (2.8.1)
136-
faraday (2.7.10)
137-
faraday-net_http (>= 2.0, < 3.1)
138-
ruby2_keywords (>= 0.0.4)
139-
faraday-net_http (3.0.2)
140-
ffi (1.15.5)
141-
ffi (1.15.5-x64-mingw-ucrt)
142-
globalid (1.1.0)
143-
activesupport (>= 5.0)
136+
execjs (2.9.1)
137+
faraday (2.9.0)
138+
faraday-net_http (>= 2.0, < 3.2)
139+
faraday-net_http (3.1.0)
140+
net-http
141+
ffi (1.16.3)
142+
ffi (1.16.3-x64-mingw-ucrt)
143+
globalid (1.2.1)
144+
activesupport (>= 6.1)
144145
hashie (5.0.0)
145-
i18n (1.14.1)
146+
i18n (1.14.4)
146147
concurrent-ruby (~> 1.0)
147148
io-like (0.3.1)
148149
jbuilder (2.11.5)
149150
actionview (>= 5.0.0)
150151
activesupport (>= 5.0.0)
151-
json (2.6.3)
152-
jwt (2.7.1)
152+
json (2.7.2)
153+
jwt (2.8.1)
154+
base64
153155
listen (3.8.0)
154156
rb-fsevent (~> 0.10, >= 0.10.3)
155157
rb-inotify (~> 0.9, >= 0.9.10)
156-
loofah (2.21.3)
158+
loofah (2.22.0)
157159
crass (~> 1.0.2)
158160
nokogiri (>= 1.12.0)
159161
mail (2.8.1)
160162
mini_mime (>= 0.1.1)
161163
net-imap
162164
net-pop
163165
net-smtp
164-
marcel (1.0.2)
166+
marcel (1.0.4)
165167
matrix (0.4.2)
166168
method_source (1.0.0)
167169
mini_mime (1.1.5)
168-
minitest (5.19.0)
170+
minitest (5.22.3)
169171
msgpack (1.7.2)
170172
multi_xml (0.6.0)
171-
net-imap (0.3.7)
173+
net-http (0.4.1)
174+
uri
175+
net-imap (0.4.10)
172176
date
173177
net-protocol
174178
net-pop (0.1.2)
175179
net-protocol
176-
net-protocol (0.2.1)
180+
net-protocol (0.2.2)
177181
timeout
178-
net-smtp (0.3.3)
182+
net-smtp (0.5.0)
179183
net-protocol
180-
nio4r (2.5.9)
181-
nokogiri (1.15.4-x64-mingw-ucrt)
182-
racc (~> 1.4)
183-
nokogiri (1.15.4-x86_64-darwin)
184+
nio4r (2.7.1)
185+
nokogiri (1.16.3-x64-mingw-ucrt)
184186
racc (~> 1.4)
185-
nokogiri (1.15.4-x86_64-linux)
187+
nokogiri (1.16.3-x86_64-linux)
186188
racc (~> 1.4)
187189
oauth2 (2.0.9)
188190
faraday (>= 0.17.3, < 3.0)
@@ -191,7 +193,7 @@ GEM
191193
rack (>= 1.2, < 4)
192194
snaky_hash (~> 2.0)
193195
version_gem (~> 1.1)
194-
omniauth (2.1.1)
196+
omniauth (2.1.2)
195197
hashie (>= 3.4.6)
196198
rack (>= 2.2.3)
197199
rack-protection
@@ -201,8 +203,8 @@ GEM
201203
omniauth-rails_csrf_protection (1.0.1)
202204
actionpack (>= 4.2)
203205
omniauth (~> 2.0)
204-
parallel (1.23.0)
205-
parser (3.2.2.3)
206+
parallel (1.24.0)
207+
parser (3.3.0.5)
206208
ast (~> 2.4.1)
207209
racc
208210
power_assert (2.0.3)
@@ -213,12 +215,13 @@ GEM
213215
pry (>= 0.9.10, < 0.15)
214216
pry-rails (0.3.9)
215217
pry (>= 0.10.4)
216-
public_suffix (5.0.3)
218+
public_suffix (5.0.5)
217219
puma (6.1.1)
218220
nio4r (~> 2.0)
219-
racc (1.7.1)
220-
rack (2.2.8)
221-
rack-protection (3.1.0)
221+
racc (1.7.3)
222+
rack (2.2.9)
223+
rack-protection (3.2.0)
224+
base64 (>= 0.1.0)
222225
rack (~> 2.2, >= 2.2.4)
223226
rack-test (2.1.0)
224227
rack (>= 1.3)
@@ -251,11 +254,11 @@ GEM
251254
thor (~> 1.0)
252255
zeitwerk (~> 2.5)
253256
rainbow (3.1.1)
254-
rake (13.0.6)
257+
rake (13.2.1)
255258
rb-fsevent (0.11.2)
256259
rb-inotify (0.10.1)
257260
ffi (~> 1.0)
258-
regexp_parser (2.8.1)
261+
regexp_parser (2.9.0)
259262
rexml (3.2.6)
260263
rubocop (1.48.1)
261264
json (~> 2.3)
@@ -267,10 +270,9 @@ GEM
267270
rubocop-ast (>= 1.26.0, < 2.0)
268271
ruby-progressbar (~> 1.7)
269272
unicode-display_width (>= 2.4.0, < 3.0)
270-
rubocop-ast (1.29.0)
271-
parser (>= 3.2.1.0)
273+
rubocop-ast (1.31.2)
274+
parser (>= 3.3.0.4)
272275
ruby-progressbar (1.13.0)
273-
ruby2_keywords (0.0.5)
274276
rubyzip (2.3.2)
275277
sass-rails (6.0.0)
276278
sassc-rails (~> 2.1, >= 2.1.1)
@@ -289,54 +291,54 @@ GEM
289291
snaky_hash (2.0.1)
290292
hashie
291293
version_gem (~> 1.1, >= 1.1.1)
292-
spring (4.1.1)
294+
spring (4.1.3)
293295
spring-watcher-listen (2.1.0)
294296
listen (>= 2.7, < 4.0)
295297
spring (>= 4)
296-
sprockets (4.2.0)
298+
sprockets (4.2.1)
297299
concurrent-ruby (~> 1.0)
298300
rack (>= 2.2.4, < 4)
299301
sprockets-rails (3.4.2)
300302
actionpack (>= 5.2)
301303
activesupport (>= 5.2)
302304
sprockets (>= 3.0.0)
303-
sqlite3 (1.6.4-x64-mingw-ucrt)
304-
sqlite3 (1.6.4-x86_64-darwin)
305-
sqlite3 (1.6.4-x86_64-linux)
306-
test-unit (3.6.1)
305+
sqlite3 (1.6.9-x64-mingw-ucrt)
306+
sqlite3 (1.6.9-x86_64-linux)
307+
test-unit (3.6.2)
307308
power_assert
308-
thor (1.2.2)
309-
tilt (2.2.0)
310-
timeout (0.4.0)
309+
thor (1.3.1)
310+
tilt (2.3.0)
311+
timeout (0.4.1)
311312
turbolinks (5.2.1)
312313
turbolinks-source (~> 5.2)
313314
turbolinks-source (5.2.0)
314-
typhoeus (1.4.0)
315+
typhoeus (1.4.1)
315316
ethon (>= 0.9.0)
316317
tzinfo (2.0.6)
317318
concurrent-ruby (~> 1.0)
318319
tzinfo-data (1.2022.7)
319320
tzinfo (>= 1.0.0)
320321
uglifier (4.2.0)
321322
execjs (>= 0.3.0, < 3)
322-
unicode-display_width (2.4.2)
323-
version_gem (1.1.3)
324-
web-console (4.2.0)
323+
unicode-display_width (2.5.0)
324+
uri (0.13.0)
325+
version_gem (1.1.4)
326+
wdm (0.1.1)
327+
web-console (4.2.1)
325328
actionview (>= 6.0.0)
326329
activemodel (>= 6.0.0)
327330
bindex (>= 0.4.0)
328331
railties (>= 6.0.0)
329-
websocket (1.2.9)
332+
websocket (1.2.10)
330333
websocket-driver (0.7.6)
331334
websocket-extensions (>= 0.1.0)
332335
websocket-extensions (0.1.5)
333336
xpath (3.2.0)
334337
nokogiri (~> 1.8)
335-
zeitwerk (2.6.11)
338+
zeitwerk (2.6.13)
336339

337340
PLATFORMS
338341
x64-mingw-ucrt
339-
x86_64-darwin-21
340342
x86_64-linux
341343

342344
DEPENDENCIES
@@ -348,9 +350,9 @@ DEPENDENCIES
348350
docusign_admin (~> 1.3.0)
349351
docusign_click (~> 1.4.0)
350352
docusign_esign (~> 3.25.0)
353+
docusign_maestro (~> 1.0.0.rc1)
351354
docusign_monitor (~> 1.2.0)
352355
docusign_rooms (~> 1.3.0)
353-
docusign_webforms (~> 1.0.0)
354356
jbuilder (~> 2.11.5)
355357
listen (~> 3.8.0)
356358
matrix (~> 0.4.2)
@@ -377,4 +379,4 @@ RUBY VERSION
377379
ruby 3.1.2p20
378380

379381
BUNDLED WITH
380-
2.3.7
382+
2.4.22

app/assets/javascripts/search.js

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const DS_SEARCH = (function () {
77
ADMIN: "admin",
88
CONNECT: "connect",
99
WEBFORMS: "webforms",
10+
MAESTRO: "maestro",
1011
}
1112

1213
const processJSONData = function () {
@@ -145,6 +146,8 @@ const DS_SEARCH = (function () {
145146
return "cneg";
146147
case API_TYPES.WEBFORMS:
147148
return "weg";
149+
case API_TYPES.MAESTRO:
150+
return "mseg";
148151
}
149152
}
150153

app/controllers/e_sign/eeg008_create_template_controller.rb

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def create
1313
}
1414
results = ESign::Eg008CreateTemplateService.new(args).worker
1515
session[:template_id] = results[:template_id]
16+
session[:workflow_template_id] = results[:template_id]
1617
msg = if results.fetch(:created_new_template)
1718
'The template has been created!'
1819
else

0 commit comments

Comments
 (0)