@novu/api 0.0.1-alpha.48 → 0.0.1-alpha.49

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.
@@ -102,7 +102,7 @@ async function triggerBroadcast(client, request, options) {
102
102
  const responseFields = {
103
103
  HttpMeta: { Response: response, Request: req },
104
104
  };
105
- const [result] = await M.match(M.json(200, operations.EventsControllerBroadcastEventToAllResponse$inboundSchema, { hdrs: true, key: "Result" }), M.fail([409, 429, 503]), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
105
+ const [result] = await M.match(M.json([200, 201], operations.EventsControllerBroadcastEventToAllResponse$inboundSchema, { hdrs: true, key: "Result" }), M.fail([409, 429, 503]), M.fail(["4XX", "5XX"]))(response, { extraFields: responseFields });
106
106
  if (!result.ok) {
107
107
  return result;
108
108
  }
@@ -1 +1 @@
1
- {"version":3,"file":"triggerBroadcast.js","sourceRoot":"","sources":["../src/funcs/triggerBroadcast.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAU5D,0EAA4D;AAG5D;;;;;;;GAOG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAAgB,EAChB,OAA+C,EAC/C,OAAwB;IAaxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,0CAA0C,CAAC,KAAK,CAAC,KAAK,CAAC,EACpE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EA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AAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QAC/C,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CACJ,CAAC,GAAG,EAAE,GAAG,CAAC,EACV,UAAU,CAAC,yDAAyD,EACpE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAC9B,EACD,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EACvB,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAjHD,4CAiHC"}
package/lib/config.d.ts CHANGED
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
27
27
  export declare const SDK_METADATA: {
28
28
  readonly language: "typescript";
29
29
  readonly openapiDocVersion: "1.0";
30
- readonly sdkVersion: "0.0.1-alpha.48";
30
+ readonly sdkVersion: "0.0.1-alpha.49";
31
31
  readonly genVersion: "2.470.1";
32
- readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.48 2.470.1 1.0 @novu/api";
32
+ readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.49 2.470.1 1.0 @novu/api";
33
33
  };
34
34
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -30,8 +30,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
30
30
  exports.SDK_METADATA = {
31
31
  language: "typescript",
32
32
  openapiDocVersion: "1.0",
33
- sdkVersion: "0.0.1-alpha.48",
33
+ sdkVersion: "0.0.1-alpha.49",
34
34
  genVersion: "2.470.1",
35
- userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.48 2.470.1 1.0 @novu/api",
35
+ userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.49 2.470.1 1.0 @novu/api",
36
36
  };
37
37
  //# sourceMappingURL=config.js.map
@@ -3,7 +3,7 @@ import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  /**
6
- * Status for trigger
6
+ * Status of the trigger
7
7
  */
8
8
  export declare const TriggerEventResponseDtoStatus: {
9
9
  readonly Error: "error";
@@ -15,24 +15,24 @@ export declare const TriggerEventResponseDtoStatus: {
15
15
  readonly NoTenantFound: "no_tenant_found";
16
16
  };
17
17
  /**
18
- * Status for trigger
18
+ * Status of the trigger
19
19
  */
20
20
  export type TriggerEventResponseDtoStatus = ClosedEnum<typeof TriggerEventResponseDtoStatus>;
21
21
  export type TriggerEventResponseDto = {
22
22
  /**
23
- * If trigger was acknowledged or not
23
+ * Indicates whether the trigger was acknowledged or not
24
24
  */
25
25
  acknowledged: boolean;
26
26
  /**
27
- * Status for trigger
27
+ * Status of the trigger
28
28
  */
29
29
  status: TriggerEventResponseDtoStatus;
30
30
  /**
31
- * In case of an error, this field will contain the error message
31
+ * In case of an error, this field will contain the error message(s)
32
32
  */
33
33
  error?: Array<string> | undefined;
34
34
  /**
35
- * Transaction id for trigger
35
+ * Transaction ID for the trigger
36
36
  */
37
37
  transactionId?: string | undefined;
38
38
  };
@@ -30,7 +30,7 @@ exports.triggerEventResponseDtoFromJSON = exports.triggerEventResponseDtoToJSON
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
32
  /**
33
- * Status for trigger
33
+ * Status of the trigger
34
34
  */
35
35
  exports.TriggerEventResponseDtoStatus = {
36
36
  Error: "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/api",
3
- "version": "0.0.1-alpha.48",
3
+ "version": "0.0.1-alpha.49",
4
4
  "author": "Novu",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -131,7 +131,7 @@ export async function triggerBroadcast(
131
131
  | ConnectionError
132
132
  >(
133
133
  M.json(
134
- 200,
134
+ [200, 201],
135
135
  operations.EventsControllerBroadcastEventToAllResponse$inboundSchema,
136
136
  { hdrs: true, key: "Result" },
137
137
  ),
package/src/lib/config.ts CHANGED
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
55
55
  export const SDK_METADATA = {
56
56
  language: "typescript",
57
57
  openapiDocVersion: "1.0",
58
- sdkVersion: "0.0.1-alpha.48",
58
+ sdkVersion: "0.0.1-alpha.49",
59
59
  genVersion: "2.470.1",
60
- userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.48 2.470.1 1.0 @novu/api",
60
+ userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.49 2.470.1 1.0 @novu/api",
61
61
  } as const;
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * Status for trigger
12
+ * Status of the trigger
13
13
  */
14
14
  export const TriggerEventResponseDtoStatus = {
15
15
  Error: "error",
@@ -21,7 +21,7 @@ export const TriggerEventResponseDtoStatus = {
21
21
  NoTenantFound: "no_tenant_found",
22
22
  } as const;
23
23
  /**
24
- * Status for trigger
24
+ * Status of the trigger
25
25
  */
26
26
  export type TriggerEventResponseDtoStatus = ClosedEnum<
27
27
  typeof TriggerEventResponseDtoStatus
@@ -29,19 +29,19 @@ export type TriggerEventResponseDtoStatus = ClosedEnum<
29
29
 
30
30
  export type TriggerEventResponseDto = {
31
31
  /**
32
- * If trigger was acknowledged or not
32
+ * Indicates whether the trigger was acknowledged or not
33
33
  */
34
34
  acknowledged: boolean;
35
35
  /**
36
- * Status for trigger
36
+ * Status of the trigger
37
37
  */
38
38
  status: TriggerEventResponseDtoStatus;
39
39
  /**
40
- * In case of an error, this field will contain the error message
40
+ * In case of an error, this field will contain the error message(s)
41
41
  */
42
42
  error?: Array<string> | undefined;
43
43
  /**
44
- * Transaction id for trigger
44
+ * Transaction ID for the trigger
45
45
  */
46
46
  transactionId?: string | undefined;
47
47
  };