Skip to content

Commit

Permalink
add webhookStatus and zapierStatus to submission response
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmcgowan committed Jan 18, 2024
1 parent 944843b commit 69f04a2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-cycles-allow.md
@@ -0,0 +1,5 @@
---
"submitjson": minor
---

Adds `webhookStatus` and `zapierStatus` to the submission response
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -63,7 +63,7 @@ console.log('Submission', data)
emailSubject?: string
emailReplyTo?: string
emailBranding?: boolean
submissionFormat?: 'raw' | 'pretty'
submissionFormat?: 'pretty' | 'raw'
submissionSound?: 'none' | 'beep' | 'blip' | 'block' | 'coin' | 'ding' | 'dink' | 'honk' | 'jump' | 'ping' | 'pong' | 'snare'
}

Expand Down Expand Up @@ -162,13 +162,13 @@ console.log('Submission', data)
```

## Submit JSON Links
- [📦 submitjson.com](https://www.submitjson.com)
- [📖 Official docs](https://www.submitjson.com/docs)
- [⚡️ Full examples](https://www.submitjson.com/docs/examples)
- [🌐 API documentation (OpenAPI 3.1)](https://api.submitjson.com/v1/docs)
- [👾 Discord](https://discord.gg/CTcKzgC9hz)
- [✌️ Email us - support@submitjson.com](mailto:support@submitjson.com)
- [🚛 submitjson.com](https://www.submitjson.com)
- [📗 Official docs](https://www.submitjson.com/docs)
- [🧪 Full examples](https://www.submitjson.com/docs/examples)
- [🟢 API documentation (OpenAPI 3.1)](https://api.submitjson.com/v1/docs)
- [🍵 Discord](https://discord.gg/CTcKzgC9hz)
- [🐢 Email us - support@submitjson.com](mailto:support@submitjson.com)

## License

MIT License © 2023 [Dylan McGowan](https://github.com/dylanmcgowan)
MIT License © 2023 [Submit JSON](https://www.submitjson.com)
15 changes: 8 additions & 7 deletions v1.d.ts
Expand Up @@ -15,7 +15,7 @@ export interface paths {
put?: never
/**
* Submit your data to an endpoint
* @description Submit your data bb
* @description Submit JSON and get notified in real-time
*/
post: operations['submit']
delete?: never
Expand All @@ -30,7 +30,7 @@ export interface components {
schemas: {
SubmissionInput: {
/**
* @description The data to submit, needs to be a valid JSON object
* @description The data to submit, must be a valid JSON object
* @example {
* "name": "Yo Yoerson",
* "email": "yo@yoerson.com",
Expand Down Expand Up @@ -117,13 +117,14 @@ export interface components {
submissionFormat?: 'raw' | 'pretty'
/** @example xxxx-xxxx-xxxx-xxx */
submissionId?: string
/**
* @example ping
* @enum {string}
*/
submissionSound?: 'none' | 'ping'
/** @example ping */
submissionSound?: string
/** @example 12345 */
userId?: number
/** @enum {string|null} */
webhookStatus?: 'success' | 'partial-success' | 'error'
/** @enum {string|null} */
zapierStatus?: 'pending' | 'success' | 'error'
}
ErrorResponse: {
/** @example 🙈 */
Expand Down

0 comments on commit 69f04a2

Please sign in to comment.