@space-df/sdk 0.0.1-dev.3.3 → 0.0.1-dev.31
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.
- package/.editorconfig +24 -0
- package/.github/pull_request_template.md +25 -0
- package/.github/workflows/bump-version.yml +67 -0
- package/.github/workflows/publish-package.yml +28 -0
- package/.gitignore +11 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +89 -0
- package/api.doc.md +3042 -0
- package/dist/LICENSE +7 -0
- package/dist/README.md +382 -0
- package/{index.d.mts → dist/index.d.mts} +18 -1
- package/{index.d.ts → dist/index.d.ts} +18 -1
- package/dist/index.d.ts.map +1 -0
- package/{index.js → dist/index.js} +20 -5
- package/dist/index.js.map +1 -0
- package/{index.mjs → dist/index.mjs} +20 -5
- package/dist/index.mjs.map +1 -0
- package/dist/package.json +101 -0
- package/{resources → dist/resources}/auth/auth.d.ts +20 -1
- package/dist/resources/auth/auth.d.ts.map +1 -0
- package/{resources → dist/resources}/auth/auth.js +15 -0
- package/dist/resources/auth/auth.js.map +1 -0
- package/{resources → dist/resources}/auth/auth.mjs +15 -0
- package/dist/resources/auth/auth.mjs.map +1 -0
- package/{resources → dist/resources}/auth/index.d.ts +2 -0
- package/{resources → dist/resources}/auth/index.d.ts.map +1 -1
- package/{resources → dist/resources}/auth/index.js +2 -0
- package/{resources → dist/resources}/auth/index.js.map +1 -1
- package/{resources → dist/resources}/auth/index.mjs +2 -0
- package/dist/resources/auth/presigned-url.d.ts +10 -0
- package/dist/resources/auth/presigned-url.d.ts.map +1 -0
- package/dist/resources/auth/presigned-url.js +11 -0
- package/dist/resources/auth/presigned-url.js.map +1 -0
- package/dist/resources/auth/presigned-url.mjs +7 -0
- package/dist/resources/auth/presigned-url.mjs.map +1 -0
- package/{resources → dist/resources}/auth/space-policies.d.ts +6 -3
- package/dist/resources/auth/space-policies.d.ts.map +1 -0
- package/dist/resources/auth/space-policies.js +29 -0
- package/dist/resources/auth/space-policies.js.map +1 -0
- package/dist/resources/auth/space-policies.mjs +25 -0
- package/dist/resources/auth/space-policies.mjs.map +1 -0
- package/dist/resources/auth/space-role-users.d.ts +27 -0
- package/dist/resources/auth/space-role-users.d.ts.map +1 -0
- package/dist/resources/auth/space-role-users.js +53 -0
- package/dist/resources/auth/space-role-users.js.map +1 -0
- package/dist/resources/auth/space-role-users.mjs +49 -0
- package/dist/resources/auth/space-role-users.mjs.map +1 -0
- package/{resources → dist/resources}/auth/space-roles.d.ts +14 -3
- package/dist/resources/auth/space-roles.d.ts.map +1 -0
- package/dist/resources/auth/space-roles.js +54 -0
- package/dist/resources/auth/space-roles.js.map +1 -0
- package/dist/resources/auth/space-roles.mjs +50 -0
- package/dist/resources/auth/space-roles.mjs.map +1 -0
- package/{resources → dist/resources}/auth/spaces.d.ts +21 -8
- package/dist/resources/auth/spaces.d.ts.map +1 -0
- package/{resources → dist/resources}/auth/spaces.js +18 -6
- package/dist/resources/auth/spaces.js.map +1 -0
- package/{resources → dist/resources}/auth/spaces.mjs +18 -6
- package/dist/resources/auth/spaces.mjs.map +1 -0
- package/dist/resources/auth/users.d.ts +19 -0
- package/dist/resources/auth/users.d.ts.map +1 -0
- package/dist/resources/auth/users.js +17 -0
- package/dist/resources/auth/users.js.map +1 -0
- package/dist/resources/auth/users.mjs +13 -0
- package/dist/resources/auth/users.mjs.map +1 -0
- package/{resources → dist/resources}/dashboard/index.d.ts +1 -0
- package/{resources → dist/resources}/dashboard/index.d.ts.map +1 -1
- package/{resources → dist/resources}/dashboard/index.js +1 -0
- package/{resources → dist/resources}/dashboard/index.js.map +1 -1
- package/{resources → dist/resources}/dashboard/index.mjs +1 -0
- package/dist/resources/dashboard/widget.d.ts +11 -0
- package/dist/resources/dashboard/widget.d.ts.map +1 -0
- package/dist/resources/dashboard/widget.js +15 -0
- package/dist/resources/dashboard/widget.js.map +1 -0
- package/dist/resources/dashboard/widget.mjs +11 -0
- package/dist/resources/dashboard/widget.mjs.map +1 -0
- package/dist/resources/device/device-connector.d.ts +25 -0
- package/dist/resources/device/device-connector.d.ts.map +1 -0
- package/dist/resources/device/device-connector.js +30 -0
- package/dist/resources/device/device-connector.js.map +1 -0
- package/dist/resources/device/device-connector.mjs +26 -0
- package/dist/resources/device/device-connector.mjs.map +1 -0
- package/dist/resources/device/device-model.d.ts +20 -0
- package/dist/resources/device/device-model.d.ts.map +1 -0
- package/{resources/auth/space-roles.js → dist/resources/device/device-model.js} +10 -10
- package/dist/resources/device/device-model.js.map +1 -0
- package/{resources/auth/space-roles.mjs → dist/resources/device/device-model.mjs} +8 -8
- package/dist/resources/device/device-model.mjs.map +1 -0
- package/dist/resources/device/device-spaces.d.ts +19 -0
- package/dist/resources/device/device-spaces.d.ts.map +1 -0
- package/{resources/auth/space-role-users.js → dist/resources/device/device-spaces.js} +10 -8
- package/dist/resources/device/device-spaces.js.map +1 -0
- package/{resources/auth/space-role-users.mjs → dist/resources/device/device-spaces.mjs} +8 -6
- package/dist/resources/device/device-spaces.mjs.map +1 -0
- package/dist/resources/device/devices.d.ts +19 -0
- package/dist/resources/device/devices.d.ts.map +1 -0
- package/dist/resources/device/devices.js +58 -0
- package/dist/resources/device/devices.js.map +1 -0
- package/dist/resources/device/devices.mjs +54 -0
- package/dist/resources/device/devices.mjs.map +1 -0
- package/dist/resources/device/index.d.ts +8 -0
- package/dist/resources/device/index.d.ts.map +1 -0
- package/dist/resources/device/index.js +24 -0
- package/dist/resources/device/index.js.map +1 -0
- package/dist/resources/device/index.mjs +8 -0
- package/dist/resources/device/index.mjs.map +1 -0
- package/dist/resources/device/manufacturers.d.ts +20 -0
- package/dist/resources/device/manufacturers.d.ts.map +1 -0
- package/dist/resources/device/manufacturers.js +52 -0
- package/dist/resources/device/manufacturers.js.map +1 -0
- package/dist/resources/device/manufacturers.mjs +48 -0
- package/dist/resources/device/manufacturers.mjs.map +1 -0
- package/dist/resources/device/network-server.d.ts +19 -0
- package/dist/resources/device/network-server.d.ts.map +1 -0
- package/dist/resources/device/network-server.js +52 -0
- package/dist/resources/device/network-server.js.map +1 -0
- package/dist/resources/device/network-server.mjs +48 -0
- package/dist/resources/device/network-server.mjs.map +1 -0
- package/dist/resources/device/trip.d.ts +24 -0
- package/dist/resources/device/trip.d.ts.map +1 -0
- package/dist/resources/device/trip.js +49 -0
- package/dist/resources/device/trip.js.map +1 -0
- package/dist/resources/device/trip.mjs +45 -0
- package/dist/resources/device/trip.mjs.map +1 -0
- package/{resources → dist/resources}/index.d.ts +2 -0
- package/{resources → dist/resources}/index.d.ts.map +1 -1
- package/{resources → dist/resources}/index.js +2 -0
- package/{resources → dist/resources}/index.js.map +1 -1
- package/dist/resources/index.mjs +6 -0
- package/dist/resources/organizations/index.d.ts +2 -0
- package/dist/resources/organizations/index.d.ts.map +1 -0
- package/dist/resources/organizations/index.js +18 -0
- package/dist/resources/organizations/index.js.map +1 -0
- package/dist/resources/organizations/index.mjs +2 -0
- package/dist/resources/organizations/index.mjs.map +1 -0
- package/dist/resources/organizations/organizations.d.ts +9 -0
- package/dist/resources/organizations/organizations.d.ts.map +1 -0
- package/dist/resources/organizations/organizations.js +11 -0
- package/dist/resources/organizations/organizations.js.map +1 -0
- package/dist/resources/organizations/organizations.mjs +7 -0
- package/dist/resources/organizations/organizations.mjs.map +1 -0
- package/dist/src/_shims/MultipartBody.ts +9 -0
- package/dist/src/_shims/README.md +46 -0
- package/dist/src/_shims/auto/runtime-bun.ts +4 -0
- package/dist/src/_shims/auto/runtime-node.ts +4 -0
- package/dist/src/_shims/auto/runtime.ts +4 -0
- package/dist/src/_shims/auto/types-node.ts +4 -0
- package/dist/src/_shims/auto/types.d.ts +101 -0
- package/dist/src/_shims/auto/types.js +3 -0
- package/dist/src/_shims/auto/types.mjs +3 -0
- package/dist/src/_shims/bun-runtime.ts +14 -0
- package/dist/src/_shims/index.d.ts +72 -0
- package/dist/src/_shims/index.js +13 -0
- package/dist/src/_shims/index.mjs +7 -0
- package/dist/src/_shims/manual-types.d.ts +12 -0
- package/dist/src/_shims/manual-types.js +3 -0
- package/dist/src/_shims/manual-types.mjs +3 -0
- package/dist/src/_shims/node-runtime.ts +78 -0
- package/dist/src/_shims/node-types.d.ts +42 -0
- package/dist/src/_shims/node-types.js +3 -0
- package/dist/src/_shims/node-types.mjs +3 -0
- package/dist/src/_shims/registry.ts +60 -0
- package/dist/src/_shims/web-runtime.ts +91 -0
- package/dist/src/_shims/web-types.d.ts +83 -0
- package/dist/src/_shims/web-types.js +3 -0
- package/dist/src/_shims/web-types.mjs +3 -0
- package/dist/src/core.ts +1061 -0
- package/dist/src/error.ts +134 -0
- package/dist/src/index.ts +230 -0
- package/dist/src/libs/utils.ts +66 -0
- package/dist/src/resource.ts +9 -0
- package/dist/src/resources/auth/auth.ts +132 -0
- package/dist/src/resources/auth/credentials.ts +12 -0
- package/dist/src/resources/auth/index.ts +8 -0
- package/dist/src/resources/auth/presigned-url.ts +13 -0
- package/dist/src/resources/auth/space-policies.ts +70 -0
- package/dist/src/resources/auth/space-role-users.ts +79 -0
- package/dist/src/resources/auth/space-roles.ts +110 -0
- package/dist/src/resources/auth/spaces.ts +145 -0
- package/dist/src/resources/auth/users.ts +36 -0
- package/dist/src/resources/console/index.ts +1 -0
- package/dist/src/resources/console/oauth2.ts +83 -0
- package/dist/src/resources/dashboard/dashboards.ts +171 -0
- package/dist/src/resources/dashboard/device-states.ts +142 -0
- package/dist/src/resources/dashboard/index.ts +3 -0
- package/dist/src/resources/dashboard/widget.ts +17 -0
- package/dist/src/resources/device/device-connector.ts +49 -0
- package/dist/src/resources/device/device-model.ts +65 -0
- package/dist/src/resources/device/device-spaces.ts +42 -0
- package/dist/src/resources/device/devices.ts +70 -0
- package/dist/src/resources/device/index.ts +7 -0
- package/dist/src/resources/device/manufacturers.ts +65 -0
- package/dist/src/resources/device/network-server.ts +64 -0
- package/dist/src/resources/device/trip.ts +69 -0
- package/dist/src/resources/index.ts +8 -0
- package/dist/src/resources/organizations/index.ts +1 -0
- package/dist/src/resources/organizations/organizations.ts +12 -0
- package/dist/src/shims/node.ts +50 -0
- package/dist/src/shims/web.ts +50 -0
- package/dist/src/types/api.ts +31 -0
- package/dist/src/types/jwt.ts +12 -0
- package/dist/src/version.ts +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/{version.js → dist/version.js} +1 -1
- package/dist/version.js.map +1 -0
- package/dist/version.mjs +2 -0
- package/{version.mjs.map → dist/version.mjs.map} +1 -1
- package/eslint.config.mjs +33 -0
- package/examples/auth/login.ts +14 -0
- package/examples/auth/register.ts +15 -0
- package/examples/console/oauth2.ts +15 -0
- package/package.json +52 -36
- package/scripts/build +56 -0
- package/scripts/utils/check-version.cjs +20 -0
- package/scripts/utils/fix-index-exports.cjs +8 -0
- package/scripts/utils/make-dist-package-json.cjs +21 -0
- package/scripts/utils/postprocess-files.cjs +153 -0
- package/src/_shims/auto/runtime-deno.ts +4 -0
- package/src/_shims/auto/types-deno.ts +4 -0
- package/src/_shims/auto/types.d.ts +18 -18
- package/src/_shims/index-deno.ts +105 -0
- package/src/_shims/index.d.ts +1 -1
- package/src/_shims/index.mjs +1 -1
- package/src/index.ts +28 -4
- package/src/resources/auth/auth.ts +42 -2
- package/src/resources/auth/index.ts +2 -0
- package/src/resources/auth/presigned-url.ts +13 -0
- package/src/resources/auth/space-policies.ts +22 -7
- package/src/resources/auth/space-role-users.ts +43 -6
- package/src/resources/auth/space-roles.ts +27 -12
- package/src/resources/auth/spaces.ts +42 -15
- package/src/resources/auth/users.ts +36 -0
- package/src/resources/dashboard/index.ts +1 -0
- package/src/resources/dashboard/widget.ts +17 -0
- package/src/resources/device/device-connector.ts +49 -0
- package/src/resources/device/device-model.ts +65 -0
- package/src/resources/device/device-spaces.ts +42 -0
- package/src/resources/device/devices.ts +70 -0
- package/src/resources/device/index.ts +7 -0
- package/src/resources/device/manufacturers.ts +65 -0
- package/src/resources/device/network-server.ts +64 -0
- package/src/resources/device/trip.ts +69 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/organizations/index.ts +1 -0
- package/src/resources/organizations/organizations.ts +12 -0
- package/src/version.ts +1 -1
- package/tsc-multi.json +7 -0
- package/tsconfig.build.json +18 -0
- package/tsconfig.deno.json +20 -0
- package/tsconfig.dist-src.json +11 -0
- package/tsconfig.json +38 -0
- package/index.d.ts.map +0 -1
- package/index.js.map +0 -1
- package/index.mjs.map +0 -1
- package/resources/auth/auth.d.ts.map +0 -1
- package/resources/auth/auth.js.map +0 -1
- package/resources/auth/auth.mjs.map +0 -1
- package/resources/auth/space-policies.d.ts.map +0 -1
- package/resources/auth/space-policies.js +0 -18
- package/resources/auth/space-policies.js.map +0 -1
- package/resources/auth/space-policies.mjs +0 -14
- package/resources/auth/space-policies.mjs.map +0 -1
- package/resources/auth/space-role-users.d.ts +0 -17
- package/resources/auth/space-role-users.d.ts.map +0 -1
- package/resources/auth/space-role-users.js.map +0 -1
- package/resources/auth/space-role-users.mjs.map +0 -1
- package/resources/auth/space-roles.d.ts.map +0 -1
- package/resources/auth/space-roles.js.map +0 -1
- package/resources/auth/space-roles.mjs.map +0 -1
- package/resources/auth/spaces.d.ts.map +0 -1
- package/resources/auth/spaces.js.map +0 -1
- package/resources/auth/spaces.mjs.map +0 -1
- package/resources/index.mjs +0 -4
- package/src/resources/.DS_Store +0 -0
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/yarn.lock +0 -268
- /package/{_shims → dist/_shims}/MultipartBody.d.ts +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.js +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.js.map +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.mjs +0 -0
- /package/{_shims → dist/_shims}/MultipartBody.mjs.map +0 -0
- /package/{_shims → dist/_shims}/README.md +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.js +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-bun.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.js +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/runtime-node.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.js +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.js +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.js.map +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.mjs +0 -0
- /package/{_shims → dist/_shims}/auto/types-node.mjs.map +0 -0
- /package/{_shims → dist/_shims}/auto/types.d.ts +0 -0
- /package/{_shims → dist/_shims}/auto/types.js +0 -0
- /package/{_shims → dist/_shims}/auto/types.mjs +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.js +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/bun-runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/index.d.ts +0 -0
- /package/{_shims → dist/_shims}/index.js +0 -0
- /package/{_shims → dist/_shims}/index.mjs +0 -0
- /package/{_shims → dist/_shims}/manual-types.d.ts +0 -0
- /package/{_shims → dist/_shims}/manual-types.js +0 -0
- /package/{_shims → dist/_shims}/manual-types.mjs +0 -0
- /package/{_shims → dist/_shims}/node-runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/node-runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/node-runtime.js +0 -0
- /package/{_shims → dist/_shims}/node-runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/node-runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/node-runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/node-types.d.ts +0 -0
- /package/{_shims → dist/_shims}/node-types.js +0 -0
- /package/{_shims → dist/_shims}/node-types.mjs +0 -0
- /package/{_shims → dist/_shims}/registry.d.ts +0 -0
- /package/{_shims → dist/_shims}/registry.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/registry.js +0 -0
- /package/{_shims → dist/_shims}/registry.js.map +0 -0
- /package/{_shims → dist/_shims}/registry.mjs +0 -0
- /package/{_shims → dist/_shims}/registry.mjs.map +0 -0
- /package/{_shims → dist/_shims}/web-runtime.d.ts +0 -0
- /package/{_shims → dist/_shims}/web-runtime.d.ts.map +0 -0
- /package/{_shims → dist/_shims}/web-runtime.js +0 -0
- /package/{_shims → dist/_shims}/web-runtime.js.map +0 -0
- /package/{_shims → dist/_shims}/web-runtime.mjs +0 -0
- /package/{_shims → dist/_shims}/web-runtime.mjs.map +0 -0
- /package/{_shims → dist/_shims}/web-types.d.ts +0 -0
- /package/{_shims → dist/_shims}/web-types.js +0 -0
- /package/{_shims → dist/_shims}/web-types.mjs +0 -0
- /package/{core.d.ts → dist/core.d.ts} +0 -0
- /package/{core.d.ts.map → dist/core.d.ts.map} +0 -0
- /package/{core.js → dist/core.js} +0 -0
- /package/{core.js.map → dist/core.js.map} +0 -0
- /package/{core.mjs → dist/core.mjs} +0 -0
- /package/{core.mjs.map → dist/core.mjs.map} +0 -0
- /package/{error.d.ts → dist/error.d.ts} +0 -0
- /package/{error.d.ts.map → dist/error.d.ts.map} +0 -0
- /package/{error.js → dist/error.js} +0 -0
- /package/{error.js.map → dist/error.js.map} +0 -0
- /package/{error.mjs → dist/error.mjs} +0 -0
- /package/{error.mjs.map → dist/error.mjs.map} +0 -0
- /package/{libs → dist/libs}/utils.d.ts +0 -0
- /package/{libs → dist/libs}/utils.d.ts.map +0 -0
- /package/{libs → dist/libs}/utils.js +0 -0
- /package/{libs → dist/libs}/utils.js.map +0 -0
- /package/{libs → dist/libs}/utils.mjs +0 -0
- /package/{libs → dist/libs}/utils.mjs.map +0 -0
- /package/{resource.d.ts → dist/resource.d.ts} +0 -0
- /package/{resource.d.ts.map → dist/resource.d.ts.map} +0 -0
- /package/{resource.js → dist/resource.js} +0 -0
- /package/{resource.js.map → dist/resource.js.map} +0 -0
- /package/{resource.mjs → dist/resource.mjs} +0 -0
- /package/{resource.mjs.map → dist/resource.mjs.map} +0 -0
- /package/{resources → dist/resources}/auth/credentials.d.ts +0 -0
- /package/{resources → dist/resources}/auth/credentials.d.ts.map +0 -0
- /package/{resources → dist/resources}/auth/credentials.js +0 -0
- /package/{resources → dist/resources}/auth/credentials.js.map +0 -0
- /package/{resources → dist/resources}/auth/credentials.mjs +0 -0
- /package/{resources → dist/resources}/auth/credentials.mjs.map +0 -0
- /package/{resources → dist/resources}/auth/index.mjs.map +0 -0
- /package/{resources → dist/resources}/console/index.d.ts +0 -0
- /package/{resources → dist/resources}/console/index.d.ts.map +0 -0
- /package/{resources → dist/resources}/console/index.js +0 -0
- /package/{resources → dist/resources}/console/index.js.map +0 -0
- /package/{resources → dist/resources}/console/index.mjs +0 -0
- /package/{resources → dist/resources}/console/index.mjs.map +0 -0
- /package/{resources → dist/resources}/console/oauth2.d.ts +0 -0
- /package/{resources → dist/resources}/console/oauth2.d.ts.map +0 -0
- /package/{resources → dist/resources}/console/oauth2.js +0 -0
- /package/{resources → dist/resources}/console/oauth2.js.map +0 -0
- /package/{resources → dist/resources}/console/oauth2.mjs +0 -0
- /package/{resources → dist/resources}/console/oauth2.mjs.map +0 -0
- /package/{resources → dist/resources}/dashboard/dashboards.d.ts +0 -0
- /package/{resources → dist/resources}/dashboard/dashboards.d.ts.map +0 -0
- /package/{resources → dist/resources}/dashboard/dashboards.js +0 -0
- /package/{resources → dist/resources}/dashboard/dashboards.js.map +0 -0
- /package/{resources → dist/resources}/dashboard/dashboards.mjs +0 -0
- /package/{resources → dist/resources}/dashboard/dashboards.mjs.map +0 -0
- /package/{resources → dist/resources}/dashboard/device-states.d.ts +0 -0
- /package/{resources → dist/resources}/dashboard/device-states.d.ts.map +0 -0
- /package/{resources → dist/resources}/dashboard/device-states.js +0 -0
- /package/{resources → dist/resources}/dashboard/device-states.js.map +0 -0
- /package/{resources → dist/resources}/dashboard/device-states.mjs +0 -0
- /package/{resources → dist/resources}/dashboard/device-states.mjs.map +0 -0
- /package/{resources → dist/resources}/dashboard/index.mjs.map +0 -0
- /package/{resources → dist/resources}/index.mjs.map +0 -0
- /package/{shims → dist/shims}/node.d.ts +0 -0
- /package/{shims → dist/shims}/node.d.ts.map +0 -0
- /package/{shims → dist/shims}/node.js +0 -0
- /package/{shims → dist/shims}/node.js.map +0 -0
- /package/{shims → dist/shims}/node.mjs +0 -0
- /package/{shims → dist/shims}/node.mjs.map +0 -0
- /package/{shims → dist/shims}/web.d.ts +0 -0
- /package/{shims → dist/shims}/web.d.ts.map +0 -0
- /package/{shims → dist/shims}/web.js +0 -0
- /package/{shims → dist/shims}/web.js.map +0 -0
- /package/{shims → dist/shims}/web.mjs +0 -0
- /package/{shims → dist/shims}/web.mjs.map +0 -0
- /package/{src → dist/src}/tsconfig.json +0 -0
- /package/{types → dist/types}/api.d.ts +0 -0
- /package/{types → dist/types}/api.d.ts.map +0 -0
- /package/{types → dist/types}/api.js +0 -0
- /package/{types → dist/types}/api.js.map +0 -0
- /package/{types → dist/types}/api.mjs +0 -0
- /package/{types → dist/types}/api.mjs.map +0 -0
- /package/{types → dist/types}/jwt.d.ts +0 -0
- /package/{types → dist/types}/jwt.d.ts.map +0 -0
- /package/{types → dist/types}/jwt.js +0 -0
- /package/{types → dist/types}/jwt.js.map +0 -0
- /package/{types → dist/types}/jwt.mjs +0 -0
- /package/{types → dist/types}/jwt.mjs.map +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import { ListParamsResponse, ListResponse } from '../../types/api';
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
|
|
5
|
+
export class DeviceStates extends APIResource {
|
|
6
|
+
retrieveDaily(params: DailyRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<DailyRetrieveResponse> {
|
|
7
|
+
const { ...query } = params;
|
|
8
|
+
return this._client.get(`/device-states/daily`, {
|
|
9
|
+
query,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
retrieveHourly(params: HourlyRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<HourlyRetrieveResponse> {
|
|
16
|
+
const { ...query } = params;
|
|
17
|
+
return this._client.get(`/device-states/hourly`, {
|
|
18
|
+
query,
|
|
19
|
+
...options,
|
|
20
|
+
headers: { ...options?.headers },
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
retrieveMinutely(params: MinutelyRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<MinutelyRetrieveResponse> {
|
|
25
|
+
const { ...query } = params;
|
|
26
|
+
return this._client.get(`/device-states/minutely`, {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
headers: { ...options?.headers },
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
retrieveMonthly(params: MonthlyRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<MonthlyRetrieveResponse> {
|
|
34
|
+
const { ...query } = params;
|
|
35
|
+
return this._client.get(`/device-states/monthly`, {
|
|
36
|
+
query,
|
|
37
|
+
...options,
|
|
38
|
+
headers: { ...options?.headers },
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type DeviceStateListResponse<T> = ListResponse<T>;
|
|
44
|
+
|
|
45
|
+
export interface DeviceStateListParams extends Omit<ListParamsResponse, 'search'> {
|
|
46
|
+
/**
|
|
47
|
+
* Query param: device_slug_name
|
|
48
|
+
*/
|
|
49
|
+
device_slug_name?: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Query param: state_name
|
|
53
|
+
*/
|
|
54
|
+
state_name?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type DailyRetrieveResponse = DeviceStateListResponse<DailyRetrieveResult>;
|
|
58
|
+
|
|
59
|
+
export interface DailyRetrieveResult {
|
|
60
|
+
device_slug_name: string;
|
|
61
|
+
|
|
62
|
+
from_timestamp: string;
|
|
63
|
+
|
|
64
|
+
space: number;
|
|
65
|
+
|
|
66
|
+
state_name: string;
|
|
67
|
+
|
|
68
|
+
value: string;
|
|
69
|
+
|
|
70
|
+
id?: number;
|
|
71
|
+
|
|
72
|
+
readonly created_at?: string;
|
|
73
|
+
|
|
74
|
+
readonly updated_at?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type DailyRetrieveParams = DeviceStateListParams;
|
|
78
|
+
|
|
79
|
+
export type MinutelyRetrieveResponse = ListResponse<MinutelyRetrieveResult>;
|
|
80
|
+
|
|
81
|
+
export interface MinutelyRetrieveResult {
|
|
82
|
+
device_slug_name: string;
|
|
83
|
+
|
|
84
|
+
from_timestamp: string;
|
|
85
|
+
|
|
86
|
+
space: number;
|
|
87
|
+
|
|
88
|
+
state_name: string;
|
|
89
|
+
|
|
90
|
+
value: string;
|
|
91
|
+
|
|
92
|
+
id?: number;
|
|
93
|
+
|
|
94
|
+
readonly created_at?: string;
|
|
95
|
+
|
|
96
|
+
readonly updated_at?: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type MinutelyRetrieveParams = DeviceStateListParams;
|
|
100
|
+
|
|
101
|
+
export type MonthlyRetrieveResponse = ListResponse<MonthlyRetrieveResult>;
|
|
102
|
+
|
|
103
|
+
export interface MonthlyRetrieveResult {
|
|
104
|
+
device_slug_name: string;
|
|
105
|
+
|
|
106
|
+
from_timestamp: string;
|
|
107
|
+
|
|
108
|
+
space: number;
|
|
109
|
+
|
|
110
|
+
state_name: string;
|
|
111
|
+
|
|
112
|
+
value: string;
|
|
113
|
+
|
|
114
|
+
id?: number;
|
|
115
|
+
|
|
116
|
+
readonly created_at?: string;
|
|
117
|
+
|
|
118
|
+
readonly updated_at?: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type MonthlyRetrieveParams = DeviceStateListParams;
|
|
122
|
+
|
|
123
|
+
export type HourlyRetrieveResponse = ListResponse<HourlyRetrieveResult>;
|
|
124
|
+
export interface HourlyRetrieveResult {
|
|
125
|
+
device_slug_name: string;
|
|
126
|
+
|
|
127
|
+
from_timestamp: string;
|
|
128
|
+
|
|
129
|
+
space: number;
|
|
130
|
+
|
|
131
|
+
state_name: string;
|
|
132
|
+
|
|
133
|
+
value: string;
|
|
134
|
+
|
|
135
|
+
id?: number;
|
|
136
|
+
|
|
137
|
+
readonly created_at?: string;
|
|
138
|
+
|
|
139
|
+
readonly updated_at?: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type HourlyRetrieveParams = DeviceStateListParams;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import * as Core from '../../core';
|
|
3
|
+
|
|
4
|
+
export class Widgets extends APIResource {
|
|
5
|
+
updateWidgets(params: WidgetsUpdateParams[], options?: Core.RequestOptions): Core.APIPromise<WidgetsUpdateParams[]> {
|
|
6
|
+
return this._client.put(`/widgets/bulk-update`, {
|
|
7
|
+
body: params,
|
|
8
|
+
...options,
|
|
9
|
+
headers: { ...options?.headers },
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface WidgetsUpdateParams {
|
|
15
|
+
id: string;
|
|
16
|
+
configuration: Record<string, unknown>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import * as Core from '../../core';
|
|
3
|
+
|
|
4
|
+
export class DeviceConnector extends APIResource {
|
|
5
|
+
create(params: DeviceConnectorParams, options?: Core.RequestOptions): Core.APIPromise<DeviceConnectorParams> {
|
|
6
|
+
const { ...body } = params;
|
|
7
|
+
return this._client.post(`/device-connector/`, {
|
|
8
|
+
body,
|
|
9
|
+
...options,
|
|
10
|
+
headers: { ...options?.headers },
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
testConnectionPreview(params: DeviceConnectorParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
15
|
+
const { ...body } = params;
|
|
16
|
+
return this._client.post(`/device-connector/test-connection-preview/`, {
|
|
17
|
+
body,
|
|
18
|
+
...options,
|
|
19
|
+
headers: { ...options?.headers },
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
testConnection(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
24
|
+
return this._client.get(`/device-connector/${id}/`, {
|
|
25
|
+
...options,
|
|
26
|
+
headers: { ...options?.headers },
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface DeviceConnectorParams {
|
|
32
|
+
network_server: string;
|
|
33
|
+
name: string;
|
|
34
|
+
connector_type: string;
|
|
35
|
+
status?: string;
|
|
36
|
+
deviceHttpConfig?: DeviceHttpConfig;
|
|
37
|
+
deviceMqttConfig?: DeviceMqttConfig;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface DeviceHttpConfig {
|
|
41
|
+
api_token: string;
|
|
42
|
+
address_url: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface DeviceMqttConfig {
|
|
46
|
+
mqtt_broker: string;
|
|
47
|
+
username: string;
|
|
48
|
+
password: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import * as Core from '../../core';
|
|
3
|
+
import { ListParamsResponse, ListResponse } from '../../types/api';
|
|
4
|
+
|
|
5
|
+
export class DeviceModel extends APIResource {
|
|
6
|
+
create(params: DeviceModelParams, options?: Core.RequestOptions): Core.APIPromise<DeviceModelParams> {
|
|
7
|
+
const { ...body } = params;
|
|
8
|
+
return this._client.post(`/device-models/`, {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<DeviceModelParams> {
|
|
16
|
+
return this._client.get(`/device-models/${id}/`, {
|
|
17
|
+
...options,
|
|
18
|
+
headers: { ...options?.headers },
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
update(id: string, params: DeviceModelParams, options?: Core.RequestOptions): Core.APIPromise<DeviceModelParams> {
|
|
23
|
+
const { ...body } = params;
|
|
24
|
+
return this._client.put(`/device-models/${id}/`, {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
headers: { ...options?.headers },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
partialUpdate(id: number, params: DeviceModelParams, options?: Core.RequestOptions): Core.APIPromise<DeviceModelParams> {
|
|
32
|
+
const { ...body } = params;
|
|
33
|
+
return this._client.patch(`/device-models/${id}/`, {
|
|
34
|
+
body,
|
|
35
|
+
...options,
|
|
36
|
+
headers: { ...options?.headers },
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise<DeviceModelListResponse> {
|
|
41
|
+
const { ...query } = params;
|
|
42
|
+
return this._client.get(`/device-models/`, {
|
|
43
|
+
query,
|
|
44
|
+
...options,
|
|
45
|
+
headers: { ...options?.headers },
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
delete(id: number, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
50
|
+
return this._client.delete(`/device-models/${id}/`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface DeviceModelParams {
|
|
58
|
+
name: string;
|
|
59
|
+
alias: string;
|
|
60
|
+
image_url: string;
|
|
61
|
+
default_config: object;
|
|
62
|
+
manufacture: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type DeviceModelListResponse = ListResponse<DeviceModelParams>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import * as Core from '../../core';
|
|
3
|
+
import { ListParamsResponse, ListResponse } from '../../types/api';
|
|
4
|
+
|
|
5
|
+
interface DeviceSpacesListParams extends ListParamsResponse {
|
|
6
|
+
include_latest_checkpoint?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class DeviceSpaces extends APIResource {
|
|
10
|
+
create(params: DeviceSpacesParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesParams> {
|
|
11
|
+
const { ...body } = params;
|
|
12
|
+
return this._client.post(`/device-spaces`, {
|
|
13
|
+
body,
|
|
14
|
+
...options,
|
|
15
|
+
headers: { ...options?.headers },
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
list(params: DeviceSpacesListParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesListResponse> {
|
|
20
|
+
const { ...query } = params;
|
|
21
|
+
return this._client.get(`/device-spaces`, {
|
|
22
|
+
query,
|
|
23
|
+
...options,
|
|
24
|
+
headers: { ...options?.headers },
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
29
|
+
return this._client.delete(`/device-spaces/${id}`, {
|
|
30
|
+
...options,
|
|
31
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface DeviceSpacesParams {
|
|
37
|
+
name: string;
|
|
38
|
+
dev_eui: string;
|
|
39
|
+
description: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type DeviceSpacesListResponse = ListResponse<DeviceSpacesParams>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import * as Core from '../../core';
|
|
3
|
+
import { ListParamsResponse, ListResponse } from '../../types/api';
|
|
4
|
+
|
|
5
|
+
export class Device extends APIResource {
|
|
6
|
+
create(params: DeviceParams, options?: Core.RequestOptions): Core.APIPromise<DeviceParams> {
|
|
7
|
+
const { ...body } = params;
|
|
8
|
+
return this._client.post(`/devices/`, {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<DeviceParams> {
|
|
16
|
+
return this._client.get(`/devices/${id}/`, {
|
|
17
|
+
...options,
|
|
18
|
+
headers: { ...options?.headers },
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
update(id: string, params: DeviceParams, options?: Core.RequestOptions): Core.APIPromise<DeviceParams> {
|
|
23
|
+
const { ...body } = params;
|
|
24
|
+
return this._client.put(`/devices/${id}/`, {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
headers: { ...options?.headers },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
partialUpdate(id: number, params: DeviceParams, options?: Core.RequestOptions): Core.APIPromise<DeviceParams> {
|
|
32
|
+
const { ...body } = params;
|
|
33
|
+
return this._client.patch(`/devices/${id}/`, {
|
|
34
|
+
body,
|
|
35
|
+
...options,
|
|
36
|
+
headers: { ...options?.headers },
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise<DeviceListResponse> {
|
|
41
|
+
const { ...query } = params;
|
|
42
|
+
return this._client.get(`/devices/`, {
|
|
43
|
+
query,
|
|
44
|
+
...options,
|
|
45
|
+
headers: { ...options?.headers },
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
delete(id: number, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
50
|
+
return this._client.delete(`/devices/${id}/`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
checkClaimCode(code: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
57
|
+
return this._client.get(`/devices/${code}/check`, {
|
|
58
|
+
...options,
|
|
59
|
+
headers: { ...options?.headers },
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface DeviceParams {
|
|
65
|
+
status?: string;
|
|
66
|
+
device_connector: string;
|
|
67
|
+
device_model: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type DeviceListResponse = ListResponse<DeviceParams>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import * as Core from '../../core';
|
|
3
|
+
import { ListParamsResponse, ListResponse } from '../../types/api';
|
|
4
|
+
|
|
5
|
+
export class Manufacturers extends APIResource {
|
|
6
|
+
create(params: ManufacturersParams, options?: Core.RequestOptions): Core.APIPromise<ManufacturersParams> {
|
|
7
|
+
const { ...body } = params;
|
|
8
|
+
return this._client.post(`/manufacturers/`, {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<ManufacturersParams> {
|
|
16
|
+
return this._client.get(`/manufacturers/${id}/`, {
|
|
17
|
+
...options,
|
|
18
|
+
headers: { ...options?.headers },
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
update(id: string, params: ManufacturersParams, options?: Core.RequestOptions): Core.APIPromise<ManufacturersParams> {
|
|
23
|
+
const { ...body } = params;
|
|
24
|
+
return this._client.put(`/manufacturers/${id}/`, {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
headers: { ...options?.headers },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
partialUpdate(id: number, params: ManufacturersParams, options?: Core.RequestOptions): Core.APIPromise<ManufacturersParams> {
|
|
32
|
+
const { ...body } = params;
|
|
33
|
+
return this._client.patch(`/manufacturers/${id}/`, {
|
|
34
|
+
body,
|
|
35
|
+
...options,
|
|
36
|
+
headers: { ...options?.headers },
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise<ManufacturersListResponse> {
|
|
41
|
+
const { ...query } = params;
|
|
42
|
+
return this._client.get(`/manufacturers/`, {
|
|
43
|
+
query,
|
|
44
|
+
...options,
|
|
45
|
+
headers: { ...options?.headers },
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
delete(id: number, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
50
|
+
return this._client.delete(`/manufacturers/${id}/`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ManufacturersParams {
|
|
58
|
+
name: string;
|
|
59
|
+
location: string;
|
|
60
|
+
description: string;
|
|
61
|
+
portal_url: string;
|
|
62
|
+
national: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type ManufacturersListResponse = ListResponse<ManufacturersParams>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import * as Core from '../../core';
|
|
3
|
+
import { ListParamsResponse, ListResponse } from '../../types/api';
|
|
4
|
+
|
|
5
|
+
export class NetworkServer extends APIResource {
|
|
6
|
+
create(params: NetworkServerParams, options?: Core.RequestOptions): Core.APIPromise<NetworkServerParams> {
|
|
7
|
+
const { ...body } = params;
|
|
8
|
+
return this._client.post(`/network-server/`, {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<NetworkServerParams> {
|
|
16
|
+
return this._client.get(`/network-server/${id}/`, {
|
|
17
|
+
...options,
|
|
18
|
+
headers: { ...options?.headers },
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
update(id: string, params: NetworkServerParams, options?: Core.RequestOptions): Core.APIPromise<NetworkServerParams> {
|
|
23
|
+
const { ...body } = params;
|
|
24
|
+
return this._client.put(`/network-server/${id}/`, {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
headers: { ...options?.headers },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
partialUpdate(id: number, params: NetworkServerParams, options?: Core.RequestOptions): Core.APIPromise<NetworkServerParams> {
|
|
32
|
+
const { ...body } = params;
|
|
33
|
+
return this._client.patch(`/network-server/${id}/`, {
|
|
34
|
+
body,
|
|
35
|
+
...options,
|
|
36
|
+
headers: { ...options?.headers },
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise<NetworkServerListResponse> {
|
|
41
|
+
const { ...query } = params;
|
|
42
|
+
return this._client.get(`/network-server/`, {
|
|
43
|
+
query,
|
|
44
|
+
...options,
|
|
45
|
+
headers: { ...options?.headers },
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
50
|
+
return this._client.delete(`/network-server/${id}/`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface NetworkServerParams {
|
|
58
|
+
name: string;
|
|
59
|
+
logo: string;
|
|
60
|
+
description: string;
|
|
61
|
+
type_connect: string[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type NetworkServerListResponse = ListResponse<NetworkServerParams>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import { ListParamsResponse, ListResponse } from '../../types/api';
|
|
3
|
+
import * as Core from '../../core';
|
|
4
|
+
|
|
5
|
+
interface TripListParams extends ListParamsResponse {
|
|
6
|
+
include_checkpoints?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class Trip extends APIResource {
|
|
10
|
+
create(params: TripParams, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
|
|
11
|
+
return this._client.post(`/trips/`, {
|
|
12
|
+
body: params,
|
|
13
|
+
...options,
|
|
14
|
+
headers: { ...options?.headers },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
retrieve(id: string, params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
|
|
19
|
+
return this._client.get(`/trips/${id}/`, {
|
|
20
|
+
query: params,
|
|
21
|
+
...options,
|
|
22
|
+
headers: { ...options?.headers },
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
list(
|
|
27
|
+
params: TripListParams & {
|
|
28
|
+
space_device__device_id: string;
|
|
29
|
+
},
|
|
30
|
+
options?: Core.RequestOptions,
|
|
31
|
+
): Core.APIPromise<TripListResponse> {
|
|
32
|
+
return this._client.get(`/trips/`, {
|
|
33
|
+
query: params,
|
|
34
|
+
...options,
|
|
35
|
+
headers: { ...options?.headers },
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
40
|
+
return this._client.delete(`/trips/${id}/`, {
|
|
41
|
+
...options,
|
|
42
|
+
headers: { ...options?.headers },
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
partialUpdate(id: string, params: TripParams, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
|
|
47
|
+
return this._client.patch(`/trips/${id}/`, {
|
|
48
|
+
body: params,
|
|
49
|
+
...options,
|
|
50
|
+
headers: { ...options?.headers },
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
update(id: string, params: TripParams, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
|
|
55
|
+
return this._client.put(`/trips/${id}/`, {
|
|
56
|
+
body: params,
|
|
57
|
+
...options,
|
|
58
|
+
headers: { ...options?.headers },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface TripParams {
|
|
64
|
+
space_device: string;
|
|
65
|
+
start_at: string;
|
|
66
|
+
ended_at: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type TripListResponse = ListResponse<TripParams>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organizations';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
|
|
4
|
+
export class Organizations extends APIResource {
|
|
5
|
+
checkSlugName(slugName: string, options?: Core.RequestOptions): Core.APIPromise<CheckSlugNameResponse> {
|
|
6
|
+
return this._client.get(`/organizations/check/${slugName}`, options);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CheckSlugNameResponse {
|
|
11
|
+
result: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as types from '../_shims/node-types';
|
|
3
|
+
import { setShims } from '../_shims/registry';
|
|
4
|
+
import { getRuntime } from '../_shims/node-runtime';
|
|
5
|
+
setShims(getRuntime());
|
|
6
|
+
|
|
7
|
+
declare module '../_shims/manual-types' {
|
|
8
|
+
export namespace manual {
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
export type Agent = types.Agent;
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
export import fetch = types.fetch;
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export type Request = types.Request;
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export type RequestInfo = types.RequestInfo;
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
export type RequestInit = types.RequestInit;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
export type Response = types.Response;
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
export type ResponseInit = types.ResponseInit;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
export type ResponseType = types.ResponseType;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
export type BodyInit = types.BodyInit;
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
export type Headers = types.Headers;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
export type HeadersInit = types.HeadersInit;
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
export type BlobPropertyBag = types.BlobPropertyBag;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export type FilePropertyBag = types.FilePropertyBag;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
export type FileFromPathOptions = types.FileFromPathOptions;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
export import FormData = types.FormData;
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
export import File = types.File;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
export import Blob = types.Blob;
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export type Readable = types.Readable;
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export type FsReadStream = types.FsReadStream;
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
export import ReadableStream = types.ReadableStream;
|
|
49
|
+
}
|
|
50
|
+
}
|