Skip to content

Commit

Permalink
chore(docs): webhooks schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alonp99 committed Oct 8, 2024
1 parent 964e835 commit 321243f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
21 changes: 18 additions & 3 deletions packages/common/src/schemas/documents/schemas/entity-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export const EntitySchema = Type.Object(
lastName: Type.String(),
email: Type.Optional(Type.Union([Type.String(), Type.Null()])),
phone: Type.Optional(Type.Union([Type.String(), Type.Null()])),
country: Type.Optional(Type.Union([Type.String(), Type.Null()])),
country: Type.Optional(
Type.Union([
Type.String({ description: 'ISO 3166-1 alpha-2 country code' }),
Type.Null(),
]),
),
dateOfBirth: Type.Optional(
Type.Union([Type.String({ format: 'date' }), Type.String(), Type.Null()]),
),
Expand All @@ -26,8 +31,18 @@ export const EntitySchema = Type.Object(
companyName: Type.String(),
registrationNumber: Type.Optional(Type.Union([Type.String(), Type.Null()])),
legalForm: Type.Optional(Type.Union([Type.String(), Type.Null()])),
country: Type.Optional(Type.Union([Type.String(), Type.Null()])),
countryOfIncorporation: Type.Optional(Type.Union([Type.String(), Type.Null()])),
country: Type.Optional(
Type.Union([
Type.String({ description: 'ISO 3166-1 alpha-2 country code' }),
Type.Null(),
]),
),
countryOfIncorporation: Type.Optional(
Type.Union([
Type.String({ description: 'ISO 3166-1 alpha-2 country code' }),
Type.Null(),
]),
),
dateOfIncorporation: Type.Optional(
Type.Union([Type.String({ format: 'date' }), Type.String(), Type.Null()]),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ export class WorkflowControllerExternal {
},
},
documents: [],
config: {
subscriptions: [
{
type: 'webhook',
url: 'https://webhook.site/f82ea191-9d64-424f-887e-f8418faf4fe9',
events: ['workflow.completed'],
},
],
},
},
config: {
subscriptions: [
{
type: 'webhook',
url: 'https://webhook.site/f82ea191-9d64-424f-887e-f8418faf4fe9',
events: ['workflow.completed'],
},
],
},
},
},
Expand Down

0 comments on commit 321243f

Please sign in to comment.