api.services.ultimate3000.pipeline

What happens after a client requests an offer (Celery task ultimate3000_offer): picture, Airtable, e-mails.

Order matters: the picture first (the e-mails show it, the Airtable record attaches it), then Airtable (the team e-mail links to the record), then n8n. Airtable failures raise, so Celery retries the task; an estimation already synced is never created twice.

Attributes

Functions

client_link(client) → str

image_url(est_id) → str

link_payload(client) → dict[str, Any]

offer_payload(est, client, numero, airtable_url) → dict[str, Any]

process_offer(store, est_id) → dict[str, Any]

Module Contents

api.services.ultimate3000.pipeline.logger
api.services.ultimate3000.pipeline.PERSON_KEYS = ('prenom', 'nom', 'mobile', 'telephone_fixe', 'poste')
api.services.ultimate3000.pipeline.COMPANY_KEYS
api.services.ultimate3000.pipeline.image_url(est_id: str) → str
api.services.ultimate3000.pipeline.offer_payload(est: dict[str, Any], client: dict[str, Any], numero: int, airtable_url: str | None) → dict[str, Any]
api.services.ultimate3000.pipeline.process_offer(store: api.services.ultimate3000.store.Store, est_id: str) → dict[str, Any]