Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
11bc74a
Updating dotnet
jtreminio-dropbox Feb 3, 2025
d59c33d
Updating java
jtreminio-dropbox Feb 3, 2025
def57d1
Updating node
jtreminio-dropbox Feb 3, 2025
b47c555
Update php
jtreminio-dropbox Feb 3, 2025
fd05c4a
Updating python
jtreminio-dropbox Feb 3, 2025
3fbafd0
Update ruby
jtreminio-dropbox Feb 3, 2025
3810c43
Do not print optional null values
jtreminio-dropbox Feb 6, 2025
4fd1b08
Adding auth
jtreminio-dropbox Feb 10, 2025
e5709dc
Updating example data
jtreminio-dropbox Feb 10, 2025
7cfc6d9
Rename example files
jtreminio-dropbox Feb 10, 2025
59a5335
Rename examples
jtreminio-dropbox Feb 10, 2025
b9039d9
Rename java examples
jtreminio-dropbox Feb 10, 2025
488054e
Rename remainder examples
jtreminio-dropbox Feb 10, 2025
1f8559f
Renaming built examples
jtreminio-dropbox Feb 10, 2025
c06a47a
Rename default example files
jtreminio-dropbox Feb 10, 2025
ee4e05f
Add missing examples
jtreminio-dropbox Feb 10, 2025
8ae9b82
Remove old examples
jtreminio-dropbox Feb 10, 2025
795ff8d
Update SDK generation
jtreminio-dropbox Feb 10, 2025
c990c96
Move examples back
jtreminio-dropbox Feb 10, 2025
ea1c1a5
Copy example files to target dir
jtreminio-dropbox Feb 10, 2025
77d4488
Fix example
jtreminio-dropbox Feb 10, 2025
1b758db
Fix security schemes, should be separate
jtreminio-dropbox Feb 11, 2025
0e19b6a
Deleting
jtreminio-dropbox Feb 14, 2025
f2ed5b6
Fixing case
jtreminio-dropbox Feb 14, 2025
8d066e0
Rebuilding docs
jtreminio-dropbox Feb 14, 2025
bf16756
Cast freeform arrays as JSON before deserializing
jtreminio-dropbox Feb 27, 2025
4306537
Add more example data
jtreminio-dropbox Feb 27, 2025
e4b949a
Updates READMEs
jtreminio-dropbox Feb 27, 2025
01150c4
Prepare for OSEG
jtreminio-dropbox Feb 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 5 additions & 4 deletions bin/sandbox-dotnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ TARGET_DIR="${DIR}/../sandbox/dotnet"
ARTIFACTS_DIR="${DIR}/../sandbox/dotnet/artifacts"

mkdir -p "${ARTIFACTS_DIR}"

rm -f "${ARTIFACTS_DIR}/"*
rm -f "${ARTIFACTS_DIR}/*.nupkg"
rm -f "${TARGET_DIR}/src/Dropbox.SignSandbox/*.cs"
cp "${SDK_DIR}/templates/Entry.cs" "${TARGET_DIR}/src/Dropbox.SignSandbox/Entry.cs"

docker run --rm -it \
-v "${SDK_DIR}:${WORKING_DIR}" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "${TARGET_DIR}:/target" \
-w "${WORKING_DIR}" \
-u root:root \
mcr.microsoft.com/dotnet/sdk:6.0 dotnet pack -o /artifacts
mcr.microsoft.com/dotnet/sdk:9.0 dotnet pack -o /artifacts

docker run --rm -it \
-v "${TARGET_DIR}:${WORKING_DIR}" \
-w "${WORKING_DIR}" \
-u root:root \
mcr.microsoft.com/dotnet/sdk:6.0 dotnet build
mcr.microsoft.com/dotnet/sdk:9.0 dotnet build
26 changes: 26 additions & 0 deletions bin/sandbox-java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -e

DIR=$(cd `dirname $0` && pwd)

WORKING_DIR="/app/openapi"
SDK_DIR="${DIR}/../sdks/java-v2"
TARGET_DIR="${DIR}/../sandbox/java"
ARTIFACTS_DIR="${DIR}/../sandbox/java/artifacts"

mkdir -p "${ARTIFACTS_DIR}"
rm -f "${ARTIFACTS_DIR}/*.jar"
rm -f "${TARGET_DIR}/src/main/java/com/dropbox/sign_sandbox/*.java"
cp "${SDK_DIR}/templates/Main.java" "${TARGET_DIR}/src/main/java/com/dropbox/sign_sandbox/Main.java"

docker run --rm -it \
-v "${SDK_DIR}:${WORKING_DIR}" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-gradle-cache:/home/gradle/.gradle" \
-v "dropbox-sign-sdk-maven-cache:/root/.m2" \
-w "${WORKING_DIR}" \
-e GEN_DIR=/app \
gradle:7.6.1-jdk11 ./gradlew clean fatJar

cp "${SDK_DIR}/build/libs/"dropbox-sign-*-all.jar "${ARTIFACTS_DIR}/dropbox-sign.jar"
25 changes: 0 additions & 25 deletions bin/sandbox-java-v1

This file was deleted.

25 changes: 0 additions & 25 deletions bin/sandbox-java-v2

This file was deleted.

22 changes: 14 additions & 8 deletions bin/sandbox-node
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ TARGET_DIR="${DIR}/../sandbox/node"
ARTIFACTS_DIR="${DIR}/../sandbox/node/artifacts"

mkdir -p "${ARTIFACTS_DIR}"

rm -f "${ARTIFACTS_DIR}/"*
rm -f "${ARTIFACTS_DIR}/*.tgz"
rm -f "${TARGET_DIR}/src/*.ts"
rm -f "${TARGET_DIR}/src/*.js"
rm -f "${TARGET_DIR}/package-lock.json"
rm -rf "${TARGET_DIR}/node_modules"

Expand All @@ -20,15 +21,20 @@ docker run -it --rm \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-npm-cache:/root/.npm" \
-w "${WORKING_DIR}" \
node:17 npm pack --pack-destination /artifacts
node:22 npm install

mv "${ARTIFACTS_DIR}/"*.tgz "${ARTIFACTS_DIR}/dropbox-sign-sdk.tgz"
docker run -it --rm \
-v "${SDK_DIR}:${WORKING_DIR}" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-npm-cache:/root/.npm" \
-w "${WORKING_DIR}" \
node:22 npm run build

docker run -it --rm \
-v "${TARGET_DIR}:${WORKING_DIR}" \
-v "${SDK_DIR}:${WORKING_DIR}" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-npm-cache:/root/.npm" \
-w "${WORKING_DIR}" \
node:17 npm install
node:22 npm pack --pack-destination /artifacts

printf "\nDONE! Run with:\n\n"
printf "\tnpx ts-node Example.ts"
mv "${ARTIFACTS_DIR}/"*.tgz "${ARTIFACTS_DIR}/dropbox-sign-sdk.tgz"
12 changes: 2 additions & 10 deletions bin/sandbox-php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ TARGET_DIR="${DIR}/../sandbox/php"
ARTIFACTS_DIR="${DIR}/../sandbox/php/artifacts"

mkdir -p "${ARTIFACTS_DIR}"

rm -rf "${ARTIFACTS_DIR}/"*
rm -f "${ARTIFACTS_DIR}/*.zip"
rm -f "${TARGET_DIR}/composer.lock"
rm -rf "${TARGET_DIR}/vendor/hellosign"
rm -rf "${TARGET_DIR}/vendor"

cp -r "${SDK_DIR}" "${ARTIFACTS_DIR}/package"
cd "${ARTIFACTS_DIR}/package"
Expand Down Expand Up @@ -41,13 +40,6 @@ zip -9 -r "${ARTIFACTS_DIR}/dropbox-sign.zip" \
"./test/*" \
"./vendor/*"

docker run -it --rm \
-v "${TARGET_DIR}:${WORKING_DIR}" \
-v "dropbox-sign-sdk-composer-cache:/.composer" \
-w "${WORKING_DIR}" \
-u root:root \
jtreminio/php-cli:7.4 composer install

cd "${ARTIFACTS_DIR}"
rm -rf "${ARTIFACTS_DIR}/package"

Expand Down
32 changes: 32 additions & 0 deletions bin/sandbox-ruby
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

set -e

DIR=$(cd `dirname $0` && pwd)

WORKING_DIR="/app/openapi"
SDK_DIR="${DIR}/../sdks/ruby"
TARGET_DIR="${DIR}/../sandbox/ruby"
ARTIFACTS_DIR="${DIR}/../sandbox/ruby/artifacts"

rm -rf "${ARTIFACTS_DIR}"
mkdir -p "${ARTIFACTS_DIR}/gems"

docker run --rm \
-e GEM_HOME="/.gem-cache" \
-e BUNDLE_PATH="/.bundle-cache" \
-v "${SDK_DIR}:${WORKING_DIR}" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-gem-cache:/.gem-cache" \
-v "dropbox-sign-sdk-bundle-cache:/.bundle-cache" \
-w "${WORKING_DIR}" \
ruby:3.4 gem build dropbox-sign.gemspec -o /artifacts/gems/dropbox-sign.gem

docker run --rm \
-e GEM_HOME="/.gem-cache" \
-e BUNDLE_PATH="/.bundle-cache" \
-v "${ARTIFACTS_DIR}:/artifacts" \
-v "dropbox-sign-sdk-gem-cache:/.gem-cache" \
-v "dropbox-sign-sdk-bundle-cache:/.bundle-cache" \
-w "/artifacts" \
ruby:3.4 gem generate_index
7 changes: 7 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ printf "\n"

bash "${DIR}/bin/php" ./bin/generate-oas.php

cp "${DIR}/examples/"*.cs "${DIR}/sandbox/dotnet/src/Dropbox.SignSandbox/"
cp "${DIR}/examples/"*.java "${DIR}/sandbox/java/src/main/java/com/dropbox/sign_sandbox/"
cp "${DIR}/examples/"*.php "${DIR}/sandbox/php/src/"
cp "${DIR}/examples/"*.py "${DIR}/sandbox/python/src/"
cp "${DIR}/examples/"*.rb "${DIR}/sandbox/ruby/src/"
cp "${DIR}/examples/"*.ts "${DIR}/sandbox/node/src/"

printf "Success!\n"
36 changes: 0 additions & 36 deletions examples/AccountCreate.cs

This file was deleted.

34 changes: 0 additions & 34 deletions examples/AccountCreate.java

This file was deleted.

21 changes: 0 additions & 21 deletions examples/AccountCreate.js

This file was deleted.

25 changes: 0 additions & 25 deletions examples/AccountCreate.php

This file was deleted.

23 changes: 0 additions & 23 deletions examples/AccountCreate.py

This file was deleted.

21 changes: 0 additions & 21 deletions examples/AccountCreate.rb

This file was deleted.

Loading