version bump
This commit is contained in:
parent
6cf330cfa7
commit
acf75392ce
2 changed files with 36 additions and 34 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "saleor-app-sdk"
|
name = "saleor-app-sdk"
|
||||||
authors = ["Djkáťo <djkatovfx@gmail.com>"]
|
authors = ["Djkáťo <djkatovfx@gmail.com>"]
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Unofficial Saleor App SDK like library, made to for Rust."
|
description = "Unofficial Saleor App SDK like library, made to for Rust."
|
||||||
keywords = ["saleor", "sdk", "plugin"]
|
keywords = ["saleor", "sdk", "plugin"]
|
||||||
|
|
|
@ -134,31 +134,31 @@ pub struct AppManifest {
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub webhooks: Option<Vec<WebhookManifest>>,
|
pub webhooks: Option<Vec<WebhookManifest>>,
|
||||||
/**
|
/**
|
||||||
* Allows app installation for specific Saleor versions, using semver.
|
Allows app installation for specific Saleor versions, using semver.
|
||||||
* https://github.com/npm/node-semver#versions
|
https://github.com/npm/node-semver#versions
|
||||||
*
|
|
||||||
* If not set, Saleor will allow installation for every version
|
If not set, Saleor will allow installation for every version
|
||||||
*
|
|
||||||
* In Saleor versions lower than 3.13, this field will be ignored
|
In Saleor versions lower than 3.13, this field will be ignored
|
||||||
*
|
|
||||||
* Examples:
|
Examples:
|
||||||
* ">=3.10" - allow for versions 3.10 or newer
|
">=3.10" - allow for versions 3.10 or newer
|
||||||
* ">=3.10 <4" - allow for versions 3.10 and newer, but not 4.0 and newer
|
">=3.10 <4" - allow for versions 3.10 and newer, but not 4.0 and newer
|
||||||
* ">=3.10 <4 || 4.0.0" - 3.10 and newer, less than 4, but allow exactly 4.0.0
|
">=3.10 <4 || 4.0.0" - 3.10 and newer, less than 4, but allow exactly 4.0.0
|
||||||
*/
|
*/
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub required_saleor_version: Option<String>,
|
pub required_saleor_version: Option<String>,
|
||||||
/**
|
/**
|
||||||
* App author name displayed in the dashboard
|
App author name displayed in the dashboard
|
||||||
*
|
|
||||||
* In Saleor versions lower than 3.13, this field will be ignored
|
In Saleor versions lower than 3.13, this field will be ignored
|
||||||
*/
|
*/
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub author: Option<String>,
|
pub author: Option<String>,
|
||||||
/**
|
/**
|
||||||
* Add brand-specific metadata to the app
|
Add brand-specific metadata to the app
|
||||||
*
|
|
||||||
* Available from Saleor 3.15. In previous versions will be ignored
|
Available from Saleor 3.15. In previous versions will be ignored
|
||||||
*/
|
*/
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub brand: Option<SaleorAppBranding>,
|
pub brand: Option<SaleorAppBranding>,
|
||||||
|
@ -170,7 +170,7 @@ pub struct AppManifestBuilder {
|
||||||
|
|
||||||
impl AppManifestBuilder {
|
impl AppManifestBuilder {
|
||||||
/**
|
/**
|
||||||
* to simply create a webhook manifest, you can use WebhookManifest::new()
|
to simply create a webhook manifest, you can use WebhookManifest::new()
|
||||||
*/
|
*/
|
||||||
pub fn add_webhook(mut self, webhook: WebhookManifest) -> Self {
|
pub fn add_webhook(mut self, webhook: WebhookManifest) -> Self {
|
||||||
if let Some(webhooks) = &mut self.manifest.webhooks {
|
if let Some(webhooks) = &mut self.manifest.webhooks {
|
||||||
|
@ -216,16 +216,18 @@ macro_rules! cargo_info {
|
||||||
pub use cargo_info;
|
pub use cargo_info;
|
||||||
impl AppManifestBuilder {
|
impl AppManifestBuilder {
|
||||||
/**
|
/**
|
||||||
* Builder for AppManifest
|
Builder for AppManifest
|
||||||
*
|
|
||||||
* Takes these out of config:
|
Takes these out of config:
|
||||||
* - Takes fields id, saleor_version, logo, token_target_url
|
- Takes fields id, saleor_version, logo, token_target_url
|
||||||
* And these out of the environment:
|
|
||||||
* - name(CARGO_PKG_NAME), about(CARGO_PKG_DESCRIPTION), author(CARGO_PKG_AUTHORS),
|
And these out of the environment:
|
||||||
* version(CARGO_PKG_VERSION), homepage_url(CARGO_PKG_HOMEPAGE)
|
- name(CARGO_PKG_NAME), about(CARGO_PKG_DESCRIPTION), author(CARGO_PKG_AUTHORS),
|
||||||
*
|
|
||||||
* To set webhooks and permissions use the add_webhook() and add_permissions()
|
version(CARGO_PKG_VERSION), homepage_url(CARGO_PKG_HOMEPAGE)
|
||||||
*
|
|
||||||
|
To set webhooks and permissions use the add_webhook() and add_permissions()
|
||||||
|
|
||||||
*/
|
*/
|
||||||
pub fn new(config: &Config, info: CargoInfo) -> Self {
|
pub fn new(config: &Config, info: CargoInfo) -> Self {
|
||||||
AppManifestBuilder {
|
AppManifestBuilder {
|
||||||
|
|
Loading…
Reference in a new issue