Release 202507010759

This commit is contained in:
pluja
2025-07-01 07:59:22 +00:00
parent b7ae6dc22c
commit b456af9448
4 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Service" ALTER COLUMN "operatingSince" SET DATA TYPE DATE;

View File

@@ -349,8 +349,8 @@ model Service {
categories Category[] @relation("ServiceToCategory")
kycLevel Int @default(4)
kycLevelClarification KycLevelClarification @default(NONE)
/// The first known date when the service started operating. Used for New/Mature service attributes.
operatingSince DateTime?
/// Date only, no time.
operatingSince DateTime? @db.Date
overallScore Int @default(0)
privacyScore Int @default(0)
trustScore Int @default(0)

View File

@@ -133,7 +133,7 @@ export const apiServiceActions = {
kycLevelClarification: service.kycLevelClarification,
kycLevelClarificationInfo: pick(getKycLevelClarificationInfo(service.kycLevelClarification), [
'value',
'name',
'label',
'description',
]),
categories: service.categories,

View File

@@ -62,7 +62,7 @@ type ServiceResponse = {
kycLevelClarification: 'NONE' | 'DEPENDS_ON_PARTNERS' | ...
kycLevelClarificationInfo: {
value: 'NONE' | 'DEPENDS_ON_PARTNERS' | ...
name: string
label: string
description: string
}
categories: {
@@ -135,8 +135,10 @@ curl -X QUERY https://kycnot.me/api/v1/service/get \
```json
{
"id": 123,
"name": "My Example Service",
"description": "This is a description of my example service",
"slug": "my-example-service",
"serviceVisibility": "PUBLIC",
"verificationStatus": "VERIFICATION_SUCCESS",
"verificationStatusInfo": {
@@ -157,6 +159,7 @@ curl -X QUERY https://kycnot.me/api/v1/service/get \
"kycLevelClarification": "NONE",
"kycLevelClarificationInfo": {
"value": "NONE",
"label": "None",
"description": "No clarification needed."
},
"categories": [