@plattar/plattar-services
Advanced tools
Comparing version 1.114.2 to 1.114.3
export interface RequestPayload { | ||
options: { | ||
converter: "config_to_model"; | ||
converter: "config_to_model" | "gltf_to_model"; | ||
quality: number; | ||
@@ -5,0 +5,0 @@ output: "usdz" | "glb"; |
export { Configurator } from "./core/configurator"; | ||
export { ModelConverter } from "./core/model-converter"; | ||
export * as version from "./version"; |
@@ -25,7 +25,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = exports.Configurator = void 0; | ||
exports.version = exports.ModelConverter = exports.Configurator = void 0; | ||
var configurator_1 = require("./core/configurator"); | ||
Object.defineProperty(exports, "Configurator", { enumerable: true, get: function () { return configurator_1.Configurator; } }); | ||
var model_converter_1 = require("./core/model-converter"); | ||
Object.defineProperty(exports, "ModelConverter", { enumerable: true, get: function () { return model_converter_1.ModelConverter; } }); | ||
exports.version = __importStar(require("./version")); | ||
const version_1 = __importDefault(require("./version")); | ||
console.log("using @plattar/plattar-services v" + version_1.default); |
@@ -1,2 +0,2 @@ | ||
declare const _default: "1.114.2"; | ||
declare const _default: "1.114.3"; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "1.114.2"; | ||
exports.default = "1.114.3"; |
{ | ||
"name": "@plattar/plattar-services", | ||
"version": "1.114.2", | ||
"version": "1.114.3", | ||
"description": "Plattar SDK for interfacing with Remote Plattar Services such as Configurators, File Converters and Asset Optimisers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -50,3 +50,3 @@ <h3 align="center"> | ||
configurator.get().then((value) => { | ||
configurator.get().then((data) => { | ||
// this says if the object is returned from cache or generated new | ||
@@ -63,1 +63,25 @@ console.log("cache_status - " + data.cache_status); | ||
``` | ||
### _Model Converter Example_ | ||
```js | ||
const converter = new PlattarServices.ModelConverter(); | ||
// the FileModel id, this can be a string or FileModel instance | ||
converter.model = "0d8c6d90-0b88-11ec-b58b-ffbce2e5da06"; | ||
// output model as USDZ - default is glb | ||
converter.output = "usdz"; | ||
// execute on staging objects - default is production | ||
converter.server = "staging"; | ||
converter.get().then((data) => { | ||
// this says if the object is returned from cache or generated new | ||
console.log("cache_status - " + data.cache_status); | ||
// this is the full url to the final generated object | ||
console.log("filename - " + data.filename); | ||
// this is the request/file hash used for caching | ||
console.log("hash - " + data.hash); | ||
}).catch((err) => { | ||
console.error(err); | ||
}); | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
521215
17
6727
86