-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PER-9607 [back-end] Allow clearing a location
- Loading branch information
iuliandanea
committed
Nov 26, 2024
1 parent
f0cc885
commit bd7fc1e
Showing
11 changed files
with
489 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
archiveFile: | ||
description: > | ||
Archive File Object | ||
type: object | ||
properties: | ||
fileId: | ||
type: string | ||
size: | ||
type: number | ||
format: | ||
type: string | ||
type: | ||
type: string | ||
fileUrl: | ||
type: string | ||
downloadUrl: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
tag: | ||
description: > | ||
Record Tag Object | ||
type: object | ||
properties: | ||
tagId: | ||
type: string | ||
name: | ||
type: string | ||
type: | ||
type: string | ||
share: | ||
description: > | ||
Record Tag Object | ||
type: object | ||
properties: | ||
shareId: | ||
type: string | ||
archiveId: | ||
type: string | ||
accessRole: | ||
type: string | ||
status: | ||
type: string | ||
archive: | ||
$ref: "../models/record.yaml#/shareArchive" | ||
shareArchive: | ||
description: > | ||
Record Share Archive Object | ||
type: object | ||
properties: | ||
archiveId: | ||
type: string | ||
thumbUrl200: | ||
type: string | ||
name: | ||
type: string | ||
record: | ||
description: > | ||
Generic Record object | ||
type: object | ||
required: | ||
- recordId | ||
- displayName | ||
- archiveId | ||
- status | ||
- uploadFileName | ||
- uploadAccountId | ||
- createdAt | ||
- updatedAt | ||
properties: | ||
recordId: | ||
type: string | ||
displayName: | ||
type: string | ||
archiveId: | ||
type: string | ||
archiveNumber: | ||
type: string | ||
description: | ||
type: string | ||
publicAt: | ||
type: string | ||
downloadName: | ||
type: string | ||
uploadFileName: | ||
type: string | ||
uploadAccountId: | ||
type: string | ||
uploadPayerAccountId: | ||
type: string | ||
size: | ||
type: number | ||
displayDate: | ||
type: string | ||
format: date-time | ||
fileCreatedAt: | ||
type: string | ||
format: date-time | ||
imageRatio: | ||
type: number | ||
thumbUrl200: | ||
type: string | ||
thumbUrl500: | ||
type: string | ||
thumbUrl1000: | ||
type: string | ||
thumbUrl2000: | ||
type: string | ||
status: | ||
type: string | ||
type: | ||
type: string | ||
createdAt: | ||
type: string | ||
format: date-time | ||
updatedAt: | ||
type: string | ||
format: date-time | ||
altText: | ||
type: string | ||
files: | ||
type: array | ||
items: | ||
$ref: "../models/archive_file.yaml#/archiveFile" | ||
folderLinkId: | ||
type: string | ||
folderLinkType: | ||
type: string | ||
parentFolderId: | ||
type: string | ||
parentFolderLinkId: | ||
type: string | ||
parentFolderArchiveNumber: | ||
type: string | ||
tags: | ||
type: array | ||
items: | ||
$ref: "../models/record.yaml#/tag" | ||
archiveArchiveNumber: | ||
type: string | ||
shares: | ||
type: array | ||
items: | ||
$ref: "../models/record.yaml#/share" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
record/{id}: | ||
patch: | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
summary: Update a record | ||
security: | ||
- bearerHttpAuthentication: [] | ||
operationId: patch-record | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
locationId: | ||
type: integer | ||
description: | ||
type: string | ||
responses: | ||
"200": | ||
description: The updated record | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
data: | ||
$ref: "../models/record.yaml#/record" | ||
"400": | ||
$ref: "../../shared/errors.yaml#/400" | ||
"500": | ||
$ref: "../../shared/errors.yaml#/500" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { PatchRecordRequest, RecordColumnsForUpdate } from "./models"; | ||
|
||
export function requestFieldsToDatabaseFields( | ||
request: PatchRecordRequest, | ||
recordId: string | ||
): RecordColumnsForUpdate { | ||
return { | ||
locnid: request.locationId, | ||
description: request.description, | ||
recordId, | ||
}; | ||
} |
Oops, something went wrong.