@jytextiles/medusa-plugin-faire-store-sync 0.2.3 → 0.2.5
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/.medusa/server/src/admin/index.js +64 -9
- package/.medusa/server/src/admin/index.mjs +66 -11
- package/.medusa/server/src/modules/faire-sync/migrations/Migration20260709154411.js +18 -0
- package/.medusa/server/src/modules/faire-sync/migrations/Migration20260709161201.js +14 -0
- package/.medusa/server/src/modules/faire-sync/models/faire-sync-account.js +5 -1
- package/.medusa/server/src/modules/faire-sync/service.js +36 -15
- package/.medusa/server/src/workflows/ingest-faire-orders-bulk.js +2 -2
- package/.medusa/server/src/workflows/sync-product-to-faire.js +3 -2
- package/package.json +1 -1
- package/src/admin/routes/settings/faire/page.tsx +78 -8
- package/src/modules/faire-sync/migrations/.snapshot-medusa-faire-sync.json +25 -237
- package/src/modules/faire-sync/migrations/Migration20260709154411.ts +19 -0
- package/src/modules/faire-sync/migrations/Migration20260709161201.ts +13 -0
- package/src/modules/faire-sync/models/faire-sync-account.ts +4 -0
- package/src/modules/faire-sync/service.ts +39 -17
- package/src/workflows/ingest-faire-orders-bulk.ts +1 -1
- package/src/workflows/sync-product-to-faire.ts +3 -1
- package/.medusa/server/src/modules/faire-sync/models/faire-webhook-event.js +0 -21
- package/src/modules/faire-sync/models/faire-webhook-event.ts +0 -20
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { model } from "@medusajs/framework/utils"
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Durable record of an inbound Faire webhook delivery. `webhook_id` is the
|
|
5
|
-
* delivery id Faire sends (unique) so retries are idempotent.
|
|
6
|
-
*/
|
|
7
|
-
const FaireWebhookEvent = model.define("faire_webhook_event", {
|
|
8
|
-
id: model.id().primaryKey(),
|
|
9
|
-
webhook_id: model.text().unique(),
|
|
10
|
-
event_type: model.text(),
|
|
11
|
-
brand_id: model.text().nullable(),
|
|
12
|
-
resource_url: model.text().nullable(),
|
|
13
|
-
payload: model.json().nullable(),
|
|
14
|
-
resource: model.json().nullable(),
|
|
15
|
-
processed: model.boolean().default(false),
|
|
16
|
-
error: model.text().nullable(),
|
|
17
|
-
received_at: model.dateTime().nullable(),
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
export default FaireWebhookEvent
|