chore(oas): explicitly declare type:object on schemas with properties (#2712)

### What

OAS: Explicitly declare type:object on schemas with properties.

### Why

While not officially required, schemas with properties should have their type explicitly declared as "object". Omitting the type translates to type: any with properties XYZ. The ambiguity can lead to issues when using code generators.

### How

Multiple regex searches to identify schemas missing type: object. Manually edit each schema. Spot check generated OAS.

### Testing
- Ran OAS validator.
- Ran docs build script

### Proof
![Screen Shot 2022-12-01 at 1 46 13 PM](https://user-images.githubusercontent.com/116003638/205137671-7a6770dd-4f9b-456c-99a6-ac654f6d0f59.png)


RESOLVES CORE-847
This commit is contained in:
Patrick authored and GitHub committed 2022-12-02 13:51:16 +00:00
1 parent 198fe78c13
commit 1dc816039c
351 files changed
+460 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
chore(oas): explicitly declare type:object on schemas with properties
@@ -20,6 +20,7 @@ export default (fn: handler): RequestHandler => {
* @schema multiple_errors * @schema multiple_errors
* title: "Multiple Errors" * title: "Multiple Errors"
* x-resourceId: multiple_errors * x-resourceId: multiple_errors
* type: object
* properties: * properties:
* errors: * errors:
* type: array * type: array
@@ -79,6 +79,7 @@ export default () => {
* @schema error * @schema error
* title: "Response Error" * title: "Response Error"
* x-resourceId: error * x-resourceId: error
* type: object
* properties: * properties:
* code: * code:
* type: string * type: string
@@ -13,6 +13,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - application_name * - application_name
* - state * - state
@@ -50,6 +51,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* apps: * apps:
* $ref: "#/components/schemas/OAuth" * $ref: "#/components/schemas/OAuth"
@@ -23,6 +23,7 @@ import { OauthService } from "../../../../services"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* apps: * apps:
* type: array * type: array
@@ -20,6 +20,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - email * - email
* - password * - password
@@ -61,6 +62,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* user: * user:
* $ref: "#/components/schemas/user" * $ref: "#/components/schemas/user"
@@ -34,6 +34,7 @@ import _ from "lodash"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* user: * user:
* $ref: "#/components/schemas/user" * $ref: "#/components/schemas/user"
@@ -36,6 +36,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* batch_job: * batch_job:
* $ref: "#/components/schemas/batch_job" * $ref: "#/components/schemas/batch_job"
@@ -36,6 +36,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* batch_job: * batch_job:
* $ref: "#/components/schemas/batch_job" * $ref: "#/components/schemas/batch_job"
@@ -15,6 +15,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - type * - type
* - context * - context
@@ -81,6 +82,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* batch_job: * batch_job:
* $ref: "#/components/schemas/batch_job" * $ref: "#/components/schemas/batch_job"
@@ -33,6 +33,7 @@
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* batch_job: * batch_job:
* $ref: "#/components/schemas/batch_job" * $ref: "#/components/schemas/batch_job"
@@ -237,6 +237,7 @@ import { isDefined } from "../../../../utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* batch_jobs: * batch_jobs:
* type: array * type: array
@@ -16,6 +16,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - product_ids * - product_ids
* properties: * properties:
@@ -48,6 +49,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* collection: * collection:
* $ref: "#/components/schemas/product_collection" * $ref: "#/components/schemas/product_collection"
@@ -13,6 +13,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - title * - title
* properties: * properties:
@@ -58,6 +59,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* collection: * collection:
* $ref: "#/components/schemas/product_collection" * $ref: "#/components/schemas/product_collection"
@@ -38,6 +38,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -37,6 +37,7 @@ import { defaultAdminCollectionsRelations } from "."
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* collection: * collection:
* $ref: "#/components/schemas/product_collection" * $ref: "#/components/schemas/product_collection"
@@ -111,6 +111,7 @@ import { Type } from "class-transformer"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* collections: * collections:
* type: array * type: array
@@ -16,6 +16,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - product_ids * - product_ids
* properties: * properties:
@@ -48,6 +49,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -15,6 +15,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* title: * title:
* type: string * type: string
@@ -58,6 +59,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* collection: * collection:
* $ref: "#/components/schemas/product_collection" * $ref: "#/components/schemas/product_collection"
@@ -42,6 +42,7 @@ import { FeatureFlagDecorators } from "../../../../utils/feature-flag-decorators
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* currencies: * currencies:
* type: array * type: array
@@ -17,6 +17,7 @@ import TaxInclusivePricingFeatureFlag from "../../../../loaders/feature-flags/ta
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* includes_tax: * includes_tax:
* type: boolean * type: boolean
@@ -51,6 +52,7 @@ import TaxInclusivePricingFeatureFlag from "../../../../loaders/feature-flags/ta
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* currency: * currency:
* $ref: "#/components/schemas/currency" * $ref: "#/components/schemas/currency"
@@ -19,6 +19,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - customer_ids * - customer_ids
* properties: * properties:
@@ -73,6 +74,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer_group: * customer_group:
* $ref: "#/components/schemas/customer_group" * $ref: "#/components/schemas/customer_group"
@@ -47,6 +47,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer_group: * customer_group:
* $ref: "#/components/schemas/customer_group" * $ref: "#/components/schemas/customer_group"
@@ -38,6 +38,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -19,6 +19,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - customer_ids * - customer_ids
* properties: * properties:
@@ -73,6 +74,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer_group: * customer_group:
* $ref: "#/components/schemas/customer_group" * $ref: "#/components/schemas/customer_group"
@@ -37,6 +37,7 @@ import CustomerController from "../../../../controllers/customers"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customers: * customers:
* type: array * type: array
@@ -40,6 +40,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer_group: * customer_group:
* $ref: "#/components/schemas/customer_group" * $ref: "#/components/schemas/customer_group"
@@ -127,6 +127,7 @@ import { Type } from "class-transformer"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer_groups: * customer_groups:
* type: array * type: array
@@ -19,6 +19,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* name: * name:
* description: "Name of the customer group" * description: "Name of the customer group"
@@ -59,6 +60,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer_group: * customer_group:
* $ref: "#/components/schemas/customer_group" * $ref: "#/components/schemas/customer_group"
@@ -14,6 +14,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - email * - email
* - first_name * - first_name
@@ -79,6 +80,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer: * customer:
* $ref: "#/components/schemas/customer" * $ref: "#/components/schemas/customer"
@@ -40,6 +40,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer: * customer:
* $ref: "#/components/schemas/customer" * $ref: "#/components/schemas/customer"
@@ -43,6 +43,7 @@ import customerController from "../../../../controllers/customers"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customers: * customers:
* type: array * type: array
@@ -29,6 +29,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* email: * email:
* type: string * type: string
@@ -93,6 +94,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* customer: * customer:
* $ref: "#/components/schemas/customer" * $ref: "#/components/schemas/customer"
@@ -40,6 +40,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -24,6 +24,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - resources * - resources
* properties: * properties:
@@ -70,6 +71,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -22,6 +22,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - operator * - operator
* properties: * properties:
@@ -88,6 +89,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -38,6 +38,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - code * - code
* - rule * - rule
@@ -181,6 +182,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -56,6 +56,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -42,6 +42,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -36,6 +36,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -39,6 +39,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -23,6 +23,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - resources * - resources
* properties: * properties:
@@ -69,6 +70,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -40,6 +40,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount_condition: * discount_condition:
* $ref: "#/components/schemas/discount_condition" * $ref: "#/components/schemas/discount_condition"
@@ -39,6 +39,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -39,6 +39,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -65,6 +65,7 @@ import { DiscountService } from "../../../../services"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discounts: * discounts:
* type: array * type: array
@@ -39,6 +39,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -20,6 +20,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* products: * products:
* type: array * type: array
@@ -83,6 +84,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -36,6 +36,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* code: * code:
* type: string * type: string
@@ -158,6 +159,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* discount: * discount:
* $ref: "#/components/schemas/discount" * $ref: "#/components/schemas/discount"
@@ -33,6 +33,7 @@ import { IsType } from "../../../../utils/validators/is-type"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - email * - email
* - items * - items
@@ -175,6 +176,7 @@ import { IsType } from "../../../../utils/validators/is-type"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* draft_order: * draft_order:
* $ref: "#/components/schemas/draft-order" * $ref: "#/components/schemas/draft-order"
@@ -26,6 +26,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - quantity * - quantity
* properties: * properties:
@@ -78,6 +79,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* draft_order: * draft_order:
* $ref: "#/components/schemas/draft-order" * $ref: "#/components/schemas/draft-order"
@@ -35,6 +35,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -45,6 +45,7 @@ import { MedusaError } from "medusa-core-utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* draft_order: * draft_order:
* $ref: "#/components/schemas/draft-order" * $ref: "#/components/schemas/draft-order"
@@ -42,6 +42,7 @@ import { DraftOrder } from "../../../.."
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* draft_order: * draft_order:
* $ref: "#/components/schemas/draft-order" * $ref: "#/components/schemas/draft-order"
@@ -48,6 +48,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* draft_orders: * draft_orders:
* type: array * type: array
@@ -46,6 +46,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/draft-order" * $ref: "#/components/schemas/draft-order"
@@ -31,6 +31,7 @@ import { IsType } from "../../../../utils/validators/is-type"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* region_id: * region_id:
* type: string * type: string
@@ -105,6 +106,7 @@ import { IsType } from "../../../../utils/validators/is-type"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* draft_order: * draft_order:
* $ref: "#/components/schemas/draft-order" * $ref: "#/components/schemas/draft-order"
@@ -25,6 +25,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* unit_price: * unit_price:
* description: The potential custom price of the item. * description: The potential custom price of the item.
@@ -71,6 +72,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* draft_order: * draft_order:
* $ref: "#/components/schemas/draft-order" * $ref: "#/components/schemas/draft-order"
@@ -16,6 +16,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - region_id * - region_id
* properties: * properties:
@@ -68,6 +69,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* gift_card: * gift_card:
* $ref: "#/components/schemas/gift_card" * $ref: "#/components/schemas/gift_card"
@@ -35,6 +35,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -35,6 +35,7 @@ import { defaultAdminGiftCardFields, defaultAdminGiftCardRelations } from "./"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* gift_card: * gift_card:
* $ref: "#/components/schemas/gift_card" * $ref: "#/components/schemas/gift_card"
@@ -43,6 +43,7 @@ import { isDefined } from "../../../../utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* gift_cards: * gift_cards:
* type: array * type: array
@@ -18,6 +18,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* balance: * balance:
* type: integer * type: integer
@@ -68,6 +69,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* gift_card: * gift_card:
* $ref: "#/components/schemas/gift_card" * $ref: "#/components/schemas/gift_card"
@@ -14,6 +14,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - token * - token
* - user * - user
@@ -15,6 +15,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - user * - user
* - role * - role
@@ -36,6 +36,7 @@ import InviteService from "../../../../services/invite"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -33,6 +33,7 @@ import InviteService from "../../../../services/invite"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* invites: * invites:
* type: array * type: array
@@ -14,6 +14,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - resource_id * - resource_id
* - resource_type * - resource_type
@@ -65,6 +66,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* note: * note:
* $ref: "#/components/schemas/note" * $ref: "#/components/schemas/note"
@@ -36,6 +36,7 @@ import NoteService from "../../../../services/note"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -35,6 +35,7 @@ import NoteService from "../../../../services/note"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* note: * note:
* $ref: "#/components/schemas/note" * $ref: "#/components/schemas/note"
@@ -42,6 +42,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* notes: * notes:
* type: array * type: array
@@ -15,6 +15,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - value * - value
* properties: * properties:
@@ -54,6 +55,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* note: * note:
* $ref: "#/components/schemas/note" * $ref: "#/components/schemas/note"
@@ -54,6 +54,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* notifications: * notifications:
* type: array * type: array
@@ -22,6 +22,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* to: * to:
* description: "A new address or user identifier that the Notification should be sent to" * description: "A new address or user identifier that the Notification should be sent to"
@@ -53,6 +54,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* notification: * notification:
* $ref: "#/components/schemas/notification" * $ref: "#/components/schemas/notification"
@@ -19,6 +19,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - variant_id * - variant_id
* - quantity * - quantity
@@ -65,6 +66,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -41,6 +41,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -41,6 +41,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -16,6 +16,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - order_id * - order_id
* properties: * properties:
@@ -55,6 +56,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -43,6 +43,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -37,6 +37,7 @@ import { OrderEditService } from "../../../../services"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -36,6 +36,7 @@ import { OrderEditService } from "../../../../services"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* id: * id:
* type: string * type: string
@@ -39,6 +39,7 @@ import { FindParams } from "../../../../types/common"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -43,6 +43,7 @@ import { IsOptional, IsString } from "class-validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edits: * order_edits:
* type: array * type: array
@@ -46,6 +46,7 @@ import { PaymentCollectionType } from "../../../../models"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -20,6 +20,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - quantity * - quantity
* properties: * properties:
@@ -57,6 +58,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -20,6 +20,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* internal_note: * internal_note:
* description: An optional note to create or update for the order edit. * description: An optional note to create or update for the order edit.
@@ -57,6 +58,7 @@ import {
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order_edit: * order_edit:
* $ref: "#/components/schemas/order_edit" * $ref: "#/components/schemas/order_edit"
@@ -57,6 +57,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -36,6 +36,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -40,6 +40,7 @@ import { MedusaError } from "medusa-core-utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -45,6 +45,7 @@ import { MedusaError } from "medusa-core-utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -45,6 +45,7 @@ import { MedusaError } from "medusa-core-utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -40,6 +40,7 @@ import { MedusaError } from "medusa-core-utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -38,6 +38,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -40,6 +40,7 @@ import { MedusaError } from "medusa-core-utils"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -38,6 +38,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -36,6 +36,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -18,6 +18,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - fulfillment_id * - fulfillment_id
* properties: * properties:
@@ -62,6 +63,7 @@ import { EntityManager } from "typeorm"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -31,6 +31,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - type * - type
* - claim_items * - claim_items
@@ -171,6 +172,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -27,6 +27,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - items * - items
* properties: * properties:
@@ -93,6 +94,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
@@ -24,6 +24,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* required: * required:
* - fulfillment_id * - fulfillment_id
* properties: * properties:
@@ -71,6 +72,7 @@ import { validator } from "../../../../utils/validator"
* content: * content:
* application/json: * application/json:
* schema: * schema:
* type: object
* properties: * properties:
* order: * order:
* $ref: "#/components/schemas/order" * $ref: "#/components/schemas/order"
Loaded 100 of 351 files, more files were not shown because too many files have changed in this diff. Show more