@alfadocs/ui-kit-debug 1.68.0 → 1.70.0
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/dist/_chunks/{alia-sidebar-B06ZSOaF.js → alia-sidebar-DEMMoefU.js} +3 -3
- package/dist/_chunks/{alia-sidebar-B06ZSOaF.js.map → alia-sidebar-DEMMoefU.js.map} +1 -1
- package/dist/_chunks/{anamnesis-card-CsUBOG32.js → anamnesis-card-Bey9qQu4.js} +2 -2
- package/dist/_chunks/{anamnesis-card-CsUBOG32.js.map → anamnesis-card-Bey9qQu4.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-rows-CNK0fIJk.js → anamnesis-summary-rows-rNwSrNWZ.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-CNK0fIJk.js.map → anamnesis-summary-rows-rNwSrNWZ.js.map} +1 -1
- package/dist/_chunks/{appointment-peek-D5XCfYKu.js → appointment-peek-CpcqB8oO.js} +2 -2
- package/dist/_chunks/{appointment-peek-D5XCfYKu.js.map → appointment-peek-CpcqB8oO.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-CYK1M83j.js → calendar-workspace-Ct8_454k.js} +3 -3
- package/dist/_chunks/{calendar-workspace-CYK1M83j.js.map → calendar-workspace-Ct8_454k.js.map} +1 -1
- package/dist/_chunks/{chat-message-Be-9vIIQ.js → chat-message-C2VXQMoB.js} +2 -2
- package/dist/_chunks/{chat-message-Be-9vIIQ.js.map → chat-message-C2VXQMoB.js.map} +1 -1
- package/dist/_chunks/{code-block-vwEv1jEa.js → code-block-RSKdF3E-.js} +35 -35
- package/dist/_chunks/code-block-RSKdF3E-.js.map +1 -0
- package/dist/_chunks/{connection-status--wYsgreh.js → connection-status-BOZC5QU5.js} +2 -2
- package/dist/_chunks/{connection-status--wYsgreh.js.map → connection-status-BOZC5QU5.js.map} +1 -1
- package/dist/_chunks/{description-list-Q8640NHu.js → description-list-DQQ2OA_t.js} +68 -66
- package/dist/_chunks/description-list-DQQ2OA_t.js.map +1 -0
- package/dist/_chunks/{optical-prescription-ulXnDbBe.js → optical-prescription-D5c7FBlT.js} +2 -2
- package/dist/_chunks/{optical-prescription-ulXnDbBe.js.map → optical-prescription-D5c7FBlT.js.map} +1 -1
- package/dist/_chunks/{patient-details-C4Dyo7Ck.js → patient-details-qWOsn1MX.js} +3 -3
- package/dist/_chunks/{patient-details-C4Dyo7Ck.js.map → patient-details-qWOsn1MX.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-DROvUkFu.js → patient-field-row-CAl5ydtX.js} +2 -2
- package/dist/_chunks/{patient-field-row-DROvUkFu.js.map → patient-field-row-CAl5ydtX.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-CAimxbuI.js → patient-summary-card-BhuRh9AE.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CAimxbuI.js.map → patient-summary-card-BhuRh9AE.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-0DjQgVgX.js → payment-request-card-bysjRZrP.js} +2 -2
- package/dist/_chunks/{payment-request-card-0DjQgVgX.js.map → payment-request-card-bysjRZrP.js.map} +1 -1
- package/dist/_chunks/{reviews-panel-CosDZyow.js → reviews-panel-sbsVmmCA.js} +2 -2
- package/dist/_chunks/{reviews-panel-CosDZyow.js.map → reviews-panel-sbsVmmCA.js.map} +1 -1
- package/dist/_chunks/{streaming-text-zFViGexf.js → streaming-text-DbqKTsmj.js} +2 -2
- package/dist/_chunks/{streaming-text-zFViGexf.js.map → streaming-text-DbqKTsmj.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-CUGfE0hV.js → use-appointment-details-read-1gjZuup4.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-CUGfE0hV.js.map → use-appointment-details-read-1gjZuup4.js.map} +1 -1
- package/dist/_chunks/workflow-webhook-action-D6K7Jgc2.js +832 -0
- package/dist/_chunks/workflow-webhook-action-D6K7Jgc2.js.map +1 -0
- package/dist/agent-catalog.json +110 -1
- package/dist/agent-i18n/en.json +10 -0
- package/dist/components/_shared/code-block.d.ts +6 -0
- package/dist/components/_shared/code-block.d.ts.map +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/description-list/description-list.d.ts.map +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +67 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +67 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +67 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +67 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +67 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +67 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +67 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +67 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +67 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +67 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +67 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +67 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +67 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +67 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +67 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +67 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +67 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +67 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +67 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +67 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +67 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +67 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +67 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +67 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +67 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +67 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +67 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +67 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +67 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +67 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +67 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +67 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +67 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +67 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +67 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +67 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +120 -117
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +67 -0
- package/dist/locales/de.json +67 -0
- package/dist/locales/el.json +67 -0
- package/dist/locales/en.json +67 -0
- package/dist/locales/es.json +67 -0
- package/dist/locales/fr.json +67 -0
- package/dist/locales/hi.json +67 -0
- package/dist/locales/it.json +67 -0
- package/dist/locales/ja.json +67 -0
- package/dist/locales/nl.json +67 -0
- package/dist/locales/pl.json +67 -0
- package/dist/locales/pt.json +67 -0
- package/dist/locales/ro.json +67 -0
- package/dist/locales/ru.json +67 -0
- package/dist/locales/sq.json +67 -0
- package/dist/locales/sv.json +67 -0
- package/dist/locales/tr.json +67 -0
- package/dist/locales/zh.json +67 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.d.ts +3 -0
- package/dist/patterns/workflow-webhook-action/index.d.ts.map +1 -0
- package/dist/patterns/workflow-webhook-action/index.js +6 -0
- package/dist/patterns/workflow-webhook-action/index.js.map +1 -0
- package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts +119 -0
- package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts.map +1 -0
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/code-block-vwEv1jEa.js.map +0 -1
- package/dist/_chunks/description-list-Q8640NHu.js.map +0 -1
package/dist/locales/tr.json
CHANGED
|
@@ -5613,5 +5613,72 @@
|
|
|
5613
5613
|
"login": "Oturum aç",
|
|
5614
5614
|
"registerDoctor": "Doktor olarak kaydol",
|
|
5615
5615
|
"registerPatient": "Hasta olarak kaydol"
|
|
5616
|
+
},
|
|
5617
|
+
"workflowWebhookAction": {
|
|
5618
|
+
"intro": "Bir hasta bu adıma ulaştığında Alfadocs, hastanın kimliğini aşağıdaki adrese gönderir. Link gibi uygulamalar bunu hastayı bulmak için kullanır.",
|
|
5619
|
+
"url": "Web adresi (URL)",
|
|
5620
|
+
"urlDescription": "Bağladığınız uygulamadan kopyalayın. https:// ile başlar.",
|
|
5621
|
+
"urlRequired": "Web adresini girin.",
|
|
5622
|
+
"urlInvalid": "Tam bir web adresi girin, örneğin https://example.com/webhook.",
|
|
5623
|
+
"urlHttps": "Adres https:// ile başlamalıdır.",
|
|
5624
|
+
"urlCredentials": "Kullanıcı adını ve parolayı adresten kaldırın.",
|
|
5625
|
+
"secret": "İmzalama anahtarı",
|
|
5626
|
+
"secretDescription": "Uygulama, her mesajın Alfadocs’tan geldiğini doğrulamak için bunu kullanır. Uygulamanın verdiği anahtarı yapıştırın veya yeni bir tane oluşturun.",
|
|
5627
|
+
"secretSavedDescription": "Bir anahtar zaten kayıtlı. Mevcut anahtarı korumak için bu alanı boş bırakın.",
|
|
5628
|
+
"secretRequired": "Bir imzalama anahtarı girin veya oluşturun.",
|
|
5629
|
+
"generate": "Anahtar oluştur",
|
|
5630
|
+
"testDescription": "Adresi ve anahtarı kontrol etmek için bir test gönderin. Örnek kimlikler kullanır, hasta verisi içermez.",
|
|
5631
|
+
"sendTest": "Test gönder",
|
|
5632
|
+
"testSent": "Test gönderildi. Uygulama {{status}} yanıtı verdi.",
|
|
5633
|
+
"testCheckSecret": "Uygulama {{status}} yanıtı verdi. Anahtarın uygulamadakiyle aynı olduğunu kontrol edin.",
|
|
5634
|
+
"testRejected": "Uygulama {{status}} yanıtı verdi. Adresi ve uygulamanın ayarlarını kontrol edin.",
|
|
5635
|
+
"testUnreachable": "Adrese ulaşılamadı. Doğru ve herkese açık olduğunu kontrol edin.",
|
|
5636
|
+
"testFailed": "Test gönderilemedi. Tekrar deneyin.",
|
|
5637
|
+
"generatedNotice": "Bu anahtarı şimdi uygulamaya kopyalayın. Kaydettikten sonra Alfadocs onu gizli tutar.",
|
|
5638
|
+
"secretGenerated": "Yeni anahtar oluşturuldu. Uygulamaya kopyalayın.",
|
|
5639
|
+
"legalBasis": "Kliniğin hasta verilerini bu adresle paylaşmak için hukuki bir dayanağı olduğunu onaylıyorum.",
|
|
5640
|
+
"legalBasisRequired": "Adımı kaydetmek için bu kutuyu işaretleyin.",
|
|
5641
|
+
"advanced": "Gelişmiş",
|
|
5642
|
+
"advancedDescription": "Her mesajla birlikte gönderilen ek parametreler. Link dahil çoğu uygulamanın buna ihtiyacı yoktur.",
|
|
5643
|
+
"parameterCount": "Parametreler: {{total}}",
|
|
5644
|
+
"parametersLegend": "Ek parametreler",
|
|
5645
|
+
"parameterName": "Ad",
|
|
5646
|
+
"parameterValue": "Değer",
|
|
5647
|
+
"parameterNameOf": "Parametre {{number}} için ad",
|
|
5648
|
+
"parameterValueOf": "Parametre {{number}} için değer",
|
|
5649
|
+
"addParameter": "Parametre ekle",
|
|
5650
|
+
"removeParameter": "{{number}}. parametreyi kaldır",
|
|
5651
|
+
"insertDetail": "Değişken ekle",
|
|
5652
|
+
"placeholderInserted": "Eklendi: {{detail}}",
|
|
5653
|
+
"parameterNameRequired": "Bu değer için bir ad girin.",
|
|
5654
|
+
"parameterNameDuplicate": "Bu ad zaten kullanılıyor. Her adı yalnızca bir kez kullanın.",
|
|
5655
|
+
"variablesHeading": "Bir değerde kullanabileceğiniz değişkenler",
|
|
5656
|
+
"variablesDescription": "Alfadocs, göndermeden önce her birini hastanın bilgileriyle değiştirir.",
|
|
5657
|
+
"variableSalutation": "Hitap",
|
|
5658
|
+
"variableFirstName": "Ad",
|
|
5659
|
+
"variableLastName": "Soyad",
|
|
5660
|
+
"sentHeading": "Alfadocs ne gönderir",
|
|
5661
|
+
"sentDescription": "Her mesaj bu alanları içerir. Örnek, ek parametrelerinizi de içerir.",
|
|
5662
|
+
"sent": {
|
|
5663
|
+
"patientId": "Hastanın kimliği. Link bunu hastayı bulmak için kullanır.",
|
|
5664
|
+
"practiceId": "Kliniğin kimliği.",
|
|
5665
|
+
"workflowId": "İş akışının kimliği.",
|
|
5666
|
+
"workflowActionId": "Bu adımın kimliği.",
|
|
5667
|
+
"workflowEnrollmentId": "Bu hastanın iş akışındaki ilerleyişinin kimliği.",
|
|
5668
|
+
"sentAt": "Mesajın gönderildiği zaman.",
|
|
5669
|
+
"idempotencyKey": "Her yeniden denemede aynıdır; böylece uygulama tekrarları yok sayabilir.",
|
|
5670
|
+
"parameters": "Varsa yukarıdaki ek parametreler."
|
|
5671
|
+
},
|
|
5672
|
+
"headersHeading": "Uygulama anahtarı nasıl doğrular",
|
|
5673
|
+
"headersDescription": "Her mesaj bu başlıkları (header) içerir. Uygulama imzayı anahtarla yeniden hesaplar ve mesajı yalnızca eşleşirlerse kabul eder.",
|
|
5674
|
+
"headers": {
|
|
5675
|
+
"signature": "sha256= ve ardından zaman damgası, bir nokta ve mesaj gövdesinin anahtarla oluşturulmuş HMAC-SHA256 değeri.",
|
|
5676
|
+
"timestamp": "Mesajın imzalandığı zaman, milisaniye cinsinden.",
|
|
5677
|
+
"idempotency": "idempotencyKey ile aynı değer."
|
|
5678
|
+
},
|
|
5679
|
+
"copySecret": "Anahtarı kopyala",
|
|
5680
|
+
"bodyHeading": "Mesaj gövdesi",
|
|
5681
|
+
"copyBody": "Örnek gövdeyi kopyala",
|
|
5682
|
+
"copyHeaders": "Örnek başlıkları kopyala"
|
|
5616
5683
|
}
|
|
5617
5684
|
}
|
package/dist/locales/zh.json
CHANGED
|
@@ -5613,5 +5613,72 @@
|
|
|
5613
5613
|
"login": "登录",
|
|
5614
5614
|
"registerDoctor": "注册为医生",
|
|
5615
5615
|
"registerPatient": "注册为患者"
|
|
5616
|
+
},
|
|
5617
|
+
"workflowWebhookAction": {
|
|
5618
|
+
"intro": "每当患者到达此步骤时,Alfadocs 会将患者 ID 发送到下方地址。Link 等应用会用它来查找该患者。",
|
|
5619
|
+
"url": "网址(URL)",
|
|
5620
|
+
"urlDescription": "请从您要连接的应用中复制。它以 https:// 开头。",
|
|
5621
|
+
"urlRequired": "请输入网址。",
|
|
5622
|
+
"urlInvalid": "请输入完整网址,例如 https://example.com/webhook。",
|
|
5623
|
+
"urlHttps": "地址必须以 https:// 开头。",
|
|
5624
|
+
"urlCredentials": "请从地址中删除用户名和密码。",
|
|
5625
|
+
"secret": "签名密钥",
|
|
5626
|
+
"secretDescription": "应用用它来验证每条消息确实来自 Alfadocs。请粘贴应用提供的密钥,或自行生成一个。",
|
|
5627
|
+
"secretSavedDescription": "已保存密钥。留空即可保留现有密钥。",
|
|
5628
|
+
"secretRequired": "请输入或生成签名密钥。",
|
|
5629
|
+
"generate": "生成密钥",
|
|
5630
|
+
"testDescription": "发送测试,检查地址和密钥。测试使用虚构的 ID,不含任何患者数据。",
|
|
5631
|
+
"sendTest": "发送测试",
|
|
5632
|
+
"testSent": "测试已发送。应用返回了 {{status}}。",
|
|
5633
|
+
"testCheckSecret": "应用返回了 {{status}}。请检查密钥是否与应用中的一致。",
|
|
5634
|
+
"testRejected": "应用返回了 {{status}}。请检查地址和应用的设置。",
|
|
5635
|
+
"testUnreachable": "无法访问该地址。请检查地址是否正确且可公开访问。",
|
|
5636
|
+
"testFailed": "无法发送测试。请重试。",
|
|
5637
|
+
"generatedNotice": "请立即将此密钥复制到应用中。保存后,Alfadocs 将不再显示它。",
|
|
5638
|
+
"secretGenerated": "已生成新密钥。请将其复制到应用中。",
|
|
5639
|
+
"legalBasis": "我确认诊所具有向此地址共享患者数据的合法依据。",
|
|
5640
|
+
"legalBasisRequired": "请勾选此框以保存该步骤。",
|
|
5641
|
+
"advanced": "高级",
|
|
5642
|
+
"advancedDescription": "随每条消息发送的额外参数。大多数应用(包括 Link)都不需要。",
|
|
5643
|
+
"parameterCount": "参数:{{total}}",
|
|
5644
|
+
"parametersLegend": "额外参数",
|
|
5645
|
+
"parameterName": "名称",
|
|
5646
|
+
"parameterValue": "值",
|
|
5647
|
+
"parameterNameOf": "参数 {{number}} 的名称",
|
|
5648
|
+
"parameterValueOf": "参数 {{number}} 的值",
|
|
5649
|
+
"addParameter": "添加参数",
|
|
5650
|
+
"removeParameter": "删除参数 {{number}}",
|
|
5651
|
+
"insertDetail": "插入变量",
|
|
5652
|
+
"placeholderInserted": "已插入:{{detail}}",
|
|
5653
|
+
"parameterNameRequired": "请为此值输入名称。",
|
|
5654
|
+
"parameterNameDuplicate": "此名称已被使用。每个名称只能使用一次。",
|
|
5655
|
+
"variablesHeading": "可在值中使用的变量",
|
|
5656
|
+
"variablesDescription": "发送时,Alfadocs 会将每个变量替换为患者的信息。",
|
|
5657
|
+
"variableSalutation": "称呼",
|
|
5658
|
+
"variableFirstName": "名字",
|
|
5659
|
+
"variableLastName": "姓氏",
|
|
5660
|
+
"sentHeading": "Alfadocs 发送的内容",
|
|
5661
|
+
"sentDescription": "每条消息都包含这些字段。示例中也包含您的额外参数。",
|
|
5662
|
+
"sent": {
|
|
5663
|
+
"patientId": "患者的 ID。Link 用它来查找患者。",
|
|
5664
|
+
"practiceId": "诊所的 ID。",
|
|
5665
|
+
"workflowId": "工作流的 ID。",
|
|
5666
|
+
"workflowActionId": "此步骤的 ID。",
|
|
5667
|
+
"workflowEnrollmentId": "该患者在工作流中这次运行的 ID。",
|
|
5668
|
+
"sentAt": "消息的发送时间。",
|
|
5669
|
+
"idempotencyKey": "每次重试都相同,因此应用可以忽略重复消息。",
|
|
5670
|
+
"parameters": "上方的额外参数(如有)。"
|
|
5671
|
+
},
|
|
5672
|
+
"headersHeading": "应用如何校验密钥",
|
|
5673
|
+
"headersDescription": "每条消息都带有这些标头。应用用密钥重新计算签名,只有两者一致才会接受该消息。",
|
|
5674
|
+
"headers": {
|
|
5675
|
+
"signature": "sha256= 后接 HMAC-SHA256 值,由时间戳、一个英文句点和消息正文经密钥计算得出。",
|
|
5676
|
+
"timestamp": "消息签名的时间,单位为毫秒。",
|
|
5677
|
+
"idempotency": "与 idempotencyKey 的值相同。"
|
|
5678
|
+
},
|
|
5679
|
+
"copySecret": "复制密钥",
|
|
5680
|
+
"bodyHeading": "消息体",
|
|
5681
|
+
"copyBody": "复制示例消息体",
|
|
5682
|
+
"copyHeaders": "复制示例标头"
|
|
5616
5683
|
}
|
|
5617
5684
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-
|
|
1
|
+
import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-rNwSrNWZ.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Anamnesis,
|
|
4
4
|
i as AnamnesisConfigEditor,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-
|
|
1
|
+
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-Ct8_454k.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CALENDAR_PREFERENCE_KEYS,
|
|
4
4
|
r as CalendarDataProvider,
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { WorkflowWebhookAction, WORKFLOW_WEBHOOK_ACTION_FIELDS, } from './workflow-webhook-action';
|
|
2
|
+
export type { WorkflowWebhookActionProps, WorkflowWebhookActionField, WorkflowWebhookActionFieldNames, WorkflowWebhookActionValues, WorkflowWebhookActionInitialValues, WorkflowWebhookActionErrors, WorkflowWebhookActionPlaceholder, WorkflowWebhookParameterValue, WorkflowWebhookTestResult, } from './workflow-webhook-action';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/workflow-webhook-action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,EAC3B,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
/** The fields of the step, in the order they appear. */
|
|
3
|
+
export declare const WORKFLOW_WEBHOOK_ACTION_FIELDS: readonly ["url", "secret", "legalBasisConfirmed", "parameters"];
|
|
4
|
+
export type WorkflowWebhookActionField = (typeof WORKFLOW_WEBHOOK_ACTION_FIELDS)[number];
|
|
5
|
+
/** One parameter value as the platform stores it: a flat scalar. */
|
|
6
|
+
export type WorkflowWebhookParameterValue = string | number | boolean | null;
|
|
7
|
+
/** What the step holds now. Mirrors the platform's
|
|
8
|
+
* `SendHttpRequestWorkflowActionDto`. */
|
|
9
|
+
export interface WorkflowWebhookActionValues {
|
|
10
|
+
/** Where the message goes: platform `url`. */
|
|
11
|
+
url: string;
|
|
12
|
+
/**
|
|
13
|
+
* A new signing secret: platform `secret`, stored encrypted as
|
|
14
|
+
* `encryptedSecret`. Empty means "keep the saved one". The server never
|
|
15
|
+
* sends a saved secret back.
|
|
16
|
+
*/
|
|
17
|
+
secret: string;
|
|
18
|
+
/** The extra parameters: platform `parameters`, a flat map of scalars. */
|
|
19
|
+
parameters: Record<string, WorkflowWebhookParameterValue>;
|
|
20
|
+
/** The consent box: platform `legalBasisConfirmed`. */
|
|
21
|
+
legalBasisConfirmed: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** Values to show when the fields open. There is no secret here, on
|
|
24
|
+
* purpose: a saved secret is never sent back to the browser. */
|
|
25
|
+
export type WorkflowWebhookActionInitialValues = Partial<Omit<WorkflowWebhookActionValues, 'secret'>>;
|
|
26
|
+
/** Messages from the server, already translated, one per field. */
|
|
27
|
+
export type WorkflowWebhookActionErrors = Partial<Record<WorkflowWebhookActionField, string>>;
|
|
28
|
+
/** The host's own form field names, for a native form post. */
|
|
29
|
+
export type WorkflowWebhookActionFieldNames = Record<WorkflowWebhookActionField, string>;
|
|
30
|
+
/** A variable the user can insert into a parameter value. */
|
|
31
|
+
export interface WorkflowWebhookActionPlaceholder {
|
|
32
|
+
/** The code the server replaces, such as `[[NOME]]`. */
|
|
33
|
+
value: string;
|
|
34
|
+
/** What the user reads, translated, such as "First name". */
|
|
35
|
+
label: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* What a test message got back, as the host's server saw it.
|
|
39
|
+
* `answered`: the app replied with this HTTP status. `unreachable`: no
|
|
40
|
+
* reply at all (the address does not resolve, refuses, times out or has
|
|
41
|
+
* no valid certificate). `message` replaces the fields' own words, already
|
|
42
|
+
* translated, when the server knows better.
|
|
43
|
+
*/
|
|
44
|
+
export type WorkflowWebhookTestResult = {
|
|
45
|
+
outcome: 'answered';
|
|
46
|
+
status: number;
|
|
47
|
+
message?: string;
|
|
48
|
+
} | {
|
|
49
|
+
outcome: 'unreachable';
|
|
50
|
+
message?: string;
|
|
51
|
+
};
|
|
52
|
+
export interface WorkflowWebhookActionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> {
|
|
53
|
+
/**
|
|
54
|
+
* Host content above the fields, such as the plan notice ("Included in
|
|
55
|
+
* the trial and the Elite plans"). Nothing in it is posted.
|
|
56
|
+
*/
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Values to show when the fields open. Read once. Parameters keep the
|
|
60
|
+
* order and the names they are given; a number beyond
|
|
61
|
+
* `Number.MAX_SAFE_INTEGER` has already lost precision by the time it
|
|
62
|
+
* arrives here.
|
|
63
|
+
*/
|
|
64
|
+
initialValues?: WorkflowWebhookActionInitialValues;
|
|
65
|
+
/**
|
|
66
|
+
* True when the step already has a secret. The secret field is then
|
|
67
|
+
* optional: left empty, the saved secret stays.
|
|
68
|
+
*/
|
|
69
|
+
hasSavedSecret?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Messages from the server, already translated. A field's message shows
|
|
72
|
+
* until the user changes that field; when the fields open with
|
|
73
|
+
* messages, focus goes to the first one. A message on `parameters`
|
|
74
|
+
* opens the Advanced section.
|
|
75
|
+
*
|
|
76
|
+
* A React host keeps `errors` in state: each new object is a new answer
|
|
77
|
+
* from the server, shown even when its words match the last one.
|
|
78
|
+
*/
|
|
79
|
+
errors?: WorkflowWebhookActionErrors;
|
|
80
|
+
/**
|
|
81
|
+
* For a native form post: the host's own field names. The parameters
|
|
82
|
+
* post as one JSON object, or an empty string when there are none. The
|
|
83
|
+
* consent box posts `1` when ticked and nothing when not. The fields
|
|
84
|
+
* must sit inside the host's `<form>`.
|
|
85
|
+
*/
|
|
86
|
+
fieldNames?: WorkflowWebhookActionFieldNames;
|
|
87
|
+
/**
|
|
88
|
+
* The variables the user can insert into a parameter value, listed in
|
|
89
|
+
* Advanced with a copy button each. Default: the three the platform
|
|
90
|
+
* replaces in a webhook step (salutation, first name, last name), with
|
|
91
|
+
* the kit's own labels. An empty list hides the menu and the list.
|
|
92
|
+
*/
|
|
93
|
+
placeholders?: ReadonlyArray<WorkflowWebhookActionPlaceholder>;
|
|
94
|
+
/**
|
|
95
|
+
* Shows "Send test". Called with the values when the user asks for a
|
|
96
|
+
* test, once the address and the secret pass their checks; the host's
|
|
97
|
+
* server sends a sample message (invented IDs, no patient data, marked
|
|
98
|
+
* as a test) signed with that secret, or with the saved one when
|
|
99
|
+
* `secret` is empty, and resolves with what came back. A rejected
|
|
100
|
+
* promise reads as "the test could not be sent". Without it, no button.
|
|
101
|
+
*/
|
|
102
|
+
onSendTest?: (values: WorkflowWebhookActionValues) => Promise<WorkflowWebhookTestResult>;
|
|
103
|
+
/** For React hosts: called with the values after each change. */
|
|
104
|
+
onValueChange?: (values: WorkflowWebhookActionValues) => void;
|
|
105
|
+
/**
|
|
106
|
+
* How the "What Alfadocs sends" card lays out the message body and its
|
|
107
|
+
* headers. `two-column` (default): side by side once the fields are
|
|
108
|
+
* 720px wide; narrower, as on a phone, one above the other.
|
|
109
|
+
* `one-column`: always one above the other, for a narrow card or a side
|
|
110
|
+
* panel.
|
|
111
|
+
*/
|
|
112
|
+
layout?: 'two-column' | 'one-column';
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The fields of a workflow's webhook step. Mount it inside the host's
|
|
116
|
+
* form, between the page title and the Save button.
|
|
117
|
+
*/
|
|
118
|
+
export declare const WorkflowWebhookAction: import("react").ForwardRefExoticComponent<WorkflowWebhookActionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
119
|
+
//# sourceMappingURL=workflow-webhook-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-webhook-action.d.ts","sourceRoot":"","sources":["../../../src/patterns/workflow-webhook-action/workflow-webhook-action.tsx"],"names":[],"mappings":"AAaA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuBf,wDAAwD;AACxD,eAAO,MAAM,8BAA8B,iEAKjC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,oEAAoE;AACpE,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAE7E;0CAC0C;AAC1C,MAAM,WAAW,2BAA2B;IAC1C,8CAA8C;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;IAC1D,uDAAuD;IACvD,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;iEACiE;AACjE,MAAM,MAAM,kCAAkC,GAAG,OAAO,CACtD,IAAI,CAAC,2BAA2B,EAAE,QAAQ,CAAC,CAC5C,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,MAAM,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAC3C,CAAC;AAEF,+DAA+D;AAC/D,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAClD,0BAA0B,EAC1B,MAAM,CACP,CAAC;AAEF,6DAA6D;AAC7D,MAAM,WAAW,gCAAgC;IAC/C,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GACjC;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,OAAO,EAAE,aAAa,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjD,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CACtD,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,UAAU,CACxB;IACC;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,kCAAkC,CAAC;IACnD;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,+BAA+B,CAAC;IAC7C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAC/D;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,CACX,MAAM,EAAE,2BAA2B,KAChC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACxC,iEAAiE;IACjE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAC9D;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;CACtC;AAqOD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,uHAugCjC,CAAC"}
|