mdd-printful-client 0.2.1
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 +52 -0
- package/LICENSE +201 -0
- package/README.md +358 -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 +237 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +237 -0
- package/client.d.ts.map +1 -0
- package/client.js +521 -0
- package/client.js.map +1 -0
- package/client.mjs +517 -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/request-options.d.mts +78 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +78 -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/approval-sheets.d.mts +164 -0
- package/resources/approval-sheets.d.mts.map +1 -0
- package/resources/approval-sheets.d.ts +164 -0
- package/resources/approval-sheets.d.ts.map +1 -0
- package/resources/approval-sheets.js +77 -0
- package/resources/approval-sheets.js.map +1 -0
- package/resources/approval-sheets.mjs +73 -0
- package/resources/approval-sheets.mjs.map +1 -0
- package/resources/categories.d.mts +88 -0
- package/resources/categories.d.mts.map +1 -0
- package/resources/categories.d.ts +88 -0
- package/resources/categories.d.ts.map +1 -0
- package/resources/categories.js +22 -0
- package/resources/categories.js.map +1 -0
- package/resources/categories.mjs +18 -0
- package/resources/categories.mjs.map +1 -0
- package/resources/countries.d.mts +46 -0
- package/resources/countries.d.mts.map +1 -0
- package/resources/countries.d.ts +46 -0
- package/resources/countries.d.ts.map +1 -0
- package/resources/countries.js +15 -0
- package/resources/countries.js.map +1 -0
- package/resources/countries.mjs +11 -0
- package/resources/countries.mjs.map +1 -0
- package/resources/files.d.mts +127 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +127 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +73 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +69 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +18 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +18 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +19 -0
- package/resources/index.mjs.map +1 -0
- package/resources/mockup-generator.d.mts +651 -0
- package/resources/mockup-generator.d.mts.map +1 -0
- package/resources/mockup-generator.d.ts +651 -0
- package/resources/mockup-generator.d.ts.map +1 -0
- package/resources/mockup-generator.js +119 -0
- package/resources/mockup-generator.js.map +1 -0
- package/resources/mockup-generator.mjs +115 -0
- package/resources/mockup-generator.mjs.map +1 -0
- package/resources/oauth.d.mts +31 -0
- package/resources/oauth.d.mts.map +1 -0
- package/resources/oauth.d.ts +31 -0
- package/resources/oauth.d.ts.map +1 -0
- package/resources/oauth.js +15 -0
- package/resources/oauth.js.map +1 -0
- package/resources/oauth.mjs +11 -0
- package/resources/oauth.mjs.map +1 -0
- package/resources/orders.d.mts +923 -0
- package/resources/orders.d.mts.map +1 -0
- package/resources/orders.d.ts +923 -0
- package/resources/orders.d.ts.map +1 -0
- package/resources/orders.js +166 -0
- package/resources/orders.js.map +1 -0
- package/resources/orders.mjs +162 -0
- package/resources/orders.mjs.map +1 -0
- package/resources/product-templates.d.mts +171 -0
- package/resources/product-templates.d.mts.map +1 -0
- package/resources/product-templates.d.ts +171 -0
- package/resources/product-templates.d.ts.map +1 -0
- package/resources/product-templates.js +28 -0
- package/resources/product-templates.js.map +1 -0
- package/resources/product-templates.mjs +24 -0
- package/resources/product-templates.mjs.map +1 -0
- package/resources/products.d.mts +511 -0
- package/resources/products.d.mts.map +1 -0
- package/resources/products.d.ts +511 -0
- package/resources/products.d.ts.map +1 -0
- package/resources/products.js +35 -0
- package/resources/products.js.map +1 -0
- package/resources/products.mjs +31 -0
- package/resources/products.mjs.map +1 -0
- package/resources/reports.d.mts +363 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +363 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +56 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +52 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/shared.d.mts +304 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +304 -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/shipping.d.mts +215 -0
- package/resources/shipping.d.mts.map +1 -0
- package/resources/shipping.d.ts +215 -0
- package/resources/shipping.d.ts.map +1 -0
- package/resources/shipping.js +56 -0
- package/resources/shipping.js.map +1 -0
- package/resources/shipping.mjs +52 -0
- package/resources/shipping.mjs.map +1 -0
- package/resources/store/index.d.mts +4 -0
- package/resources/store/index.d.mts.map +1 -0
- package/resources/store/index.d.ts +4 -0
- package/resources/store/index.d.ts.map +1 -0
- package/resources/store/index.js +11 -0
- package/resources/store/index.js.map +1 -0
- package/resources/store/index.mjs +5 -0
- package/resources/store/index.mjs.map +1 -0
- package/resources/store/products.d.mts +327 -0
- package/resources/store/products.d.mts.map +1 -0
- package/resources/store/products.d.ts +327 -0
- package/resources/store/products.d.ts.map +1 -0
- package/resources/store/products.js +164 -0
- package/resources/store/products.js.map +1 -0
- package/resources/store/products.mjs +160 -0
- package/resources/store/products.mjs.map +1 -0
- package/resources/store/store.d.mts +148 -0
- package/resources/store/store.d.mts.map +1 -0
- package/resources/store/store.d.ts +148 -0
- package/resources/store/store.d.ts.map +1 -0
- package/resources/store/store.js +65 -0
- package/resources/store/store.js.map +1 -0
- package/resources/store/store.mjs +60 -0
- package/resources/store/store.mjs.map +1 -0
- package/resources/store/variants.d.mts +151 -0
- package/resources/store/variants.d.mts.map +1 -0
- package/resources/store/variants.d.ts +151 -0
- package/resources/store/variants.d.ts.map +1 -0
- package/resources/store/variants.js +74 -0
- package/resources/store/variants.js.map +1 -0
- package/resources/store/variants.mjs +70 -0
- package/resources/store/variants.mjs.map +1 -0
- package/resources/store.d.mts +2 -0
- package/resources/store.d.mts.map +1 -0
- package/resources/store.d.ts +2 -0
- package/resources/store.d.ts.map +1 -0
- package/resources/store.js +6 -0
- package/resources/store.js.map +1 -0
- package/resources/store.mjs +3 -0
- package/resources/store.mjs.map +1 -0
- package/resources/sync/index.d.mts +4 -0
- package/resources/sync/index.d.mts.map +1 -0
- package/resources/sync/index.d.ts +4 -0
- package/resources/sync/index.d.ts.map +1 -0
- package/resources/sync/index.js +11 -0
- package/resources/sync/index.js.map +1 -0
- package/resources/sync/index.mjs +5 -0
- package/resources/sync/index.mjs.map +1 -0
- package/resources/sync/products.d.mts +138 -0
- package/resources/sync/products.d.mts.map +1 -0
- package/resources/sync/products.d.ts +138 -0
- package/resources/sync/products.d.ts.map +1 -0
- package/resources/sync/products.js +69 -0
- package/resources/sync/products.js.map +1 -0
- package/resources/sync/products.mjs +65 -0
- package/resources/sync/products.mjs.map +1 -0
- package/resources/sync/sync.d.mts +14 -0
- package/resources/sync/sync.d.mts.map +1 -0
- package/resources/sync/sync.d.ts +14 -0
- package/resources/sync/sync.d.ts.map +1 -0
- package/resources/sync/sync.js +21 -0
- package/resources/sync/sync.js.map +1 -0
- package/resources/sync/sync.mjs +16 -0
- package/resources/sync/sync.mjs.map +1 -0
- package/resources/sync/variant.d.mts +164 -0
- package/resources/sync/variant.d.mts.map +1 -0
- package/resources/sync/variant.d.ts +164 -0
- package/resources/sync/variant.d.ts.map +1 -0
- package/resources/sync/variant.js +78 -0
- package/resources/sync/variant.js.map +1 -0
- package/resources/sync/variant.mjs +74 -0
- package/resources/sync/variant.mjs.map +1 -0
- package/resources/sync.d.mts +2 -0
- package/resources/sync.d.mts.map +1 -0
- package/resources/sync.d.ts +2 -0
- package/resources/sync.d.ts.map +1 -0
- package/resources/sync.js +6 -0
- package/resources/sync.js.map +1 -0
- package/resources/sync.mjs +3 -0
- package/resources/sync.mjs.map +1 -0
- package/resources/tax.d.mts +122 -0
- package/resources/tax.d.mts.map +1 -0
- package/resources/tax.d.ts +122 -0
- package/resources/tax.d.ts.map +1 -0
- package/resources/tax.js +31 -0
- package/resources/tax.js.map +1 -0
- package/resources/tax.mjs +27 -0
- package/resources/tax.mjs.map +1 -0
- package/resources/warehouse/index.d.mts +3 -0
- package/resources/warehouse/index.d.mts.map +1 -0
- package/resources/warehouse/index.d.ts +3 -0
- package/resources/warehouse/index.d.ts.map +1 -0
- package/resources/warehouse/index.js +9 -0
- package/resources/warehouse/index.js.map +1 -0
- package/resources/warehouse/index.mjs +4 -0
- package/resources/warehouse/index.mjs.map +1 -0
- package/resources/warehouse/products.d.mts +311 -0
- package/resources/warehouse/products.d.mts.map +1 -0
- package/resources/warehouse/products.d.ts +311 -0
- package/resources/warehouse/products.d.ts.map +1 -0
- package/resources/warehouse/products.js +51 -0
- package/resources/warehouse/products.js.map +1 -0
- package/resources/warehouse/products.mjs +47 -0
- package/resources/warehouse/products.mjs.map +1 -0
- package/resources/warehouse/warehouse.d.mts +10 -0
- package/resources/warehouse/warehouse.d.mts.map +1 -0
- package/resources/warehouse/warehouse.d.ts +10 -0
- package/resources/warehouse/warehouse.d.ts.map +1 -0
- package/resources/warehouse/warehouse.js +17 -0
- package/resources/warehouse/warehouse.js.map +1 -0
- package/resources/warehouse/warehouse.mjs +12 -0
- package/resources/warehouse/warehouse.mjs.map +1 -0
- package/resources/warehouse.d.mts +2 -0
- package/resources/warehouse.d.mts.map +1 -0
- package/resources/warehouse.d.ts +2 -0
- package/resources/warehouse.d.ts.map +1 -0
- package/resources/warehouse.js +6 -0
- package/resources/warehouse.js.map +1 -0
- package/resources/warehouse.mjs +3 -0
- package/resources/warehouse.mjs.map +1 -0
- package/resources/webhooks.d.mts +130 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +130 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +81 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +77 -0
- package/resources/webhooks.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 +1030 -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/request-options.ts +93 -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/approval-sheets.ts +245 -0
- package/src/resources/categories.ts +114 -0
- package/src/resources/countries.ts +59 -0
- package/src/resources/files.ts +185 -0
- package/src/resources/index.ts +115 -0
- package/src/resources/mockup-generator.ts +830 -0
- package/src/resources/oauth.ts +41 -0
- package/src/resources/orders.ts +1212 -0
- package/src/resources/product-templates.ts +252 -0
- package/src/resources/products.ts +636 -0
- package/src/resources/reports.ts +443 -0
- package/src/resources/shared.ts +366 -0
- package/src/resources/shipping.ts +263 -0
- package/src/resources/store/index.ts +33 -0
- package/src/resources/store/products.ts +472 -0
- package/src/resources/store/store.ts +249 -0
- package/src/resources/store/variants.ts +227 -0
- package/src/resources/store.ts +3 -0
- package/src/resources/sync/index.ts +21 -0
- package/src/resources/sync/products.ts +212 -0
- package/src/resources/sync/sync.ts +53 -0
- package/src/resources/sync/variant.ts +242 -0
- package/src/resources/sync.ts +3 -0
- package/src/resources/tax.ts +156 -0
- package/src/resources/warehouse/index.ts +10 -0
- package/src/resources/warehouse/products.ts +412 -0
- package/src/resources/warehouse/warehouse.ts +27 -0
- package/src/resources/warehouse.ts +3 -0
- package/src/resources/webhooks.ts +192 -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,636 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as ProductsAPI from './products';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Products extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns information about a specific product and a list of variants for this
|
|
12
|
+
* product.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id: number, options?: RequestOptions): APIPromise<ProductRetrieveResponse> {
|
|
15
|
+
return this._client.get(path`/products/${id}`, options);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Returns list of Products available in the Printful
|
|
20
|
+
*/
|
|
21
|
+
list(
|
|
22
|
+
query: ProductListParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<ProductListResponse> {
|
|
25
|
+
return this._client.get('/products', { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns information about the size guide for a specific product.
|
|
30
|
+
*/
|
|
31
|
+
retrieveSizeGuide(
|
|
32
|
+
id: number,
|
|
33
|
+
query: ProductRetrieveSizeGuideParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<ProductRetrieveSizeGuideResponse> {
|
|
36
|
+
return this._client.get(path`/products/${id}/sizes`, { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns information about a specific Variant and its Product
|
|
41
|
+
*/
|
|
42
|
+
retrieveVariant(id: number, options?: RequestOptions): APIPromise<ProductRetrieveVariantResponse> {
|
|
43
|
+
return this._client.get(path`/products/variant/${id}`, options);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface AvailableTechnique {
|
|
48
|
+
/**
|
|
49
|
+
* The human-readable technique name
|
|
50
|
+
*/
|
|
51
|
+
display_name?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Whether the technique is the default one
|
|
55
|
+
*/
|
|
56
|
+
is_default?: boolean;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The technique key to be used in the API
|
|
60
|
+
*/
|
|
61
|
+
key?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface CatalogFileOption {
|
|
65
|
+
/**
|
|
66
|
+
* File option identifier. Use this to specify which option you are adding to your
|
|
67
|
+
* file in a request.
|
|
68
|
+
*/
|
|
69
|
+
id?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Additional cost this will add to the item.
|
|
73
|
+
*/
|
|
74
|
+
additional_price?: number;
|
|
75
|
+
|
|
76
|
+
title?: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The type of the value property when using this option in a request.
|
|
80
|
+
*/
|
|
81
|
+
type?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface FileType {
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated Deprecated file type identifier. Please use type field instead!
|
|
87
|
+
*/
|
|
88
|
+
id?: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Additional price when this print file type is used
|
|
92
|
+
*/
|
|
93
|
+
additional_price?: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Additional options available to product files
|
|
97
|
+
*/
|
|
98
|
+
options?: Array<CatalogFileOption>;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Display name
|
|
102
|
+
*/
|
|
103
|
+
title?: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* File type identifier - use this to specify a file's purpose when creating an
|
|
107
|
+
* order
|
|
108
|
+
*/
|
|
109
|
+
type?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface OptionType {
|
|
113
|
+
/**
|
|
114
|
+
* Option identifier - use this to specify the option when creating an order
|
|
115
|
+
*/
|
|
116
|
+
id?: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Additional price when this option is used
|
|
120
|
+
*/
|
|
121
|
+
additional_price?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Additional price breakdown by type - [key, value] map
|
|
125
|
+
*/
|
|
126
|
+
additional_price_breakdown?: { [key: string]: unknown };
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Display name
|
|
130
|
+
*/
|
|
131
|
+
title?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Data type of this option (currently only 'bool' is supported)
|
|
135
|
+
*/
|
|
136
|
+
type?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Possible option values - [key, value] map
|
|
140
|
+
*/
|
|
141
|
+
values?: { [key: string]: unknown };
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Information about the Product that the Variant belongs to
|
|
146
|
+
*/
|
|
147
|
+
export interface Product {
|
|
148
|
+
/**
|
|
149
|
+
* Product ID
|
|
150
|
+
*/
|
|
151
|
+
id?: number;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Average number of days for order to be fulfilled
|
|
155
|
+
*/
|
|
156
|
+
avg_fulfillment_time?: number;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Brand name
|
|
160
|
+
*/
|
|
161
|
+
brand?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Currency in which prices are returned
|
|
165
|
+
*/
|
|
166
|
+
currency?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Product description
|
|
170
|
+
*/
|
|
171
|
+
description?: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Definitions of Print/Mockup file categories that can be attached to this product
|
|
175
|
+
*/
|
|
176
|
+
files?: Array<FileType>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* URL of a sample image for this product
|
|
180
|
+
*/
|
|
181
|
+
image?: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* If product is disabled in push
|
|
185
|
+
*/
|
|
186
|
+
is_discontinued?: boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Main category of product
|
|
190
|
+
*/
|
|
191
|
+
main_category_id?: number;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Model name
|
|
195
|
+
*/
|
|
196
|
+
model?: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Definitions of additional options that are available for this product
|
|
200
|
+
* [See examples](#tag/Common/Options)
|
|
201
|
+
*/
|
|
202
|
+
options?: Array<OptionType>;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The origin country for inside label
|
|
206
|
+
*/
|
|
207
|
+
origin_country?: string | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Available techniques
|
|
211
|
+
*/
|
|
212
|
+
techniques?: Array<AvailableTechnique>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Product title
|
|
216
|
+
*/
|
|
217
|
+
title?: string;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Product type identifier
|
|
221
|
+
*/
|
|
222
|
+
type?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Product type name
|
|
226
|
+
*/
|
|
227
|
+
type_name?: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Number of available variants for this product
|
|
231
|
+
*/
|
|
232
|
+
variant_count?: number;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface ProductRetrieveResponse {
|
|
236
|
+
/**
|
|
237
|
+
* Response status code `200`
|
|
238
|
+
*/
|
|
239
|
+
code?: number;
|
|
240
|
+
|
|
241
|
+
result?: ProductRetrieveResponse.Result;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export namespace ProductRetrieveResponse {
|
|
245
|
+
export interface Result {
|
|
246
|
+
/**
|
|
247
|
+
* Information about the Product that the Variant belongs to
|
|
248
|
+
*/
|
|
249
|
+
product?: ProductsAPI.Product;
|
|
250
|
+
|
|
251
|
+
variants?: Array<Result.Variant>;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export namespace Result {
|
|
255
|
+
export interface Variant {
|
|
256
|
+
/**
|
|
257
|
+
* Variant ID, use this to specify the product when creating orders
|
|
258
|
+
*/
|
|
259
|
+
id?: number;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Map of [region code, region name] of regions where the variant is available for
|
|
263
|
+
* fulfillment
|
|
264
|
+
*/
|
|
265
|
+
availability_regions?: { [key: string]: unknown };
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Detailed stock status per region
|
|
269
|
+
*/
|
|
270
|
+
availability_status?: Array<Variant.AvailabilityStatus>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Item color
|
|
274
|
+
*/
|
|
275
|
+
color?: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Hexadecimal RGB color code. May not exactly reflect the real-world color
|
|
279
|
+
*/
|
|
280
|
+
color_code?: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Secondary hexadecimal RGB color code. May not exactly reflect the real-world
|
|
284
|
+
* color
|
|
285
|
+
*/
|
|
286
|
+
color_code2?: string;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* URL of a preview image for this variant
|
|
290
|
+
*/
|
|
291
|
+
image?: string;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Stock availability of this variant
|
|
295
|
+
*/
|
|
296
|
+
in_stock?: boolean;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* A list of materials this Variant is composed of
|
|
300
|
+
*/
|
|
301
|
+
material?: Array<Variant.Material>;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Display name
|
|
305
|
+
*/
|
|
306
|
+
name?: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Variant's price (can change depending on print files and optional settings)
|
|
310
|
+
*/
|
|
311
|
+
price?: string;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* ID of the product that this variant belongs to
|
|
315
|
+
*/
|
|
316
|
+
product_id?: number;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Item size
|
|
320
|
+
*/
|
|
321
|
+
size?: string;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export namespace Variant {
|
|
325
|
+
export interface AvailabilityStatus {
|
|
326
|
+
/**
|
|
327
|
+
* Region code
|
|
328
|
+
*/
|
|
329
|
+
region?: string;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Stock status. Possible values include: 'in_stock' - available for fulfillment,
|
|
333
|
+
* 'stocked_on_demand' - available for fulfillment, 'discontinued' - permanently
|
|
334
|
+
* unavailable, 'out_of_stock' - temporarily unavailable
|
|
335
|
+
*/
|
|
336
|
+
status?: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface Material {
|
|
340
|
+
/**
|
|
341
|
+
* Material name
|
|
342
|
+
*/
|
|
343
|
+
name?: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Percentage of the material in the product
|
|
347
|
+
*/
|
|
348
|
+
percentage?: number;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export interface ProductListResponse {
|
|
355
|
+
/**
|
|
356
|
+
* Response status code `200`
|
|
357
|
+
*/
|
|
358
|
+
code?: number;
|
|
359
|
+
|
|
360
|
+
result?: Array<Product>;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export interface ProductRetrieveSizeGuideResponse {
|
|
364
|
+
/**
|
|
365
|
+
* Response status code `200`
|
|
366
|
+
*/
|
|
367
|
+
code?: number;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Size Guide information for the Product
|
|
371
|
+
*/
|
|
372
|
+
result?: ProductRetrieveSizeGuideResponse.Result;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export namespace ProductRetrieveSizeGuideResponse {
|
|
376
|
+
/**
|
|
377
|
+
* Size Guide information for the Product
|
|
378
|
+
*/
|
|
379
|
+
export interface Result {
|
|
380
|
+
/**
|
|
381
|
+
* The sizes available for the Product
|
|
382
|
+
*/
|
|
383
|
+
available_sizes: Array<string>;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Product ID
|
|
387
|
+
*/
|
|
388
|
+
product_id: number;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Size tables for the product
|
|
392
|
+
*/
|
|
393
|
+
size_tables: Array<Result.SizeTable>;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export namespace Result {
|
|
397
|
+
/**
|
|
398
|
+
* Size table for the Product
|
|
399
|
+
*/
|
|
400
|
+
export interface SizeTable {
|
|
401
|
+
/**
|
|
402
|
+
* The size table measurements
|
|
403
|
+
*/
|
|
404
|
+
measurements: Array<SizeTable.Measurement>;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Size table type
|
|
408
|
+
*/
|
|
409
|
+
type: 'measure_yourself' | 'product_measure' | 'international';
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* The size table description (HTML)
|
|
413
|
+
*/
|
|
414
|
+
description?: string;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* The description of the measurement image (HTML)
|
|
418
|
+
*/
|
|
419
|
+
image_description?: string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* The URL of an image showing the measurements
|
|
423
|
+
*/
|
|
424
|
+
image_url?: string;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* The unit the size table values are in
|
|
428
|
+
*/
|
|
429
|
+
unit?: 'inches' | 'cm';
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export namespace SizeTable {
|
|
433
|
+
/**
|
|
434
|
+
* The information about a single size table measurement
|
|
435
|
+
*/
|
|
436
|
+
export interface Measurement {
|
|
437
|
+
/**
|
|
438
|
+
* The measurement values for each size
|
|
439
|
+
*/
|
|
440
|
+
values: Array<Measurement.Value>;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Measurement type
|
|
444
|
+
*/
|
|
445
|
+
type_label?: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* The measurement unit if it's not defined on the size table level or is different
|
|
449
|
+
*/
|
|
450
|
+
unit?: string;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export namespace Measurement {
|
|
454
|
+
/**
|
|
455
|
+
* The measurement value for a specific size
|
|
456
|
+
*/
|
|
457
|
+
export interface Value {
|
|
458
|
+
/**
|
|
459
|
+
* The size with which the value is associated
|
|
460
|
+
*/
|
|
461
|
+
size: string;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* The upper boundary of the value range (whether this and `min_value` or `value`
|
|
465
|
+
* will be present)
|
|
466
|
+
*/
|
|
467
|
+
max_value?: string;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* The lower boundary of the value range (whether this and `max_value` or `value`
|
|
471
|
+
* will be present)
|
|
472
|
+
*/
|
|
473
|
+
min_value?: string;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* The single value associated with a size (whether this or `min_value` and
|
|
477
|
+
* `max_value` will be present)
|
|
478
|
+
*/
|
|
479
|
+
value?: string;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export interface ProductRetrieveVariantResponse {
|
|
487
|
+
/**
|
|
488
|
+
* Response status code `200`
|
|
489
|
+
*/
|
|
490
|
+
code?: number;
|
|
491
|
+
|
|
492
|
+
result?: ProductRetrieveVariantResponse.Result;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export namespace ProductRetrieveVariantResponse {
|
|
496
|
+
export interface Result {
|
|
497
|
+
/**
|
|
498
|
+
* Information about the Product that the Variant belongs to
|
|
499
|
+
*/
|
|
500
|
+
product?: ProductsAPI.Product;
|
|
501
|
+
|
|
502
|
+
variant?: Result.Variant;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export namespace Result {
|
|
506
|
+
export interface Variant {
|
|
507
|
+
/**
|
|
508
|
+
* Variant ID, use this to specify the product when creating orders
|
|
509
|
+
*/
|
|
510
|
+
id?: number;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Map of [region code, region name] of regions where the variant is available for
|
|
514
|
+
* fulfillment
|
|
515
|
+
*/
|
|
516
|
+
availability_regions?: { [key: string]: unknown };
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Detailed stock status per region
|
|
520
|
+
*/
|
|
521
|
+
availability_status?: Array<Variant.AvailabilityStatus>;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Item color
|
|
525
|
+
*/
|
|
526
|
+
color?: string;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Hexadecimal RGB color code. May not exactly reflect the real-world color
|
|
530
|
+
*/
|
|
531
|
+
color_code?: string;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Secondary hexadecimal RGB color code. May not exactly reflect the real-world
|
|
535
|
+
* color
|
|
536
|
+
*/
|
|
537
|
+
color_code2?: string;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* URL of a preview image for this variant
|
|
541
|
+
*/
|
|
542
|
+
image?: string;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Stock availability of this variant
|
|
546
|
+
*/
|
|
547
|
+
in_stock?: boolean;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* A list of materials this Variant is composed of
|
|
551
|
+
*/
|
|
552
|
+
material?: Array<Variant.Material>;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Display name
|
|
556
|
+
*/
|
|
557
|
+
name?: string;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Variant's price (can change depending on print files and optional settings)
|
|
561
|
+
*/
|
|
562
|
+
price?: string;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* ID of the product that this variant belongs to
|
|
566
|
+
*/
|
|
567
|
+
product_id?: number;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Item size
|
|
571
|
+
*/
|
|
572
|
+
size?: string;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export namespace Variant {
|
|
576
|
+
export interface AvailabilityStatus {
|
|
577
|
+
/**
|
|
578
|
+
* Region code
|
|
579
|
+
*/
|
|
580
|
+
region?: string;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Stock status. Possible values include: 'in_stock' - available for fulfillment,
|
|
584
|
+
* 'stocked_on_demand' - available for fulfillment, 'discontinued' - permanently
|
|
585
|
+
* unavailable, 'out_of_stock' - temporarily unavailable
|
|
586
|
+
*/
|
|
587
|
+
status?: string;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export interface Material {
|
|
591
|
+
/**
|
|
592
|
+
* Material name
|
|
593
|
+
*/
|
|
594
|
+
name?: string;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Percentage of the material in the product
|
|
598
|
+
*/
|
|
599
|
+
percentage?: number;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export interface ProductListParams {
|
|
606
|
+
/**
|
|
607
|
+
* A comma-separated list of Category IDs of the Products that are to be returned
|
|
608
|
+
*/
|
|
609
|
+
category_id?: string;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
export interface ProductRetrieveSizeGuideParams {
|
|
613
|
+
/**
|
|
614
|
+
* A comma-separated list of measurement unit in which size tables are to be
|
|
615
|
+
* returned (`inches` or `cm`). The default value is determined based on the locale
|
|
616
|
+
* country. The inches are used for United States, Liberia and Myanmar, for other
|
|
617
|
+
* countries the unit defaults to centimeters.
|
|
618
|
+
*/
|
|
619
|
+
unit?: string;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export declare namespace Products {
|
|
623
|
+
export {
|
|
624
|
+
type AvailableTechnique as AvailableTechnique,
|
|
625
|
+
type CatalogFileOption as CatalogFileOption,
|
|
626
|
+
type FileType as FileType,
|
|
627
|
+
type OptionType as OptionType,
|
|
628
|
+
type Product as Product,
|
|
629
|
+
type ProductRetrieveResponse as ProductRetrieveResponse,
|
|
630
|
+
type ProductListResponse as ProductListResponse,
|
|
631
|
+
type ProductRetrieveSizeGuideResponse as ProductRetrieveSizeGuideResponse,
|
|
632
|
+
type ProductRetrieveVariantResponse as ProductRetrieveVariantResponse,
|
|
633
|
+
type ProductListParams as ProductListParams,
|
|
634
|
+
type ProductRetrieveSizeGuideParams as ProductRetrieveSizeGuideParams,
|
|
635
|
+
};
|
|
636
|
+
}
|