@rankwrangler/http-client 0.2.1 → 0.2.2

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.
@@ -16,6 +16,9 @@ export type ProductInfo = {
16
16
  dateFirstAvailable: string | null;
17
17
  title: string | null;
18
18
  brand: string | null;
19
+ isMerchListing: boolean;
20
+ bullet1: string | null;
21
+ bullet2: string | null;
19
22
  rootCategoryId: number | null;
20
23
  rootCategoryBsr: number | null;
21
24
  rootCategoryDisplayName: string | null;
@@ -178,6 +181,45 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
178
181
  output: ProductInfo;
179
182
  meta: object;
180
183
  }>;
184
+ dev: import("@trpc/server").TRPCBuiltRouter<{
185
+ ctx: {
186
+ user: ClerkUser;
187
+ isAdmin: boolean;
188
+ authType: "license" | "clerk" | "none";
189
+ license: {
190
+ key: string;
191
+ data: LicenseUsageData | undefined;
192
+ };
193
+ licenseError: undefined;
194
+ request: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider.js").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>>;
195
+ } | {
196
+ user: null;
197
+ isAdmin: boolean;
198
+ authType: "license" | "clerk" | "none";
199
+ license: null;
200
+ licenseError: string | undefined;
201
+ request: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider.js").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>>;
202
+ } | {
203
+ user: ClerkUser;
204
+ isAdmin: boolean;
205
+ authType: "license" | "clerk" | "none";
206
+ license: null;
207
+ licenseError: undefined;
208
+ request: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider.js").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>>;
209
+ };
210
+ meta: object;
211
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
212
+ transformer: false;
213
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
214
+ createClerkSignInToken: import("@trpc/server").TRPCMutationProcedure<{
215
+ input: void;
216
+ output: {
217
+ ticket: string;
218
+ expiresInSeconds: number;
219
+ };
220
+ meta: object;
221
+ }>;
222
+ }>>;
181
223
  license: import("@trpc/server").TRPCBuiltRouter<{
182
224
  ctx: {
183
225
  user: ClerkUser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rankwrangler/http-client",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Typed tRPC client for RankWrangler",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",