@rankwrangler/http-client 0.2.2 → 0.2.3
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/README.md +9 -6
- package/dist/app-router.d.ts +54 -6
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -63,12 +63,15 @@ npm publish --access public --userconfig ../../.npmrc
|
|
|
63
63
|
|
|
64
64
|
Before publishing:
|
|
65
65
|
|
|
66
|
-
1.
|
|
67
|
-
2. Run `bun
|
|
68
|
-
3. Run `
|
|
66
|
+
1. Run `bun run release:bump <patch|minor|major|X.Y.Z>` from repo root.
|
|
67
|
+
2. Run `bun install` from repo root.
|
|
68
|
+
3. Run `bun run release:collect-changelog-context`, then draft `CHANGELOG.md` entry.
|
|
69
|
+
4. Run `bun run release:check`.
|
|
70
|
+
5. Run `bun run http-client:build` from repo root.
|
|
71
|
+
6. Run `npm pack --dry-run` from `packages/http-client`.
|
|
69
72
|
|
|
70
73
|
## Versioning
|
|
71
74
|
|
|
72
|
-
- App releases are
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
+
- App releases and npm package versions are synchronized to the same `X.Y.Z`.
|
|
76
|
+
- `CHANGELOG.md` uses `vX.Y.Z`; package files use `X.Y.Z`.
|
|
77
|
+
- Canonical process lives in `docs/release-runbook.md`.
|
package/dist/app-router.d.ts
CHANGED
|
@@ -126,25 +126,73 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
126
126
|
endAt?: unknown;
|
|
127
127
|
limit?: unknown;
|
|
128
128
|
days?: unknown;
|
|
129
|
+
metrics?: ("bsr" | "price")[] | undefined;
|
|
130
|
+
format?: "legacy" | "agent" | undefined;
|
|
129
131
|
};
|
|
130
132
|
output: {
|
|
131
|
-
collecting: boolean;
|
|
132
|
-
syncTriggered: boolean;
|
|
133
133
|
marketplaceId: string;
|
|
134
134
|
asin: string;
|
|
135
|
-
metric: "bsrMain"
|
|
135
|
+
metric: "bsrMain";
|
|
136
136
|
latestImportAt: string | null;
|
|
137
|
-
categoryNames:
|
|
138
|
-
|
|
137
|
+
categoryNames: Record<string, string>;
|
|
138
|
+
points: {
|
|
139
|
+
categoryId: number;
|
|
140
|
+
categoryName: string | null;
|
|
141
|
+
observedAt: string;
|
|
142
|
+
keepaMinutes: number;
|
|
143
|
+
value: number | null;
|
|
144
|
+
isMissing: boolean;
|
|
145
|
+
}[];
|
|
146
|
+
collecting: boolean;
|
|
147
|
+
syncTriggered: boolean;
|
|
148
|
+
} | {
|
|
149
|
+
schemaVersion: 1;
|
|
150
|
+
status: string;
|
|
151
|
+
latestImportAt: string | null;
|
|
152
|
+
series: {
|
|
153
|
+
price?: {
|
|
154
|
+
unit: "minorCurrency";
|
|
155
|
+
currencyCode: "USD";
|
|
156
|
+
valueScale: 100;
|
|
157
|
+
points: ([
|
|
158
|
+
string,
|
|
159
|
+
number | null
|
|
160
|
+
] | [
|
|
161
|
+
string,
|
|
162
|
+
null,
|
|
163
|
+
1
|
|
164
|
+
])[];
|
|
165
|
+
} | undefined;
|
|
166
|
+
bsr?: {
|
|
167
|
+
unit: "rank";
|
|
168
|
+
category: {
|
|
169
|
+
id: number;
|
|
170
|
+
name: string;
|
|
171
|
+
} | null;
|
|
172
|
+
points: ([
|
|
173
|
+
string,
|
|
174
|
+
number | null
|
|
175
|
+
] | [
|
|
176
|
+
string,
|
|
177
|
+
null,
|
|
178
|
+
1
|
|
179
|
+
])[];
|
|
180
|
+
} | undefined;
|
|
139
181
|
};
|
|
182
|
+
marketplaceId: string;
|
|
183
|
+
asin: string;
|
|
184
|
+
metric: "bsrMain";
|
|
185
|
+
categoryNames: Record<string, string>;
|
|
140
186
|
points: {
|
|
141
187
|
categoryId: number;
|
|
142
|
-
categoryName: string;
|
|
188
|
+
categoryName: string | null;
|
|
143
189
|
observedAt: string;
|
|
144
190
|
keepaMinutes: number;
|
|
145
191
|
value: number | null;
|
|
146
192
|
isMissing: boolean;
|
|
147
193
|
}[];
|
|
194
|
+
collecting: boolean;
|
|
195
|
+
syncTriggered: boolean;
|
|
148
196
|
};
|
|
149
197
|
meta: object;
|
|
150
198
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rankwrangler/http-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Typed tRPC client for RankWrangler",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"default": "./dist/index.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"files": [
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
15
18
|
"publishConfig": {
|
|
16
19
|
"access": "public"
|
|
17
20
|
},
|