@agenus-io/webhook-centralizer 1.0.19 → 1.0.20

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.
@@ -1,9 +1,9 @@
1
- import { webhookCentralizerEvent, webhookCentralizerOrderStatus, webhookCentralizerPlatform } from './../types';
1
+ import { webhookCentralizerEvent, webhookCentralizerOrderStatus, webhookCentralizerPlatform, webhookPlatformRole } from './../types';
2
2
  import { webhookCentralizerDispatchType } from '../types';
3
3
  interface ICreatePlatformDTO {
4
4
  title: string;
5
5
  platformToken?: string;
6
- dispatchType: webhookCentralizerDispatchType;
6
+ role: webhookPlatformRole;
7
7
  type: webhookCentralizerPlatform;
8
8
  apiToken?: string;
9
9
  meta?: Record<string, any>;
@@ -1,16 +1,14 @@
1
1
  export declare const WebhookCentralizerCreatePlatformSchema: import("zod").ZodObject<{
2
2
  title: import("zod").ZodString;
3
3
  platformToken: import("zod").ZodOptional<import("zod").ZodString>;
4
- dispatchType: import("zod").ZodDefault<import("zod").ZodNativeEnum<Record<import("../types").webhookCentralizerDispatchType, import("../types").webhookCentralizerDispatchType>>>;
5
4
  role: import("zod").ZodDefault<import("zod").ZodNativeEnum<Record<import("../types").webhookPlatformRole, import("../types").webhookPlatformRole>>>;
6
5
  type: import("zod").ZodNativeEnum<Record<import("../types").webhookCentralizerPlatform, import("../types").webhookCentralizerPlatform>>;
7
6
  apiToken: import("zod").ZodOptional<import("zod").ZodString>;
8
7
  slug: import("zod").ZodOptional<import("zod").ZodString>;
9
8
  }, "strip", import("zod").ZodTypeAny, {
10
9
  title: string;
11
- dispatchType: import("../types").webhookCentralizerDispatchType;
12
- type: import("../types").webhookCentralizerPlatform;
13
10
  role: import("../types").webhookPlatformRole;
11
+ type: import("../types").webhookCentralizerPlatform;
14
12
  platformToken?: string | undefined;
15
13
  apiToken?: string | undefined;
16
14
  slug?: string | undefined;
@@ -18,15 +16,13 @@ export declare const WebhookCentralizerCreatePlatformSchema: import("zod").ZodOb
18
16
  title: string;
19
17
  type: import("../types").webhookCentralizerPlatform;
20
18
  platformToken?: string | undefined;
21
- dispatchType?: import("../types").webhookCentralizerDispatchType | undefined;
19
+ role?: import("../types").webhookPlatformRole | undefined;
22
20
  apiToken?: string | undefined;
23
21
  slug?: string | undefined;
24
- role?: import("../types").webhookPlatformRole | undefined;
25
22
  }>;
26
23
  export declare const WebhookCentralizerUpdatePlatformSchema: import("zod").ZodObject<{
27
24
  title: import("zod").ZodOptional<import("zod").ZodString>;
28
25
  platformToken: import("zod").ZodOptional<import("zod").ZodString>;
29
- dispatchType: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<Record<import("../types").webhookCentralizerDispatchType, import("../types").webhookCentralizerDispatchType>>>>;
30
26
  role: import("zod").ZodOptional<import("zod").ZodNativeEnum<Record<import("../types").webhookPlatformRole, import("../types").webhookPlatformRole>>>;
31
27
  type: import("zod").ZodOptional<import("zod").ZodNativeEnum<Record<import("../types").webhookCentralizerPlatform, import("../types").webhookCentralizerPlatform>>>;
32
28
  apiToken: import("zod").ZodOptional<import("zod").ZodString>;
@@ -34,19 +30,17 @@ export declare const WebhookCentralizerUpdatePlatformSchema: import("zod").ZodOb
34
30
  }, "strip", import("zod").ZodTypeAny, {
35
31
  title?: string | undefined;
36
32
  platformToken?: string | undefined;
37
- dispatchType?: import("../types").webhookCentralizerDispatchType | undefined;
33
+ role?: import("../types").webhookPlatformRole | undefined;
38
34
  type?: import("../types").webhookCentralizerPlatform | undefined;
39
35
  apiToken?: string | undefined;
40
36
  slug?: string | undefined;
41
- role?: import("../types").webhookPlatformRole | undefined;
42
37
  }, {
43
38
  title?: string | undefined;
44
39
  platformToken?: string | undefined;
45
- dispatchType?: import("../types").webhookCentralizerDispatchType | undefined;
40
+ role?: import("../types").webhookPlatformRole | undefined;
46
41
  type?: import("../types").webhookCentralizerPlatform | undefined;
47
42
  apiToken?: string | undefined;
48
43
  slug?: string | undefined;
49
- role?: import("../types").webhookPlatformRole | undefined;
50
44
  }>;
51
45
  export declare const WebhookCentralizerGetPlatformsSchema: import("zod").ZodObject<{
52
46
  page: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -7,7 +7,6 @@ const zod_1 = require("../Utils/zod");
7
7
  exports.WebhookCentralizerCreatePlatformSchema = config_1.zod.object({
8
8
  title: (0, zod_1.stringField)().min(3),
9
9
  platformToken: (0, zod_1.stringField)().optional(),
10
- dispatchType: (0, zod_1.nativeEnumField)(types_1.WebhookCentralizerDispatchTypeEnum).default("WEBHOOK"),
11
10
  role: (0, zod_1.nativeEnumField)(types_1.WebhookPlatformRoleEnum).default("PRODUCER"),
12
11
  type: (0, zod_1.nativeEnumField)(types_1.WebhookCentralizerPlatformEnum),
13
12
  apiToken: (0, zod_1.stringField)().optional(),
@@ -16,7 +15,6 @@ exports.WebhookCentralizerCreatePlatformSchema = config_1.zod.object({
16
15
  exports.WebhookCentralizerUpdatePlatformSchema = config_1.zod.object({
17
16
  title: (0, zod_1.stringField)().min(3).optional(),
18
17
  platformToken: (0, zod_1.stringField)().optional(),
19
- dispatchType: (0, zod_1.nativeEnumField)(types_1.WebhookCentralizerDispatchTypeEnum).default("WEBHOOK").optional(),
20
18
  role: (0, zod_1.nativeEnumField)(types_1.WebhookPlatformRoleEnum).optional(),
21
19
  type: (0, zod_1.nativeEnumField)(types_1.WebhookCentralizerPlatformEnum).optional(),
22
20
  apiToken: (0, zod_1.stringField)().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenus-io/webhook-centralizer",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
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",