@dascompany/product 3.6.1 → 3.6.2
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/dist/SQL.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"select": "SELECT * FROM products",
|
|
60
60
|
"selectId": "SELECT id FROM products",
|
|
61
61
|
"insert": "INSERT INTO products( id, sku, article_number, url, title, description, net_price, promotional_net_price, vat, color, quantity, width, length, height, file_id, json_data, deleted) VALUES ($id::BIGINT, $sku::TEXT, $article_number::TEXT, $url::TEXT, $title::TEXT, $description::TEXT, $net_price::DOUBLE PRECISION, $promotional_net_price::DOUBLE PRECISION, $vat::INT, $color::TEXT, $quantity::INT, $width::INT, $length::INT, $height::DOUBLE PRECISION,$file_id::BIGINT , $json_data::JSON, false::BOOL)",
|
|
62
|
-
"update": "UPDATE products SET url = $url::TEXT, title = $title::TEXT, description = $description::TEXT , net_price = $net_price::DOUBLE PRECISION, promotional_net_price = $promotional_net_price::DOUBLE PRECISION, vat = $vat::INT, color = $color::TEXT, quantity = $quantity::INT, width = $width::INT, length = $length::INT, height = $height::DOUBLE PRECISION, file_id = $file_id::BIGINT, json_data = $json_data::JSON WHERE id = $id::BIGINT",
|
|
62
|
+
"update": "UPDATE products SET url = $url::TEXT, article_number = $article_number::TEXT, title = $title::TEXT, description = $description::TEXT , net_price = $net_price::DOUBLE PRECISION, promotional_net_price = $promotional_net_price::DOUBLE PRECISION, vat = $vat::INT, color = $color::TEXT, quantity = $quantity::INT, width = $width::INT, length = $length::INT, height = $height::DOUBLE PRECISION, file_id = $file_id::BIGINT, json_data = $json_data::JSON WHERE id = $id::BIGINT",
|
|
63
63
|
"delete": "UPDATE products SET deleted = true WHERE id = $id::BIGINT",
|
|
64
64
|
"maxPrice": "SELECT MAX(net_price) FROM products",
|
|
65
65
|
"count": "SELECT COUNT(*) AS total_rows FROM products",
|
|
@@ -60,6 +60,7 @@ export default class Product extends StockObject {
|
|
|
60
60
|
calculateGrossPrice(): number;
|
|
61
61
|
setCreatedAt(createdAt: any): void;
|
|
62
62
|
setUrl(url: string): string;
|
|
63
|
+
setArticleNumber(articleNumber: string): string;
|
|
63
64
|
setTitle(title: string): string;
|
|
64
65
|
setDescription(description: string): string;
|
|
65
66
|
setNetPrice(netPrice: number): number;
|
|
@@ -144,6 +144,9 @@ export default class Product extends StockObject {
|
|
|
144
144
|
setUrl(url) {
|
|
145
145
|
return this.url = url;
|
|
146
146
|
}
|
|
147
|
+
setArticleNumber(articleNumber) {
|
|
148
|
+
return this.articleNumber = articleNumber;
|
|
149
|
+
}
|
|
147
150
|
setTitle(title) {
|
|
148
151
|
return this.title = title;
|
|
149
152
|
}
|