-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(oas): declare x-codegen on Admin routes - D to PRI #3092
Changes from 1 commit
75f9c7a
1f5fcd6
1c62348
bce77ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/gift-cards.ts Lines 40 to 43 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/gift-cards.ts Lines 51 to 54 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+19
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/gift-cards.ts Lines 62 to 65 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -19,6 +19,8 @@ import { EntityManager } from "typeorm" | |||||||||||
* application/json: | ||||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/AdminPostGiftCardsGiftCardReq" | ||||||||||||
* x-codegen: | ||||||||||||
* method: update | ||||||||||||
Comment on lines
+22
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/gift-cards.ts Lines 28 to 32 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,6 +15,8 @@ import { EntityManager } from "typeorm" | |||||||||
* application/json: | ||||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/AdminPostInvitesInviteAcceptReq" | ||||||||||
* x-codegen: | ||||||||||
* method: accept | ||||||||||
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/invites.ts Lines 10 to 13 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -16,6 +16,8 @@ import { EntityManager } from "typeorm" | |||||||||
* application/json: | ||||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/AdminPostInvitesReq" | ||||||||||
* x-codegen: | ||||||||||
* method: create | ||||||||||
Comment on lines
+19
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/invites.ts Lines 18 to 21 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/invites.ts Lines 26 to 29 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -6,6 +6,8 @@ import InviteService from "../../../../services/invite" | |||||||
* summary: "Lists Invites" | ||||||||
* description: "Lists all Invites" | ||||||||
* x-authenticated: true | ||||||||
* x-codegen: | ||||||||
* method: list | ||||||||
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/invites.ts Lines 34 to 36 in 75f9c7a
|
||||||||
* x-codeSamples: | ||||||||
* - lang: JavaScript | ||||||||
* label: JS Client | ||||||||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -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 | ||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
* x-codeSamples: | ||||
* - lang: JavaScript | ||||
* label: JS Client | ||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,6 +15,8 @@ import { EntityManager } from "typeorm" | |||||||||
* application/json: | ||||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/AdminPostNotesReq" | ||||||||||
* x-codegen: | ||||||||||
* method: create | ||||||||||
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/notes.ts Lines 14 to 17 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/notes.ts Lines 31 to 34 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/notes.ts Lines 39 to 42 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+18
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/notes.ts Lines 47 to 50 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -16,6 +16,8 @@ import { EntityManager } from "typeorm" | |||||||||||
* application/json: | ||||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/AdminPostNotesNoteReq" | ||||||||||||
* x-codegen: | ||||||||||||
* method: update | ||||||||||||
Comment on lines
+19
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/notes.ts Lines 22 to 26 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+30
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/notifications.ts Lines 12 to 15 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -22,6 +22,8 @@ import { validator } from "../../../../utils/validator" | |||||||||||
* application/json: | ||||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/AdminPostNotificationsNotificationResendReq" | ||||||||||||
* x-codegen: | ||||||||||||
* method: resend | ||||||||||||
Comment on lines
+25
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/notifications.ts Lines 26 to 30 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -21,6 +21,8 @@ import { | |||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/AdminPostOrderEditsEditLineItemsReq" | ||||||||||||
* x-authenticated: true | ||||||||||||
* x-codegen: | ||||||||||||
* method: addLineItem | ||||||||||||
Comment on lines
+24
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 72 to 76 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -14,6 +14,8 @@ import { | |||||||||
* x-authenticated: true | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The ID of the OrderEdit. | ||||||||||
* x-codegen: | ||||||||||
* method: cancel | ||||||||||
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 98 to 101 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -14,6 +14,8 @@ import { | |||||||||
* x-authenticated: true | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The ID of the order edit. | ||||||||||
* x-codegen: | ||||||||||
* method: confirm | ||||||||||
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 106 to 109 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -18,6 +18,8 @@ import { | |||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/AdminPostOrderEditsReq" | ||||||||||
* x-authenticated: true | ||||||||||
* x-codegen: | ||||||||||
* method: create | ||||||||||
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 47 to 50 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 124 to 128 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 81 to 85 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 64 to 67 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||
Comment on lines
+15
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 18 to 22 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+19
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 33 to 36 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
Comment on lines
+22
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 90 to 93 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -21,6 +21,8 @@ import { | |||||||||||||
* application/json: | ||||||||||||||
* schema: | ||||||||||||||
* $ref: "#/components/schemas/AdminPostOrderEditsEditLineItemsLineItemReq" | ||||||||||||||
* x-codegen: | ||||||||||||||
* method: updateLineItem | ||||||||||||||
Comment on lines
+24
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 114 to 119 in 75f9c7a
|
||||||||||||||
* x-codeSamples: | ||||||||||||||
* - lang: JavaScript | ||||||||||||||
* label: JS Client | ||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -21,6 +21,8 @@ import { | |||||||||||
* application/json: | ||||||||||||
* schema: | ||||||||||||
* $ref: "#/components/schemas/AdminPostOrderEditsOrderEditReq" | ||||||||||||
* x-codegen: | ||||||||||||
* method: update | ||||||||||||
Comment on lines
+24
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/order-edits.ts Lines 55 to 59 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 152 to 156 in 75f9c7a
|
||||||||||||
* 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() | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,6 +9,8 @@ import { EntityManager } from "typeorm" | |||||||||
* x-authenticated: true | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The ID of the Order. | ||||||||||
* x-codegen: | ||||||||||
* method: archive | ||||||||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 161 to 164 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||
Comment on lines
+16
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 225 to 229 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||||
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 116 to 121 in 75f9c7a
|
||||||||||||||
* x-codeSamples: | ||||||||||||||
* - lang: JavaScript | ||||||||||||||
* label: JS Client | ||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||||
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 106 to 111 in 75f9c7a
|
||||||||||||||
* x-codeSamples: | ||||||||||||||
* - lang: JavaScript | ||||||||||||||
* label: JS Client | ||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||
Comment on lines
+22
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 97 to 101 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -11,6 +11,8 @@ import { EntityManager } from "typeorm" | |||||||||
* x-authenticated: true | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The ID of the Order. | ||||||||||
* x-codegen: | ||||||||||
* method: cancel | ||||||||||
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 144 to 147 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||
Comment on lines
+16
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 178 to 182 in 75f9c7a
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -11,6 +11,8 @@ import { EntityManager } from "typeorm" | |||||||||
* x-authenticated: true | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The ID of the Order. | ||||||||||
* x-codegen: | ||||||||||
* method: capturePayment | ||||||||||
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 71 to 74 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,6 +9,8 @@ import { EntityManager } from "typeorm" | |||||||||
* x-authenticated: true | ||||||||||
* parameters: | ||||||||||
* - (path) id=* {string} The ID of the Order. | ||||||||||
* x-codegen: | ||||||||||
* method: complete | ||||||||||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/orders.ts Lines 63 to 66 in 75f9c7a
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
medusa/packages/medusa-js/src/resources/admin/gift-cards.ts
Lines 17 to 20 in 75f9c7a