File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1+ import { zValidator } from '@hono/zod-validator'
12import { HTTPException } from 'hono/http-exception'
3+ import z from 'zod'
24import { ConfigStorageService } from '@shared/config-storage-service'
35import { AWS_PREFIX } from '@shared/defines'
46import { PRESET_IDS , TOOLS } from '@shared/types'
@@ -12,8 +14,6 @@ import type {
1214} from '@shared/types'
1315import { app } from '../app.js'
1416import { createHTTPException } from '../utils/utils.js'
15- import { zValidator } from '@hono/zod-validator'
16- import z from 'zod'
1717
1818app . get (
1919 '/config/:tool' ,
Original file line number Diff line number Diff line change 11import { HTTPException } from 'hono/http-exception'
2+ import { zValidator } from '@hono/zod-validator'
3+ import z from 'zod'
24import type { ContentfulStatusCode } from 'hono/utils/http-status'
35import type { WalletAddress } from '@interledger/open-payments'
46import { decode , pickWeightedRandom } from '@shared/probabilistic-revenue-share'
57import { isWalletAddress , validateWalletAddressOrPointer } from '@shared/utils'
68import { createHTTPException } from '../utils/utils'
7- import { zValidator } from '@hono/zod-validator'
8- import z from 'zod'
99
1010import { app } from '../app.js'
1111
Original file line number Diff line number Diff line change 1+ import type z from 'zod'
12import type {
23 createBannerSchema ,
34 createButtonSchema ,
45 createWidgetSchema
56} from '../utils/validate.server.js'
67import type { ElementConfigType } from '@shared/types'
7- import type z from 'zod'
88
99export type ModalType = {
1010 type :
Original file line number Diff line number Diff line change 1+ import z from 'zod'
12import {
23 bannerFieldsSchema ,
34 buttonFieldsSchema ,
45 widgetFieldsSchema
56} from './validate.shared'
67import type { ElementConfigType } from '@shared/types'
7- import z from 'zod'
88
99export const elementConfigStorageSchema = z . object ( {
1010 versionName : z . string ( ) ,
Original file line number Diff line number Diff line change 1+ import z from 'zod'
12import {
23 checkHrefFormat ,
34 getWalletAddress ,
@@ -14,7 +15,6 @@ import type {
1415 PaymentStatusRejected ,
1516 PaymentStatusSuccess
1617} from 'publisher-tools-api'
17- import z from 'zod'
1818
1919export const walletSchema = z . object ( {
2020 walletAddress : z
Original file line number Diff line number Diff line change 1+ import z from 'zod'
12import {
23 CORNER_OPTION ,
34 BANNER_POSITION ,
@@ -11,7 +12,6 @@ import {
1112 WIDGET_TITLE_MAX_LENGTH ,
1213 WIDGET_DESCRIPTION_MAX_LENGTH
1314} from '@shared/types'
14- import z from 'zod'
1515
1616const bannerFontSizeError = {
1717 message : `Font size must be between ${ BANNER_FONT_SIZES . min } and ${ BANNER_FONT_SIZES . max } `
You can’t perform that action at this time.
0 commit comments