Skip to content

Commit

Permalink
change handle different content types
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 20, 2024
1 parent ba6613f commit 516d668
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 6bff3a53-3f0b-40b4-942f-ff70dc583ae5
management:
docChecksum: 0c0d994d5efbbad0b7a6185db3ca9ce6
docChecksum: 7154fd9e18fe192ac9f454c23fd0b475
docVersion: "1.0"
speakeasyVersion: 1.456.1
generationVersion: 2.481.0
releaseVersion: 0.0.1-alpha.148
configChecksum: b1cc6f67eb6c8d5aef999729b64ef50d
releaseVersion: 0.0.1-alpha.149
configChecksum: 362c8a30ae0dbec5aea3b71e8a73fe4c
published: true
features:
typescript:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.0.1-alpha.148
version: 0.0.1-alpha.149
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.456.1
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:ed9cc07ec30fac6d37e04af07d6c3a5eed049b3ec4b8f8a6b1941791a19bb8f8
sourceBlobDigest: sha256:02a4c414ebed3574c34a3b81b5c80be50dc51248fa3d07884e2324fde9cdac78
sourceRevisionDigest: sha256:87b6c26e5f28137760fade79839c25e9fc76c61521c4c3c27b577929df8441f4
sourceBlobDigest: sha256:322687c4ac76c62ab0219a6d44a7460cc6866bc53463f5592d4bf3b160d2f669
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:ed9cc07ec30fac6d37e04af07d6c3a5eed049b3ec4b8f8a6b1941791a19bb8f8
sourceBlobDigest: sha256:02a4c414ebed3574c34a3b81b5c80be50dc51248fa3d07884e2324fde9cdac78
sourceRevisionDigest: sha256:87b6c26e5f28137760fade79839c25e9fc76c61521c4c3c27b577929df8441f4
sourceBlobDigest: sha256:322687c4ac76c62ab0219a6d44a7460cc6866bc53463f5592d4bf3b160d2f669
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:20d0059ebdd3fbaac850e8b07a40c998140ddb60bb8a50efdc94445e2bf28ce1
codeSamplesRevisionDigest: sha256:682bcdc17b5934d45d1c934cb0e4a174b10174f05e4212e463c8d5cfbf5a1b00
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@novu/api",
"version": "0.0.1-alpha.148",
"version": "0.0.1-alpha.149",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@novu/api",
"version": "0.0.1-alpha.148",
"version": "0.0.1-alpha.149",
"author": "Novu",
"main": "./index.js",
"sideEffects": false,
Expand Down
1 change: 1 addition & 0 deletions sources/json-development.json
Original file line number Diff line number Diff line change
Expand Up @@ -14800,6 +14800,7 @@
},
"email": {
"type": "string",
"nullable": true,
"description": "The email address of the subscriber."
},
"phone": {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0",
sdkVersion: "0.0.1-alpha.148",
sdkVersion: "0.0.1-alpha.149",
genVersion: "2.481.0",
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.148 2.481.0 1.0 @novu/api",
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.149 2.481.0 1.0 @novu/api",
} as const;
8 changes: 4 additions & 4 deletions src/models/components/subscriberresponsedto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type SubscriberResponseDto = {
/**
* The email address of the subscriber.
*/
email?: string | undefined;
email?: string | null | undefined;
/**
* The phone number of the subscriber.
*/
Expand Down Expand Up @@ -98,7 +98,7 @@ export const SubscriberResponseDto$inboundSchema: z.ZodType<
_id: z.string().optional(),
firstName: z.string().optional(),
lastName: z.string().optional(),
email: z.string().optional(),
email: z.nullable(z.string()).optional(),
phone: z.string().optional(),
avatar: z.string().optional(),
locale: z.string().optional(),
Expand Down Expand Up @@ -127,7 +127,7 @@ export type SubscriberResponseDto$Outbound = {
_id?: string | undefined;
firstName?: string | undefined;
lastName?: string | undefined;
email?: string | undefined;
email?: string | null | undefined;
phone?: string | undefined;
avatar?: string | undefined;
locale?: string | undefined;
Expand All @@ -153,7 +153,7 @@ export const SubscriberResponseDto$outboundSchema: z.ZodType<
id: z.string().optional(),
firstName: z.string().optional(),
lastName: z.string().optional(),
email: z.string().optional(),
email: z.nullable(z.string()).optional(),
phone: z.string().optional(),
avatar: z.string().optional(),
locale: z.string().optional(),
Expand Down

0 comments on commit 516d668

Please sign in to comment.