@agenus-io/webhook-centralizer 1.0.28 → 1.0.30

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.
@@ -3,6 +3,7 @@ import { webhookCentralizerDispatchType } from '../types';
3
3
  interface ICreatePlatformDTO {
4
4
  title: string;
5
5
  platformToken?: string;
6
+ emailAffiliate?: string;
6
7
  role: webhookPlatformRole;
7
8
  type: webhookCentralizerPlatform;
8
9
  apiToken?: string;
@@ -55,6 +56,7 @@ export declare namespace IGetPlatformDTO {
55
56
  apiToken: string | null;
56
57
  slug: string | null;
57
58
  url: string;
59
+ emailAffiliate: string | null;
58
60
  meta: Record<string, any> | null;
59
61
  createdAt: Date;
60
62
  updatedAt: Date;
@@ -113,6 +115,7 @@ export declare namespace IGetPlatformByTitleDTO {
113
115
  status: boolean;
114
116
  dispatchType: webhookCentralizerDispatchType;
115
117
  type: webhookCentralizerPlatform;
118
+ emailAffiliate: string | null;
116
119
  apiToken: string | null;
117
120
  slug: string | null;
118
121
  url: string;
@@ -137,6 +140,7 @@ export declare namespace IGetPlatformByIdDTO {
137
140
  status: boolean;
138
141
  dispatchType: webhookCentralizerDispatchType;
139
142
  type: webhookCentralizerPlatform;
143
+ emailAffiliate: string | null;
140
144
  apiToken: string | null;
141
145
  slug: string | null;
142
146
  url: string;
@@ -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.28",
3
+ "version": "1.0.30",
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",