fix: updates documentation and fixes script blockers (#765)
This commit is contained in:
+1462
-793
File diff suppressed because it is too large
Load Diff
+900
-449
File diff suppressed because it is too large
Load Diff
+627
-524
File diff suppressed because it is too large
Load Diff
+675
-593
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ import { defaultRelations, defaultFields } from "."
|
|||||||
* description: "Cancels a Claim"
|
* description: "Cancels a Claim"
|
||||||
* parameters:
|
* parameters:
|
||||||
* - (path) id=* {string} The id of the Order.
|
* - (path) id=* {string} The id of the Order.
|
||||||
* . (path) claim_id=* {string} The id of the Claim.
|
* - (path) claim_id=* {string} The id of the Claim.
|
||||||
* tags:
|
* tags:
|
||||||
* - Claim
|
* - Claim
|
||||||
* responses:
|
* responses:
|
||||||
@@ -19,7 +19,7 @@ import { defaultRelations, defaultFields } from "."
|
|||||||
* schema:
|
* schema:
|
||||||
* properties:
|
* properties:
|
||||||
* order:
|
* order:
|
||||||
* $ref: "#/components/schemas/claim"
|
* $ref: "#/components/schemas/claim_order"
|
||||||
*/
|
*/
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
const { id, claim_id } = req.params
|
const { id, claim_id } = req.params
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { MedusaError } from "medusa-core-utils"
|
|||||||
import { defaultRelations, defaultFields } from "."
|
import { defaultRelations, defaultFields } from "."
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @oas [post] orders//{id}/claims/{claim_id}/fulfillments/{fulfillment_id}/cancel
|
* @oas [post] /orders/{id}/claims/{claim_id}/fulfillments/{fulfillment_id}/cancel
|
||||||
* operationId: "PostOrdersClaimFulfillmentsCancel"
|
* operationId: "PostOrdersClaimFulfillmentsCancel"
|
||||||
* summary: "Cancels a fulfilmment related to a Claim"
|
* summary: "Cancels a fulfilmment related to a Claim"
|
||||||
* description: "Registers a Fulfillment as canceled."
|
* description: "Registers a Fulfillment as canceled."
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { defaultRelations, defaultFields } from "."
|
|||||||
* description: "Cancels a Swap"
|
* description: "Cancels a Swap"
|
||||||
* parameters:
|
* parameters:
|
||||||
* - (path) id=* {string} The id of the Order.
|
* - (path) id=* {string} The id of the Order.
|
||||||
* . (path) swap_id=* {string} The id of the Swap.
|
* - (path) swap_id=* {string} The id of the Swap.
|
||||||
* tags:
|
* tags:
|
||||||
* - Swap
|
* - Swap
|
||||||
* responses:
|
* responses:
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
* operationId: GetCustomersCustomerPaymentMethods
|
* operationId: GetCustomersCustomerPaymentMethods
|
||||||
* summary: Retrieve saved payment methods
|
* summary: Retrieve saved payment methods
|
||||||
* description: "Retrieves a list of a Customer's saved payment methods. Payment methods are saved with Payment Providers and it is their responsibility to fetch saved methods."
|
* description: "Retrieves a list of a Customer's saved payment methods. Payment methods are saved with Payment Providers and it is their responsibility to fetch saved methods."
|
||||||
* parameters:
|
|
||||||
* - (path) id=* {string} The id of the Customer.
|
|
||||||
* tags:
|
* tags:
|
||||||
* - Customer
|
* - Customer
|
||||||
* responses:
|
* responses:
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import {
|
|||||||
* operationId: GetCustomersCustomerOrders
|
* operationId: GetCustomersCustomerOrders
|
||||||
* summary: Retrieve Customer Orders
|
* summary: Retrieve Customer Orders
|
||||||
* description: "Retrieves a list of a Customer's Orders."
|
* description: "Retrieves a list of a Customer's Orders."
|
||||||
* parameters:
|
|
||||||
* - (path) id=* {string} The id of the Customer.
|
|
||||||
* tags:
|
* tags:
|
||||||
* - Customer
|
* - Customer
|
||||||
* responses:
|
* responses:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
BeforeInsert, Column,
|
BeforeInsert,
|
||||||
|
Column,
|
||||||
CreateDateColumn,
|
CreateDateColumn,
|
||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
Entity,
|
Entity,
|
||||||
@@ -8,16 +9,15 @@ import {
|
|||||||
ManyToOne,
|
ManyToOne,
|
||||||
PrimaryColumn,
|
PrimaryColumn,
|
||||||
Unique,
|
Unique,
|
||||||
UpdateDateColumn
|
UpdateDateColumn,
|
||||||
} from "typeorm";
|
} from "typeorm"
|
||||||
import { ulid } from "ulid";
|
import { ulid } from "ulid"
|
||||||
import { DbAwareColumn, resolveDbType } from "../utils/db-aware-column";
|
import { DbAwareColumn, resolveDbType } from "../utils/db-aware-column"
|
||||||
import { Cart } from './cart';
|
import { Cart } from "./cart"
|
||||||
import { ShippingOption } from "./shipping-option";
|
import { ShippingOption } from "./shipping-option"
|
||||||
|
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
@Unique(['shipping_option_id', 'cart_id'])
|
@Unique(["shipping_option_id", "cart_id"])
|
||||||
export class CustomShippingOption {
|
export class CustomShippingOption {
|
||||||
@PrimaryColumn()
|
@PrimaryColumn()
|
||||||
id: string
|
id: string
|
||||||
@@ -27,7 +27,7 @@ export class CustomShippingOption {
|
|||||||
|
|
||||||
@Index()
|
@Index()
|
||||||
@Column()
|
@Column()
|
||||||
shipping_option_id: string;
|
shipping_option_id: string
|
||||||
|
|
||||||
@ManyToOne(() => ShippingOption)
|
@ManyToOne(() => ShippingOption)
|
||||||
@JoinColumn({ name: "shipping_option_id" })
|
@JoinColumn({ name: "shipping_option_id" })
|
||||||
@@ -62,7 +62,7 @@ export class CustomShippingOption {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @schema Custom shipping_option
|
* @schema custom_shipping_option
|
||||||
* title: "Custom Shipping Option"
|
* title: "Custom Shipping Option"
|
||||||
* description: "Custom Shipping Options are 'overriden' Shipping Options. Store managers can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option"
|
* description: "Custom Shipping Options are 'overriden' Shipping Options. Store managers can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option"
|
||||||
* x-resourceId: custom_shipping_option
|
* x-resourceId: custom_shipping_option
|
||||||
|
|||||||
@@ -77,7 +77,8 @@ export class Note {
|
|||||||
* type: string
|
* type: string
|
||||||
* author:
|
* author:
|
||||||
* description: "The author of the note."
|
* description: "The author of the note."
|
||||||
* type: User
|
* anyOf:
|
||||||
|
* - $ref: "#/components/schemas/user"
|
||||||
* created_at:
|
* created_at:
|
||||||
* description: "The date with timezone at which the resource was created."
|
* description: "The date with timezone at which the resource was created."
|
||||||
* type: string
|
* type: string
|
||||||
|
|||||||
Reference in New Issue
Block a user