diff --git a/www/apps/api-reference/specs/admin/code_samples/Shell/admin_claims_{id}_cancel/post.sh b/www/apps/api-reference/specs/admin/code_samples/Shell/admin_claims_{id}_cancel/post.sh new file mode 100644 index 0000000000..95c137725c --- /dev/null +++ b/www/apps/api-reference/specs/admin/code_samples/Shell/admin_claims_{id}_cancel/post.sh @@ -0,0 +1,2 @@ +curl -X POST '{backend_url}/admin/claims/{id}/cancel' \ +-H 'x-medusa-access-token: {api_token}' \ No newline at end of file diff --git a/www/apps/api-reference/specs/admin/code_samples/Shell/admin_claims_{id}_request/delete.sh b/www/apps/api-reference/specs/admin/code_samples/Shell/admin_claims_{id}_request/delete.sh new file mode 100644 index 0000000000..3282b66ffd --- /dev/null +++ b/www/apps/api-reference/specs/admin/code_samples/Shell/admin_claims_{id}_request/delete.sh @@ -0,0 +1,2 @@ +curl -X DELETE '{backend_url}/admin/claims/{id}/request' \ +-H 'x-medusa-access-token: {api_token}' \ No newline at end of file diff --git a/www/apps/api-reference/specs/admin/components/schemas/AdminImportProductRequest.yaml b/www/apps/api-reference/specs/admin/components/schemas/AdminImportProductRequest.yaml index 449eb51e5c..4462e48b07 100644 --- a/www/apps/api-reference/specs/admin/components/schemas/AdminImportProductRequest.yaml +++ b/www/apps/api-reference/specs/admin/components/schemas/AdminImportProductRequest.yaml @@ -1,3 +1,8 @@ type: object description: SUMMARY x-schemaName: AdminImportProductRequest +required: + - file +properties: + file: + $ref: ./File.yaml diff --git a/www/apps/api-reference/specs/admin/components/schemas/AdminPostCancelClaimReqSchema.yaml b/www/apps/api-reference/specs/admin/components/schemas/AdminPostCancelClaimReqSchema.yaml new file mode 100644 index 0000000000..1d3ef97265 --- /dev/null +++ b/www/apps/api-reference/specs/admin/components/schemas/AdminPostCancelClaimReqSchema.yaml @@ -0,0 +1,8 @@ +type: object +description: SUMMARY +x-schemaName: AdminPostCancelClaimReqSchema +properties: + no_notification: + type: boolean + title: no_notification + description: The claim's no notification. diff --git a/www/apps/api-reference/specs/admin/components/schemas/AdminPostCancelReturnReqSchema.yaml b/www/apps/api-reference/specs/admin/components/schemas/AdminPostCancelReturnReqSchema.yaml index 0fa1745dfd..68a86d8abf 100644 --- a/www/apps/api-reference/specs/admin/components/schemas/AdminPostCancelReturnReqSchema.yaml +++ b/www/apps/api-reference/specs/admin/components/schemas/AdminPostCancelReturnReqSchema.yaml @@ -1,14 +1,8 @@ type: object description: SUMMARY x-schemaName: AdminPostCancelReturnReqSchema -required: - - internal_note properties: no_notification: type: boolean title: no_notification description: The return's no notification. - internal_note: - type: string - title: internal_note - description: The return's internal note. diff --git a/www/apps/api-reference/specs/admin/components/schemas/File.yaml b/www/apps/api-reference/specs/admin/components/schemas/File.yaml new file mode 100644 index 0000000000..20c6a466af --- /dev/null +++ b/www/apps/api-reference/specs/admin/components/schemas/File.yaml @@ -0,0 +1,45 @@ +type: object +description: The product's file. +x-schemaName: File +required: + - lastModified + - name + - webkitRelativePath + - size + - type + - arrayBuffer + - stream + - text +properties: + lastModified: + type: number + title: lastModified + description: The file's lastmodified. + name: + type: string + title: name + description: The file's name. + webkitRelativePath: + type: string + title: webkitRelativePath + description: The file's webkitrelativepath. + size: + type: number + title: size + description: The file's size. + type: + type: string + title: type + description: The file's type. + arrayBuffer: + type: object + description: The file's arraybuffer. + slice: + type: object + description: The file's slice. + stream: + type: object + description: The file's stream. + text: + type: object + description: The file's text. diff --git a/www/apps/api-reference/specs/admin/openapi.full.yaml b/www/apps/api-reference/specs/admin/openapi.full.yaml index c55a22d78b..de651cf306 100644 --- a/www/apps/api-reference/specs/admin/openapi.full.yaml +++ b/www/apps/api-reference/specs/admin/openapi.full.yaml @@ -1390,6 +1390,97 @@ paths: $ref: '#/components/responses/invalid_request_error' '500': $ref: '#/components/responses/500_error' + /admin/claims/{id}/cancel: + post: + operationId: PostClaimsIdCancel + summary: Add Cancels to Claim + description: Add a list of cancels to a claim. + x-authenticated: true + parameters: + - name: id + in: path + description: The claim's ID. + required: true + schema: + type: string + - name: expand + in: query + description: Comma-separated relations that should be expanded in the returned data. + required: false + schema: + type: string + title: expand + description: Comma-separated relations that should be expanded in the returned data. + - name: fields + in: query + description: |- + Comma-separated fields that should be included in the returned data. + * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * without prefix it will replace the entire default fields. + required: false + schema: + type: string + title: fields + description: |- + Comma-separated fields that should be included in the returned data. + * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * without prefix it will replace the entire default fields. + - name: offset + in: query + description: The number of items to skip when retrieving a list. + required: false + schema: + type: number + title: offset + description: The number of items to skip when retrieving a list. + - name: limit + in: query + description: Limit the number of items returned in the list. + required: false + schema: + type: number + title: limit + description: Limit the number of items returned in the list. + - name: order + in: query + description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`. + required: false + schema: + type: string + title: order + description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`. + security: + - api_token: [] + - cookie_auth: [] + - jwt_token: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AdminPostCancelClaimReqSchema' + x-codeSamples: + - lang: Shell + label: cURL + source: |- + curl -X POST '{backend_url}/admin/claims/{id}/cancel' \ + -H 'x-medusa-access-token: {api_token}' + tags: + - Claims + responses: + '200': + description: OK + '400': + $ref: '#/components/responses/400_error' + '401': + $ref: '#/components/responses/unauthorized' + '404': + $ref: '#/components/responses/not_found_error' + '409': + $ref: '#/components/responses/invalid_state_error' + '422': + $ref: '#/components/responses/invalid_request_error' + '500': + $ref: '#/components/responses/500_error' /admin/claims/{id}/claim-items: post: operationId: PostClaimsIdClaimItems @@ -2679,6 +2770,87 @@ paths: summary: Add Requests to Claim description: Add a list of requests to a claim. x-authenticated: true + parameters: + - name: id + in: path + description: The claim's ID. + required: true + schema: + type: string + - name: expand + in: query + description: Comma-separated relations that should be expanded in the returned data. + required: false + schema: + type: string + title: expand + description: Comma-separated relations that should be expanded in the returned data. + - name: fields + in: query + description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. + required: false + schema: + type: string + title: fields + description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. + - name: offset + in: query + description: The number of items to skip when retrieving a list. + required: false + schema: + type: number + title: offset + description: The number of items to skip when retrieving a list. + - name: limit + in: query + description: Limit the number of items returned in the list. + required: false + schema: + type: number + title: limit + description: Limit the number of items returned in the list. + - name: order + in: query + description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`. + required: false + schema: + type: string + title: order + description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`. + security: + - api_token: [] + - cookie_auth: [] + - jwt_token: [] + x-codeSamples: + - lang: Shell + label: cURL + source: |- + curl -X POST '{backend_url}/admin/claims/{id}/request' \ + -H 'x-medusa-access-token: {api_token}' + tags: + - Claims + responses: + '400': + $ref: '#/components/responses/400_error' + '401': + $ref: '#/components/responses/unauthorized' + '404': + $ref: '#/components/responses/not_found_error' + '409': + $ref: '#/components/responses/invalid_state_error' + '422': + $ref: '#/components/responses/invalid_request_error' + '500': + $ref: '#/components/responses/500_error' + requestBody: + content: + application/json: + schema: {} + delete: + operationId: DeleteClaimsIdRequest + summary: Remove Requests from Claim + description: Remove a list of requests from a claim. This doesn't delete the Request, only the association between the Request and the claim. + x-authenticated: true parameters: - name: id in: path @@ -2740,7 +2912,7 @@ paths: - lang: Shell label: cURL source: |- - curl -X POST '{backend_url}/admin/claims/{id}/request' \ + curl -X DELETE '{backend_url}/admin/claims/{id}/request' \ -H 'x-medusa-access-token: {api_token}' tags: - Claims @@ -43402,6 +43574,11 @@ components: type: object description: SUMMARY x-schemaName: AdminImportProductRequest + required: + - file + properties: + file: + $ref: '#/components/schemas/File' AdminImportProductResponse: type: object description: SUMMARY @@ -43532,21 +43709,24 @@ components: metadata: type: object description: The order's metadata. + AdminPostCancelClaimReqSchema: + type: object + description: SUMMARY + x-schemaName: AdminPostCancelClaimReqSchema + properties: + no_notification: + type: boolean + title: no_notification + description: The claim's no notification. AdminPostCancelReturnReqSchema: type: object description: SUMMARY x-schemaName: AdminPostCancelReturnReqSchema - required: - - internal_note properties: no_notification: type: boolean title: no_notification description: The return's no notification. - internal_note: - type: string - title: internal_note - description: The return's internal note. AdminPostClaimItemsReqSchema: type: object description: SUMMARY @@ -46448,6 +46628,52 @@ components: - unexpected_state - invalid_argument - unknown_error + File: + type: object + description: The product's file. + x-schemaName: File + required: + - lastModified + - name + - webkitRelativePath + - size + - type + - arrayBuffer + - stream + - text + properties: + lastModified: + type: number + title: lastModified + description: The file's lastmodified. + name: + type: string + title: name + description: The file's name. + webkitRelativePath: + type: string + title: webkitRelativePath + description: The file's webkitrelativepath. + size: + type: number + title: size + description: The file's size. + type: + type: string + title: type + description: The file's type. + arrayBuffer: + type: object + description: The file's arraybuffer. + slice: + type: object + description: The file's slice. + stream: + type: object + description: The file's stream. + text: + type: object + description: The file's text. StoreAddCartLineItem: type: object description: SUMMARY diff --git a/www/apps/api-reference/specs/admin/openapi.yaml b/www/apps/api-reference/specs/admin/openapi.yaml index 9235fcbe78..4bbda1a63d 100644 --- a/www/apps/api-reference/specs/admin/openapi.yaml +++ b/www/apps/api-reference/specs/admin/openapi.yaml @@ -124,6 +124,8 @@ paths: $ref: paths/admin_campaigns_{id}_promotions.yaml /admin/claims: $ref: paths/admin_claims.yaml + /admin/claims/{id}/cancel: + $ref: paths/admin_claims_{id}_cancel.yaml /admin/claims/{id}/claim-items: $ref: paths/admin_claims_{id}_claim-items.yaml /admin/claims/{id}/claim-items/{action_id}: diff --git a/www/apps/api-reference/specs/admin/paths/admin_claims_{id}_cancel.yaml b/www/apps/api-reference/specs/admin/paths/admin_claims_{id}_cancel.yaml new file mode 100644 index 0000000000..6290f64c9c --- /dev/null +++ b/www/apps/api-reference/specs/admin/paths/admin_claims_{id}_cancel.yaml @@ -0,0 +1,96 @@ +post: + operationId: PostClaimsIdCancel + summary: Add Cancels to Claim + description: Add a list of cancels to a claim. + x-authenticated: true + parameters: + - name: id + in: path + description: The claim's ID. + required: true + schema: + type: string + - name: expand + in: query + description: Comma-separated relations that should be expanded in the returned data. + required: false + schema: + type: string + title: expand + description: >- + Comma-separated relations that should be expanded in the returned + data. + - name: fields + in: query + description: |- + Comma-separated fields that should be included in the returned data. + * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * without prefix it will replace the entire default fields. + required: false + schema: + type: string + title: fields + description: |- + Comma-separated fields that should be included in the returned data. + * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * without prefix it will replace the entire default fields. + - name: offset + in: query + description: The number of items to skip when retrieving a list. + required: false + schema: + type: number + title: offset + description: The number of items to skip when retrieving a list. + - name: limit + in: query + description: Limit the number of items returned in the list. + required: false + schema: + type: number + title: limit + description: Limit the number of items returned in the list. + - name: order + in: query + description: >- + The field to sort the data by. By default, the sort order is ascending. + To change the order to descending, prefix the field name with `-`. + required: false + schema: + type: string + title: order + description: >- + The field to sort the data by. By default, the sort order is + ascending. To change the order to descending, prefix the field name + with `-`. + security: + - api_token: [] + - cookie_auth: [] + - jwt_token: [] + requestBody: + content: + application/json: + schema: + $ref: ../components/schemas/AdminPostCancelClaimReqSchema.yaml + x-codeSamples: + - lang: Shell + label: cURL + source: + $ref: ../code_samples/Shell/admin_claims_{id}_cancel/post.sh + tags: + - Claims + responses: + '200': + description: OK + '400': + $ref: ../components/responses/400_error.yaml + '401': + $ref: ../components/responses/unauthorized.yaml + '404': + $ref: ../components/responses/not_found_error.yaml + '409': + $ref: ../components/responses/invalid_state_error.yaml + '422': + $ref: ../components/responses/invalid_request_error.yaml + '500': + $ref: ../components/responses/500_error.yaml diff --git a/www/apps/api-reference/specs/admin/paths/admin_claims_{id}_request.yaml b/www/apps/api-reference/specs/admin/paths/admin_claims_{id}_request.yaml index de2dd6c29e..57e2df132d 100644 --- a/www/apps/api-reference/specs/admin/paths/admin_claims_{id}_request.yaml +++ b/www/apps/api-reference/specs/admin/paths/admin_claims_{id}_request.yaml @@ -3,6 +3,103 @@ post: summary: Add Requests to Claim description: Add a list of requests to a claim. x-authenticated: true + parameters: + - name: id + in: path + description: The claim's ID. + required: true + schema: + type: string + - name: expand + in: query + description: Comma-separated relations that should be expanded in the returned data. + required: false + schema: + type: string + title: expand + description: >- + Comma-separated relations that should be expanded in the returned + data. + - name: fields + in: query + description: >- + Comma-separated fields that should be included in the returned data. if + a field is prefixed with `+` it will be added to the default fields, + using `-` will remove it from the default fields. without prefix it will + replace the entire default fields. + required: false + schema: + type: string + title: fields + description: >- + Comma-separated fields that should be included in the returned data. + if a field is prefixed with `+` it will be added to the default + fields, using `-` will remove it from the default fields. without + prefix it will replace the entire default fields. + - name: offset + in: query + description: The number of items to skip when retrieving a list. + required: false + schema: + type: number + title: offset + description: The number of items to skip when retrieving a list. + - name: limit + in: query + description: Limit the number of items returned in the list. + required: false + schema: + type: number + title: limit + description: Limit the number of items returned in the list. + - name: order + in: query + description: >- + The field to sort the data by. By default, the sort order is ascending. + To change the order to descending, prefix the field name with `-`. + required: false + schema: + type: string + title: order + description: >- + The field to sort the data by. By default, the sort order is + ascending. To change the order to descending, prefix the field name + with `-`. + security: + - api_token: [] + - cookie_auth: [] + - jwt_token: [] + x-codeSamples: + - lang: Shell + label: cURL + source: + $ref: ../code_samples/Shell/admin_claims_{id}_request/post.sh + tags: + - Claims + responses: + '400': + $ref: ../components/responses/400_error.yaml + '401': + $ref: ../components/responses/unauthorized.yaml + '404': + $ref: ../components/responses/not_found_error.yaml + '409': + $ref: ../components/responses/invalid_state_error.yaml + '422': + $ref: ../components/responses/invalid_request_error.yaml + '500': + $ref: ../components/responses/500_error.yaml + requestBody: + content: + application/json: + schema: {} +delete: + operationId: DeleteClaimsIdRequest + summary: Remove Requests from Claim + description: >- + Remove a list of requests from a claim. This doesn't delete the Request, + only the association between the Request and the claim. + x-authenticated: true parameters: - name: id in: path @@ -71,7 +168,7 @@ post: - lang: Shell label: cURL source: - $ref: ../code_samples/Shell/admin_claims_{id}_request/post.sh + $ref: ../code_samples/Shell/admin_claims_{id}_request/delete.sh tags: - Claims responses: diff --git a/www/apps/api-reference/specs/store/components/schemas/AdminImportProductRequest.yaml b/www/apps/api-reference/specs/store/components/schemas/AdminImportProductRequest.yaml index 449eb51e5c..4462e48b07 100644 --- a/www/apps/api-reference/specs/store/components/schemas/AdminImportProductRequest.yaml +++ b/www/apps/api-reference/specs/store/components/schemas/AdminImportProductRequest.yaml @@ -1,3 +1,8 @@ type: object description: SUMMARY x-schemaName: AdminImportProductRequest +required: + - file +properties: + file: + $ref: ./File.yaml diff --git a/www/apps/api-reference/specs/store/components/schemas/AdminPostCancelClaimReqSchema.yaml b/www/apps/api-reference/specs/store/components/schemas/AdminPostCancelClaimReqSchema.yaml new file mode 100644 index 0000000000..1d3ef97265 --- /dev/null +++ b/www/apps/api-reference/specs/store/components/schemas/AdminPostCancelClaimReqSchema.yaml @@ -0,0 +1,8 @@ +type: object +description: SUMMARY +x-schemaName: AdminPostCancelClaimReqSchema +properties: + no_notification: + type: boolean + title: no_notification + description: The claim's no notification. diff --git a/www/apps/api-reference/specs/store/components/schemas/AdminPostCancelReturnReqSchema.yaml b/www/apps/api-reference/specs/store/components/schemas/AdminPostCancelReturnReqSchema.yaml index 0fa1745dfd..68a86d8abf 100644 --- a/www/apps/api-reference/specs/store/components/schemas/AdminPostCancelReturnReqSchema.yaml +++ b/www/apps/api-reference/specs/store/components/schemas/AdminPostCancelReturnReqSchema.yaml @@ -1,14 +1,8 @@ type: object description: SUMMARY x-schemaName: AdminPostCancelReturnReqSchema -required: - - internal_note properties: no_notification: type: boolean title: no_notification description: The return's no notification. - internal_note: - type: string - title: internal_note - description: The return's internal note. diff --git a/www/apps/api-reference/specs/store/components/schemas/File.yaml b/www/apps/api-reference/specs/store/components/schemas/File.yaml new file mode 100644 index 0000000000..20c6a466af --- /dev/null +++ b/www/apps/api-reference/specs/store/components/schemas/File.yaml @@ -0,0 +1,45 @@ +type: object +description: The product's file. +x-schemaName: File +required: + - lastModified + - name + - webkitRelativePath + - size + - type + - arrayBuffer + - stream + - text +properties: + lastModified: + type: number + title: lastModified + description: The file's lastmodified. + name: + type: string + title: name + description: The file's name. + webkitRelativePath: + type: string + title: webkitRelativePath + description: The file's webkitrelativepath. + size: + type: number + title: size + description: The file's size. + type: + type: string + title: type + description: The file's type. + arrayBuffer: + type: object + description: The file's arraybuffer. + slice: + type: object + description: The file's slice. + stream: + type: object + description: The file's stream. + text: + type: object + description: The file's text. diff --git a/www/apps/api-reference/specs/store/openapi.full.yaml b/www/apps/api-reference/specs/store/openapi.full.yaml index 2eacc3b015..ad4fce8c99 100644 --- a/www/apps/api-reference/specs/store/openapi.full.yaml +++ b/www/apps/api-reference/specs/store/openapi.full.yaml @@ -5487,6 +5487,11 @@ components: type: object description: SUMMARY x-schemaName: AdminImportProductRequest + required: + - file + properties: + file: + $ref: '#/components/schemas/File' AdminImportProductResponse: type: object description: SUMMARY @@ -5617,21 +5622,24 @@ components: metadata: type: object description: The order's metadata. + AdminPostCancelClaimReqSchema: + type: object + description: SUMMARY + x-schemaName: AdminPostCancelClaimReqSchema + properties: + no_notification: + type: boolean + title: no_notification + description: The claim's no notification. AdminPostCancelReturnReqSchema: type: object description: SUMMARY x-schemaName: AdminPostCancelReturnReqSchema - required: - - internal_note properties: no_notification: type: boolean title: no_notification description: The return's no notification. - internal_note: - type: string - title: internal_note - description: The return's internal note. AdminPostClaimItemsReqSchema: type: object description: SUMMARY @@ -8533,6 +8541,52 @@ components: - unexpected_state - invalid_argument - unknown_error + File: + type: object + description: The product's file. + x-schemaName: File + required: + - lastModified + - name + - webkitRelativePath + - size + - type + - arrayBuffer + - stream + - text + properties: + lastModified: + type: number + title: lastModified + description: The file's lastmodified. + name: + type: string + title: name + description: The file's name. + webkitRelativePath: + type: string + title: webkitRelativePath + description: The file's webkitrelativepath. + size: + type: number + title: size + description: The file's size. + type: + type: string + title: type + description: The file's type. + arrayBuffer: + type: object + description: The file's arraybuffer. + slice: + type: object + description: The file's slice. + stream: + type: object + description: The file's stream. + text: + type: object + description: The file's text. StoreAddCartLineItem: type: object description: SUMMARY diff --git a/www/utils/generated/oas-output/operations/admin/delete_admin_claims_[id]_request.ts b/www/utils/generated/oas-output/operations/admin/delete_admin_claims_[id]_request.ts new file mode 100644 index 0000000000..5163577ced --- /dev/null +++ b/www/utils/generated/oas-output/operations/admin/delete_admin_claims_[id]_request.ts @@ -0,0 +1,94 @@ +/** + * @oas [delete] /admin/claims/{id}/request + * operationId: DeleteClaimsIdRequest + * summary: Remove Requests from Claim + * description: Remove a list of requests from a claim. This doesn't delete the + * Request, only the association between the Request and the claim. + * x-authenticated: true + * parameters: + * - name: id + * in: path + * description: The claim's ID. + * required: true + * schema: + * type: string + * - name: expand + * in: query + * description: Comma-separated relations that should be expanded in the returned data. + * required: false + * schema: + * type: string + * title: expand + * description: Comma-separated relations that should be expanded in the returned data. + * - name: fields + * in: query + * description: >- + * Comma-separated fields that should be included in the returned data. + * * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * * without prefix it will replace the entire default fields. + * required: false + * schema: + * type: string + * title: fields + * description: >- + * Comma-separated fields that should be included in the returned data. + * * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * * without prefix it will replace the entire default fields. + * - name: offset + * in: query + * description: The number of items to skip when retrieving a list. + * required: false + * schema: + * type: number + * title: offset + * description: The number of items to skip when retrieving a list. + * - name: limit + * in: query + * description: Limit the number of items returned in the list. + * required: false + * schema: + * type: number + * title: limit + * description: Limit the number of items returned in the list. + * - name: order + * in: query + * description: The field to sort the data by. By default, the sort order is + * ascending. To change the order to descending, prefix the field name with + * `-`. + * required: false + * schema: + * type: string + * title: order + * description: The field to sort the data by. By default, the sort order is + * ascending. To change the order to descending, prefix the field name with + * `-`. + * security: + * - api_token: [] + * - cookie_auth: [] + * - jwt_token: [] + * x-codeSamples: + * - lang: Shell + * label: cURL + * source: |- + * curl -X DELETE '{backend_url}/admin/claims/{id}/request' \ + * -H 'x-medusa-access-token: {api_token}' + * tags: + * - Claims + * responses: + * "200": + * description: OK + * "400": + * $ref: "#/components/responses/400_error" + * "401": + * $ref: "#/components/responses/unauthorized" + * "404": + * $ref: "#/components/responses/not_found_error" + * "409": + * $ref: "#/components/responses/invalid_state_error" + * "422": + * $ref: "#/components/responses/invalid_request_error" + * "500": + * $ref: "#/components/responses/500_error" + * +*/ + diff --git a/www/utils/generated/oas-output/operations/admin/post_admin_claims_[id]_cancel.ts b/www/utils/generated/oas-output/operations/admin/post_admin_claims_[id]_cancel.ts new file mode 100644 index 0000000000..829f730ba2 --- /dev/null +++ b/www/utils/generated/oas-output/operations/admin/post_admin_claims_[id]_cancel.ts @@ -0,0 +1,98 @@ +/** + * @oas [post] /admin/claims/{id}/cancel + * operationId: PostClaimsIdCancel + * summary: Add Cancels to Claim + * description: Add a list of cancels to a claim. + * x-authenticated: true + * parameters: + * - name: id + * in: path + * description: The claim's ID. + * required: true + * schema: + * type: string + * - name: expand + * in: query + * description: Comma-separated relations that should be expanded in the returned data. + * required: false + * schema: + * type: string + * title: expand + * description: Comma-separated relations that should be expanded in the returned data. + * - name: fields + * in: query + * description: >- + * Comma-separated fields that should be included in the returned data. + * * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * * without prefix it will replace the entire default fields. + * required: false + * schema: + * type: string + * title: fields + * description: >- + * Comma-separated fields that should be included in the returned data. + * * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. + * * without prefix it will replace the entire default fields. + * - name: offset + * in: query + * description: The number of items to skip when retrieving a list. + * required: false + * schema: + * type: number + * title: offset + * description: The number of items to skip when retrieving a list. + * - name: limit + * in: query + * description: Limit the number of items returned in the list. + * required: false + * schema: + * type: number + * title: limit + * description: Limit the number of items returned in the list. + * - name: order + * in: query + * description: The field to sort the data by. By default, the sort order is + * ascending. To change the order to descending, prefix the field name with + * `-`. + * required: false + * schema: + * type: string + * title: order + * description: The field to sort the data by. By default, the sort order is + * ascending. To change the order to descending, prefix the field name with + * `-`. + * security: + * - api_token: [] + * - cookie_auth: [] + * - jwt_token: [] + * requestBody: + * content: + * application/json: + * schema: + * $ref: "#/components/schemas/AdminPostCancelClaimReqSchema" + * x-codeSamples: + * - lang: Shell + * label: cURL + * source: |- + * curl -X POST '{backend_url}/admin/claims/{id}/cancel' \ + * -H 'x-medusa-access-token: {api_token}' + * tags: + * - Claims + * responses: + * "200": + * description: OK + * "400": + * $ref: "#/components/responses/400_error" + * "401": + * $ref: "#/components/responses/unauthorized" + * "404": + * $ref: "#/components/responses/not_found_error" + * "409": + * $ref: "#/components/responses/invalid_state_error" + * "422": + * $ref: "#/components/responses/invalid_request_error" + * "500": + * $ref: "#/components/responses/500_error" + * +*/ + diff --git a/www/utils/generated/oas-output/operations/admin/post_admin_claims_[id]_request.ts b/www/utils/generated/oas-output/operations/admin/post_admin_claims_[id]_request.ts index 8ae0f2738c..dd70601d16 100644 --- a/www/utils/generated/oas-output/operations/admin/post_admin_claims_[id]_request.ts +++ b/www/utils/generated/oas-output/operations/admin/post_admin_claims_[id]_request.ts @@ -21,18 +21,18 @@ * description: Comma-separated relations that should be expanded in the returned data. * - name: fields * in: query - * description: >- - * Comma-separated fields that should be included in the returned data. - * * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. - * * without prefix it will replace the entire default fields. + * description: Comma-separated fields that should be included in the returned + * data. if a field is prefixed with `+` it will be added to the default + * fields, using `-` will remove it from the default fields. without prefix + * it will replace the entire default fields. * required: false * schema: * type: string * title: fields - * description: >- - * Comma-separated fields that should be included in the returned data. - * * if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. - * * without prefix it will replace the entire default fields. + * description: Comma-separated fields that should be included in the returned + * data. if a field is prefixed with `+` it will be added to the default + * fields, using `-` will remove it from the default fields. without prefix + * it will replace the entire default fields. * - name: offset * in: query * description: The number of items to skip when retrieving a list. @@ -74,8 +74,6 @@ * tags: * - Claims * responses: - * "200": - * description: OK * "400": * $ref: "#/components/responses/400_error" * "401": @@ -88,6 +86,10 @@ * $ref: "#/components/responses/invalid_request_error" * "500": * $ref: "#/components/responses/500_error" + * requestBody: + * content: + * application/json: + * schema: {} * */ diff --git a/www/utils/generated/oas-output/schemas/AdminImportProductRequest.ts b/www/utils/generated/oas-output/schemas/AdminImportProductRequest.ts index aa7a484dca..7b5ee98d7c 100644 --- a/www/utils/generated/oas-output/schemas/AdminImportProductRequest.ts +++ b/www/utils/generated/oas-output/schemas/AdminImportProductRequest.ts @@ -3,6 +3,11 @@ * type: object * description: SUMMARY * x-schemaName: AdminImportProductRequest + * required: + * - file + * properties: + * file: + * $ref: "#/components/schemas/File" * */ diff --git a/www/utils/generated/oas-output/schemas/AdminPostCancelClaimReqSchema.ts b/www/utils/generated/oas-output/schemas/AdminPostCancelClaimReqSchema.ts new file mode 100644 index 0000000000..0c392c8969 --- /dev/null +++ b/www/utils/generated/oas-output/schemas/AdminPostCancelClaimReqSchema.ts @@ -0,0 +1,13 @@ +/** + * @schema AdminPostCancelClaimReqSchema + * type: object + * description: SUMMARY + * x-schemaName: AdminPostCancelClaimReqSchema + * properties: + * no_notification: + * type: boolean + * title: no_notification + * description: The claim's no notification. + * +*/ + diff --git a/www/utils/generated/oas-output/schemas/AdminPostCancelReturnReqSchema.ts b/www/utils/generated/oas-output/schemas/AdminPostCancelReturnReqSchema.ts index 1826a6ea2f..e76dbe46c2 100644 --- a/www/utils/generated/oas-output/schemas/AdminPostCancelReturnReqSchema.ts +++ b/www/utils/generated/oas-output/schemas/AdminPostCancelReturnReqSchema.ts @@ -3,17 +3,11 @@ * type: object * description: SUMMARY * x-schemaName: AdminPostCancelReturnReqSchema - * required: - * - internal_note * properties: * no_notification: * type: boolean * title: no_notification * description: The return's no notification. - * internal_note: - * type: string - * title: internal_note - * description: The return's internal note. * */ diff --git a/www/utils/generated/oas-output/schemas/File.ts b/www/utils/generated/oas-output/schemas/File.ts new file mode 100644 index 0000000000..16cbced7d5 --- /dev/null +++ b/www/utils/generated/oas-output/schemas/File.ts @@ -0,0 +1,50 @@ +/** + * @schema File + * type: object + * description: The product's file. + * x-schemaName: File + * required: + * - lastModified + * - name + * - webkitRelativePath + * - size + * - type + * - arrayBuffer + * - stream + * - text + * properties: + * lastModified: + * type: number + * title: lastModified + * description: The file's lastmodified. + * name: + * type: string + * title: name + * description: The file's name. + * webkitRelativePath: + * type: string + * title: webkitRelativePath + * description: The file's webkitrelativepath. + * size: + * type: number + * title: size + * description: The file's size. + * type: + * type: string + * title: type + * description: The file's type. + * arrayBuffer: + * type: object + * description: The file's arraybuffer. + * slice: + * type: object + * description: The file's slice. + * stream: + * type: object + * description: The file's stream. + * text: + * type: object + * description: The file's text. + * +*/ +