Files

32 lines
1.4 KiB
Bash

# GEMINI_API_KEY: Required for Gemini AI API calls.
# AI Studio automatically injects this at runtime from user secrets.
# Users configure this via the Secrets panel in the AI Studio UI.
GEMINI_API_KEY="MY_GEMINI_API_KEY"
# Business Central OAuth client credentials
BC_TENANT_ID="MY_BC_TENANT_ID"
BC_CLIENT_ID="MY_BC_CLIENT_ID"
BC_CLIENT_SECRET="MY_BC_CLIENT_SECRET"
BC_COMPANY_ID="MY_BC_COMPANY_ID"
BC_WRITE_METHOD="PATCH"
BC_WRITE_URL_TEMPLATE="{{itemsUrl}}('{{itemNo}}')"
BC_WRITE_BODY_TEMPLATE='{"cpnpNo":"{{cpnpNo}}"}'
BC_ITEMS_WRITE_METHOD="PATCH"
BC_ITEMS_WRITE_URL_TEMPLATE="{{itemsUrl}}('{{itemNo}}')"
BC_ITEMS_WRITE_BODY_TEMPLATE=''
BC_UOM_WRITE_METHOD="PATCH"
BC_UOM_CODE="OUTER"
BC_UOM_WRITE_URL_TEMPLATE="{{itemUnitsOfMeasureUrl}}(itemNo='{{itemNo}}',code='{{itemUnitsCode}}')"
BC_UOM_WRITE_BODY_TEMPLATE=''
# Optional: endpoint for creating missing CategorizationCode values before item PATCH.
# Business Central must expose the related Categorization table as an insertable API/OData entity.
BC_CATEGORIZATION_WRITE_METHOD="POST"
BC_CATEGORIZATION_WRITE_URL_TEMPLATE=""
BC_CATEGORIZATION_WRITE_BODY_TEMPLATE='{"code":"{{categorizationCode}}","description":"{{categorizationCode}}"}'
# APP_URL: The URL where this applet is hosted.
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
# Used for self-referential links, OAuth callbacks, and API endpoints.
APP_URL="MY_APP_URL"