{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @example\n * import { Details, Status } from '@repo/error';\n *\n * Status.adapter = () => new Error('Error');\n *\n * const details = Details.new()\n *  .requestInfo({ requestId: '1234567890', servingData: '/v1/tests' })\n *  .errorInfo({ reason: 'ACCOUNT_LOCKED' });\n *\n * throw Status.alreadyExists('xxx').error(details);\n */\n\nexport {\n  LoginTimeoutError,\n  LoginCanceledError,\n  CheckoutCreateError,\n  PurchaseError,\n} from './error/index';\nexport type { ErrorReason, ResolvedErrorReason } from './error/reason';\nexport {\n  DetailType,\n  Details,\n  type ErrorInfo,\n  type RetryInfo,\n  type DebugInfo,\n  type QuotaFailure,\n  type PreconditionFailure,\n  type BadRequest,\n  type RequestInfo,\n  type ResourceInfo,\n  type Help,\n  type LocalizedMessage,\n  type Detail,\n} from './error/detail';\nexport { Status, StatusError, type ErrorBody } from './error/status';\nexport { getErrorInfo, getErrorMessage, getFieldViolations } from './error/parse';\nexport {\n  Items,\n  Pages,\n  Cursor,\n  pageParamsSchema,\n  initialPageParam,\n  getPreviousPageParam,\n  getNextPageParam,\n} from './response';\nexport type {\n  Empty,\n  EntityId,\n  Entity,\n  Response,\n  InitParams,\n  NextParams,\n  PrevParams,\n  PageParams,\n  ParentPageParams,\n  Page,\n  InfinitePageData,\n} from './response';\n\nexport { UidGenerator, uid } from './snowflake';\n\nexport * as MAX_LENGTH from './max-length/index';\nexport { timing } from './utils/timing';\nexport { forwardToGoogleTagGateway } from './utils/google-tag-gateway';\nexport { ISO_3601_1, type ISO3166CountryCode } from './iso/iso_3601_1';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,mBAKO;AAEP,oBAcO;AACP,oBAAoD;AACpD,mBAAkE;AAClE,sBAQO;AAeP,uBAAkC;AAElC,iBAA4B;AAC5B,oBAAuB;AACvB,gCAA0C;AAC1C,wBAAoD;","names":[]}