comicstockmcp 0.0.2
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 +11 -0
- package/LICENSE +201 -0
- package/README.md +365 -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 +220 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +220 -0
- package/client.d.ts.map +1 -0
- package/client.js +509 -0
- package/client.js.map +1 -0
- package/client.mjs +505 -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/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 +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -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 +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -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 +137 -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/analysis.d.mts +28 -0
- package/resources/analysis.d.mts.map +1 -0
- package/resources/analysis.d.ts +28 -0
- package/resources/analysis.d.ts.map +1 -0
- package/resources/analysis.js +29 -0
- package/resources/analysis.js.map +1 -0
- package/resources/analysis.mjs +25 -0
- package/resources/analysis.mjs.map +1 -0
- package/resources/comics-scraper.d.mts +24 -0
- package/resources/comics-scraper.d.mts.map +1 -0
- package/resources/comics-scraper.d.ts +24 -0
- package/resources/comics-scraper.d.ts.map +1 -0
- package/resources/comics-scraper.js +21 -0
- package/resources/comics-scraper.js.map +1 -0
- package/resources/comics-scraper.mjs +17 -0
- package/resources/comics-scraper.mjs.map +1 -0
- package/resources/customers.d.mts +55 -0
- package/resources/customers.d.mts.map +1 -0
- package/resources/customers.d.ts +55 -0
- package/resources/customers.d.ts.map +1 -0
- package/resources/customers.js +23 -0
- package/resources/customers.js.map +1 -0
- package/resources/customers.mjs +19 -0
- package/resources/customers.mjs.map +1 -0
- package/resources/dashboard/avg-order-value.d.mts +15 -0
- package/resources/dashboard/avg-order-value.d.mts.map +1 -0
- package/resources/dashboard/avg-order-value.d.ts +15 -0
- package/resources/dashboard/avg-order-value.d.ts.map +1 -0
- package/resources/dashboard/avg-order-value.js +22 -0
- package/resources/dashboard/avg-order-value.js.map +1 -0
- package/resources/dashboard/avg-order-value.mjs +18 -0
- package/resources/dashboard/avg-order-value.mjs.map +1 -0
- package/resources/dashboard/dashboard.d.mts +123 -0
- package/resources/dashboard/dashboard.d.mts.map +1 -0
- package/resources/dashboard/dashboard.d.ts +123 -0
- package/resources/dashboard/dashboard.d.ts.map +1 -0
- package/resources/dashboard/dashboard.js +73 -0
- package/resources/dashboard/dashboard.js.map +1 -0
- package/resources/dashboard/dashboard.mjs +68 -0
- package/resources/dashboard/dashboard.mjs.map +1 -0
- package/resources/dashboard/index.d.mts +3 -0
- package/resources/dashboard/index.d.mts.map +1 -0
- package/resources/dashboard/index.d.ts +3 -0
- package/resources/dashboard/index.d.ts.map +1 -0
- package/resources/dashboard/index.js +9 -0
- package/resources/dashboard/index.js.map +1 -0
- package/resources/dashboard/index.mjs +4 -0
- package/resources/dashboard/index.mjs.map +1 -0
- package/resources/dashboard.d.mts +2 -0
- package/resources/dashboard.d.mts.map +1 -0
- package/resources/dashboard.d.ts +2 -0
- package/resources/dashboard.d.ts.map +1 -0
- package/resources/dashboard.js +6 -0
- package/resources/dashboard.js.map +1 -0
- package/resources/dashboard.mjs +3 -0
- package/resources/dashboard.mjs.map +1 -0
- package/resources/email.d.mts +63 -0
- package/resources/email.d.mts.map +1 -0
- package/resources/email.d.ts +63 -0
- package/resources/email.d.ts.map +1 -0
- package/resources/email.js +31 -0
- package/resources/email.js.map +1 -0
- package/resources/email.mjs +27 -0
- package/resources/email.mjs.map +1 -0
- package/resources/fulfillment.d.mts +38 -0
- package/resources/fulfillment.d.mts.map +1 -0
- package/resources/fulfillment.d.ts +38 -0
- package/resources/fulfillment.d.ts.map +1 -0
- package/resources/fulfillment.js +22 -0
- package/resources/fulfillment.js.map +1 -0
- package/resources/fulfillment.mjs +18 -0
- package/resources/fulfillment.mjs.map +1 -0
- package/resources/index.d.mts +16 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +16 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +35 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +17 -0
- package/resources/index.mjs.map +1 -0
- package/resources/issue-analysis.d.mts +12 -0
- package/resources/issue-analysis.d.mts.map +1 -0
- package/resources/issue-analysis.d.ts +12 -0
- package/resources/issue-analysis.d.ts.map +1 -0
- package/resources/issue-analysis.js +22 -0
- package/resources/issue-analysis.js.map +1 -0
- package/resources/issue-analysis.mjs +18 -0
- package/resources/issue-analysis.mjs.map +1 -0
- package/resources/issue-search.d.mts +19 -0
- package/resources/issue-search.d.mts.map +1 -0
- package/resources/issue-search.d.ts +19 -0
- package/resources/issue-search.d.ts.map +1 -0
- package/resources/issue-search.js +20 -0
- package/resources/issue-search.js.map +1 -0
- package/resources/issue-search.mjs +16 -0
- package/resources/issue-search.mjs.map +1 -0
- package/resources/orders.d.mts +188 -0
- package/resources/orders.d.mts.map +1 -0
- package/resources/orders.d.ts +188 -0
- package/resources/orders.d.ts.map +1 -0
- package/resources/orders.js +45 -0
- package/resources/orders.js.map +1 -0
- package/resources/orders.mjs +41 -0
- package/resources/orders.mjs.map +1 -0
- package/resources/stock.d.mts +171 -0
- package/resources/stock.d.mts.map +1 -0
- package/resources/stock.d.ts +171 -0
- package/resources/stock.d.ts.map +1 -0
- package/resources/stock.js +46 -0
- package/resources/stock.js.map +1 -0
- package/resources/stock.mjs +42 -0
- package/resources/stock.mjs.map +1 -0
- package/resources/suggestions.d.mts +41 -0
- package/resources/suggestions.d.mts.map +1 -0
- package/resources/suggestions.d.ts +41 -0
- package/resources/suggestions.d.ts.map +1 -0
- package/resources/suggestions.js +33 -0
- package/resources/suggestions.js.map +1 -0
- package/resources/suggestions.mjs +29 -0
- package/resources/suggestions.mjs.map +1 -0
- package/resources/summary.d.mts +55 -0
- package/resources/summary.d.mts.map +1 -0
- package/resources/summary.d.ts +55 -0
- package/resources/summary.d.ts.map +1 -0
- package/resources/summary.js +23 -0
- package/resources/summary.js.map +1 -0
- package/resources/summary.mjs +19 -0
- package/resources/summary.mjs.map +1 -0
- package/resources/suppliers/index.d.mts +6 -0
- package/resources/suppliers/index.d.mts.map +1 -0
- package/resources/suppliers/index.d.ts +6 -0
- package/resources/suppliers/index.d.ts.map +1 -0
- package/resources/suppliers/index.js +15 -0
- package/resources/suppliers/index.js.map +1 -0
- package/resources/suppliers/index.mjs +7 -0
- package/resources/suppliers/index.mjs.map +1 -0
- package/resources/suppliers/issues.d.mts +23 -0
- package/resources/suppliers/issues.d.mts.map +1 -0
- package/resources/suppliers/issues.d.ts +23 -0
- package/resources/suppliers/issues.d.ts.map +1 -0
- package/resources/suppliers/issues.js +24 -0
- package/resources/suppliers/issues.js.map +1 -0
- package/resources/suppliers/issues.mjs +20 -0
- package/resources/suppliers/issues.mjs.map +1 -0
- package/resources/suppliers/orders/creation.d.mts +108 -0
- package/resources/suppliers/orders/creation.d.mts.map +1 -0
- package/resources/suppliers/orders/creation.d.ts +108 -0
- package/resources/suppliers/orders/creation.d.ts.map +1 -0
- package/resources/suppliers/orders/creation.js +39 -0
- package/resources/suppliers/orders/creation.js.map +1 -0
- package/resources/suppliers/orders/creation.mjs +35 -0
- package/resources/suppliers/orders/creation.mjs.map +1 -0
- package/resources/suppliers/orders/index.d.mts +3 -0
- package/resources/suppliers/orders/index.d.mts.map +1 -0
- package/resources/suppliers/orders/index.d.ts +3 -0
- package/resources/suppliers/orders/index.d.ts.map +1 -0
- package/resources/suppliers/orders/index.js +9 -0
- package/resources/suppliers/orders/index.js.map +1 -0
- package/resources/suppliers/orders/index.mjs +4 -0
- package/resources/suppliers/orders/index.mjs.map +1 -0
- package/resources/suppliers/orders/orders.d.mts +263 -0
- package/resources/suppliers/orders/orders.d.mts.map +1 -0
- package/resources/suppliers/orders/orders.d.ts +263 -0
- package/resources/suppliers/orders/orders.d.ts.map +1 -0
- package/resources/suppliers/orders/orders.js +122 -0
- package/resources/suppliers/orders/orders.js.map +1 -0
- package/resources/suppliers/orders/orders.mjs +117 -0
- package/resources/suppliers/orders/orders.mjs.map +1 -0
- package/resources/suppliers/orders.d.mts +2 -0
- package/resources/suppliers/orders.d.mts.map +1 -0
- package/resources/suppliers/orders.d.ts +2 -0
- package/resources/suppliers/orders.d.ts.map +1 -0
- package/resources/suppliers/orders.js +6 -0
- package/resources/suppliers/orders.js.map +1 -0
- package/resources/suppliers/orders.mjs +3 -0
- package/resources/suppliers/orders.mjs.map +1 -0
- package/resources/suppliers/payments.d.mts +90 -0
- package/resources/suppliers/payments.d.mts.map +1 -0
- package/resources/suppliers/payments.d.ts +90 -0
- package/resources/suppliers/payments.d.ts.map +1 -0
- package/resources/suppliers/payments.js +58 -0
- package/resources/suppliers/payments.js.map +1 -0
- package/resources/suppliers/payments.mjs +54 -0
- package/resources/suppliers/payments.mjs.map +1 -0
- package/resources/suppliers/quotes.d.mts +207 -0
- package/resources/suppliers/quotes.d.mts.map +1 -0
- package/resources/suppliers/quotes.d.ts +207 -0
- package/resources/suppliers/quotes.d.ts.map +1 -0
- package/resources/suppliers/quotes.js +104 -0
- package/resources/suppliers/quotes.js.map +1 -0
- package/resources/suppliers/quotes.mjs +100 -0
- package/resources/suppliers/quotes.mjs.map +1 -0
- package/resources/suppliers/suppliers.d.mts +166 -0
- package/resources/suppliers/suppliers.d.mts.map +1 -0
- package/resources/suppliers/suppliers.d.ts +166 -0
- package/resources/suppliers/suppliers.d.ts.map +1 -0
- package/resources/suppliers/suppliers.js +89 -0
- package/resources/suppliers/suppliers.js.map +1 -0
- package/resources/suppliers/suppliers.mjs +84 -0
- package/resources/suppliers/suppliers.mjs.map +1 -0
- package/resources/suppliers.d.mts +2 -0
- package/resources/suppliers.d.mts.map +1 -0
- package/resources/suppliers.d.ts +2 -0
- package/resources/suppliers.d.ts.map +1 -0
- package/resources/suppliers.js +6 -0
- package/resources/suppliers.js.map +1 -0
- package/resources/suppliers.mjs +3 -0
- package/resources/suppliers.mjs.map +1 -0
- package/resources/vouchers.d.mts +71 -0
- package/resources/vouchers.d.mts.map +1 -0
- package/resources/vouchers.d.ts +71 -0
- package/resources/vouchers.d.ts.map +1 -0
- package/resources/vouchers.js +41 -0
- package/resources/vouchers.js.map +1 -0
- package/resources/vouchers.mjs +37 -0
- package/resources/vouchers.mjs.map +1 -0
- package/resources/weather-forecast.d.mts +25 -0
- package/resources/weather-forecast.d.mts.map +1 -0
- package/resources/weather-forecast.d.ts +25 -0
- package/resources/weather-forecast.d.ts.map +1 -0
- package/resources/weather-forecast.js +15 -0
- package/resources/weather-forecast.js.map +1 -0
- package/resources/weather-forecast.mjs +11 -0
- package/resources/weather-forecast.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 +920 -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/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -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 +56 -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/resource.ts +2 -0
- package/src/resources/analysis.ts +44 -0
- package/src/resources/comics-scraper.ts +36 -0
- package/src/resources/customers.ts +84 -0
- package/src/resources/dashboard/avg-order-value.ts +23 -0
- package/src/resources/dashboard/dashboard.ts +197 -0
- package/src/resources/dashboard/index.ts +12 -0
- package/src/resources/dashboard.ts +3 -0
- package/src/resources/email.ts +93 -0
- package/src/resources/fulfillment.ts +56 -0
- package/src/resources/index.ts +71 -0
- package/src/resources/issue-analysis.ts +21 -0
- package/src/resources/issue-search.ts +30 -0
- package/src/resources/orders.ts +278 -0
- package/src/resources/stock.ts +248 -0
- package/src/resources/suggestions.ts +71 -0
- package/src/resources/summary.ts +73 -0
- package/src/resources/suppliers/index.ts +45 -0
- package/src/resources/suppliers/issues.ts +33 -0
- package/src/resources/suppliers/orders/creation.ts +148 -0
- package/src/resources/suppliers/orders/index.ts +19 -0
- package/src/resources/suppliers/orders/orders.ts +371 -0
- package/src/resources/suppliers/orders.ts +3 -0
- package/src/resources/suppliers/payments.ts +132 -0
- package/src/resources/suppliers/quotes.ts +301 -0
- package/src/resources/suppliers/suppliers.ts +298 -0
- package/src/resources/suppliers.ts +3 -0
- package/src/resources/vouchers.ts +110 -0
- package/src/resources/weather-forecast.ts +36 -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,21 @@
|
|
|
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.ComicsScraper = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
class ComicsScraper extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Fetches a list of upcoming comic releases matching the query from the Grand
|
|
10
|
+
* Comics Database website. Results are used to enrich the Analysis report.
|
|
11
|
+
*/
|
|
12
|
+
fetch(query = {}, options) {
|
|
13
|
+
return this._client.get('/api/comics-scraper', {
|
|
14
|
+
query,
|
|
15
|
+
...options,
|
|
16
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ComicsScraper = ComicsScraper;
|
|
21
|
+
//# sourceMappingURL=comics-scraper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comics-scraper.js","sourceRoot":"","sources":["../src/resources/comics-scraper.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,KAAK,CAAC,QAAqD,EAAE,EAAE,OAAwB;QACrF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,KAAK;YACL,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;AAZD,sCAYC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
export class ComicsScraper extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Fetches a list of upcoming comic releases matching the query from the Grand
|
|
7
|
+
* Comics Database website. Results are used to enrich the Analysis report.
|
|
8
|
+
*/
|
|
9
|
+
fetch(query = {}, options) {
|
|
10
|
+
return this._client.get('/api/comics-scraper', {
|
|
11
|
+
query,
|
|
12
|
+
...options,
|
|
13
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=comics-scraper.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comics-scraper.mjs","sourceRoot":"","sources":["../src/resources/comics-scraper.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,KAAK,CAAC,QAAqD,EAAE,EAAE,OAAwB;QACrF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,KAAK;YACL,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,55 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Customers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a single customer by ID
|
|
7
|
+
*/
|
|
8
|
+
retrieve(id: number, options?: RequestOptions): APIPromise<UserDetails>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of registered customers. Supports optional full-text
|
|
11
|
+
* search across name and email.
|
|
12
|
+
*/
|
|
13
|
+
list(query?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<UserDetailsPagedResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Customer profile detail.
|
|
17
|
+
*/
|
|
18
|
+
export interface UserDetails {
|
|
19
|
+
email?: string | null;
|
|
20
|
+
firstName?: string | null;
|
|
21
|
+
lastName?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Salutation (Mr, Mrs, Dr, etc.).
|
|
24
|
+
*/
|
|
25
|
+
title?: string | null;
|
|
26
|
+
userId?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Paginated result wrapping UserDetailsDTO items.
|
|
30
|
+
*/
|
|
31
|
+
export interface UserDetailsPagedResult {
|
|
32
|
+
items?: Array<UserDetails> | null;
|
|
33
|
+
page?: number;
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
totalCount?: number;
|
|
36
|
+
totalPages?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface CustomerListParams {
|
|
39
|
+
/**
|
|
40
|
+
* 1-based page number.
|
|
41
|
+
*/
|
|
42
|
+
page?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Number of records per page.
|
|
45
|
+
*/
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Optional search string matched against customer name and email.
|
|
49
|
+
*/
|
|
50
|
+
searchTerm?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace Customers {
|
|
53
|
+
export { type UserDetails as UserDetails, type UserDetailsPagedResult as UserDetailsPagedResult, type CustomerListParams as CustomerListParams, };
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=customers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAGtC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Customers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a single customer by ID
|
|
7
|
+
*/
|
|
8
|
+
retrieve(id: number, options?: RequestOptions): APIPromise<UserDetails>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of registered customers. Supports optional full-text
|
|
11
|
+
* search across name and email.
|
|
12
|
+
*/
|
|
13
|
+
list(query?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<UserDetailsPagedResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Customer profile detail.
|
|
17
|
+
*/
|
|
18
|
+
export interface UserDetails {
|
|
19
|
+
email?: string | null;
|
|
20
|
+
firstName?: string | null;
|
|
21
|
+
lastName?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Salutation (Mr, Mrs, Dr, etc.).
|
|
24
|
+
*/
|
|
25
|
+
title?: string | null;
|
|
26
|
+
userId?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Paginated result wrapping UserDetailsDTO items.
|
|
30
|
+
*/
|
|
31
|
+
export interface UserDetailsPagedResult {
|
|
32
|
+
items?: Array<UserDetails> | null;
|
|
33
|
+
page?: number;
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
totalCount?: number;
|
|
36
|
+
totalPages?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface CustomerListParams {
|
|
39
|
+
/**
|
|
40
|
+
* 1-based page number.
|
|
41
|
+
*/
|
|
42
|
+
page?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Number of records per page.
|
|
45
|
+
*/
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Optional search string matched against customer name and email.
|
|
49
|
+
*/
|
|
50
|
+
searchTerm?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace Customers {
|
|
53
|
+
export { type UserDetails as UserDetails, type UserDetailsPagedResult as UserDetailsPagedResult, type CustomerListParams as CustomerListParams, };
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAGtC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.Customers = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class Customers extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get a single customer by ID
|
|
10
|
+
*/
|
|
11
|
+
retrieve(id, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/api/Customers/${id}`, options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a paginated list of registered customers. Supports optional full-text
|
|
16
|
+
* search across name and email.
|
|
17
|
+
*/
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
return this._client.get('/api/Customers', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Customers = Customers;
|
|
23
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAlBD,8BAkBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class Customers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a single customer by ID
|
|
7
|
+
*/
|
|
8
|
+
retrieve(id, options) {
|
|
9
|
+
return this._client.get(path `/api/Customers/${id}`, options);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns a paginated list of registered customers. Supports optional full-text
|
|
13
|
+
* search across name and email.
|
|
14
|
+
*/
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
return this._client.get('/api/Customers', { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as DashboardAPI from "./dashboard.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class AvgOrderValue extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get average order value (all customers)
|
|
8
|
+
*/
|
|
9
|
+
get(options?: RequestOptions): APIPromise<DashboardAPI.OrderTrend>;
|
|
10
|
+
/**
|
|
11
|
+
* Get average order value for a specific customer
|
|
12
|
+
*/
|
|
13
|
+
getByCustomer(id: number, options?: RequestOptions): APIPromise<DashboardAPI.OrderTrend>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=avg-order-value.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avg-order-value.d.mts","sourceRoot":"","sources":["../../src/resources/dashboard/avg-order-value.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC;IAIlE;;OAEG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC;CAGzF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as DashboardAPI from "./dashboard.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class AvgOrderValue extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get average order value (all customers)
|
|
8
|
+
*/
|
|
9
|
+
get(options?: RequestOptions): APIPromise<DashboardAPI.OrderTrend>;
|
|
10
|
+
/**
|
|
11
|
+
* Get average order value for a specific customer
|
|
12
|
+
*/
|
|
13
|
+
getByCustomer(id: number, options?: RequestOptions): APIPromise<DashboardAPI.OrderTrend>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=avg-order-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avg-order-value.d.ts","sourceRoot":"","sources":["../../src/resources/dashboard/avg-order-value.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC;IAIlE;;OAEG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC;CAGzF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.AvgOrderValue = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class AvgOrderValue extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get average order value (all customers)
|
|
10
|
+
*/
|
|
11
|
+
get(options) {
|
|
12
|
+
return this._client.get('/api/Dashboard/avg-order-value', options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get average order value for a specific customer
|
|
16
|
+
*/
|
|
17
|
+
getByCustomer(id, options) {
|
|
18
|
+
return this._client.get((0, path_1.path) `/api/Dashboard/avg-order-value/${id}`, options);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AvgOrderValue = AvgOrderValue;
|
|
22
|
+
//# sourceMappingURL=avg-order-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avg-order-value.js","sourceRoot":"","sources":["../../src/resources/dashboard/avg-order-value.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAdD,sCAcC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class AvgOrderValue extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get average order value (all customers)
|
|
7
|
+
*/
|
|
8
|
+
get(options) {
|
|
9
|
+
return this._client.get('/api/Dashboard/avg-order-value', options);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get average order value for a specific customer
|
|
13
|
+
*/
|
|
14
|
+
getByCustomer(id, options) {
|
|
15
|
+
return this._client.get(path `/api/Dashboard/avg-order-value/${id}`, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=avg-order-value.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avg-order-value.mjs","sourceRoot":"","sources":["../../src/resources/dashboard/avg-order-value.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as StockAPI from "../stock.mjs";
|
|
3
|
+
import * as AvgOrderValueAPI from "./avg-order-value.mjs";
|
|
4
|
+
import { AvgOrderValue } from "./avg-order-value.mjs";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
export declare class Dashboard extends APIResource {
|
|
8
|
+
avgOrderValue: AvgOrderValueAPI.AvgOrderValue;
|
|
9
|
+
/**
|
|
10
|
+
* Get count of orders older than a stale threshold
|
|
11
|
+
*/
|
|
12
|
+
getOlderOrdersCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
13
|
+
/**
|
|
14
|
+
* Returns time-series data points grouped by week or month (granularity chosen by
|
|
15
|
+
* the API based on the requested window) for order count and revenue.
|
|
16
|
+
*/
|
|
17
|
+
getOrderTrends(query?: DashboardGetOrderTrendsParams | null | undefined, options?: RequestOptions): APIPromise<OrderTrend>;
|
|
18
|
+
/**
|
|
19
|
+
* Get count of supplier shipments expected to arrive today
|
|
20
|
+
*/
|
|
21
|
+
getOrdersExpectedTodayCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
22
|
+
/**
|
|
23
|
+
* Get count of supplier orders past their expected delivery date
|
|
24
|
+
*/
|
|
25
|
+
getOverdueOrdersCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
26
|
+
/**
|
|
27
|
+
* Get count of orders with pending payments
|
|
28
|
+
*/
|
|
29
|
+
getPendingPaymentsCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a short list of the most recent customer orders shown on the dashboard
|
|
32
|
+
* home screen.
|
|
33
|
+
*/
|
|
34
|
+
getRecentOrders(options?: RequestOptions): APIPromise<DashboardGetRecentOrdersResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get recently active users for the dashboard
|
|
37
|
+
*/
|
|
38
|
+
getRecentUsers(options?: RequestOptions): APIPromise<DashboardGetRecentUsersResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Get stock snapshot for the dashboard
|
|
41
|
+
*/
|
|
42
|
+
getStockSnapshot(options?: RequestOptions): APIPromise<DashboardGetStockSnapshotResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Get count of unfulfilled orders
|
|
45
|
+
*/
|
|
46
|
+
getUnfulfilledOrdersCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Summary of a customer order for list views.
|
|
50
|
+
*/
|
|
51
|
+
export interface OrderSummary {
|
|
52
|
+
customerEmail?: string | null;
|
|
53
|
+
customerFullName?: string | null;
|
|
54
|
+
customerOrderId?: number;
|
|
55
|
+
dateDelivered?: string | null;
|
|
56
|
+
dateShipped?: string | null;
|
|
57
|
+
deliveryType?: string | null;
|
|
58
|
+
orderDate?: string;
|
|
59
|
+
orderNumber?: string | null;
|
|
60
|
+
status?: string | null;
|
|
61
|
+
total?: number;
|
|
62
|
+
totalPaid?: number;
|
|
63
|
+
waybillNumber?: string | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Time-series metric result used by dashboard trend charts and KPI cards.
|
|
67
|
+
*/
|
|
68
|
+
export interface OrderTrend {
|
|
69
|
+
dataPoints?: Array<OrderTrend.DataPoint> | null;
|
|
70
|
+
/**
|
|
71
|
+
* Time bucket granularity chosen by the API, e.g. 'week' or 'month'.
|
|
72
|
+
*/
|
|
73
|
+
granularity?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Aggregate order count across the window.
|
|
76
|
+
*/
|
|
77
|
+
totalOrders?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Aggregate revenue across the window.
|
|
80
|
+
*/
|
|
81
|
+
totalRevenue?: number;
|
|
82
|
+
}
|
|
83
|
+
export declare namespace OrderTrend {
|
|
84
|
+
/**
|
|
85
|
+
* A single data point in a trend chart.
|
|
86
|
+
*/
|
|
87
|
+
interface DataPoint {
|
|
88
|
+
/**
|
|
89
|
+
* X-axis label (e.g. 'Jan 2025', 'Week 12').
|
|
90
|
+
*/
|
|
91
|
+
label?: string | null;
|
|
92
|
+
orderCount?: number;
|
|
93
|
+
revenue?: number;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export type DashboardGetRecentOrdersResponse = Array<OrderSummary>;
|
|
97
|
+
export type DashboardGetRecentUsersResponse = Array<DashboardGetRecentUsersResponse.DashboardGetRecentUsersResponseItem>;
|
|
98
|
+
export declare namespace DashboardGetRecentUsersResponse {
|
|
99
|
+
/**
|
|
100
|
+
* Customer summary with order totals, used on the dashboard.
|
|
101
|
+
*/
|
|
102
|
+
interface DashboardGetRecentUsersResponseItem {
|
|
103
|
+
customerId?: number;
|
|
104
|
+
email?: string | null;
|
|
105
|
+
firstName?: string | null;
|
|
106
|
+
lastName?: string | null;
|
|
107
|
+
title?: string | null;
|
|
108
|
+
totalOrders?: number;
|
|
109
|
+
totalSpent?: number;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export type DashboardGetStockSnapshotResponse = Array<StockAPI.IssueDetail>;
|
|
113
|
+
export interface DashboardGetOrderTrendsParams {
|
|
114
|
+
/**
|
|
115
|
+
* How many months of history to return. Defaults to 12.
|
|
116
|
+
*/
|
|
117
|
+
months?: number;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace Dashboard {
|
|
120
|
+
export { type OrderSummary as OrderSummary, type OrderTrend as OrderTrend, type DashboardGetRecentOrdersResponse as DashboardGetRecentOrdersResponse, type DashboardGetRecentUsersResponse as DashboardGetRecentUsersResponse, type DashboardGetStockSnapshotResponse as DashboardGetStockSnapshotResponse, type DashboardGetOrderTrendsParams as DashboardGetOrderTrendsParams, };
|
|
121
|
+
export { AvgOrderValue as AvgOrderValue };
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=dashboard.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.d.mts","sourceRoot":"","sources":["../../src/resources/dashboard/dashboard.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD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iCAAiC,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAE5E,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;IAEF,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,CAAC;CAC3C"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as StockAPI from "../stock.js";
|
|
3
|
+
import * as AvgOrderValueAPI from "./avg-order-value.js";
|
|
4
|
+
import { AvgOrderValue } from "./avg-order-value.js";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
export declare class Dashboard extends APIResource {
|
|
8
|
+
avgOrderValue: AvgOrderValueAPI.AvgOrderValue;
|
|
9
|
+
/**
|
|
10
|
+
* Get count of orders older than a stale threshold
|
|
11
|
+
*/
|
|
12
|
+
getOlderOrdersCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
13
|
+
/**
|
|
14
|
+
* Returns time-series data points grouped by week or month (granularity chosen by
|
|
15
|
+
* the API based on the requested window) for order count and revenue.
|
|
16
|
+
*/
|
|
17
|
+
getOrderTrends(query?: DashboardGetOrderTrendsParams | null | undefined, options?: RequestOptions): APIPromise<OrderTrend>;
|
|
18
|
+
/**
|
|
19
|
+
* Get count of supplier shipments expected to arrive today
|
|
20
|
+
*/
|
|
21
|
+
getOrdersExpectedTodayCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
22
|
+
/**
|
|
23
|
+
* Get count of supplier orders past their expected delivery date
|
|
24
|
+
*/
|
|
25
|
+
getOverdueOrdersCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
26
|
+
/**
|
|
27
|
+
* Get count of orders with pending payments
|
|
28
|
+
*/
|
|
29
|
+
getPendingPaymentsCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a short list of the most recent customer orders shown on the dashboard
|
|
32
|
+
* home screen.
|
|
33
|
+
*/
|
|
34
|
+
getRecentOrders(options?: RequestOptions): APIPromise<DashboardGetRecentOrdersResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get recently active users for the dashboard
|
|
37
|
+
*/
|
|
38
|
+
getRecentUsers(options?: RequestOptions): APIPromise<DashboardGetRecentUsersResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Get stock snapshot for the dashboard
|
|
41
|
+
*/
|
|
42
|
+
getStockSnapshot(options?: RequestOptions): APIPromise<DashboardGetStockSnapshotResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Get count of unfulfilled orders
|
|
45
|
+
*/
|
|
46
|
+
getUnfulfilledOrdersCount(options?: RequestOptions): APIPromise<OrderTrend>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Summary of a customer order for list views.
|
|
50
|
+
*/
|
|
51
|
+
export interface OrderSummary {
|
|
52
|
+
customerEmail?: string | null;
|
|
53
|
+
customerFullName?: string | null;
|
|
54
|
+
customerOrderId?: number;
|
|
55
|
+
dateDelivered?: string | null;
|
|
56
|
+
dateShipped?: string | null;
|
|
57
|
+
deliveryType?: string | null;
|
|
58
|
+
orderDate?: string;
|
|
59
|
+
orderNumber?: string | null;
|
|
60
|
+
status?: string | null;
|
|
61
|
+
total?: number;
|
|
62
|
+
totalPaid?: number;
|
|
63
|
+
waybillNumber?: string | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Time-series metric result used by dashboard trend charts and KPI cards.
|
|
67
|
+
*/
|
|
68
|
+
export interface OrderTrend {
|
|
69
|
+
dataPoints?: Array<OrderTrend.DataPoint> | null;
|
|
70
|
+
/**
|
|
71
|
+
* Time bucket granularity chosen by the API, e.g. 'week' or 'month'.
|
|
72
|
+
*/
|
|
73
|
+
granularity?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Aggregate order count across the window.
|
|
76
|
+
*/
|
|
77
|
+
totalOrders?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Aggregate revenue across the window.
|
|
80
|
+
*/
|
|
81
|
+
totalRevenue?: number;
|
|
82
|
+
}
|
|
83
|
+
export declare namespace OrderTrend {
|
|
84
|
+
/**
|
|
85
|
+
* A single data point in a trend chart.
|
|
86
|
+
*/
|
|
87
|
+
interface DataPoint {
|
|
88
|
+
/**
|
|
89
|
+
* X-axis label (e.g. 'Jan 2025', 'Week 12').
|
|
90
|
+
*/
|
|
91
|
+
label?: string | null;
|
|
92
|
+
orderCount?: number;
|
|
93
|
+
revenue?: number;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export type DashboardGetRecentOrdersResponse = Array<OrderSummary>;
|
|
97
|
+
export type DashboardGetRecentUsersResponse = Array<DashboardGetRecentUsersResponse.DashboardGetRecentUsersResponseItem>;
|
|
98
|
+
export declare namespace DashboardGetRecentUsersResponse {
|
|
99
|
+
/**
|
|
100
|
+
* Customer summary with order totals, used on the dashboard.
|
|
101
|
+
*/
|
|
102
|
+
interface DashboardGetRecentUsersResponseItem {
|
|
103
|
+
customerId?: number;
|
|
104
|
+
email?: string | null;
|
|
105
|
+
firstName?: string | null;
|
|
106
|
+
lastName?: string | null;
|
|
107
|
+
title?: string | null;
|
|
108
|
+
totalOrders?: number;
|
|
109
|
+
totalSpent?: number;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export type DashboardGetStockSnapshotResponse = Array<StockAPI.IssueDetail>;
|
|
113
|
+
export interface DashboardGetOrderTrendsParams {
|
|
114
|
+
/**
|
|
115
|
+
* How many months of history to return. Defaults to 12.
|
|
116
|
+
*/
|
|
117
|
+
months?: number;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace Dashboard {
|
|
120
|
+
export { type OrderSummary as OrderSummary, type OrderTrend as OrderTrend, type DashboardGetRecentOrdersResponse as DashboardGetRecentOrdersResponse, type DashboardGetRecentUsersResponse as DashboardGetRecentUsersResponse, type DashboardGetStockSnapshotResponse as DashboardGetStockSnapshotResponse, type DashboardGetOrderTrendsParams as DashboardGetOrderTrendsParams, };
|
|
121
|
+
export { AvgOrderValue as AvgOrderValue };
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/resources/dashboard/dashboard.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG;;OAEG;IACH,mBAAmB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIrE;;;OAGG;IACH,cAAc,CACZ,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAIzB;;OAEG;IACH,2BAA2B,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI7E;;OAEG;IACH,qBAAqB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIvE;;OAEG;IACH,uBAAuB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,U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1,73 @@
|
|
|
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.Dashboard = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const AvgOrderValueAPI = tslib_1.__importStar(require("./avg-order-value.js"));
|
|
8
|
+
const avg_order_value_1 = require("./avg-order-value.js");
|
|
9
|
+
class Dashboard extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.avgOrderValue = new AvgOrderValueAPI.AvgOrderValue(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get count of orders older than a stale threshold
|
|
16
|
+
*/
|
|
17
|
+
getOlderOrdersCount(options) {
|
|
18
|
+
return this._client.get('/api/Dashboard/older-orders', options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns time-series data points grouped by week or month (granularity chosen by
|
|
22
|
+
* the API based on the requested window) for order count and revenue.
|
|
23
|
+
*/
|
|
24
|
+
getOrderTrends(query = {}, options) {
|
|
25
|
+
return this._client.get('/api/Dashboard/order-trends', { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get count of supplier shipments expected to arrive today
|
|
29
|
+
*/
|
|
30
|
+
getOrdersExpectedTodayCount(options) {
|
|
31
|
+
return this._client.get('/api/Dashboard/orders-expected-today', options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get count of supplier orders past their expected delivery date
|
|
35
|
+
*/
|
|
36
|
+
getOverdueOrdersCount(options) {
|
|
37
|
+
return this._client.get('/api/Dashboard/orders-overdue', options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get count of orders with pending payments
|
|
41
|
+
*/
|
|
42
|
+
getPendingPaymentsCount(options) {
|
|
43
|
+
return this._client.get('/api/Dashboard/pending-payments', options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns a short list of the most recent customer orders shown on the dashboard
|
|
47
|
+
* home screen.
|
|
48
|
+
*/
|
|
49
|
+
getRecentOrders(options) {
|
|
50
|
+
return this._client.get('/api/Dashboard/orders', options);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get recently active users for the dashboard
|
|
54
|
+
*/
|
|
55
|
+
getRecentUsers(options) {
|
|
56
|
+
return this._client.get('/api/Dashboard/users', options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get stock snapshot for the dashboard
|
|
60
|
+
*/
|
|
61
|
+
getStockSnapshot(options) {
|
|
62
|
+
return this._client.get('/api/Dashboard/stock', options);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get count of unfulfilled orders
|
|
66
|
+
*/
|
|
67
|
+
getUnfulfilledOrdersCount(options) {
|
|
68
|
+
return this._client.get('/api/Dashboard/unfulfilled-orders', options);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.Dashboard = Dashboard;
|
|
72
|
+
Dashboard.AvgOrderValue = avg_order_value_1.AvgOrderValue;
|
|
73
|
+
//# sourceMappingURL=dashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/resources/dashboard/dashboard.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,+EAAsD;AACtD,0DAAkD;AAIlD,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqEnG,CAAC;IAnEC;;OAEG;IACH,mBAAmB,CAAC,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC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