Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .oas-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.4
1.11.0
4 changes: 2 additions & 2 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.10.4/PHP';
protected $userAgent = 'OpenAPI-Generator/1.11.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: v1' . PHP_EOL;
$report .= ' SDK Package Version: 1.10.4' . PHP_EOL;
$report .= ' SDK Package Version: 1.11.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
40 changes: 38 additions & 2 deletions src/Model/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class Asset implements ModelInterface, ArrayAccess, \JsonSerializable
'html' => 'string',
'css' => 'string',
'position' => 'string',
'js' => 'string',
'color' => 'string',
'size' => 'string',
'offset' => '\ShotstackClient\Model\Offset',
Expand Down Expand Up @@ -139,6 +140,7 @@ class Asset implements ModelInterface, ArrayAccess, \JsonSerializable
'html' => null,
'css' => null,
'position' => null,
'js' => null,
'color' => null,
'size' => null,
'offset' => null,
Expand Down Expand Up @@ -189,6 +191,7 @@ class Asset implements ModelInterface, ArrayAccess, \JsonSerializable
'html' => false,
'css' => false,
'position' => false,
'js' => false,
'color' => false,
'size' => false,
'offset' => false,
Expand Down Expand Up @@ -319,6 +322,7 @@ public function isNullableSetToNull(string $property): bool
'html' => 'html',
'css' => 'css',
'position' => 'position',
'js' => 'js',
'color' => 'color',
'size' => 'size',
'offset' => 'offset',
Expand Down Expand Up @@ -369,6 +373,7 @@ public function isNullableSetToNull(string $property): bool
'html' => 'setHtml',
'css' => 'setCss',
'position' => 'setPosition',
'js' => 'setJs',
'color' => 'setColor',
'size' => 'setSize',
'offset' => 'setOffset',
Expand Down Expand Up @@ -419,6 +424,7 @@ public function isNullableSetToNull(string $property): bool
'html' => 'getHtml',
'css' => 'getCss',
'position' => 'getPosition',
'js' => 'getJs',
'color' => 'getColor',
'size' => 'getSize',
'offset' => 'getOffset',
Expand Down Expand Up @@ -484,6 +490,7 @@ public function getModelName()
public const TYPE_CAPTION = 'caption';
public const TYPE_RICH_CAPTION = 'rich-caption';
public const TYPE_HTML = 'html';
public const TYPE_HTML5 = 'html5';
public const TYPE_TITLE = 'title';
public const TYPE_SHAPE = 'shape';
public const TYPE_SVG = 'svg';
Expand Down Expand Up @@ -552,6 +559,7 @@ public function getTypeAllowableValues()
self::TYPE_CAPTION,
self::TYPE_RICH_CAPTION,
self::TYPE_HTML,
self::TYPE_HTML5,
self::TYPE_TITLE,
self::TYPE_SHAPE,
self::TYPE_SVG,
Expand Down Expand Up @@ -726,6 +734,7 @@ public function __construct(array $data = null)
$this->setIfExists('html', $data ?? [], null);
$this->setIfExists('css', $data ?? [], null);
$this->setIfExists('position', $data ?? [], null);
$this->setIfExists('js', $data ?? [], null);
$this->setIfExists('color', $data ?? [], null);
$this->setIfExists('size', $data ?? [], null);
$this->setIfExists('offset', $data ?? [], null);
Expand Down Expand Up @@ -1659,7 +1668,7 @@ public function getHtml()
/**
* Sets html
*
* @param string $html The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags).
* @param string $html The HTML markup for the asset.
*
* @return self
*/
Expand All @@ -1686,7 +1695,7 @@ public function getCss()
/**
* Sets css
*
* @param string|null $css The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-css-properties).
* @param string|null $css The CSS string applied to the HTML.
*
* @return self
*/
Expand Down Expand Up @@ -1737,6 +1746,33 @@ public function setPosition($position)
return $this;
}

/**
* Gets js
*
* @return string|null
*/
public function getJs()
{
return $this->container['js'];
}

/**
* Sets js
*
* @param string|null $js Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.
*
* @return self
*/
public function setJs($js)
{
if (is_null($js)) {
throw new \InvalidArgumentException('non-nullable js cannot be null');
}
$this->container['js'] = $js;

return $this;
}

/**
* Gets color
*
Expand Down
Loading