@polymarket/bindings 0.1.0-beta.1 → 0.1.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-GYP7YNXL.js +2 -0
- package/dist/chunk-GYP7YNXL.js.map +1 -0
- package/dist/chunk-HOD4LKZU.js +2 -0
- package/dist/chunk-HOD4LKZU.js.map +1 -0
- package/dist/chunk-IY6FKANL.js +2 -0
- package/dist/chunk-IY6FKANL.js.map +1 -0
- package/dist/chunk-VBHCYSM7.js +2 -0
- package/dist/chunk-VBHCYSM7.js.map +1 -0
- package/dist/clob/index.d.ts +110 -135
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/data/index.d.ts +849 -60
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +215 -198
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +39 -7
- package/dist/index.js +1 -1
- package/dist/orders-Uj0Gkvd4.d.ts +736 -0
- package/dist/perps/index.d.ts +1414 -0
- package/dist/perps/index.js +2 -0
- package/dist/perps/index.js.map +1 -0
- package/dist/relayer/index.js +1 -1
- package/dist/relayer/index.js.map +1 -1
- package/dist/rfq.d.ts +701 -0
- package/dist/rfq.js +2 -0
- package/dist/rfq.js.map +1 -0
- package/dist/signature-type-CrLAA9AN.d.ts +23 -0
- package/dist/subscriptions/index.d.ts +2040 -12
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +25 -3
- package/dist/chunk-6WCDEPBE.js +0 -2
- package/dist/chunk-6WCDEPBE.js.map +0 -1
- package/dist/chunk-TM2ZY32Q.js +0 -2
- package/dist/chunk-TM2ZY32Q.js.map +0 -1
package/dist/gamma/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a,
|
|
1
|
+
import {a,F,e,t,s,r}from'../chunk-GYP7YNXL.js';export{y as BestLineSchema,d as CategoryReferenceSchema,u as ChatSchema,g as ClobRewardsSchema,r as CollectionReferenceSchema,O as CommentMediaSchema,J as CommentPositionSchema,K as CommentProfileSchema,P as CommentSchema,v as EventCreatorSchema,x as EventExternalPartnerMappingSchema,c as EventReferenceSchema,F as EventSchema,b as FeeScheduleSchema,I as FetchEventTagsResponseSchema,n as FetchMarketTagsResponseSchema,E as GammaEventSchema,j as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,Q as ListCommentsResponseSchema,H as ListEventsKeysetResponseSchema,G as ListEventsResponseSchema,m as ListMarketsKeysetResponseSchema,l as ListMarketsResponseSchema,C as ListSportsMetadataResponseSchema,B as ListTeamsResponseSchema,k as MarketSchema,w as PartnerSchema,N as ReactionSchema,L as ReactionType,M as ReactionTypeSchema,f as RelatedMarketSchema,q as SeriesIdSchema,s as SeriesReferenceSchema,D as SportsMarketTypesResponseSchema,A as SportsMetadataSchema,e as TagReferenceSchema,z as TeamSchema,t as TemplateReferenceSchema,i as UmaResolutionStatus,p as hasBinaryOutcomes,o as normalizeMarket}from'../chunk-GYP7YNXL.js';import {y,ka,Ga,$,ya,ia,Da}from'../chunk-VBHCYSM7.js';export{Da as TagIdSchema}from'../chunk-VBHCYSM7.js';import {z as z$1}from'zod';var z=(a=>(a.Pending="pending",a.Queued="queued",a.Success="success",a.Failed="failed",a.Cancelled="cancelled",a))(z||{}),E=z$1.union([z$1.string(),z$1.number().int().transform(String)]).transform(y),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:ia.nullish(),questionId:ya.nullish(),content:z$1.string().nullish(),state:z$1.enum(z).nullish(),clearBook:z$1.boolean().nullish(),notifyDiscord:z$1.boolean().nullish(),showInFrontend:z$1.boolean().nullish(),adapterAddress:$.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Ga.nullish(),createdAt:ka.nullish(),queuedAt:ka.nullish(),scheduledFor:ka.nullish(),txTimestamp:ka.nullish()}),Re=z$1.array(O);var Ie=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()});var j=z$1.object({id:z$1.string(),communityMod:z$1.boolean().nullish(),creator:z$1.boolean().nullish(),mod:z$1.boolean().nullish()}),L=z$1.object({id:z$1.string().nullish(),name:z$1.string().nullish(),user:z$1.number().int().nullish(),referral:z$1.string().nullish(),createdBy:z$1.number().int().nullish(),updatedBy:z$1.number().int().nullish(),createdAt:ka.nullish(),updatedAt:ka.nullish(),utmSource:z$1.string().nullish(),utmMedium:z$1.string().nullish(),utmCampaign:z$1.string().nullish(),utmContent:z$1.string().nullish(),utmTerm:z$1.string().nullish(),walletActivated:z$1.boolean().nullish(),pseudonym:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),profileImage:z$1.string().nullish(),bio:z$1.string().nullish(),proxyWallet:z$1.string().nullish(),profileImageOptimized:a.nullish(),isCloseOnly:z$1.boolean().nullish(),isCertReq:z$1.boolean().nullish(),certReqDate:ka.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:ka.nullish(),viewOnlyAcknowledgedAt:ka.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),Ee=z$1.object({createdAt:ka.nullish(),proxyWallet:$.nullish(),profileImage:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),bio:z$1.string().nullish(),pseudonym:z$1.string().nullish(),name:z$1.string().nullish(),users:z$1.array(j).nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i}));var k=z$1.object({id:Da,event_count:z$1.number().int().nullish(),label:z$1.string().nullish(),slug:z$1.string().nullish()}).transform(({event_count:i,...l})=>({...l,eventCount:i})),C=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()}),Ue=z$1.object({events:z$1.array(F).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(t).nullish()}),D=z$1.object({id:z$1.string(),tagID:z$1.number().int().nullish(),relatedTagID:z$1.number().int().nullish(),rank:z$1.number().int().nullish()}).transform(({tagID:i,relatedTagID:l,...v})=>({...v,tagId:i,relatedTagId:l})),Be=z$1.array(u),Ye=z$1.array(D),Ne=z$1.array(u);var U=s.extend({events:z$1.array(F).nullish(),collections:z$1.array(r).nullish(),tags:z$1.array(u).nullish()}),Je=z$1.array(U);var A=(s=>(s[s.EOA=0]="EOA",s[s.POLY_PROXY=1]="POLY_PROXY",s[s.GNOSIS_SAFE=2]="GNOSIS_SAFE",s[s.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",s))(A||{}),Ze=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Re as ListMarketClarificationsResponseSchema,Ne as ListRelatedTagResourcesResponseSchema,Ye as ListRelatedTagsResponseSchema,Je as ListSeriesResponseSchema,Be as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,Ie as PaginationEnvelopeSchema,L as ProfileSchema,Ee as PublicProfileSchema,j as PublicProfileUserSchema,Ue as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,Ze as WalletTypeSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/gamma/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["PaginationEnvelopeSchema","z","PublicProfileUserSchema","ProfileSchema","IsoDateTimeStringSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","EvmAddressSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","ChatSchema","TemplateReferenceSchema","RelatedTagSchema","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","CollectionReferenceSchema","CategoryReferenceSchema","ListSeriesResponseSchema","WalletType","WalletTypeSchema"],"mappings":"oxCAEO,IAAMA,GAA2BC,GAAAA,CAAE,MAAA,CAAO,CAC/C,OAAA,CAASA,GAAAA,CAAE,OAAA,EAAQ,CAAE,OAAA,GACrB,YAAA,CAAcA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,OAAA,EACjC,CAAC,ECDM,IAAMC,CAAAA,CAA0BD,GAAAA,CAAE,MAAA,CAAO,CAC9C,EAAA,CAAIA,GAAAA,CAAE,MAAA,EAAO,CACb,YAAA,CAAcA,GAAAA,CAAE,OAAA,EAAQ,CAAE,SAAQ,CAClC,OAAA,CAASA,GAAAA,CAAE,OAAA,GAAU,OAAA,EAAQ,CAC7B,GAAA,CAAKA,GAAAA,CAAE,SAAQ,CAAE,OAAA,EACnB,CAAC,CAAA,CAEYE,CAAAA,CAAgBF,GAAAA,CAC1B,MAAA,CAAO,CACN,EAAA,CAAIA,GAAAA,CAAE,MAAA,EAAO,CAAE,SAAQ,CACvB,IAAA,CAAMA,GAAAA,CAAE,MAAA,GAAS,OAAA,EAAQ,CACzB,IAAA,CAAMA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,SAAQ,CAC/B,QAAA,CAAUA,GAAAA,CAAE,MAAA,EAAO,CAAE,OAAA,EAAQ,CAC7B,SAAA,CAAWA,IAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,OAAA,EAAQ,CACpC,SAAA,CAAWA,GAAAA,CAAE,QAAO,CAAE,GAAA,EAAI,CAAE,OAAA,GAC5B,SAAA,CAAWG,E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= z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { ChatSchema, TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n chats: z.array(ChatSchema).nullish(),\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z.object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n});\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport { CategoryReferenceSchema } from './common';\nimport {\n ChatSchema,\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n categories: z.array(CategoryReferenceSchema).nullish(),\n chats: z.array(ChatSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/gamma/market-clarification.ts","../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["MarketClarificationState","MarketIdFromWireSchema","z","toMarketId","MarketClarificationSchema","EventIdSchema","QuestionIdSchema","EvmAddressSchema","TxHashSchema","IsoDateTimeStringSchema","ListMarketClarificationsResponseSchema","PaginationEnvelopeSchema","PublicProfileUserSchema","ProfileSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","CollectionReferenceSchema","ListSeriesResponseSchema","WalletType","WalletTypeSchema"],"mappings":"szCAWYA,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAA,QAAU,SAAA,CACVA,CAAAA,CAAA,MAAA,CAAS,QAAA,CACTA,EAAA,OAAA,CAAU,SAAA,CACVA,EAAA,MAAA,CAAS,QAAA,CACTA,EAAA,SAAA,CAAY,WAAA,CALFA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAUNC,EAAyBC,GAAAA,CAC5B,KAAA,CAAM,CAACA,GAAAA,CAAE,MAAA,GAAUA,GAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,UAAU,MAAM,CAAC,CAAC,CAAA,CACtD,SAAA,CAAUC,CAAU,CAAA,CAEVC,CAAAA,CAA4BF,GAAAA,CAAE,MAAA,CAAO,CAChD,EAAA,CAAIA,GAAAA,CAAE,QAAO,CAAE,GAAA,GACf,QAAA,CAAUD,CAAAA,CAAuB,SAAQ,CACzC,OAAA,CAASI,GAAc,OAAA,EAAQ,CAC/B,WAAYC,EAAAA,CAAiB,OAAA,GAC7B,OAAA,CAASJ,GAAAA,CAAE,MAAA,EAAO,CAAE,SAAQ,CAC5B,KAAA,CAAOA,IAAE,IAAA,CAAKF,CAAwB,EAAE,OAAA,EAAQ,CAChD,UAAWE,GAAAA,CAAE,OAAA,GAAU,OAAA,EAAQ,CAC/B,cAAeA,GAAAA,CAAE,OAAA,GAAU,OAAA,EAAQ,CACnC,cAAA,CAAgBA,GAAAA,CAAE,SAAQ,CAAE,OAAA,GA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AAarB,GAAAA,CAAE,MAAMiC,CAAyB,CAAA,CAAE,SAAQ,CACxD,IAAA,CAAMjC,IAAE,KAAA,CAAMsB,CAAS,EAAE,OAAA,EAC3B,CAAC,CAAA,CAEYY,EAAAA,CAA2BlC,IAAE,KAAA,CAAM+B,CAAY,MCZhDI,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAAA,CAAAA,CAAA,IAAM,CAAA,CAAA,CAAN,KAAA,CACAA,IAAA,UAAA,CAAa,CAAA,CAAA,CAAb,aACAA,CAAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,GAAd,aAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,eAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAOCC,GAAmBpC,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,KAAKmC,CAAU,CAAA,CACvB,SAAUnC,GAAAA,CAAE,IAAA,CAAK,CAAC,KAAA,CAAO,YAAA,CAAc,cAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport {\n EventIdSchema,\n EvmAddressSchema,\n IsoDateTimeStringSchema,\n QuestionIdSchema,\n TxHashSchema,\n toMarketId,\n} from '../shared';\n\n/** Lifecycle state of a clarification as it is scheduled and posted on-chain. */\nexport enum MarketClarificationState {\n Pending = 'pending',\n Queued = 'queued',\n Success = 'success',\n Failed = 'failed',\n Cancelled = 'cancelled',\n}\n\n// The upstream payload returns `marketId` as a JSON number, but the `MarketId`\n// brand is string-valued, so accept number-or-string here (mirrors `EventIdSchema`).\nconst MarketIdFromWireSchema = z\n .union([z.string(), z.number().int().transform(String)])\n .transform(toMarketId);\n\nexport const MarketClarificationSchema = z.object({\n id: z.number().int(),\n marketId: MarketIdFromWireSchema.nullish(),\n eventId: EventIdSchema.nullish(),\n questionId: QuestionIdSchema.nullish(),\n content: z.string().nullish(),\n state: z.enum(MarketClarificationState).nullish(),\n clearBook: z.boolean().nullish(),\n notifyDiscord: z.boolean().nullish(),\n showInFrontend: z.boolean().nullish(),\n adapterAddress: EvmAddressSchema.nullish(),\n negRiskRequestId: z.string().nullish(),\n txHash: TxHashSchema.nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n queuedAt: IsoDateTimeStringSchema.nullish(),\n scheduledFor: IsoDateTimeStringSchema.nullish(),\n txTimestamp: IsoDateTimeStringSchema.nullish(),\n});\n\nexport const ListMarketClarificationsResponseSchema = z.array(\n MarketClarificationSchema,\n);\n\nexport type MarketClarification = z.infer<typeof MarketClarificationSchema>;\nexport type ListMarketClarificationsResponse = z.infer<\n typeof ListMarketClarificationsResponseSchema\n>;\n","import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,10 @@ type CategoryId = Tagged<string, 'CategoryId'>;
|
|
|
27
27
|
type ChatId = Tagged<string, 'ChatId'>;
|
|
28
28
|
type ClobRewardId = Tagged<string, 'ClobRewardId'>;
|
|
29
29
|
type CommentId = Tagged<string, 'CommentId'>;
|
|
30
|
-
type
|
|
30
|
+
type ComboConditionId = Tagged<HexString, 'ComboConditionId'>;
|
|
31
|
+
type CtfConditionId = Tagged<HexString, 'CtfConditionId'>;
|
|
32
|
+
/** @deprecated Use {@link CtfConditionId}. */
|
|
33
|
+
type ConditionId = CtfConditionId;
|
|
31
34
|
type CollectionId = Tagged<string, 'CollectionId'>;
|
|
32
35
|
type EventCreatorId = Tagged<string, 'EventCreatorId'>;
|
|
33
36
|
type EventExternalPartnerMappingId = Tagged<number, 'EventExternalPartnerMappingId'>;
|
|
@@ -42,8 +45,12 @@ type MixedDateTimeString = Tagged<string, 'MixedDateTimeString'>;
|
|
|
42
45
|
type NotificationId = Tagged<number, 'NotificationId'>;
|
|
43
46
|
type PartnerId = Tagged<number, 'PartnerId'>;
|
|
44
47
|
type PaginationCursor = Tagged<string, 'PaginationCursor'>;
|
|
48
|
+
type PositionId = Tagged<string, 'PositionId'>;
|
|
45
49
|
type QuestionId = Tagged<HexString, 'QuestionId'>;
|
|
46
50
|
type ResolutionRequestId = Tagged<HexString, 'ResolutionRequestId'>;
|
|
51
|
+
type RfqId = Tagged<string, 'RfqId'>;
|
|
52
|
+
type RfqQuoteId = Tagged<string, 'RfqQuoteId'>;
|
|
53
|
+
type RfqRequestorPublicId = Tagged<string, 'RfqRequestorPublicId'>;
|
|
47
54
|
type SeriesId = Tagged<string, 'SeriesId'>;
|
|
48
55
|
type SportId = Tagged<number, 'SportId'>;
|
|
49
56
|
type TagId = Tagged<string, 'TagId'>;
|
|
@@ -61,7 +68,10 @@ declare function toCategoryId(value: string): CategoryId;
|
|
|
61
68
|
declare function toChatId(value: string): ChatId;
|
|
62
69
|
declare function toClobRewardId(value: string): ClobRewardId;
|
|
63
70
|
declare function toCommentId(value: string): CommentId;
|
|
64
|
-
declare function
|
|
71
|
+
declare function toCtfConditionId(value: string): CtfConditionId;
|
|
72
|
+
/** @deprecated Use {@link toCtfConditionId}. */
|
|
73
|
+
declare const toConditionId: typeof toCtfConditionId;
|
|
74
|
+
declare function toComboConditionId(value: string): ComboConditionId;
|
|
65
75
|
declare function toCollectionId(value: string): CollectionId;
|
|
66
76
|
declare function toEventCreatorId(value: string): EventCreatorId;
|
|
67
77
|
declare function toEventExternalPartnerMappingId(value: number): EventExternalPartnerMappingId;
|
|
@@ -76,8 +86,12 @@ declare function toMarketId(value: string): MarketId;
|
|
|
76
86
|
declare function toNotificationId(value: number): NotificationId;
|
|
77
87
|
declare function toPartnerId(value: number): PartnerId;
|
|
78
88
|
declare function toPaginationCursor(value: string): PaginationCursor;
|
|
89
|
+
declare function toPositionId(value: string): PositionId;
|
|
79
90
|
declare function toQuestionId(value: string): QuestionId;
|
|
80
91
|
declare function toResolutionRequestId(value: string): ResolutionRequestId;
|
|
92
|
+
declare function toRfqId(value: string): RfqId;
|
|
93
|
+
declare function toRfqQuoteId(value: string): RfqQuoteId;
|
|
94
|
+
declare function toRfqRequestorPublicId(value: string): RfqRequestorPublicId;
|
|
81
95
|
declare function toSeriesId(value: string): SeriesId;
|
|
82
96
|
declare function toSportId(value: number): SportId;
|
|
83
97
|
declare function toTagId(value: string): TagId;
|
|
@@ -92,18 +106,24 @@ declare const ApiKeySchema: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string
|
|
|
92
106
|
declare const BuilderCodeSchema: z.ZodPipe<z.ZodString, z.ZodTransform<BuilderCode, string>>;
|
|
93
107
|
declare const ClobRewardIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
|
|
94
108
|
declare const CommentIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
|
|
95
|
-
declare const
|
|
96
|
-
declare const
|
|
109
|
+
declare const ComboConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
110
|
+
declare const CtfConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
111
|
+
declare const OptionalCtfConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
112
|
+
/** @deprecated Use {@link CtfConditionIdSchema}. */
|
|
113
|
+
declare const ConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
114
|
+
/** @deprecated Use {@link OptionalCtfConditionIdSchema}. */
|
|
115
|
+
declare const OptionalConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
|
|
97
116
|
declare const EvmAddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
98
117
|
declare const EpochMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
99
118
|
declare const EpochSecondsToMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
100
119
|
declare const EpochMillisecondsStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>;
|
|
101
120
|
declare const DateLikeToIsoDateTimeStringSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
121
|
+
declare const EpochLikeToIsoDateTimeStringSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
102
122
|
declare const OptionalDateLikeToIsoDateTimeStringSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
103
123
|
declare const EpochMillisecondsToIsoDateTimeStringSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
104
124
|
declare const OptionalEpochMillisecondsToIsoDateTimeStringSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
105
125
|
declare const EventIdSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>;
|
|
106
|
-
declare const TickSizeValueSchema: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
|
|
126
|
+
declare const TickSizeValueSchema: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
|
|
107
127
|
declare const IsoDateTimeStringSchema: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
|
|
108
128
|
declare const IsoCalendarDateStringSchema: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>;
|
|
109
129
|
declare const MixedDateTimeStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>;
|
|
@@ -116,14 +136,19 @@ declare const NotificationIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<Notifi
|
|
|
116
136
|
declare const CommentParentEntityTypeSchema: z.ZodEnum<typeof CommentParentEntityType>;
|
|
117
137
|
declare const OrderSideSchema: z.ZodEnum<typeof OrderSide>;
|
|
118
138
|
declare const OrderTypeSchema: z.ZodEnum<typeof OrderType>;
|
|
119
|
-
declare const PaginationCursorSchema: z.
|
|
139
|
+
declare const PaginationCursorSchema: z.ZodCustom<PaginationCursor, PaginationCursor>;
|
|
140
|
+
declare const PositionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
120
141
|
declare const QuestionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
|
|
121
142
|
declare const ResolutionRequestIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>;
|
|
143
|
+
declare const RfqIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<RfqId, string>>;
|
|
144
|
+
declare const RfqQuoteIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<RfqQuoteId, string>>;
|
|
145
|
+
declare const RfqRequestorPublicIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<RfqRequestorPublicId, string>>;
|
|
122
146
|
declare const TagIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<TagId, string>>;
|
|
123
147
|
declare const TokenIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
124
148
|
declare const TransactionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<TransactionId, string>>;
|
|
125
149
|
declare const TxHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
126
150
|
declare const DecimalStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
151
|
+
declare const E6BigIntStringToDecimalStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
127
152
|
declare const DecimalishSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
128
153
|
declare const PositiveDecimalNumberSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodNumber>;
|
|
129
154
|
declare const BaseUnitsSchema: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
|
|
@@ -131,4 +156,11 @@ type ISODateString = IsoDateTimeString;
|
|
|
131
156
|
type ISOCalendarDateString = IsoCalendarDateString;
|
|
132
157
|
type TickSizeValue = z.output<typeof TickSizeValueSchema>;
|
|
133
158
|
|
|
134
|
-
|
|
159
|
+
/**
|
|
160
|
+
* Preprocess helper for upstream fields that serialize missing values as empty
|
|
161
|
+
* strings. Use as `z.preprocess(emptyStringToNull, Schema.nullable())`, or
|
|
162
|
+
* with `.nullish()` when the field can also be absent.
|
|
163
|
+
*/
|
|
164
|
+
declare function emptyStringToNull(value: unknown): unknown;
|
|
165
|
+
|
|
166
|
+
export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalConditionIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboConditionId, toCommentId, toConditionId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{S as ApiKeySchema,La as BaseUnitsSchema,T as BuilderCodeSchema,R as CategoryIdSchema,U as ClobRewardIdSchema,W as ComboConditionIdSchema,V as CommentIdSchema,a as CommentParentEntityType,ta as CommentParentEntityTypeSchema,Z as ConditionIdSchema,X as CtfConditionIdSchema,da as DateLikeToIsoDateTimeStringSchema,Ha as DecimalStringSchema,Ja as DecimalishSchema,Ia as E6BigIntStringToDecimalStringSchema,ea as EpochLikeToIsoDateTimeStringSchema,aa as EpochMillisecondsSchema,ca as EpochMillisecondsStringSchema,ga as EpochMillisecondsToIsoDateTimeStringSchema,ba as EpochSecondsToMillisecondsSchema,ia as EventIdSchema,$ as EvmAddressSchema,oa as ISOCalendarDateSchema,na as ISODateStringSchema,pa as ImageOptimizationIdSchema,qa as InternalUserIdSchema,la as IsoCalendarDateStringSchema,ka as IsoDateTimeStringSchema,ra as MarketIdSchema,ma as MixedDateTimeStringSchema,sa as NotificationIdSchema,_ as OptionalConditionIdSchema,Y as OptionalCtfConditionIdSchema,fa as OptionalDateLikeToIsoDateTimeStringSchema,ha as OptionalEpochMillisecondsToIsoDateTimeStringSchema,b as OrderSide,ua as OrderSideSchema,c as OrderType,va as OrderTypeSchema,wa as PaginationCursorSchema,xa as PositionIdSchema,Ka as PositiveDecimalNumberSchema,ya as QuestionIdSchema,za as ResolutionRequestIdSchema,Aa as RfqIdSchema,Ba as RfqQuoteIdSchema,Ca as RfqRequestorPublicIdSchema,Da as TagIdSchema,ja as TickSizeValueSchema,Ea as TokenIdSchema,Fa as TransactionIdSchema,Ga as TxHashSchema,Ma as emptyStringToNull,g as toApiKey,Q as toBaseUnits,d as toBestLineId,e as toBuilderCode,h as toCategoryId,i as toChatId,j as toClobRewardId,o as toCollectionId,n as toComboConditionId,k as toCommentId,m as toConditionId,l as toCtfConditionId,P as toDecimalString,r as toEpochMilliseconds,p as toEventCreatorId,q as toEventExternalPartnerMappingId,s as toEventId,t as toImageOptimizationId,u as toInternalUserId,v as toIsoCalendarDateString,w as toIsoDateTimeString,y as toMarketId,x as toMixedDateTimeString,z as toNotificationId,B as toPaginationCursor,A as toPartnerId,C as toPositionId,D as toQuestionId,E as toResolutionRequestId,F as toRfqId,G as toRfqQuoteId,H as toRfqRequestorPublicId,I as toSeriesId,J as toSportId,K as toTagId,L as toTeamId,M as toTemplateId,O as toTokenId,N as toTransactionId,f as toUuid}from'./chunk-VBHCYSM7.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|