@dukkan.one/app-sdk/contract
Runtime constants generated from the platform's OpenAPI document: topics, scopes, statuses, the transition matrix and the dated API revision.
- الحزمة
@dukkan.one/app-sdk@0.3.0- مراجعة الواجهة
2026-09-10- الاستيراد
import { … } from "@dukkan.one/app-sdk/contract"
في هذه الصفحة
- الأنواع
- AppScope
- InventoryMovementReason
- OrderStatus
- PaymentStatus
- SettableOrderStatus
- WebhookTopic
- الثوابت
- APP_PII_SCOPES
- APP_SCOPES
- INVENTORY_MOVEMENT_REASONS
- ORDER_STATUS_TRANSITIONS
- ORDER_STATUSES
- PAYMENT_STATUSES
- PLATFORM_API_VERSION
- SETTABLE_ORDER_STATUSES
- TOPIC_PAYLOAD_SCHEMA
- TOPIC_REQUIRED_SCOPE
- WEBHOOK_TOPICS
الأنواع
AppScope#
InventoryMovementReason#
OrderStatus#
PaymentStatus#
SettableOrderStatus#
WebhookTopic#
الثوابت
APP_PII_SCOPES#
Scopes that unlock customer contact PII; the portal lets only DPA-accepted developers request them.
APP_SCOPES#
Every scope an app can request, in the platform's canonical order.
INVENTORY_MOVEMENT_REASONS#
Accepted reason values of POST /inventory/movements.
ORDER_STATUS_TRANSITIONS#
Transitions an app may request through PATCH /orders/{id}/status, per current status.
ORDER_STATUSES#
Every order status the platform reports.
PAYMENT_STATUSES#
Every payment_status value: a projection of the payments ledger, never set directly.
PLATFORM_API_VERSION#
Dated v1 revision this SDK was generated against (X-Dukkan-Api-Version).
SETTABLE_ORDER_STATUSES#
The statuses an app may set through PATCH /orders/{id}/status.
TOPIC_PAYLOAD_SCHEMA#
Component schema name carrying each topic's data shape.
TOPIC_REQUIRED_SCOPE#
Read scope an install must hold to receive a topic; null for lifecycle topics.
WEBHOOK_TOPICS#
Every topic an app can subscribe to, from x-dukkan-topic-scopes.