Commit Graph

1484 Commits

Author SHA1 Message Date
Catalin Pit
422770a8c7 feat: allow fields prefill when generating a document from a template (#1615)
This change allows API users to pre-fill fields with values by
passing the data in the request body. Example body for V2 API endpoint
`/api/v2-beta/template/use`:

```json
{
    "templateId": 1,
    "recipients": [
        {
            "id": 1,
            "email": "signer1@mail.com",
            "name": "Signer 1"
        },
        {
            "id": 2,
            "email": "signer2@mail.com",
            "name": "Signer 2"
        }
    ],
    "prefillValues": [
        {
            "id": 14,
            "fieldMeta": {
                "type": "text",
                "label": "my label",
                "placeholder": "text placeholder test",
                "text": "auto-sign value",
                "characterLimit": 25,
                "textAlign": "right",
                "fontSize": 94,
                "required": true
            }
        },
        {
            "id": 15,
            "fieldMeta": {
                "type": "radio",
                "label": "radio label",
                "placeholder": "new radio placeholder",
                "required": false,
                "readOnly": true,
                "values": [
                    {
                        "id": 2,
                        "checked": true,
                        "value": "radio val 1"
                    },
                    {
                        "id": 3,
                        "checked": false,
                        "value": "radio val 2"
                    }
                ]
            }
        },
        {
            "id": 16,
            "fieldMeta": {
                "type": "dropdown",
                "label": "dropdown label",
                "placeholder": "DD placeholder",
                "required": false,
                "readOnly": false,
                "values": [
                    {
                        "value": "option 1"
                    },
                    {
                        "value": "option 2"
                    },
                    {
                        "value": "option 3"
                    }
                ],
                "defaultValue": "option 2"
            }
        }
    ],
    "distributeDocument": false,
    "customDocumentDataId": ""
}
```
2025-03-06 19:45:33 +11:00
David Nguyen
7c38970ee8 fix: update error logging 2025-03-04 01:41:39 +11:00
David Nguyen
e08d62c844 fix: remove invalid prisma zod schemas 2025-03-04 01:20:13 +11:00
David Nguyen
25bb6ffe77 fix: imports 2025-03-03 14:49:28 +11:00
Catalin Pit
e79d762710 chore: add label for checkbox and radio fields (#1607) 2025-03-03 13:46:29 +11:00
David Nguyen
3dce814ab2 fix: stripe price fetch (#1677)
Currently Stripe prices search is omitting a price for an unknown
reason.

Changed our fetch logic to use `list` instead of `search` allows us to
work around the issue.

It's unknown on the performance impact of using `list` vs `search`
2025-02-28 14:44:06 +11:00
David Nguyen
ad520bb032 fix: remove oauth from embeds 2025-02-27 14:08:59 +11:00
David Nguyen
596d30e2e5 fix: remove lazy pdf loader 2025-02-26 21:48:06 +11:00
David Nguyen
6474b4a524 fix: add preferred team middleware 2025-02-26 19:42:42 +11:00
Mythie
deea99d865 feat: search by externalId 2025-02-25 20:07:47 +11:00
Mythie
3328074f51 fix: early adopters can use platform features 2025-02-25 20:07:40 +11:00
David Nguyen
c1c7cfaf8b chore: cleanup 2025-02-25 16:37:36 +11:00
David Nguyen
7e8955b89c fix: add posthog error monitor 2025-02-25 15:14:45 +11:00
David Nguyen
5255e8671f chore: refactor pdf worker loader 2025-02-24 21:47:06 +11:00
David Nguyen
d4c1bad407 fix: add default oauth user url 2025-02-23 18:49:22 +11:00
David Nguyen
01dccb7916 chore: flattern routes 2025-02-21 15:53:23 +11:00
Lucas Smith
483d7caef7 feat: allow document rejection in embeds (#1662) 2025-02-21 01:27:03 +11:00
David Nguyen
139bc265c7 fix: migrate billing to RR7 2025-02-21 01:16:23 +11:00
David Nguyen
991ce5ff46 fix: update teams API tokens logic 2025-02-21 00:34:50 +11:00
David Nguyen
50a41d0799 fix: pdf viewer and embeds 2025-02-20 15:06:36 +11:00
David Nguyen
250381fec8 fix: billing 2025-02-20 12:17:55 +11:00
David Nguyen
ec07092bf6 fix: session refresh 2025-02-19 22:29:30 +11:00
David Nguyen
90ce52164c chore: add password tests 2025-02-19 18:41:53 +11:00
David Nguyen
ac30654913 fix: add auth session lifetime 2025-02-19 18:04:36 +11:00
David Nguyen
24f3ecd94f fix: remove marketing url 2025-02-19 16:45:54 +11:00
David Nguyen
a319ea0f5e fix: add public profiles tests 2025-02-19 16:07:04 +11:00
David Nguyen
5ce2bae39d fix: resolve internal pdf translations 2025-02-19 14:43:35 +11:00
David Nguyen
5d86e84217 fix: prepare auth migration (#1648)
Add schema session migration in preparation for auth migration.
2025-02-18 15:19:42 +11:00
David Nguyen
79e26a9a46 fix: remove session migration 2025-02-18 15:19:39 +11:00
David Nguyen
dd602a7e1c fix: themes 2025-02-18 15:17:13 +11:00
David Nguyen
5fc724b247 fix: rework sessions 2025-02-17 22:46:36 +11:00
David Nguyen
1ed1cb0773 chore: refactor sessions 2025-02-16 00:44:01 +11:00
David Nguyen
e518985833 fix: migrate 2fa to custom auth 2025-02-14 22:00:55 +11:00
David Nguyen
595e901bc2 fix: make auth migration more flexible 2025-02-14 19:22:11 +11:00
David Nguyen
df8ea09021 fix: add oidc env variables 2025-02-14 18:11:54 +11:00
David Nguyen
180656978b feat: add themes 2025-02-14 17:50:23 +11:00
David Nguyen
28f5177064 fix: dialogs with search params 2025-02-14 16:14:02 +11:00
David Nguyen
31de86e425 feat: add oidc 2025-02-14 16:01:16 +11:00
Mythie
113ab293bb chore: make all the docker stuff work 2025-02-14 14:53:01 +11:00
David Nguyen
1c4878e526 fix: documentation build 2025-02-13 21:21:51 +11:00
David Nguyen
92db4d68db fix: cleanup env variables 2025-02-13 20:56:44 +11:00
David Nguyen
7379391f92 fix: migrate translations 2025-02-13 20:24:27 +11:00
David Nguyen
ebc2b00067 fix: add sign up hook 2025-02-13 20:21:23 +11:00
Ephraim Duncan
87dcdd44cd chore: update local seed data (#1622)
Add multiple example documents, pending documents, and templates for
both admin and example users
2025-02-13 19:50:05 +11:00
Mythie
5fac29a07f fix: add css targets for embeds 2025-02-13 19:45:54 +11:00
Catalin Pit
1aaacab6ca fix: temp field label/text truncation (#1565)
TEMP: Fix the truncation of the field label/text.
2025-02-13 19:43:35 +11:00
Ephraim Duncan
c0ae68c28b feat: assistant role (#1588)
Introduces the ability for users with the **Assistant** role to prefill
fields on behalf of other signers. Assistants can fill in various field
types such as text, checkboxes, dates, and more, streamlining the
document preparation process before it reaches the final signers.
2025-02-13 19:37:34 +11:00
David Nguyen
0b3638c42c feat: add Polish and Italian (#1618) 2025-02-13 18:48:37 +11:00
Catalin Pit
0f50110853 fix: create global settings on team creation (#1601)
The global team settings weren't created when creating a new team.

## Changes Made

The global team settings are now created when a new team is created.
2025-02-13 18:47:59 +11:00
Catalin Pit
b0f8c83134 chore: add cancelled webhook event (#1608) 2025-02-13 18:47:43 +11:00