feat: whole shops listed on IMVU, and GET /imports/available
Whole-shop grants now import the shop's products, not only those people asked for. The hub lists the shop on IMVU's public API (general-rated products) when the grant is accepted, daily after, and on "List the shop again". Each listing keeps the products' info and queues what isn't imported yet, less exclusions. IMVU's small pages overlap and miss products, so the hub asks for pages of 1000 and drops repeats. GET /imports/available tells the proxy what T5DE has of IMVU products and shops, from what the hub knows only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
8f6dacba10
commit
b4eed85bd6
15 files changed
+4954
-20
No files matched your search
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "import_grant" ADD COLUMN "shop_listed_at" timestamp with time zone;--> statement-breakpoint
|
||||
ALTER TABLE "import_grant" ADD COLUMN "shop_listed" integer DEFAULT 0 NOT NULL;
|
||||
File diff suppressed because it is too large.
Load diff
@@ -134,6 +134,13 @@
|
||||
"when": 1794078168609,
|
||||
"tag": "0018_recorded_grants",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 19,
|
||||
"version": "7",
|
||||
"when": 1794092472616,
|
||||
"tag": "0019_shop_listing",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -753,6 +753,10 @@ export const importGrant = pgTable(
|
||||
// Recorded: proof without an account, a code the creator put in their IMVU tagline, and when the hub saw it.
|
||||
proofCode: text("proof_code"),
|
||||
proofCheckedAt: timestamp("proof_checked_at", { withTimezone: true }),
|
||||
// Scope "shop": when the hub last listed the shop's products on IMVU, and how many it listed (general-rated only:
|
||||
// IMVU lists no Access Pass products to the signed out).
|
||||
shopListedAt: timestamp("shop_listed_at", { withTimezone: true }),
|
||||
shopListed: integer("shop_listed").notNull().default(0),
|
||||
// "pending" (the catalog's team hasn't accepted), "active", "declined", "suspended", "withdrawn".
|
||||
status: text("status").notNull().default("pending"),
|
||||
statusReason: text("status_reason").notNull().default(""),
|
||||
|
||||
Reference in new issue
Block a user