Skip to content

Commit

Permalink
Maestro API code examples (#156)
Browse files Browse the repository at this point in the history
* added Maestro code examples
  • Loading branch information
RomanBachaloSigmaSoftware authored Apr 10, 2024
1 parent 505bee7 commit 1c6f153
Show file tree
Hide file tree
Showing 22 changed files with 1,185 additions and 60 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ end
gem 'docusign_admin', '~> 1.3.0'
gem 'docusign_click', '~> 1.4.0'
gem 'docusign_esign', '~> 3.25.0'
gem 'docusign_maestro', '~> 1.0.0.rc1'
gem 'docusign_monitor', '~> 1.2.0'
gem 'docusign_rooms', '~> 1.3.0'
gem 'docusign_webforms', '~> 1.0.0'
gem 'omniauth-oauth2', '~> 1.8.0'
gem 'omniauth-rails_csrf_protection'

Expand Down
120 changes: 61 additions & 59 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ GEM
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.5)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
archive-zip (0.12.0)
io-like (~> 0.3.0)
ast (2.4.2)
base64 (0.2.0)
bindex (0.8.1)
bootsnap (1.7.7)
msgpack (~> 1.0)
Expand All @@ -96,9 +97,9 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
crass (1.0.6)
date (3.3.3)
date (3.3.4)
docusign_admin (1.3.0)
addressable (~> 2.7, >= 2.7.0)
json (~> 2.1, >= 2.1.0)
Expand All @@ -114,75 +115,76 @@ GEM
json (~> 2.1, >= 2.1.0)
jwt (~> 2.2, >= 2.2.1)
typhoeus (~> 1.0, >= 1.0.1)
docusign_monitor (1.2.0)
docusign_maestro (1.0.0.rc1)
addressable (~> 2.7, >= 2.7.0)
json (~> 2.1, >= 2.1.0)
jwt (~> 2.2, >= 2.2.1)
typhoeus (~> 1.0, >= 1.0.1)
docusign_rooms (1.3.0)
docusign_monitor (1.2.0)
addressable (~> 2.7, >= 2.7.0)
json (~> 2.1, >= 2.1.0)
jwt (~> 2.2, >= 2.2.1)
typhoeus (~> 1.0, >= 1.0.1)
docusign_webforms (1.0.0)
docusign_rooms (1.3.0)
addressable (~> 2.7, >= 2.7.0)
json (~> 2.1, >= 2.1.0)
jwt (~> 2.2, >= 2.2.1)
typhoeus (~> 1.0, >= 1.0.1)
erubi (1.12.0)
ethon (0.16.0)
ffi (>= 1.15.0)
execjs (2.8.1)
faraday (2.7.10)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
ffi (1.15.5)
ffi (1.15.5-x64-mingw-ucrt)
globalid (1.1.0)
activesupport (>= 5.0)
execjs (2.9.1)
faraday (2.9.0)
faraday-net_http (>= 2.0, < 3.2)
faraday-net_http (3.1.0)
net-http
ffi (1.16.3)
ffi (1.16.3-x64-mingw-ucrt)
globalid (1.2.1)
activesupport (>= 6.1)
hashie (5.0.0)
i18n (1.14.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
io-like (0.3.1)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
json (2.6.3)
jwt (2.7.1)
json (2.7.2)
jwt (2.8.1)
base64
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.21.3)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (1.0.2)
marcel (1.0.4)
matrix (0.4.2)
method_source (1.0.0)
mini_mime (1.1.5)
minitest (5.19.0)
minitest (5.22.3)
msgpack (1.7.2)
multi_xml (0.6.0)
net-imap (0.3.7)
net-http (0.4.1)
uri
net-imap (0.4.10)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
net-protocol (0.2.2)
timeout
net-smtp (0.3.3)
net-smtp (0.5.0)
net-protocol
nio4r (2.5.9)
nokogiri (1.15.4-x64-mingw-ucrt)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-darwin)
nio4r (2.7.1)
nokogiri (1.16.3-x64-mingw-ucrt)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
nokogiri (1.16.3-x86_64-linux)
racc (~> 1.4)
oauth2 (2.0.9)
faraday (>= 0.17.3, < 3.0)
Expand All @@ -191,7 +193,7 @@ GEM
rack (>= 1.2, < 4)
snaky_hash (~> 2.0)
version_gem (~> 1.1)
omniauth (2.1.1)
omniauth (2.1.2)
hashie (>= 3.4.6)
rack (>= 2.2.3)
rack-protection
Expand All @@ -201,8 +203,8 @@ GEM
omniauth-rails_csrf_protection (1.0.1)
actionpack (>= 4.2)
omniauth (~> 2.0)
parallel (1.23.0)
parser (3.2.2.3)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
power_assert (2.0.3)
Expand All @@ -213,12 +215,13 @@ GEM
pry (>= 0.9.10, < 0.15)
pry-rails (0.3.9)
pry (>= 0.10.4)
public_suffix (5.0.3)
public_suffix (5.0.5)
puma (6.1.1)
nio4r (~> 2.0)
racc (1.7.1)
rack (2.2.8)
rack-protection (3.1.0)
racc (1.7.3)
rack (2.2.9)
rack-protection (3.2.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
rack-test (2.1.0)
rack (>= 1.3)
Expand Down Expand Up @@ -251,11 +254,11 @@ GEM
thor (~> 1.0)
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.8.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.48.1)
json (~> 2.3)
Expand All @@ -267,10 +270,9 @@ GEM
rubocop-ast (>= 1.26.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
Expand All @@ -289,54 +291,54 @@ GEM
snaky_hash (2.0.1)
hashie
version_gem (~> 1.1, >= 1.1.1)
spring (4.1.1)
spring (4.1.3)
spring-watcher-listen (2.1.0)
listen (>= 2.7, < 4.0)
spring (>= 4)
sprockets (4.2.0)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.6.4-x64-mingw-ucrt)
sqlite3 (1.6.4-x86_64-darwin)
sqlite3 (1.6.4-x86_64-linux)
test-unit (3.6.1)
sqlite3 (1.6.9-x64-mingw-ucrt)
sqlite3 (1.6.9-x86_64-linux)
test-unit (3.6.2)
power_assert
thor (1.2.2)
tilt (2.2.0)
timeout (0.4.0)
thor (1.3.1)
tilt (2.3.0)
timeout (0.4.1)
turbolinks (5.2.1)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
typhoeus (1.4.0)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2022.7)
tzinfo (>= 1.0.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.4.2)
version_gem (1.1.3)
web-console (4.2.0)
unicode-display_width (2.5.0)
uri (0.13.0)
version_gem (1.1.4)
wdm (0.1.1)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
websocket (1.2.9)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.11)
zeitwerk (2.6.13)

PLATFORMS
x64-mingw-ucrt
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
Expand All @@ -348,9 +350,9 @@ DEPENDENCIES
docusign_admin (~> 1.3.0)
docusign_click (~> 1.4.0)
docusign_esign (~> 3.25.0)
docusign_maestro (~> 1.0.0.rc1)
docusign_monitor (~> 1.2.0)
docusign_rooms (~> 1.3.0)
docusign_webforms (~> 1.0.0)
jbuilder (~> 2.11.5)
listen (~> 3.8.0)
matrix (~> 0.4.2)
Expand All @@ -377,4 +379,4 @@ RUBY VERSION
ruby 3.1.2p20

BUNDLED WITH
2.3.7
2.4.22
3 changes: 3 additions & 0 deletions app/assets/javascripts/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const DS_SEARCH = (function () {
ADMIN: "admin",
CONNECT: "connect",
WEBFORMS: "webforms",
MAESTRO: "maestro",
}

const processJSONData = function () {
Expand Down Expand Up @@ -145,6 +146,8 @@ const DS_SEARCH = (function () {
return "cneg";
case API_TYPES.WEBFORMS:
return "weg";
case API_TYPES.MAESTRO:
return "mseg";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def create
}
results = ESign::Eg008CreateTemplateService.new(args).worker
session[:template_id] = results[:template_id]
session[:workflow_template_id] = results[:template_id]
msg = if results.fetch(:created_new_template)
'The template has been created!'
else
Expand Down
Loading

0 comments on commit 1c6f153

Please sign in to comment.