From 8d02b56eb12a51d5a275263f51ab5c8875447bd6 Mon Sep 17 00:00:00 2001 From: Mikhail Agapov <118179774+mikhail-dcl@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:41:31 +0300 Subject: [PATCH] Add `animation` param (#387) * Add `animation` Param * Upgrade "@dcl/schemas" to 15.1.1 --- package-lock.json | 15 +++++++-------- package.json | 2 +- src/commands/queue-ab-conversion.ts | 7 +++++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1e01b4d..fb966ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@dcl/crypto": "^3.4.5", - "@dcl/schemas": "^13.6.2", + "@dcl/schemas": "^15.1.1", "@well-known-components/fetch-component": "^3.0.0", "arg": "^5.0.2", "dcl-catalyst-client": "^21.7.0", @@ -707,10 +707,9 @@ "license": "Apache-2.0" }, "node_modules/@dcl/schemas": { - "version": "13.6.2", - "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-13.6.2.tgz", - "integrity": "sha512-sps6khw7pn8hY/TRr8aH4gV+t5xVi7A32PZ4EVVJzjDAhTXAxa74wAI9cA/y/gR6rYKWu96LtHoEBf7wde8/lQ==", - "license": "Apache-2.0", + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-15.1.1.tgz", + "integrity": "sha512-oJL0yqNn//uAjOiZadnXqaV6RLY6fnQZZrW+tZR0DMhW6zMq0wANGBaBNN6W6vpVw+64GYHlTdjxCwevfKsv2A==", "dependencies": { "ajv": "^8.11.0", "ajv-errors": "^3.0.0", @@ -10561,9 +10560,9 @@ "integrity": "sha512-Cg+MoIOn+BYmQV2q8zSFnNYY+GldlnUazwBnfgrq3i66ZxOaZ65h01btd8OUtSAlfWG4VTNIOHDjtKqmuwJNBg==" }, "@dcl/schemas": { - "version": "13.6.2", - "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-13.6.2.tgz", - "integrity": "sha512-sps6khw7pn8hY/TRr8aH4gV+t5xVi7A32PZ4EVVJzjDAhTXAxa74wAI9cA/y/gR6rYKWu96LtHoEBf7wde8/lQ==", + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-15.1.1.tgz", + "integrity": "sha512-oJL0yqNn//uAjOiZadnXqaV6RLY6fnQZZrW+tZR0DMhW6zMq0wANGBaBNN6W6vpVw+64GYHlTdjxCwevfKsv2A==", "requires": { "ajv": "^8.11.0", "ajv-errors": "^3.0.0", diff --git a/package.json b/package.json index 25f45d1..1f50685 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "homepage": "https://github.com/decentraland/opscli#readme", "dependencies": { "@dcl/crypto": "^3.4.5", - "@dcl/schemas": "^13.6.2", + "@dcl/schemas": "^15.1.1", "@well-known-components/fetch-component": "^3.0.0", "arg": "^5.0.2", "dcl-catalyst-client": "^21.7.0", diff --git a/src/commands/queue-ab-conversion.ts b/src/commands/queue-ab-conversion.ts index 62342dd..a86444e 100644 --- a/src/commands/queue-ab-conversion.ts +++ b/src/commands/queue-ab-conversion.ts @@ -12,7 +12,8 @@ export default async () => { '--ab-server': String, '--platform': [String], '--token': String, - '--prioritize': Boolean + '--prioritize': Boolean, + '--animation': String }) const pointers = args['--pointer'] || [] @@ -22,6 +23,7 @@ export default async () => { const platforms = (args['--platform'] as Platform[]) || Object.values(Platform) const contentUrl = (args['--content-server'] || 'https://peer.decentraland.org/content').replace(/\/$/, '') const shouldPrioritize = !!args['--prioritize'] + const animation = args['--animation'] || 'mecanim' assert(!!token, '--token is missing') assert(pointers.length > 0 || cids.length > 0, '--pointer or --cid are required') @@ -66,7 +68,8 @@ export default async () => { } ] }, - contentServerUrls: [contentUrl] + contentServerUrls: [contentUrl], + animation: animation }, token, shouldPrioritize,