Merge branch 'master' into develop

This commit is contained in:
olivermrbl
2022-08-29 15:47:17 +02:00
114 changed files with 1141 additions and 1099 deletions
@@ -12,13 +12,13 @@ import { validator } from "../../../../utils/validator"
/**
* @oas [post] /discounts/{discount_id}/conditions
* operationId: "PostDiscountsDiscountConditions"
* summary: "Creates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
* summary: "Create a DiscountCondition"
* description: "Creates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
* x-authenticated: true
* parameters:
* - (path) discount_id=* {string} The ID of the Product.
* - (query) expand {string} (Comma separated) Which fields should be expanded in each product of the result.
* - (query) fields {string} (Comma separated) Which fields should be included in each product of the result.
* description: "Creates a DiscountCondition"
* requestBody:
* content:
* application/json:
@@ -12,14 +12,14 @@ import { validator } from "../../../../utils/validator"
/**
* @oas [post] /discounts/{discount_id}/conditions/{condition_id}
* operationId: "PostDiscountsDiscountConditionsCondition"
* summary: "Updates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
* summary: "Update a DiscountCondition"
* description: "Updates a DiscountCondition. Only one of `products`, `product_types`, `product_collections`, `product_tags`, and `customer_groups` should be provided."
* x-authenticated: true
* parameters:
* - (path) discount_id=* {string} The ID of the Product.
* - (path) condition_id=* {string} The ID of the DiscountCondition.
* - (query) expand {string} (Comma separated) Which fields should be expanded in each item of the result.
* - (query) fields {string} (Comma separated) Which fields should be included in each item of the result.
* description: "Updates a DiscountCondition"
* requestBody:
* content:
* application/json:
@@ -9,8 +9,8 @@ import { EntityManager } from "typeorm"
/**
* @oas [post] /gift-cards/{id}
* operationId: "PostGiftCardsGiftCard"
* summary: "Create a Gift Card"
* description: "Creates a Gift Card that can redeemed by its unique code. The Gift Card is only valid within 1 region."
* summary: "Update a Gift Card"
* description: "Update a Gift Card that can redeemed by its unique code. The Gift Card is only valid within 1 region."
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Gift Card.
+6 -1
View File
@@ -5,7 +5,7 @@ import chokidar from "chokidar"
import Logger from "../loaders/logger"
export default async function ({ port, directory }) {
export default async function({ port, directory }) {
const args = process.argv
args.shift()
args.shift()
@@ -28,6 +28,11 @@ export default async function ({ port, directory }) {
chokidar.watch(`${directory}/src`).on("change", (file) => {
const f = file.split("src")[1]
Logger.info(`${f} changed: restarting...`)
if (process.platform === "win32") {
execSync(`taskkill /PID ${child.pid} /F /T`)
}
child.kill("SIGINT")
execSync(`${babelPath} src -d dist --extensions \".ts,.js\"`, {
@@ -30,10 +30,10 @@ export class ShippingMethodTaxLine extends TaxLine {
}
/**
* @schema sales_channel_tax_line
* title: "Sales Channel"
* description: "A Sales Channel"
* x-resourceId: sales_channel_tax_line
* @schema shipping_method_tax_line
* title: "Shipping Method Tax Line"
* description: "Shipping Method Tax Line"
* x-resourceId: shipping_method_tax_line
* required:
* - shipping_method_id
* - rate
@@ -154,7 +154,7 @@ export class ShippingMethod {
* type: array
* description: Available if the relation `tax_lines` is expanded.
* items:
* $ref: "#/components/schemas/tax_line"
* $ref: "#/components/schemas/shipping_method_tax_line"
* price:
* description: "The amount to charge for the Shipping Method. The currency of the price is defined by the Region that the Order that the Shipping Method belongs to is a part of."
* type: integer