@agenus-io/webhook-centralizer 1.0.29 → 1.0.31

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.
@@ -15,6 +15,8 @@ export declare namespace ICreatePlatformDTO {
15
15
  type Params = ICreatePlatformDTO;
16
16
  type Result = {
17
17
  id?: string;
18
+ url?: string;
19
+ urlWithParams?: string;
18
20
  error?: any;
19
21
  isError?: boolean;
20
22
  };
@@ -4,18 +4,21 @@ export declare const WebhookCentralizerCreatePlatformSchema: import("zod").ZodOb
4
4
  role: import("zod").ZodDefault<import("zod").ZodNativeEnum<Record<import("../types").webhookPlatformRole, import("../types").webhookPlatformRole>>>;
5
5
  type: import("zod").ZodNativeEnum<Record<import("../types").webhookCentralizerPlatform, import("../types").webhookCentralizerPlatform>>;
6
6
  apiToken: import("zod").ZodOptional<import("zod").ZodString>;
7
+ emailAffiliate: import("zod").ZodOptional<import("zod").ZodString>;
7
8
  slug: import("zod").ZodOptional<import("zod").ZodString>;
8
9
  }, "strip", import("zod").ZodTypeAny, {
9
10
  title: string;
10
11
  role: import("../types").webhookPlatformRole;
11
12
  type: import("../types").webhookCentralizerPlatform;
12
13
  platformToken?: string | undefined;
14
+ emailAffiliate?: string | undefined;
13
15
  apiToken?: string | undefined;
14
16
  slug?: string | undefined;
15
17
  }, {
16
18
  title: string;
17
19
  type: import("../types").webhookCentralizerPlatform;
18
20
  platformToken?: string | undefined;
21
+ emailAffiliate?: string | undefined;
19
22
  role?: import("../types").webhookPlatformRole | undefined;
20
23
  apiToken?: string | undefined;
21
24
  slug?: string | undefined;
@@ -26,10 +29,12 @@ export declare const WebhookCentralizerUpdatePlatformSchema: import("zod").ZodOb
26
29
  role: import("zod").ZodOptional<import("zod").ZodNativeEnum<Record<import("../types").webhookPlatformRole, import("../types").webhookPlatformRole>>>;
27
30
  type: import("zod").ZodOptional<import("zod").ZodNativeEnum<Record<import("../types").webhookCentralizerPlatform, import("../types").webhookCentralizerPlatform>>>;
28
31
  apiToken: import("zod").ZodOptional<import("zod").ZodString>;
29
- slug: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
32
+ emailAffiliate: import("zod").ZodOptional<import("zod").ZodString>;
33
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
30
34
  }, "strip", import("zod").ZodTypeAny, {
31
35
  title?: string | undefined;
32
36
  platformToken?: string | undefined;
37
+ emailAffiliate?: string | undefined;
33
38
  role?: import("../types").webhookPlatformRole | undefined;
34
39
  type?: import("../types").webhookCentralizerPlatform | undefined;
35
40
  apiToken?: string | undefined;
@@ -37,6 +42,7 @@ export declare const WebhookCentralizerUpdatePlatformSchema: import("zod").ZodOb
37
42
  }, {
38
43
  title?: string | undefined;
39
44
  platformToken?: string | undefined;
45
+ emailAffiliate?: string | undefined;
40
46
  role?: import("../types").webhookPlatformRole | undefined;
41
47
  type?: import("../types").webhookCentralizerPlatform | undefined;
42
48
  apiToken?: string | undefined;
@@ -10,6 +10,7 @@ exports.WebhookCentralizerCreatePlatformSchema = config_1.zod.object({
10
10
  role: (0, zod_1.nativeEnumField)(types_1.WebhookPlatformRoleEnum).default("PRODUCER"),
11
11
  type: (0, zod_1.nativeEnumField)(types_1.WebhookCentralizerPlatformEnum),
12
12
  apiToken: (0, zod_1.stringField)().optional(),
13
+ emailAffiliate: (0, zod_1.stringField)().optional(),
13
14
  slug: (0, zod_1.stringField)().optional(),
14
15
  });
15
16
  exports.WebhookCentralizerUpdatePlatformSchema = config_1.zod.object({
@@ -18,7 +19,8 @@ exports.WebhookCentralizerUpdatePlatformSchema = config_1.zod.object({
18
19
  role: (0, zod_1.nativeEnumField)(types_1.WebhookPlatformRoleEnum).optional(),
19
20
  type: (0, zod_1.nativeEnumField)(types_1.WebhookCentralizerPlatformEnum).optional(),
20
21
  apiToken: (0, zod_1.stringField)().optional(),
21
- slug: (0, zod_1.stringField)().optional().optional(),
22
+ emailAffiliate: (0, zod_1.stringField)().optional(),
23
+ slug: (0, zod_1.stringField)().optional(),
22
24
  });
23
25
  exports.WebhookCentralizerGetPlatformsSchema = config_1.zod.object({
24
26
  page: (0, zod_1.numberField)().default(1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenus-io/webhook-centralizer",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "SDK para centralização de webhooks focado atualmente em plataformas de pagamentos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",