@voxgig/create-sdkgen 0.0.3 → 0.0.6

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.
Files changed (105) hide show
  1. package/bin/voxgig-create-sdkgen +196 -0
  2. package/dist/create-sdkgen.d.ts +11 -8
  3. package/dist/create-sdkgen.js +61 -63
  4. package/dist/create-sdkgen.js.map +1 -1
  5. package/dist/standard/ModelSdk.js +8 -61
  6. package/dist/standard/ModelSdk.js.map +1 -1
  7. package/dist/standard/Root.js +58 -57
  8. package/dist/standard/Root.js.map +1 -1
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/package.json +13 -10
  11. package/src/create-sdkgen.ts +56 -74
  12. package/src/standard/ModelSdk.ts +9 -71
  13. package/src/standard/Root.ts +26 -68
  14. package/bin/run-create-sdkgen.js +0 -269
  15. package/bin/run-create-sdkgen.js~ +0 -1
  16. package/src/standard/ModelSdk.ts~ +0 -1
  17. package/src/standard/Root.ts~ +0 -3
  18. package/src/utility.ts +0 -8
  19. package/tm/standard/.env.local +0 -2
  20. package/tm/standard/build/sdk.js +0 -25
  21. package/tm/standard/def/DEFINITION.md +0 -2
  22. package/tm/standard/model/.model-config/model-config.jsonic +0 -13
  23. package/tm/standard/model/go.jsonic +0 -6
  24. package/tm/standard/model/js.jsonic +0 -6
  25. package/tm/standard/model/php.jsonic +0 -6
  26. package/tm/standard/model/py.jsonic +0 -7
  27. package/tm/standard/model/rb.jsonic +0 -6
  28. package/tm/standard/model/sdk.jsonic.off +0 -60
  29. package/tm/standard/package.json +0 -30
  30. package/tm/standard/src/Root.ts +0 -60
  31. package/tm/standard/src/go/Entity_go.ts +0 -226
  32. package/tm/standard/src/go/MainEntity_go.ts +0 -26
  33. package/tm/standard/src/go/Main_go.ts +0 -168
  34. package/tm/standard/src/go/Quick_go.ts +0 -108
  35. package/tm/standard/src/go/ReadmeInstall_go.ts +0 -19
  36. package/tm/standard/src/go/ReadmeQuick_go.ts +0 -45
  37. package/tm/standard/src/go/TestAcceptEntity_go.ts +0 -219
  38. package/tm/standard/src/go/TestAccept_go.ts +0 -38
  39. package/tm/standard/src/go/TestEntity_go.ts +0 -79
  40. package/tm/standard/src/go/TestMain_go.ts +0 -61
  41. package/tm/standard/src/go/Test_go.ts +0 -20
  42. package/tm/standard/src/js/Entity_js.ts +0 -135
  43. package/tm/standard/src/js/MainEntity_js.ts +0 -22
  44. package/tm/standard/src/js/Main_js.ts +0 -128
  45. package/tm/standard/src/js/Quick_js.ts +0 -72
  46. package/tm/standard/src/js/ReadmeInstall_js.ts +0 -19
  47. package/tm/standard/src/js/ReadmeQuick_js.ts +0 -27
  48. package/tm/standard/src/js/TestAcceptEntity_js.ts +0 -101
  49. package/tm/standard/src/js/TestAccept_js.ts +0 -60
  50. package/tm/standard/src/js/TestEntity_js.ts +0 -24
  51. package/tm/standard/src/js/TestMain_js.ts +0 -123
  52. package/tm/standard/src/js/Test_js.ts +0 -24
  53. package/tm/standard/src/php/Entity_php.ts +0 -97
  54. package/tm/standard/src/php/MainEntity_php.ts +0 -43
  55. package/tm/standard/src/php/Main_php.ts +0 -50
  56. package/tm/standard/src/php/Quick_php.ts +0 -59
  57. package/tm/standard/src/php/TestAcceptEntity_php.ts +0 -81
  58. package/tm/standard/src/php/TestAccept_php.ts +0 -33
  59. package/tm/standard/src/php/TestEntity_php.ts +0 -64
  60. package/tm/standard/src/php/TestMain_php.ts +0 -120
  61. package/tm/standard/src/php/Test_php.ts +0 -21
  62. package/tm/standard/src/py/Entity_py.ts +0 -98
  63. package/tm/standard/src/py/MainEntity_py.ts +0 -19
  64. package/tm/standard/src/py/Main_py.ts +0 -211
  65. package/tm/standard/src/py/Quick_py.ts +0 -133
  66. package/tm/standard/src/py/TestAcceptEntity_py.ts +0 -47
  67. package/tm/standard/src/py/TestAccept_py.ts +0 -77
  68. package/tm/standard/src/py/TestEntity_py.ts +0 -50
  69. package/tm/standard/src/py/TestMain_py.ts +0 -103
  70. package/tm/standard/src/py/Test_py.ts +0 -28
  71. package/tm/standard/src/rb/Client_rb.ts +0 -142
  72. package/tm/standard/src/rb/Entity_rb.ts +0 -153
  73. package/tm/standard/src/rb/Error_rb.ts +0 -56
  74. package/tm/standard/src/rb/MainEntity_rb.ts +0 -16
  75. package/tm/standard/src/rb/Main_rb.ts +0 -55
  76. package/tm/standard/src/rb/Quick_rb.ts +0 -65
  77. package/tm/standard/src/rb/ReadmeInstall_rb.ts +0 -19
  78. package/tm/standard/src/rb/ReadmeQuick_rb.ts +0 -30
  79. package/tm/standard/src/rb/TestAcceptEntity_rb.ts +0 -83
  80. package/tm/standard/src/rb/TestAccept_rb.ts +0 -45
  81. package/tm/standard/src/rb/TestEntity_rb.ts +0 -82
  82. package/tm/standard/src/rb/TestMain_rb.ts +0 -67
  83. package/tm/standard/src/rb/Test_rb.ts +0 -27
  84. package/tm/standard/src/tsconfig.json +0 -15
  85. package/tm/standard/tm/go/.env.example +0 -2
  86. package/tm/standard/tm/go/LICENSE +0 -22
  87. package/tm/standard/tm/go/go.mod +0 -5
  88. package/tm/standard/tm/go/go.sum +0 -2
  89. package/tm/standard/tm/js/LICENSE +0 -22
  90. package/tm/standard/tm/js/package.json +0 -17
  91. package/tm/standard/tm/php/LICENSE +0 -22
  92. package/tm/standard/tm/py/LICENSE +0 -22
  93. package/tm/standard/tm/py/MANIFEST.in +0 -4
  94. package/tm/standard/tm/py/Makefile +0 -14
  95. package/tm/standard/tm/py/pyproject.toml +0 -4
  96. package/tm/standard/tm/py/pytest.ini +0 -3
  97. package/tm/standard/tm/py/requirements.txt +0 -4
  98. package/tm/standard/tm/py/setup.cfg +0 -2
  99. package/tm/standard/tm/py/setup.py +0 -82
  100. package/tm/standard/tm/rb/.rspec +0 -1
  101. package/tm/standard/tm/rb/Gemfile +0 -21
  102. package/tm/standard/tm/rb/LICENSE +0 -22
  103. package/tm/standard/tm/rb/Rakefile +0 -6
  104. package/tm/standard/tm/rb/spec/spec_helper.rb +0 -22
  105. package/tm/standard/tm/rb/tm.gemspec +0 -39
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "esModuleInterop": true,
4
- "module": "nodenext",
5
- "noEmitOnError": true,
6
- "outDir":"../dist",
7
- "rootDir":".",
8
- "resolveJsonModule": true,
9
- "sourceMap": true,
10
- "strict": true,
11
- "target": "es2021",
12
- "declaration": true,
13
- "declarationDir": "../dist"
14
- }
15
- }
@@ -1,2 +0,0 @@
1
- $$NAME$$_ENDPOINT=<URL>
2
- $$NAME$$_APIKEY=<API_KEY>
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) $$year$$ $$Name$$
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
@@ -1,5 +0,0 @@
1
- module github.com/plantquest/plantquest-sdk
2
-
3
- go 1.23.0
4
-
5
- require github.com/joho/godotenv v1.5.1
@@ -1,2 +0,0 @@
1
- github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
2
- github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) $$year$$ $$Name$$
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
@@ -1,17 +0,0 @@
1
- {
2
- "name": "$$name$$-sdk",
3
- "version": "0.0.1",
4
- "description": "",
5
- "main": "src/$$Name$$SDK.js",
6
- "scripts": {
7
- "test": "node --test test/*.test.js",
8
- "test-accept": "node --test test/accept/*.test.js",
9
- "test-all": "npm run test && npm run test-accept"
10
- },
11
- "author": "$$Name$$",
12
- "license": "MIT",
13
- "devDependencies": {
14
- "@hapi/code": "^9.0.3",
15
- "dotenv": "^16.4.5"
16
- }
17
- }
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) $$year$$ $$Name$$
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) $$year$$ $$Name$$
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
@@ -1,4 +0,0 @@
1
- include setup.py
2
- include MANIFEST.in
3
- include LICENSE
4
- include README.md
@@ -1,14 +0,0 @@
1
- py_test_local: # Run tests without the need to install first
2
- python3 setup.py pytest --addopts --ignore=tests/accept
3
- py_test_accept:
4
- python3 setup.py pytest --addopts tests/accept
5
- py_test:
6
- pytest -s
7
-
8
- py_install:
9
- python3 setup.py install
10
-
11
- py_build:
12
- python3 setup.py build
13
-
14
-
@@ -1,4 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=61.0"]
3
- build-backend = "setuptools.build_meta"
4
-
@@ -1,3 +0,0 @@
1
- # content of pytest.ini
2
- [pytest]
3
- addopts = -s
@@ -1,4 +0,0 @@
1
- pytest
2
- python-dotenv
3
- pydantic
4
- requests
@@ -1,2 +0,0 @@
1
- # [aliases]
2
- # test=pytest
@@ -1,82 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- # -*- encoding: utf-8 -*-
4
-
5
- import io
6
- from glob import glob
7
- from os.path import basename
8
- from os.path import dirname
9
- from os.path import join
10
- from os.path import splitext
11
-
12
- from setuptools import find_packages
13
- from setuptools import setup
14
-
15
-
16
- '''
17
- classifiers=[
18
- # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
19
- 'Development Status :: 5 - Production/Stable',
20
- 'Intended Audience :: Developers',
21
- 'License :: OSI Approved :: BSD License',
22
- 'Operating System :: Unix',
23
- 'Operating System :: POSIX',
24
- 'Operating System :: Microsoft :: Windows',
25
- 'Programming Language :: Python',
26
- 'Programming Language :: Python :: 2.7',
27
- 'Programming Language :: Python :: 3',
28
- 'Programming Language :: Python :: 3.5',
29
- 'Programming Language :: Python :: 3.6',
30
- 'Programming Language :: Python :: 3.7',
31
- 'Programming Language :: Python :: 3.8',
32
- 'Programming Language :: Python :: 3.9',
33
- 'Programming Language :: Python :: Implementation :: CPython',
34
- 'Programming Language :: Python :: Implementation :: PyPy',
35
- # uncomment if you test on these interpreters:
36
- # 'Programming Language :: Python :: Implementation :: IronPython',
37
- # 'Programming Language :: Python :: Implementation :: Jython',
38
- # 'Programming Language :: Python :: Implementation :: Stackless',
39
- 'Topic :: Utilities',
40
- ],
41
- '''
42
-
43
- def read(*names, **kwargs):
44
- with io.open(
45
- join(dirname(__file__), *names),
46
- encoding=kwargs.get('encoding', 'utf8')
47
- ) as fh:
48
- return fh.read()
49
-
50
- def read_version(fname="src/$$name$$_sdk/version.py"):
51
- exec(compile(open(fname, encoding="utf-8").read(), fname, "exec"))
52
- return locals()["__version__"]
53
-
54
- setup(
55
- name='$$name$$_sdk',
56
- version='0.0.1',
57
- license='MIT',
58
- description='An example SDK.',
59
- long_description='Long description of SDK',
60
- author='$$Name$$ Ltd',
61
- url='https://github.com/$$name$$',
62
- packages=find_packages('src'),
63
- package_dir={'': 'src'},
64
- # py_modules=['$$name$$_sdk/example'],
65
-
66
- # py_modules=[splitext(basename(path))[0] for path in glob('src/$$name$$_sdk/*.py')],
67
- include_package_data=True,
68
- # data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']), ('config', ['cfg/data.cfg'])],
69
- zip_safe=False,
70
- keywords=[
71
- ],
72
- python_requires='>=3.0',
73
- install_requires=[
74
- 'python-dotenv>=1.0.1',
75
- 'pydantic>=2.8.0'
76
- ],
77
- extras_require={"dev": [ "pytest" ]},
78
- setup_requires=[
79
- 'pytest-runner',
80
- ],
81
- tests_require=['pytest']
82
- )
@@ -1 +0,0 @@
1
- --require spec_helper
@@ -1,21 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- # General dependencies
6
- gem 'json', '~> 2.7'
7
- gem 'rake', '~> 13.2'
8
-
9
- # Test dependencies
10
- group :test do
11
- gem 'rspec', '~> 3.10'
12
- gem "rspec-json_expectations", "~> 2.2"
13
- gem 'webmock', '~> 3.23'
14
- gem 'simplecov', '~> 0.22'
15
- gem 'codecov', require: false
16
- end
17
-
18
- # Development and test dependencies
19
- group :development, :test do
20
- gem 'pry', '~> 0.14'
21
- end
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) $$year$$ $$Name$$
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
@@ -1,22 +0,0 @@
1
- require 'bundler/setup'
2
- require 'rspec'
3
- require 'webmock/rspec'
4
- require 'plantquest_sdk'
5
-
6
- WebMock.disable_net_connect!(allow_localhost: true)
7
-
8
- RSpec.configure do |config|
9
- # Enable flags like --only-failures and --next-failure
10
- config.example_status_persistence_file_path = ".rspec_status"
11
-
12
- config.expect_with :rspec do |expectations|
13
- # This options is used to enable RSpec to display the chain clauses in the error message
14
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
15
- end
16
-
17
- config.mock_with :rspec do |mocks|
18
- # Prevents you from mocking or stubbing a method that does not exist on
19
- mocks.verify_partial_doubles = true
20
- end
21
-
22
- end
@@ -1,39 +0,0 @@
1
- # $$name$$_sdk.gemspec
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = "$$name$$_sdk"
5
- spec.version = "0.1.0"
6
- spec.authors = ["$$Name$$"]
7
- spec.email = ["admin@$$name$$.com"]
8
-
9
- spec.summary = "A Ruby SDK for interacting with the $$Name$$ API"
10
- spec.description = "This SDK provides a simple interface to interact with the $$Name$$ API, enabling developers to manage assets, rooms, and other entities within the $$Name$$ ecosystem."
11
- spec.homepage = "https://$$name$$.com/"
12
- spec.license = "MIT"
13
-
14
- spec.metadata["homepage_uri"] = spec.homepage
15
- spec.metadata["source_code_uri"] = "https://$$name$$.com/sdk"
16
- spec.metadata["changelog_uri"] = "https://$$name$$.com/sdk/changelog"
17
-
18
- spec.required_ruby_version = ">= 2.6"
19
-
20
- spec.files = Dir["lib/**/*.rb"]
21
- spec.bindir = "bin"
22
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
- spec.require_paths = ["lib"]
24
-
25
- # Runtime dependencies
26
- spec.add_dependency "json", "~> 2.7"
27
-
28
- # Development dependencies
29
- spec.add_development_dependency "rake", "~> 13.2"
30
- spec.add_development_dependency "rspec", "~> 3.10"
31
- spec.add_development_dependency "rspec-json_expectations", "~> 2.2"
32
- spec.add_development_dependency "webmock", "~> 3.23"
33
- spec.add_development_dependency "simplecov", "~> 0.22"
34
- spec.add_development_dependency "codecov"
35
- spec.add_development_dependency "pry", "~> 0.14"
36
-
37
- # If you use any files in your Gemfile that should be explicitly included in the gem:
38
- spec.files += Dir["lib/**/*", "bin/*", "README.md", "LICENSE.txt"]
39
- end