feat(oas): declare x-codegen on Admin routes - D to PRI (#3092)

### What

Declare `x-codegen` in OAS for Admin routes - D to PRI.

### Why

We are introducing a new `x-codegen` OpenApi extension, also known as _vendor extension_, in order to help with passing information down to code generators.

In our case, we wish to declare the `method` name that we would expect to call on a client. This mimics our current JS client package. 
E.g. `medusaClient.product.list` where `product` is the tag of the route and `list` is the x-codegen.method value.

We are also defining the name of a potential typed object for query parameters. OAS 3.0 does not allow to bundle query parameters under a single definition but it is not uncommon to see API clients handle all query parameters as a single typed object, like our JS client package. With x-codegen.queryParams, a code generator can create a named and typed object to bundle all query parameters for a given route. 
E.g. `medusaClient.customer.retrieve(id: string, queryParams: AdminGetCustomerParams)` 

### How

Declare `x-codegen` as an object with fields `method` and `queryParams` on all paths.

Match method and queryParams values with equivalent ones from our current JS client package.

### Test

* Ran OAS validator.
* Ran docs build script.

Expect no visible changes to the documentation.
This commit is contained in:
Patrick
2023-01-24 12:10:20 +00:00
committed by GitHub
parent 8f4c84121b
commit 8e41c69966
72 changed files with 186 additions and 4 deletions
@@ -16,6 +16,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostGiftCardsReq"
* x-codegen:
* method: create
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -8,6 +8,8 @@ import { EntityManager } from "typeorm"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Gift Card to delete.
* x-codegen:
* method: delete
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -8,6 +8,8 @@ import { defaultAdminGiftCardFields, defaultAdminGiftCardRelations } from "./"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Gift Card.
* x-codegen:
* method: retrieve
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -16,6 +16,9 @@ import { isDefined } from "medusa-core-utils"
* - (query) offset=0 {number} The number of items to skip before the results.
* - (query) limit=50 {number} Limit the number of items returned.
* - (query) q {string} a search term to search by code or display ID
* x-codegen:
* method: list
* queryParams: AdminGetGiftCardsParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -19,6 +19,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostGiftCardsGiftCardReq"
* x-codegen:
* method: update
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -15,6 +15,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostInvitesInviteAcceptReq"
* x-codegen:
* method: accept
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -16,6 +16,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostInvitesReq"
* x-codegen:
* method: create
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,8 @@ import InviteService from "../../../../services/invite"
* x-authenticated: true
* parameters:
* - (path) invite_id=* {string} The ID of the Invite
* x-codegen:
* method: delete
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -6,6 +6,8 @@ import InviteService from "../../../../services/invite"
* summary: "Lists Invites"
* description: "Lists all Invites"
* x-authenticated: true
* x-codegen:
* method: list
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,8 @@ import { EntityManager } from "typeorm"
* x-authenticated: true
* parameters:
* - (path) invite_id=* {string} The ID of the Invite
* x-codegen:
* method: resend
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -15,6 +15,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostNotesReq"
* x-codegen:
* method: create
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,8 @@ import NoteService from "../../../../services/note"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Note to delete.
* x-codegen:
* method: delete
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -8,6 +8,8 @@ import NoteService from "../../../../services/note"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the note to retrieve.
* x-codegen:
* method: retrieve
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -15,6 +15,9 @@ import { validator } from "../../../../utils/validator"
* - (query) limit=50 {number} The number of notes to get
* - (query) offset=0 {number} The offset at which to get notes
* - (query) resource_id {string} The ID which the notes belongs to
* x-codegen:
* method: list
* queryParams: AdminGetNotesParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -16,6 +16,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostNotesNoteReq"
* x-codegen:
* method: update
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -27,6 +27,9 @@ import { validator } from "../../../../utils/validator"
* - (query) resource_id {string} The ID of the resource that the Notification refers to.
* - (query) to {string} The address that the Notification was sent to. This will usually be an email address, but represent other addresses such as a chat bot user id
* - (query) include_resends {string} A boolean indicating whether the result set should include resent notifications or not
* x-codegen:
* method: list
* queryParams: AdminGetNotificationsParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -22,6 +22,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostNotificationsNotificationResendReq"
* x-codegen:
* method: resend
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -21,6 +21,8 @@ import {
* schema:
* $ref: "#/components/schemas/AdminPostOrderEditsEditLineItemsReq"
* x-authenticated: true
* x-codegen:
* method: addLineItem
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -14,6 +14,8 @@ import {
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the OrderEdit.
* x-codegen:
* method: cancel
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -14,6 +14,8 @@ import {
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the order edit.
* x-codegen:
* method: confirm
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -18,6 +18,8 @@ import {
* schema:
* $ref: "#/components/schemas/AdminPostOrderEditsReq"
* x-authenticated: true
* x-codegen:
* method: create
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -15,6 +15,8 @@ import {
* parameters:
* - (path) id=* {string} The ID of the Order Edit to delete from.
* - (path) item_id=* {string} The ID of the order edit item to delete from order.
* x-codegen:
* method: removeLineItem
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -10,6 +10,8 @@ import { OrderEditService } from "../../../../services"
* parameters:
* - (path) id=* {string} The ID of the Order Edit to delete.
* - (path) change_id=* {string} The ID of the Order Edit Item Change to delete.
* x-codegen:
* method: deleteItemChange
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,8 @@ import { OrderEditService } from "../../../../services"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order Edit to delete.
* x-codegen:
* method: delete
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -12,6 +12,9 @@ import { FindParams } from "../../../../types/common"
* - (path) id=* {string} The ID of the OrderEdit.
* - (query) expand {string} Comma separated list of relations to include in the results.
* - (query) fields {string} Comma separated list of fields to include in the results.
* x-codegen:
* method: retrieve
* queryParams: GetOrderEditsOrderEditParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -16,6 +16,9 @@ import { IsOptional, IsString } from "class-validator"
* - (query) offset=0 {number} The offset of items in response
* - (query) expand {string} Comma separated list of relations to include in the results.
* - (query) fields {string} Comma separated list of fields to include in the results.
* x-codegen:
* method: list
* queryParams: GetOrderEditsParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -19,6 +19,8 @@ import {
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order Edit to request confirmation from.
* x-codegen:
* method: requestConfirmation
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -21,6 +21,8 @@ import {
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrderEditsEditLineItemsLineItemReq"
* x-codegen:
* method: updateLineItem
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -21,6 +21,8 @@ import {
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrderEditsOrderEditReq"
* x-codegen:
* method: update
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -16,12 +16,16 @@ import { EntityManager } from "typeorm"
* operationId: "PostOrdersOrderShippingMethods"
* summary: "Add a Shipping Method"
* description: "Adds a Shipping Method to an Order. If another Shipping Method exists with the same Shipping Profile, the previous Shipping Method will be replaced."
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order.
* - (body) price=* {integer} The price (excluding VAT) that should be charged for the Shipping Method
* - (body) option_id=* {string} The ID of the Shipping Option to create the Shipping Method from.
* - (body) data {object} The data required for the Shipping Option to create a Shipping Method. This will depend on the Fulfillment Provider.
* requestBody:
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderShippingMethodsReq"
* x-authenticated: true
* x-codegen:
* method: addShippingMethod
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -98,6 +102,23 @@ export default async (req, res) => {
res.status(200).json({ order })
}
/**
* @schema AdminPostOrdersOrderShippingMethodsReq
* type: object
* required:
* - price
* - option_id
* properties:
* price:
* type: number
* description: The price (excluding VAT) that should be charged for the Shipping Method
* option_id:
* type: string
* description: The ID of the Shipping Option to create the Shipping Method from.
* date:
* type: object
* description: The data required for the Shipping Option to create a Shipping Method. This will depend on the Fulfillment Provider.
*/
export class AdminPostOrdersOrderShippingMethodsReq {
@IsInt()
@IsNotEmpty()
@@ -9,6 +9,8 @@ import { EntityManager } from "typeorm"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order.
* x-codegen:
* method: archive
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -13,6 +13,8 @@ import { MedusaError } from "medusa-core-utils"
* parameters:
* - (path) id=* {string} The ID of the Order.
* - (path) claim_id=* {string} The ID of the Claim.
* x-codegen:
* method: cancelClaim
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -18,6 +18,8 @@ import { MedusaError } from "medusa-core-utils"
* - (path) id=* {string} The ID of the Order which the Claim relates to.
* - (path) claim_id=* {string} The ID of the Claim which the Fulfillment relates to.
* - (path) fulfillment_id=* {string} The ID of the Fulfillment.
* x-codegen:
* method: cancelClaimFulfillment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -18,6 +18,8 @@ import { MedusaError } from "medusa-core-utils"
* - (path) id=* {string} The ID of the Order which the Swap relates to.
* - (path) swap_id=* {string} The ID of the Swap which the Fulfillment relates to.
* - (path) fulfillment_id=* {string} The ID of the Fulfillment.
* x-codegen:
* method: cancelSwapFulfillment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -19,6 +19,8 @@ import { IInventoryService } from "../../../../interfaces"
* parameters:
* - (path) id=* {string} The ID of the Order which the Fulfillment relates to.
* - (path) fulfillment_id=* {string} The ID of the Fulfillment
* x-codegen:
* method: cancelFulfillment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -11,6 +11,8 @@ import { EntityManager } from "typeorm"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order.
* x-codegen:
* method: cancel
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -13,6 +13,8 @@ import { MedusaError } from "medusa-core-utils"
* parameters:
* - (path) id=* {string} The ID of the Order.
* - (path) swap_id=* {string} The ID of the Swap.
* x-codegen:
* method: cancelSwap
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -11,6 +11,8 @@ import { EntityManager } from "typeorm"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order.
* x-codegen:
* method: capturePayment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,8 @@ import { EntityManager } from "typeorm"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order.
* x-codegen:
* method: complete
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -19,6 +19,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderClaimsClaimShipmentsReq"
* x-codegen:
* method: createClaimShipment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -32,6 +32,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderClaimsReq"
* x-codegen:
* method: createClaim
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -33,6 +33,8 @@ import { Fulfillment, LineItem } from "../../../../models"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderFulfillmentsReq"
* x-codegen:
* method: createFulfillment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -25,6 +25,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderShipmentReq"
* x-codegen:
* method: createShipment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -25,6 +25,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderSwapsSwapShipmentsReq"
* x-codegen:
* method: createSwapShipment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -36,6 +36,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderSwapsReq"
* x-codegen:
* method: createSwap
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -19,6 +19,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderClaimsClaimFulfillmentsReq"
* x-codegen:
* method: fulfillClaim
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -19,6 +19,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderSwapsSwapFulfillmentsReq"
* x-codegen:
* method: fulfillSwap
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -1,4 +1,5 @@
import { OrderService } from "../../../../services"
import { FindParams } from "../../../../types/common"
/**
* @oas [get] /orders/{id}
@@ -8,6 +9,11 @@ import { OrderService } from "../../../../services"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Order.
* - (query) expand {string} Comma separated list of relations to include in the results.
* - (query) fields {string} Comma separated list of fields to include in the results.
* x-codegen:
* method: retrieve
* queryParams: AdminGetOrdersOrderParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -58,3 +64,5 @@ export default async (req, res) => {
res.json({ order })
}
export class AdminGetOrdersOrderParams extends FindParams {}
@@ -153,6 +153,9 @@ import { pick } from "lodash"
* - (query) limit=50 {integer} Limit the number of orders returned.
* - (query) expand {string} (Comma separated) Which fields should be expanded in each order of the result.
* - (query) fields {string} (Comma separated) Which fields should be included in each order of the result.
* x-codegen:
* method: list
* queryParams: AdminGetOrdersParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -12,6 +12,8 @@ import { EntityManager } from "typeorm"
* parameters:
* - (path) id=* {string} The ID of the Order.
* - (path) swap_id=* {string} The ID of the Swap.
* x-codegen:
* method: processSwapPayment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -24,6 +24,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderRefundsReq"
* x-codegen:
* method: refundPayment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -33,6 +33,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderReturnsReq"
* x-codegen:
* method: requestReturn
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -29,6 +29,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderClaimsClaimReq"
* x-codegen:
* method: updateClaim
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -29,6 +29,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostOrdersOrderReq"
* x-codegen:
* method: update
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -8,6 +8,8 @@ import { PaymentCollectionService } from "../../../../services"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Payment Collection to delete.
* x-codegen:
* method: delete
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -11,6 +11,9 @@ import { FindParams } from "../../../../types/common"
* - (path) id=* {string} The ID of the PaymentCollection.
* - (query) expand {string} Comma separated list of relations to include in the results.
* - (query) fields {string} Comma separated list of fields to include in the results.
* x-codegen:
* method: retrieve
* queryParams: GetPaymentCollectionsParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,8 @@ import { PaymentCollectionService } from "../../../../services"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the PaymentCollection.
* x-codegen:
* method: markAsAuthorized
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -16,6 +16,8 @@ import { PaymentCollectionService } from "../../../../services"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminUpdatePaymentCollectionsReq"
* x-codegen:
* method: update
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -8,6 +8,8 @@ import { PaymentService } from "../../../../services"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Payment.
* x-codegen:
* method: capturePayment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,9 @@ import { FindParams } from "../../../../types/common"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Payment.
* x-codegen:
* method: retrieve
* queryParams: GetPaymentsParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -22,6 +22,8 @@ import { PaymentService } from "../../../../services"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostPaymentRefundsReq"
* x-codegen:
* method: refundPayment
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -21,6 +21,8 @@ import { EntityManager } from "typeorm"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostPriceListPricesPricesReq"
* x-codegen:
* method: addPrices
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -31,6 +31,8 @@ import { FeatureFlagDecorators } from "../../../../utils/feature-flag-decorators
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostPriceListsPriceListReq"
* x-codegen:
* method: create
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -9,6 +9,8 @@ import PriceListService from "../../../../services/price-list"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Price List to delete.
* x-codegen:
* method: delete
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -17,6 +17,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminDeletePriceListPricesPricesReq"
* x-codegen:
* method: deletePrices
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -10,6 +10,8 @@ import PriceListService from "../../../../services/price-list"
* parameters:
* - (path) id=* {string} The ID of the Price List that the Money Amounts that will be deleted belongs to.
* - (path) product_id=* {string} The ID of the product from which the money amount will be deleted.
* x-codegen:
* method: deleteProductPrices
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -10,6 +10,8 @@ import PriceListService from "../../../../services/price-list"
* parameters:
* - (path) id=* {string} The ID of the Price List that the Money Amounts that will be deleted belongs to.
* - (path) variant_id=* {string} The ID of the variant from which the money amount will be deleted.
* x-codegen:
* method: deleteVariantPrices
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -11,6 +11,8 @@ import PriceListService from "../../../../services/price-list"
* x-authenticated: true
* parameters:
* - (path) id=* {string} The ID of the Price List.
* x-codegen:
* method: retrieve
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -133,6 +133,9 @@ import { isDefined } from "medusa-core-utils"
* - (query) limit=50 {integer} Limit the number of products returned.
* - (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.
* x-codegen:
* method: listProducts
* queryParams: AdminGetPriceListsPriceListProductsParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -114,6 +114,9 @@ import { Type } from "class-transformer"
* type: string
* description: filter by dates greater than or equal to this date
* format: date
* x-codegen:
* method: list
* queryParams: AdminGetPriceListPaginationParams
* x-codeSamples:
* - lang: JavaScript
* label: JS Client
@@ -34,6 +34,8 @@ import { validator } from "../../../../utils/validator"
* application/json:
* schema:
* $ref: "#/components/schemas/AdminPostPriceListsPriceListPriceListReq"
* x-codegen:
* method: update
* x-codeSamples:
* - lang: JavaScript
* label: JS Client