@businessradar/businessradar 0.1.0
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/CHANGELOG.md +26 -0
- package/LICENSE +201 -0
- package/README.md +401 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +193 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +193 -0
- package/client.d.ts.map +1 -0
- package/client.js +465 -0
- package/client.js.map +1 -0
- package/client.mjs +461 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +53 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +53 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +147 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/companies.d.mts +1051 -0
- package/resources/companies.d.mts.map +1 -0
- package/resources/companies.d.ts +1051 -0
- package/resources/companies.d.ts.map +1 -0
- package/resources/companies.js +47 -0
- package/resources/companies.js.map +1 -0
- package/resources/companies.mjs +43 -0
- package/resources/companies.mjs.map +1 -0
- package/resources/compliance.d.mts +156 -0
- package/resources/compliance.d.mts.map +1 -0
- package/resources/compliance.d.ts +156 -0
- package/resources/compliance.d.ts.map +1 -0
- package/resources/compliance.js +22 -0
- package/resources/compliance.js.map +1 -0
- package/resources/compliance.mjs +18 -0
- package/resources/compliance.mjs.map +1 -0
- package/resources/index.d.mts +6 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +15 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -0
- package/resources/news/articles/analytics.d.mts +101 -0
- package/resources/news/articles/analytics.d.mts.map +1 -0
- package/resources/news/articles/analytics.d.ts +101 -0
- package/resources/news/articles/analytics.d.ts.map +1 -0
- package/resources/news/articles/analytics.js +15 -0
- package/resources/news/articles/analytics.js.map +1 -0
- package/resources/news/articles/analytics.mjs +11 -0
- package/resources/news/articles/analytics.mjs.map +1 -0
- package/resources/news/articles/articles.d.mts +697 -0
- package/resources/news/articles/articles.d.mts.map +1 -0
- package/resources/news/articles/articles.d.ts +697 -0
- package/resources/news/articles/articles.d.ts.map +1 -0
- package/resources/news/articles/articles.js +50 -0
- package/resources/news/articles/articles.js.map +1 -0
- package/resources/news/articles/articles.mjs +45 -0
- package/resources/news/articles/articles.mjs.map +1 -0
- package/resources/news/articles/export.d.mts +139 -0
- package/resources/news/articles/export.d.mts.map +1 -0
- package/resources/news/articles/export.d.ts +139 -0
- package/resources/news/articles/export.d.ts.map +1 -0
- package/resources/news/articles/export.js +28 -0
- package/resources/news/articles/export.js.map +1 -0
- package/resources/news/articles/export.mjs +24 -0
- package/resources/news/articles/export.mjs.map +1 -0
- package/resources/news/articles/index.d.mts +4 -0
- package/resources/news/articles/index.d.mts.map +1 -0
- package/resources/news/articles/index.d.ts +4 -0
- package/resources/news/articles/index.d.ts.map +1 -0
- package/resources/news/articles/index.js +11 -0
- package/resources/news/articles/index.js.map +1 -0
- package/resources/news/articles/index.mjs +5 -0
- package/resources/news/articles/index.mjs.map +1 -0
- package/resources/news/articles.d.mts +2 -0
- package/resources/news/articles.d.mts.map +1 -0
- package/resources/news/articles.d.ts +2 -0
- package/resources/news/articles.d.ts.map +1 -0
- package/resources/news/articles.js +6 -0
- package/resources/news/articles.js.map +1 -0
- package/resources/news/articles.mjs +3 -0
- package/resources/news/articles.mjs.map +1 -0
- package/resources/news/index.d.mts +3 -0
- package/resources/news/index.d.mts.map +1 -0
- package/resources/news/index.d.ts +3 -0
- package/resources/news/index.d.ts.map +1 -0
- package/resources/news/index.js +9 -0
- package/resources/news/index.js.map +1 -0
- package/resources/news/index.mjs +4 -0
- package/resources/news/index.mjs.map +1 -0
- package/resources/news/news.d.mts +10 -0
- package/resources/news/news.d.mts.map +1 -0
- package/resources/news/news.d.ts +10 -0
- package/resources/news/news.d.ts.map +1 -0
- package/resources/news/news.js +17 -0
- package/resources/news/news.js.map +1 -0
- package/resources/news/news.mjs +12 -0
- package/resources/news/news.mjs.map +1 -0
- package/resources/news.d.mts +2 -0
- package/resources/news.d.mts.map +1 -0
- package/resources/news.d.ts +2 -0
- package/resources/news.d.ts.map +1 -0
- package/resources/news.js +6 -0
- package/resources/news.js.map +1 -0
- package/resources/news.mjs +3 -0
- package/resources/news.mjs.map +1 -0
- package/resources/portfolios/companies.d.mts +367 -0
- package/resources/portfolios/companies.d.mts.map +1 -0
- package/resources/portfolios/companies.d.ts +367 -0
- package/resources/portfolios/companies.d.ts.map +1 -0
- package/resources/portfolios/companies.js +34 -0
- package/resources/portfolios/companies.js.map +1 -0
- package/resources/portfolios/companies.mjs +30 -0
- package/resources/portfolios/companies.mjs.map +1 -0
- package/resources/portfolios/index.d.mts +3 -0
- package/resources/portfolios/index.d.mts.map +1 -0
- package/resources/portfolios/index.d.ts +3 -0
- package/resources/portfolios/index.d.ts.map +1 -0
- package/resources/portfolios/index.js +9 -0
- package/resources/portfolios/index.js.map +1 -0
- package/resources/portfolios/index.mjs +4 -0
- package/resources/portfolios/index.mjs.map +1 -0
- package/resources/portfolios/portfolios.d.mts +68 -0
- package/resources/portfolios/portfolios.d.mts.map +1 -0
- package/resources/portfolios/portfolios.d.ts +68 -0
- package/resources/portfolios/portfolios.d.ts.map +1 -0
- package/resources/portfolios/portfolios.js +30 -0
- package/resources/portfolios/portfolios.js.map +1 -0
- package/resources/portfolios/portfolios.mjs +25 -0
- package/resources/portfolios/portfolios.mjs.map +1 -0
- package/resources/portfolios.d.mts +2 -0
- package/resources/portfolios.d.mts.map +1 -0
- package/resources/portfolios.d.ts +2 -0
- package/resources/portfolios.d.ts.map +1 -0
- package/resources/portfolios.js +6 -0
- package/resources/portfolios.js.map +1 -0
- package/resources/portfolios.mjs +3 -0
- package/resources/portfolios.mjs.map +1 -0
- package/resources/shared.d.mts +9 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +9 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +808 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +155 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/companies.ts +2211 -0
- package/src/resources/compliance.ts +568 -0
- package/src/resources/index.ts +35 -0
- package/src/resources/news/articles/analytics.ts +136 -0
- package/src/resources/news/articles/articles.ts +1171 -0
- package/src/resources/news/articles/export.ts +206 -0
- package/src/resources/news/articles/index.ts +29 -0
- package/src/resources/news/articles.ts +3 -0
- package/src/resources/news/index.ts +18 -0
- package/src/resources/news/news.ts +43 -0
- package/src/resources/news.ts +3 -0
- package/src/resources/portfolios/companies.ts +689 -0
- package/src/resources/portfolios/index.ts +18 -0
- package/src/resources/portfolios/portfolios.ts +112 -0
- package/src/resources/portfolios.ts +3 -0
- package/src/resources/shared.ts +10 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as CompaniesAPI from "../companies.js";
|
|
3
|
+
import * as Shared from "../shared.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { NextKey, type NextKeyParams, PagePromise } from "../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
export declare class Companies extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Register a new Portfolio Company.
|
|
10
|
+
*/
|
|
11
|
+
create(portfolioID: string, body?: CompanyCreateParams | null | undefined, options?: RequestOptions): APIPromise<CompaniesAPI.Registration>;
|
|
12
|
+
/**
|
|
13
|
+
* List And Create Portfolio Companies.
|
|
14
|
+
*/
|
|
15
|
+
list(portfolioID: string, query?: CompanyListParams | null | undefined, options?: RequestOptions): PagePromise<CompanyListResponsesNextKey, CompanyListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Remove Portfolio Companies.
|
|
18
|
+
*/
|
|
19
|
+
delete(externalID: string, params: CompanyDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
20
|
+
}
|
|
21
|
+
export type CompanyListResponsesNextKey = NextKey<CompanyListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Portfolio Company Instance.
|
|
24
|
+
*/
|
|
25
|
+
export interface CompanyListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Company List.
|
|
28
|
+
*/
|
|
29
|
+
company: CompanyListResponse.Company;
|
|
30
|
+
created_at: string;
|
|
31
|
+
/**
|
|
32
|
+
* Customer reference for the client to understand relationship.
|
|
33
|
+
*/
|
|
34
|
+
customer_reference?: string | null;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace CompanyListResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Company List.
|
|
39
|
+
*/
|
|
40
|
+
interface Company {
|
|
41
|
+
/**
|
|
42
|
+
* - `AF` - Afghanistan
|
|
43
|
+
* - `AX` - Aland Islands
|
|
44
|
+
* - `AL` - Albania
|
|
45
|
+
* - `DZ` - Algeria
|
|
46
|
+
* - `AS` - American Samoa
|
|
47
|
+
* - `AD` - Andorra
|
|
48
|
+
* - `AO` - Angola
|
|
49
|
+
* - `AI` - Anguilla
|
|
50
|
+
* - `AQ` - Antarctica
|
|
51
|
+
* - `AG` - Antigua and Barbuda
|
|
52
|
+
* - `AR` - Argentina
|
|
53
|
+
* - `AM` - Armenia
|
|
54
|
+
* - `AW` - Aruba
|
|
55
|
+
* - `AU` - Australia
|
|
56
|
+
* - `AT` - Austria
|
|
57
|
+
* - `AZ` - Azerbaijan
|
|
58
|
+
* - `BS` - Bahamas
|
|
59
|
+
* - `BH` - Bahrain
|
|
60
|
+
* - `BD` - Bangladesh
|
|
61
|
+
* - `BB` - Barbados
|
|
62
|
+
* - `BY` - Belarus
|
|
63
|
+
* - `BE` - Belgium
|
|
64
|
+
* - `BZ` - Belize
|
|
65
|
+
* - `BJ` - Benin
|
|
66
|
+
* - `BM` - Bermuda
|
|
67
|
+
* - `BT` - Bhutan
|
|
68
|
+
* - `BO` - Bolivia
|
|
69
|
+
* - `BQ` - Bonaire
|
|
70
|
+
* - `BA` - Bosnia and Herzegovina
|
|
71
|
+
* - `BW` - Botswana
|
|
72
|
+
* - `BV` - Bouvet Island
|
|
73
|
+
* - `BR` - Brazil
|
|
74
|
+
* - `IO` - British Indian Ocean Territory
|
|
75
|
+
* - `BN` - Brunei Darussalam
|
|
76
|
+
* - `BG` - Bulgaria
|
|
77
|
+
* - `BF` - Burkina Faso
|
|
78
|
+
* - `BI` - Burundi
|
|
79
|
+
* - `CV` - Cabo Verde
|
|
80
|
+
* - `KH` - Cambodia
|
|
81
|
+
* - `CM` - Cameroon
|
|
82
|
+
* - `CA` - Canada
|
|
83
|
+
* - `KY` - Cayman Islands
|
|
84
|
+
* - `CF` - Central African Republic
|
|
85
|
+
* - `TD` - Chad
|
|
86
|
+
* - `CL` - Chile
|
|
87
|
+
* - `CN` - China
|
|
88
|
+
* - `CX` - Christmas Island
|
|
89
|
+
* - `CC` - Cocos Keeling Islands
|
|
90
|
+
* - `CO` - Colombia
|
|
91
|
+
* - `KM` - Comoros
|
|
92
|
+
* - `CG` - Congo
|
|
93
|
+
* - `CD` - Congo Democratic Republic
|
|
94
|
+
* - `CK` - Cook Islands
|
|
95
|
+
* - `CR` - Costa Rica
|
|
96
|
+
* - `CI` - Cote d'Ivoire
|
|
97
|
+
* - `HR` - Croatia
|
|
98
|
+
* - `CU` - Cuba
|
|
99
|
+
* - `CW` - Curacao
|
|
100
|
+
* - `CY` - Cyprus
|
|
101
|
+
* - `CZ` - Czechia
|
|
102
|
+
* - `DK` - Denmark
|
|
103
|
+
* - `DJ` - Djibouti
|
|
104
|
+
* - `DM` - Dominica
|
|
105
|
+
* - `DO` - Dominican Republic
|
|
106
|
+
* - `EC` - Ecuador
|
|
107
|
+
* - `EG` - Egypt
|
|
108
|
+
* - `SV` - El Salvador
|
|
109
|
+
* - `GQ` - Equatorial Guinea
|
|
110
|
+
* - `ER` - Eritrea
|
|
111
|
+
* - `EE` - Estonia
|
|
112
|
+
* - `SZ` - Eswatini
|
|
113
|
+
* - `ET` - Ethiopia
|
|
114
|
+
* - `FK` - Falkland Islands
|
|
115
|
+
* - `FO` - Faroe Islands
|
|
116
|
+
* - `FJ` - Fiji
|
|
117
|
+
* - `FI` - Finland
|
|
118
|
+
* - `FR` - France
|
|
119
|
+
* - `GF` - French Guiana
|
|
120
|
+
* - `PF` - French Polynesia
|
|
121
|
+
* - `TF` - French Southern Territories
|
|
122
|
+
* - `GA` - Gabon
|
|
123
|
+
* - `GM` - Gambia
|
|
124
|
+
* - `GE` - Georgia
|
|
125
|
+
* - `DE` - Germany
|
|
126
|
+
* - `GH` - Ghana
|
|
127
|
+
* - `GI` - Gibraltar
|
|
128
|
+
* - `GR` - Greece
|
|
129
|
+
* - `GL` - Greenland
|
|
130
|
+
* - `GD` - Grenada
|
|
131
|
+
* - `GP` - Guadeloupe
|
|
132
|
+
* - `GU` - Guam
|
|
133
|
+
* - `GT` - Guatemala
|
|
134
|
+
* - `GG` - Guernsey
|
|
135
|
+
* - `GN` - Guinea
|
|
136
|
+
* - `GW` - Guinea-Bissau
|
|
137
|
+
* - `GY` - Guyana
|
|
138
|
+
* - `HT` - Haiti
|
|
139
|
+
* - `HM` - Heard Island and McDonald Islands
|
|
140
|
+
* - `VA` - Holy See
|
|
141
|
+
* - `HN` - Honduras
|
|
142
|
+
* - `HK` - Hong Kong
|
|
143
|
+
* - `HU` - Hungary
|
|
144
|
+
* - `IS` - Iceland
|
|
145
|
+
* - `IN` - India
|
|
146
|
+
* - `ID` - Indonesia
|
|
147
|
+
* - `IR` - Iran (Islamic Republic of)
|
|
148
|
+
* - `IQ` - Iraq
|
|
149
|
+
* - `IE` - Ireland
|
|
150
|
+
* - `IM` - Isle of Man
|
|
151
|
+
* - `IL` - Israel
|
|
152
|
+
* - `IT` - Italy
|
|
153
|
+
* - `JM` - Jamaica
|
|
154
|
+
* - `JP` - Japan
|
|
155
|
+
* - `JE` - Jersey
|
|
156
|
+
* - `JO` - Jordan
|
|
157
|
+
* - `KZ` - Kazakhstan
|
|
158
|
+
* - `KE` - Kenya
|
|
159
|
+
* - `KI` - Kiribati
|
|
160
|
+
* - `KP` - Korea (the Democratic People's Republic of)
|
|
161
|
+
* - `KR` - Korea (the Republic of)
|
|
162
|
+
* - `KW` - Kuwait
|
|
163
|
+
* - `KG` - Kyrgyzstan
|
|
164
|
+
* - `LA` - Lao People's Democratic Republic
|
|
165
|
+
* - `LV` - Latvia
|
|
166
|
+
* - `LB` - Lebanon
|
|
167
|
+
* - `LS` - Lesotho
|
|
168
|
+
* - `LR` - Liberia
|
|
169
|
+
* - `LY` - Libya
|
|
170
|
+
* - `LI` - Liechtenstein
|
|
171
|
+
* - `LT` - Lithuania
|
|
172
|
+
* - `LU` - Luxembourg
|
|
173
|
+
* - `MO` - Macao
|
|
174
|
+
* - `MG` - Madagascar
|
|
175
|
+
* - `MW` - Malawi
|
|
176
|
+
* - `MY` - Malaysia
|
|
177
|
+
* - `MV` - Maldives
|
|
178
|
+
* - `ML` - Mali
|
|
179
|
+
* - `MT` - Malta
|
|
180
|
+
* - `MH` - Marshall Islands
|
|
181
|
+
* - `MQ` - Martinique
|
|
182
|
+
* - `MR` - Mauritania
|
|
183
|
+
* - `MU` - Mauritius
|
|
184
|
+
* - `YT` - Mayotte
|
|
185
|
+
* - `MX` - Mexico
|
|
186
|
+
* - `FM` - Micronesia
|
|
187
|
+
* - `MD` - Moldova
|
|
188
|
+
* - `MC` - Monaco
|
|
189
|
+
* - `MN` - Mongolia
|
|
190
|
+
* - `ME` - Montenegro
|
|
191
|
+
* - `MS` - Montserrat
|
|
192
|
+
* - `MA` - Morocco
|
|
193
|
+
* - `MZ` - Mozambique
|
|
194
|
+
* - `MM` - Myanmar
|
|
195
|
+
* - `NA` - Namibia
|
|
196
|
+
* - `NR` - Nauru
|
|
197
|
+
* - `NP` - Nepal
|
|
198
|
+
* - `NL` - Netherlands
|
|
199
|
+
* - `NC` - New Caledonia
|
|
200
|
+
* - `NZ` - New Zealand
|
|
201
|
+
* - `NI` - Nicaragua
|
|
202
|
+
* - `NE` - Niger
|
|
203
|
+
* - `NG` - Nigeria
|
|
204
|
+
* - `NU` - Niue
|
|
205
|
+
* - `NF` - Norfolk Island
|
|
206
|
+
* - `MK` - North Macedonia
|
|
207
|
+
* - `MP` - Northern Mariana Islands
|
|
208
|
+
* - `NO` - Norway
|
|
209
|
+
* - `OM` - Oman
|
|
210
|
+
* - `PK` - Pakistan
|
|
211
|
+
* - `PW` - Palau
|
|
212
|
+
* - `PS` - Palestine, State of
|
|
213
|
+
* - `PA` - Panama
|
|
214
|
+
* - `PG` - Papua New Guinea
|
|
215
|
+
* - `PY` - Paraguay
|
|
216
|
+
* - `PE` - Peru
|
|
217
|
+
* - `PH` - Philippines
|
|
218
|
+
* - `PN` - Pitcairn
|
|
219
|
+
* - `PL` - Poland
|
|
220
|
+
* - `PT` - Portugal
|
|
221
|
+
* - `PR` - Puerto Rico
|
|
222
|
+
* - `QA` - Qatar
|
|
223
|
+
* - `RE` - Réunion
|
|
224
|
+
* - `RO` - Romania
|
|
225
|
+
* - `RU` - Russian Federation
|
|
226
|
+
* - `RW` - Rwanda
|
|
227
|
+
* - `BL` - Saint Barthélemy
|
|
228
|
+
* - `SH` - Saint Helena
|
|
229
|
+
* - `KN` - Saint Kitts and Nevis
|
|
230
|
+
* - `LC` - Saint Lucia
|
|
231
|
+
* - `MF` - Saint Martin
|
|
232
|
+
* - `PM` - Saint Pierre and Miquelon
|
|
233
|
+
* - `VC` - Saint Vincent and the Grenadines
|
|
234
|
+
* - `WS` - Samoa
|
|
235
|
+
* - `SM` - San Marino
|
|
236
|
+
* - `ST` - Sao Tome and Principe
|
|
237
|
+
* - `SA` - Saudi Arabia
|
|
238
|
+
* - `SN` - Senegal
|
|
239
|
+
* - `RS` - Serbia
|
|
240
|
+
* - `SC` - Seychelles
|
|
241
|
+
* - `SL` - Sierra Leone
|
|
242
|
+
* - `SG` - Singapore
|
|
243
|
+
* - `SX` - Sint Maarten
|
|
244
|
+
* - `SK` - Slovakia
|
|
245
|
+
* - `SI` - Slovenia
|
|
246
|
+
* - `SB` - Solomon Islands
|
|
247
|
+
* - `SO` - Somalia
|
|
248
|
+
* - `ZA` - South Africa
|
|
249
|
+
* - `GS` - South Georgia and the South Sandwich Islands
|
|
250
|
+
* - `SS` - South Sudan
|
|
251
|
+
* - `ES` - Spain
|
|
252
|
+
* - `LK` - Sri Lanka
|
|
253
|
+
* - `SD` - Sudan
|
|
254
|
+
* - `SR` - Suriname
|
|
255
|
+
* - `SJ` - Svalbard and Jan Mayen
|
|
256
|
+
* - `SE` - Sweden
|
|
257
|
+
* - `CH` - Switzerland
|
|
258
|
+
* - `SY` - Syrian Arab Republic
|
|
259
|
+
* - `TW` - Taiwan
|
|
260
|
+
* - `TJ` - Tajikistan
|
|
261
|
+
* - `TZ` - Tanzania
|
|
262
|
+
* - `TH` - Thailand
|
|
263
|
+
* - `TL` - Timor-Leste
|
|
264
|
+
* - `TG` - Togo
|
|
265
|
+
* - `TK` - Tokelau
|
|
266
|
+
* - `TO` - Tonga
|
|
267
|
+
* - `TT` - Trinidad and Tobago
|
|
268
|
+
* - `TN` - Tunisia
|
|
269
|
+
* - `TR` - Turkey
|
|
270
|
+
* - `TM` - Turkmenistan
|
|
271
|
+
* - `TC` - Turks and Caicos Islands
|
|
272
|
+
* - `TV` - Tuvalu
|
|
273
|
+
* - `UG` - Uganda
|
|
274
|
+
* - `UA` - Ukraine
|
|
275
|
+
* - `AE` - United Arab Emirates
|
|
276
|
+
* - `GB` - United Kingdom
|
|
277
|
+
* - `UM` - United States Minor Outlying Islands
|
|
278
|
+
* - `US` - United States of America
|
|
279
|
+
* - `UY` - Uruguay
|
|
280
|
+
* - `UZ` - Uzbekistan
|
|
281
|
+
* - `VU` - Vanuatu
|
|
282
|
+
* - `VE` - Venezuela
|
|
283
|
+
* - `VN` - Viet Nam
|
|
284
|
+
* - `VG` - Virgin Islands
|
|
285
|
+
* - `VI` - Virgin Islands
|
|
286
|
+
* - `WF` - Wallis and Futuna
|
|
287
|
+
* - `EH` - Western Sahara
|
|
288
|
+
* - `YE` - Yemen
|
|
289
|
+
* - `ZM` - Zambia
|
|
290
|
+
* - `ZW` - Zimbabwe
|
|
291
|
+
*/
|
|
292
|
+
country: CompaniesAPI.CountryEnum;
|
|
293
|
+
name: string;
|
|
294
|
+
slug: string;
|
|
295
|
+
/**
|
|
296
|
+
* Get Social Description.
|
|
297
|
+
*/
|
|
298
|
+
social_description: string | null;
|
|
299
|
+
/**
|
|
300
|
+
* Get Social Logo.
|
|
301
|
+
*/
|
|
302
|
+
social_logo: string | null;
|
|
303
|
+
address_latitude?: number | null;
|
|
304
|
+
address_longitude?: number | null;
|
|
305
|
+
address_phone?: string | null;
|
|
306
|
+
address_place?: string | null;
|
|
307
|
+
address_postal?: string | null;
|
|
308
|
+
address_region?: string | null;
|
|
309
|
+
address_street?: string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Amount of articles available
|
|
312
|
+
*/
|
|
313
|
+
article_count?: number;
|
|
314
|
+
duns_number?: string | null;
|
|
315
|
+
external_id?: string;
|
|
316
|
+
founding_date?: string | null;
|
|
317
|
+
linkedin_url?: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* Amount of publications available
|
|
320
|
+
*/
|
|
321
|
+
publication_count?: number;
|
|
322
|
+
/**
|
|
323
|
+
* Amount of reports available
|
|
324
|
+
*/
|
|
325
|
+
report_count?: number;
|
|
326
|
+
/**
|
|
327
|
+
* Average review score
|
|
328
|
+
*/
|
|
329
|
+
review_average_score?: number | null;
|
|
330
|
+
/**
|
|
331
|
+
* Amount of reviews available
|
|
332
|
+
*/
|
|
333
|
+
review_count?: number;
|
|
334
|
+
ticker_symbol?: string | null;
|
|
335
|
+
website_domain?: string | null;
|
|
336
|
+
/**
|
|
337
|
+
* Icon of the found website
|
|
338
|
+
*/
|
|
339
|
+
website_icon_url?: string | null;
|
|
340
|
+
website_url?: string | null;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
export interface CompanyCreateParams {
|
|
344
|
+
/**
|
|
345
|
+
* Portfolio Company Detail Serializer.
|
|
346
|
+
*
|
|
347
|
+
* Alternative serializer for the Company model which is limited.
|
|
348
|
+
*/
|
|
349
|
+
company?: Shared.PortfolioCompanyDetailRequest | null;
|
|
350
|
+
country?: 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'UM' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | '' | null;
|
|
351
|
+
/**
|
|
352
|
+
* Customer reference for the client to understand relationship.
|
|
353
|
+
*/
|
|
354
|
+
customer_reference?: string | null;
|
|
355
|
+
duns_number?: string | null;
|
|
356
|
+
primary_name?: string | null;
|
|
357
|
+
registration_number?: string | null;
|
|
358
|
+
}
|
|
359
|
+
export interface CompanyListParams extends NextKeyParams {
|
|
360
|
+
}
|
|
361
|
+
export interface CompanyDeleteParams {
|
|
362
|
+
portfolio_id: string;
|
|
363
|
+
}
|
|
364
|
+
export declare namespace Companies {
|
|
365
|
+
export { type CompanyListResponse as CompanyListResponse, type CompanyListResponsesNextKey as CompanyListResponsesNextKey, type CompanyCreateParams as CompanyCreateParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, };
|
|
366
|
+
}
|
|
367
|
+
//# sourceMappingURL=companies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../src/resources/portfolios/companies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,WAAW,EAAE;OAE5C,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,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AI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,EAAE,GACF,IAAI,CAAC;IAET;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;CAAG;AAE3D,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Companies = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
class Companies extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Register a new Portfolio Company.
|
|
12
|
+
*/
|
|
13
|
+
create(portfolioID, body = {}, options) {
|
|
14
|
+
return this._client.post((0, path_1.path) `/ext/v3/portfolios/${portfolioID}/companies`, { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* List And Create Portfolio Companies.
|
|
18
|
+
*/
|
|
19
|
+
list(portfolioID, query = {}, options) {
|
|
20
|
+
return this._client.getAPIList((0, path_1.path) `/ext/v3/portfolios/${portfolioID}/companies`, (pagination_1.NextKey), { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Remove Portfolio Companies.
|
|
24
|
+
*/
|
|
25
|
+
delete(externalID, params, options) {
|
|
26
|
+
const { portfolio_id } = params;
|
|
27
|
+
return this._client.delete((0, path_1.path) `/ext/v3/portfolios/${portfolio_id}/companies/${externalID}`, {
|
|
28
|
+
...options,
|
|
29
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.Companies = Companies;
|
|
34
|
+
//# sourceMappingURL=companies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../../src/resources/portfolios/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAAiF;AACjF,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,sBAAsB,WAAW,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,WAAmB,EACnB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,sBAAsB,WAAW,YAAY,EACjD,CAAA,oBAA4B,CAAA,EAC5B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,MAA2B,EAAE,OAAwB;QAC9E,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,sBAAsB,YAAY,cAAc,UAAU,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AArCD,8BAqCC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { NextKey } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
export class Companies extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Register a new Portfolio Company.
|
|
9
|
+
*/
|
|
10
|
+
create(portfolioID, body = {}, options) {
|
|
11
|
+
return this._client.post(path `/ext/v3/portfolios/${portfolioID}/companies`, { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* List And Create Portfolio Companies.
|
|
15
|
+
*/
|
|
16
|
+
list(portfolioID, query = {}, options) {
|
|
17
|
+
return this._client.getAPIList(path `/ext/v3/portfolios/${portfolioID}/companies`, (NextKey), { query, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Remove Portfolio Companies.
|
|
21
|
+
*/
|
|
22
|
+
delete(externalID, params, options) {
|
|
23
|
+
const { portfolio_id } = params;
|
|
24
|
+
return this._client.delete(path `/ext/v3/portfolios/${portfolio_id}/companies/${externalID}`, {
|
|
25
|
+
...options,
|
|
26
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=companies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../../src/resources/portfolios/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,OAAO,EAAmC;OAC5C,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,WAAW,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,WAAmB,EACnB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,sBAAsB,WAAW,YAAY,EACjD,CAAA,OAA4B,CAAA,EAC5B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,MAA2B,EAAE,OAAwB;QAC9E,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,sBAAsB,YAAY,cAAc,UAAU,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Companies, type CompanyListResponse, type CompanyCreateParams, type CompanyListParams, type CompanyDeleteParams, type CompanyListResponsesNextKey, } from "./companies.mjs";
|
|
2
|
+
export { Portfolios, type PermissionEnum, type Portfolio, type PortfolioCreateParams, type PortfolioListParams, type PortfoliosNextKey, } from "./portfolios.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/portfolios/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Companies, type CompanyListResponse, type CompanyCreateParams, type CompanyListParams, type CompanyDeleteParams, type CompanyListResponsesNextKey, } from "./companies.js";
|
|
2
|
+
export { Portfolios, type PermissionEnum, type Portfolio, type PortfolioCreateParams, type PortfolioListParams, type PortfoliosNextKey, } from "./portfolios.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/portfolios/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Portfolios = exports.Companies = void 0;
|
|
5
|
+
var companies_1 = require("./companies.js");
|
|
6
|
+
Object.defineProperty(exports, "Companies", { enumerable: true, get: function () { return companies_1.Companies; } });
|
|
7
|
+
var portfolios_1 = require("./portfolios.js");
|
|
8
|
+
Object.defineProperty(exports, "Portfolios", { enumerable: true, get: function () { return portfolios_1.Portfolios; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/portfolios/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,8CAOsB;AANpB,wGAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/portfolios/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAMV;OACM,EACL,UAAU,GAMX"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as CompaniesAPI from "./companies.mjs";
|
|
3
|
+
import { Companies, CompanyCreateParams, CompanyDeleteParams, CompanyListParams, CompanyListResponse, CompanyListResponsesNextKey } from "./companies.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { NextKey, type NextKeyParams, PagePromise } from "../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
export declare class Portfolios extends APIResource {
|
|
8
|
+
companies: CompaniesAPI.Companies;
|
|
9
|
+
/**
|
|
10
|
+
* List Create Portfolio.
|
|
11
|
+
*/
|
|
12
|
+
create(body: PortfolioCreateParams, options?: RequestOptions): APIPromise<Portfolio>;
|
|
13
|
+
/**
|
|
14
|
+
* List Create Portfolio.
|
|
15
|
+
*/
|
|
16
|
+
list(query?: PortfolioListParams | null | undefined, options?: RequestOptions): PagePromise<PortfoliosNextKey, Portfolio>;
|
|
17
|
+
}
|
|
18
|
+
export type PortfoliosNextKey = NextKey<Portfolio>;
|
|
19
|
+
/**
|
|
20
|
+
* - `view_only` - Only Viewing Access
|
|
21
|
+
* - `write` - View and Write Access
|
|
22
|
+
* - `admin` - View, Write and Admin Access
|
|
23
|
+
* - `owner` - Portfolio Owner
|
|
24
|
+
*/
|
|
25
|
+
export type PermissionEnum = 'view_only' | 'write' | 'admin' | 'owner';
|
|
26
|
+
/**
|
|
27
|
+
* Portfolio Instance.
|
|
28
|
+
*/
|
|
29
|
+
export interface Portfolio {
|
|
30
|
+
external_id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Customer reference for the client to understand relationship.
|
|
34
|
+
*/
|
|
35
|
+
customer_reference?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Default permission for all users in organization.
|
|
38
|
+
*
|
|
39
|
+
* - `view_only` - Only Viewing Access
|
|
40
|
+
* - `write` - View and Write Access
|
|
41
|
+
* - `admin` - View, Write and Admin Access
|
|
42
|
+
* - `owner` - Portfolio Owner
|
|
43
|
+
*/
|
|
44
|
+
default_permission?: 'view_only' | 'write' | 'admin' | 'owner' | '' | null;
|
|
45
|
+
}
|
|
46
|
+
export interface PortfolioCreateParams {
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Customer reference for the client to understand relationship.
|
|
50
|
+
*/
|
|
51
|
+
customer_reference?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Default permission for all users in organization.
|
|
54
|
+
*
|
|
55
|
+
* - `view_only` - Only Viewing Access
|
|
56
|
+
* - `write` - View and Write Access
|
|
57
|
+
* - `admin` - View, Write and Admin Access
|
|
58
|
+
* - `owner` - Portfolio Owner
|
|
59
|
+
*/
|
|
60
|
+
default_permission?: 'view_only' | 'write' | 'admin' | 'owner' | '' | null;
|
|
61
|
+
}
|
|
62
|
+
export interface PortfolioListParams extends NextKeyParams {
|
|
63
|
+
}
|
|
64
|
+
export declare namespace Portfolios {
|
|
65
|
+
export { type PermissionEnum as PermissionEnum, type Portfolio as Portfolio, type PortfoliosNextKey as PortfoliosNextKey, type PortfolioCreateParams as PortfolioCreateParams, type PortfolioListParams as PortfolioListParams, };
|
|
66
|
+
export { Companies as Companies, type CompanyListResponse as CompanyListResponse, type CompanyListResponsesNextKey as CompanyListResponsesNextKey, type CompanyCreateParams as CompanyCreateParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=portfolios.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portfolios.d.mts","sourceRoot":"","sources":["../../src/resources/portfolios/portfolios.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,2BAA2B,EAC5B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,WAAW,EAAE;OAC5C,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA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AC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as CompaniesAPI from "./companies.js";
|
|
3
|
+
import { Companies, CompanyCreateParams, CompanyDeleteParams, CompanyListParams, CompanyListResponse, CompanyListResponsesNextKey } from "./companies.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { NextKey, type NextKeyParams, PagePromise } from "../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
export declare class Portfolios extends APIResource {
|
|
8
|
+
companies: CompaniesAPI.Companies;
|
|
9
|
+
/**
|
|
10
|
+
* List Create Portfolio.
|
|
11
|
+
*/
|
|
12
|
+
create(body: PortfolioCreateParams, options?: RequestOptions): APIPromise<Portfolio>;
|
|
13
|
+
/**
|
|
14
|
+
* List Create Portfolio.
|
|
15
|
+
*/
|
|
16
|
+
list(query?: PortfolioListParams | null | undefined, options?: RequestOptions): PagePromise<PortfoliosNextKey, Portfolio>;
|
|
17
|
+
}
|
|
18
|
+
export type PortfoliosNextKey = NextKey<Portfolio>;
|
|
19
|
+
/**
|
|
20
|
+
* - `view_only` - Only Viewing Access
|
|
21
|
+
* - `write` - View and Write Access
|
|
22
|
+
* - `admin` - View, Write and Admin Access
|
|
23
|
+
* - `owner` - Portfolio Owner
|
|
24
|
+
*/
|
|
25
|
+
export type PermissionEnum = 'view_only' | 'write' | 'admin' | 'owner';
|
|
26
|
+
/**
|
|
27
|
+
* Portfolio Instance.
|
|
28
|
+
*/
|
|
29
|
+
export interface Portfolio {
|
|
30
|
+
external_id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Customer reference for the client to understand relationship.
|
|
34
|
+
*/
|
|
35
|
+
customer_reference?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Default permission for all users in organization.
|
|
38
|
+
*
|
|
39
|
+
* - `view_only` - Only Viewing Access
|
|
40
|
+
* - `write` - View and Write Access
|
|
41
|
+
* - `admin` - View, Write and Admin Access
|
|
42
|
+
* - `owner` - Portfolio Owner
|
|
43
|
+
*/
|
|
44
|
+
default_permission?: 'view_only' | 'write' | 'admin' | 'owner' | '' | null;
|
|
45
|
+
}
|
|
46
|
+
export interface PortfolioCreateParams {
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Customer reference for the client to understand relationship.
|
|
50
|
+
*/
|
|
51
|
+
customer_reference?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Default permission for all users in organization.
|
|
54
|
+
*
|
|
55
|
+
* - `view_only` - Only Viewing Access
|
|
56
|
+
* - `write` - View and Write Access
|
|
57
|
+
* - `admin` - View, Write and Admin Access
|
|
58
|
+
* - `owner` - Portfolio Owner
|
|
59
|
+
*/
|
|
60
|
+
default_permission?: 'view_only' | 'write' | 'admin' | 'owner' | '' | null;
|
|
61
|
+
}
|
|
62
|
+
export interface PortfolioListParams extends NextKeyParams {
|
|
63
|
+
}
|
|
64
|
+
export declare namespace Portfolios {
|
|
65
|
+
export { type PermissionEnum as PermissionEnum, type Portfolio as Portfolio, type PortfoliosNextKey as PortfoliosNextKey, type PortfolioCreateParams as PortfolioCreateParams, type PortfolioListParams as PortfolioListParams, };
|
|
66
|
+
export { Companies as Companies, type CompanyListResponse as CompanyListResponse, type CompanyListResponsesNextKey as CompanyListResponsesNextKey, type CompanyCreateParams as CompanyCreateParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=portfolios.d.ts.map
|
|
@@ -0,0 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