@kl1/contracts 1.3.29 → 1.3.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/contract.d.ts +1416 -254
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/index.d.ts +636 -51
- package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/schema.d.ts +46 -4
- package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/validation.d.ts +66 -12
- package/dist/api-contracts/src/widget/validation.d.ts.map +1 -1
- package/dist/index.js +62 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widget/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widget/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,2BAA2B,CACnC,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0L1B,CAAC"}
|
@@ -1,5 +1,17 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
export declare const WidgetPositionSchema: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
|
2
|
+
export declare const WidgetPositionSchema: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
3
|
+
export declare const WidgetTypeSchema: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
4
|
+
export declare const WidgetHeaderSchema: z.ZodObject<{
|
5
|
+
key: z.ZodString;
|
6
|
+
value: z.ZodString;
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
8
|
+
key: string;
|
9
|
+
value: string;
|
10
|
+
}, {
|
11
|
+
key: string;
|
12
|
+
value: string;
|
13
|
+
}>;
|
14
|
+
export declare const WidgetMethodSchema: z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>;
|
3
15
|
export declare const WidgetSchema: z.ZodObject<{
|
4
16
|
id: z.ZodString;
|
5
17
|
createdAt: z.ZodDate;
|
@@ -7,7 +19,7 @@ export declare const WidgetSchema: z.ZodObject<{
|
|
7
19
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
8
20
|
name: z.ZodString;
|
9
21
|
description: z.ZodNullable<z.ZodString>;
|
10
|
-
position: z.
|
22
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
11
23
|
fields: z.ZodObject<{
|
12
24
|
data: z.ZodArray<z.ZodString, "many">;
|
13
25
|
}, "strip", z.ZodTypeAny, {
|
@@ -16,27 +28,57 @@ export declare const WidgetSchema: z.ZodObject<{
|
|
16
28
|
data: string[];
|
17
29
|
}>;
|
18
30
|
url: z.ZodString;
|
31
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
32
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
33
|
+
key: z.ZodString;
|
34
|
+
value: z.ZodString;
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
36
|
+
key: string;
|
37
|
+
value: string;
|
38
|
+
}, {
|
39
|
+
key: string;
|
40
|
+
value: string;
|
41
|
+
}>, "many">>;
|
42
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
43
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
44
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
19
45
|
}, "strip", z.ZodTypeAny, {
|
20
46
|
name: string;
|
47
|
+
type: "custom" | "iframe" | null;
|
21
48
|
id: string;
|
22
49
|
url: string;
|
23
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
50
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
51
|
+
method: "get" | "post" | null;
|
24
52
|
description: string | null;
|
25
53
|
createdAt: Date;
|
26
54
|
updatedAt: Date;
|
27
55
|
deletedAt: Date | null;
|
56
|
+
headers: {
|
57
|
+
key: string;
|
58
|
+
value: string;
|
59
|
+
}[] | null;
|
60
|
+
fileKey: string | null;
|
61
|
+
fileUrl: string | null;
|
28
62
|
fields: {
|
29
63
|
data: string[];
|
30
64
|
};
|
31
65
|
}, {
|
32
66
|
name: string;
|
67
|
+
type: "custom" | "iframe" | null;
|
33
68
|
id: string;
|
34
69
|
url: string;
|
35
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
70
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
71
|
+
method: "get" | "post" | null;
|
36
72
|
description: string | null;
|
37
73
|
createdAt: Date;
|
38
74
|
updatedAt: Date;
|
39
75
|
deletedAt: Date | null;
|
76
|
+
headers: {
|
77
|
+
key: string;
|
78
|
+
value: string;
|
79
|
+
}[] | null;
|
80
|
+
fileKey: string | null;
|
81
|
+
fileUrl: string | null;
|
40
82
|
fields: {
|
41
83
|
data: string[];
|
42
84
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/widget/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,oBAAoB,
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/widget/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,oBAAoB,kKAM/B,CAAC;AAEH,eAAO,MAAM,gBAAgB,8DAG3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,yDAG7B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWvB,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import z from 'zod';
|
2
2
|
export declare const CreateWidgetSchema: z.ZodObject<{
|
3
3
|
name: z.ZodString;
|
4
|
-
description: z.ZodString
|
4
|
+
description: z.ZodOptional<z.ZodString>;
|
5
5
|
url: z.ZodString;
|
6
|
-
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
|
6
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
7
7
|
fields: z.ZodOptional<z.ZodObject<{
|
8
8
|
data: z.ZodArray<z.ZodString, "many">;
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
@@ -11,28 +11,55 @@ export declare const CreateWidgetSchema: z.ZodObject<{
|
|
11
11
|
}, {
|
12
12
|
data: string[];
|
13
13
|
}>>;
|
14
|
+
type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
15
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
16
|
+
key: z.ZodString;
|
17
|
+
value: z.ZodString;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
19
|
+
key: string;
|
20
|
+
value: string;
|
21
|
+
}, {
|
22
|
+
key: string;
|
23
|
+
value: string;
|
24
|
+
}>, "many">>;
|
25
|
+
method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
26
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
14
27
|
}, "strip", z.ZodTypeAny, {
|
15
28
|
name: string;
|
29
|
+
type: "custom" | "iframe";
|
16
30
|
url: string;
|
17
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
18
|
-
|
31
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
32
|
+
fileKey: string | null;
|
33
|
+
description?: string | undefined;
|
19
34
|
fields?: {
|
20
35
|
data: string[];
|
21
36
|
} | undefined;
|
37
|
+
headers?: {
|
38
|
+
key: string;
|
39
|
+
value: string;
|
40
|
+
}[] | undefined;
|
41
|
+
method?: "get" | "post" | undefined;
|
22
42
|
}, {
|
23
43
|
name: string;
|
44
|
+
type: "custom" | "iframe";
|
24
45
|
url: string;
|
25
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
26
|
-
|
46
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
47
|
+
fileKey: string | null;
|
48
|
+
description?: string | undefined;
|
27
49
|
fields?: {
|
28
50
|
data: string[];
|
29
51
|
} | undefined;
|
52
|
+
headers?: {
|
53
|
+
key: string;
|
54
|
+
value: string;
|
55
|
+
}[] | undefined;
|
56
|
+
method?: "get" | "post" | undefined;
|
30
57
|
}>;
|
31
58
|
export declare const UpdateWidgetSchema: z.ZodObject<{
|
32
59
|
name: z.ZodString;
|
33
|
-
description: z.ZodString
|
60
|
+
description: z.ZodOptional<z.ZodString>;
|
34
61
|
url: z.ZodString;
|
35
|
-
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
|
62
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
36
63
|
fields: z.ZodOptional<z.ZodObject<{
|
37
64
|
data: z.ZodArray<z.ZodString, "many">;
|
38
65
|
}, "strip", z.ZodTypeAny, {
|
@@ -40,22 +67,49 @@ export declare const UpdateWidgetSchema: z.ZodObject<{
|
|
40
67
|
}, {
|
41
68
|
data: string[];
|
42
69
|
}>>;
|
70
|
+
type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
71
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
72
|
+
key: z.ZodString;
|
73
|
+
value: z.ZodString;
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
75
|
+
key: string;
|
76
|
+
value: string;
|
77
|
+
}, {
|
78
|
+
key: string;
|
79
|
+
value: string;
|
80
|
+
}>, "many">>;
|
81
|
+
method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
82
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
43
83
|
}, "strip", z.ZodTypeAny, {
|
44
84
|
name: string;
|
85
|
+
type: "custom" | "iframe";
|
45
86
|
url: string;
|
46
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
47
|
-
|
87
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
88
|
+
fileKey: string | null;
|
89
|
+
description?: string | undefined;
|
48
90
|
fields?: {
|
49
91
|
data: string[];
|
50
92
|
} | undefined;
|
93
|
+
headers?: {
|
94
|
+
key: string;
|
95
|
+
value: string;
|
96
|
+
}[] | undefined;
|
97
|
+
method?: "get" | "post" | undefined;
|
51
98
|
}, {
|
52
99
|
name: string;
|
100
|
+
type: "custom" | "iframe";
|
53
101
|
url: string;
|
54
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
55
|
-
|
102
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
103
|
+
fileKey: string | null;
|
104
|
+
description?: string | undefined;
|
56
105
|
fields?: {
|
57
106
|
data: string[];
|
58
107
|
} | undefined;
|
108
|
+
headers?: {
|
109
|
+
key: string;
|
110
|
+
value: string;
|
111
|
+
}[] | undefined;
|
112
|
+
method?: "get" | "post" | undefined;
|
59
113
|
}>;
|
60
114
|
export declare const GetWidgetUrlPathQuerySchema: z.ZodObject<{
|
61
115
|
widgetId: z.ZodString;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/widget/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/widget/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqB,CAAC;AAErD,eAAO,MAAM,2BAA2B;;;;;;;;;EAKtC,CAAC"}
|
package/dist/index.js
CHANGED
@@ -6763,21 +6763,40 @@ var FieldsSchema = import_zod86.default.object({ data: import_zod86.default.arra
|
|
6763
6763
|
var WidgetPositionSchema = import_zod86.default.union([
|
6764
6764
|
import_zod86.default.literal("menu"),
|
6765
6765
|
import_zod86.default.literal("ticket_detail"),
|
6766
|
-
import_zod86.default.literal("contact_detail")
|
6766
|
+
import_zod86.default.literal("contact_detail"),
|
6767
|
+
import_zod86.default.literal("contact_profile"),
|
6768
|
+
import_zod86.default.literal("inbox_detail")
|
6769
|
+
]);
|
6770
|
+
var WidgetTypeSchema = import_zod86.default.union([
|
6771
|
+
import_zod86.default.literal("iframe"),
|
6772
|
+
import_zod86.default.literal("custom")
|
6773
|
+
]);
|
6774
|
+
var WidgetHeaderSchema = import_zod86.default.object({
|
6775
|
+
key: import_zod86.default.string(),
|
6776
|
+
value: import_zod86.default.string()
|
6777
|
+
});
|
6778
|
+
var WidgetMethodSchema = import_zod86.default.union([
|
6779
|
+
import_zod86.default.literal("get"),
|
6780
|
+
import_zod86.default.literal("post")
|
6767
6781
|
]);
|
6768
6782
|
var WidgetSchema = DefaultEntitySchema.extend({
|
6769
6783
|
name: import_zod86.default.string(),
|
6770
6784
|
description: import_zod86.default.string().nullable(),
|
6771
|
-
position: WidgetPositionSchema
|
6785
|
+
position: WidgetPositionSchema,
|
6772
6786
|
fields: FieldsSchema,
|
6773
|
-
url: import_zod86.default.string()
|
6787
|
+
url: import_zod86.default.string(),
|
6788
|
+
type: WidgetTypeSchema.nullable(),
|
6789
|
+
headers: import_zod86.default.array(WidgetHeaderSchema).nullable(),
|
6790
|
+
method: WidgetMethodSchema.nullable(),
|
6791
|
+
fileKey: import_zod86.default.string().nullable(),
|
6792
|
+
fileUrl: import_zod86.default.string().nullable()
|
6774
6793
|
});
|
6775
6794
|
|
6776
6795
|
// src/widget/validation.ts
|
6777
6796
|
var import_zod87 = __toESM(require("zod"));
|
6778
6797
|
var CreateWidgetSchema = import_zod87.default.object({
|
6779
6798
|
name: import_zod87.default.string(),
|
6780
|
-
description: import_zod87.default.string(),
|
6799
|
+
description: import_zod87.default.string().optional(),
|
6781
6800
|
url: import_zod87.default.string(),
|
6782
6801
|
position: WidgetPositionSchema,
|
6783
6802
|
fields: import_zod87.default.object({
|
@@ -6785,7 +6804,11 @@ var CreateWidgetSchema = import_zod87.default.object({
|
|
6785
6804
|
// Array of attribute system names
|
6786
6805
|
import_zod87.default.array(import_zod87.default.string())
|
6787
6806
|
)
|
6788
|
-
}).optional()
|
6807
|
+
}).optional(),
|
6808
|
+
type: WidgetTypeSchema,
|
6809
|
+
headers: import_zod87.default.array(WidgetHeaderSchema).optional(),
|
6810
|
+
method: WidgetMethodSchema.optional(),
|
6811
|
+
fileKey: import_zod87.default.string().nullable()
|
6789
6812
|
});
|
6790
6813
|
var UpdateWidgetSchema = CreateWidgetSchema;
|
6791
6814
|
var GetWidgetUrlPathQuerySchema = import_zod87.default.object({
|
@@ -6876,6 +6899,34 @@ var widgetContract = (0, import_core29.initContract)().router(
|
|
6876
6899
|
},
|
6877
6900
|
summary: "Get contact widgets"
|
6878
6901
|
},
|
6902
|
+
getContactProfileWidgets: {
|
6903
|
+
method: "GET",
|
6904
|
+
path: "/contact_profile",
|
6905
|
+
headers: DefaultHeaderSchema,
|
6906
|
+
responses: {
|
6907
|
+
200: import_zod88.default.array(WidgetSchema),
|
6908
|
+
400: import_zod88.default.object({
|
6909
|
+
message: import_zod88.default.string()
|
6910
|
+
}),
|
6911
|
+
401: DefaultUnauthorizedSchema,
|
6912
|
+
500: DefaultErrorResponseSchema
|
6913
|
+
},
|
6914
|
+
summary: "Get contact profile widgets"
|
6915
|
+
},
|
6916
|
+
getInboxDetailWidgets: {
|
6917
|
+
method: "GET",
|
6918
|
+
path: "/inbox_detail",
|
6919
|
+
headers: DefaultHeaderSchema,
|
6920
|
+
responses: {
|
6921
|
+
200: import_zod88.default.array(WidgetSchema),
|
6922
|
+
400: import_zod88.default.object({
|
6923
|
+
message: import_zod88.default.string()
|
6924
|
+
}),
|
6925
|
+
401: DefaultUnauthorizedSchema,
|
6926
|
+
500: DefaultErrorResponseSchema
|
6927
|
+
},
|
6928
|
+
summary: "Get inbox detail widgets"
|
6929
|
+
},
|
6879
6930
|
getWidgetById: {
|
6880
6931
|
method: "GET",
|
6881
6932
|
path: "/:id",
|
@@ -6898,7 +6949,11 @@ var widgetContract = (0, import_core29.initContract)().router(
|
|
6898
6949
|
headers: DefaultHeaderSchema,
|
6899
6950
|
responses: {
|
6900
6951
|
201: DefaultSuccessResponseSchema.extend({
|
6901
|
-
|
6952
|
+
widget: import_zod88.default.object({
|
6953
|
+
token: import_zod88.default.string().nullable(),
|
6954
|
+
headers: import_zod88.default.array(WidgetHeaderSchema),
|
6955
|
+
url: import_zod88.default.string()
|
6956
|
+
})
|
6902
6957
|
}),
|
6903
6958
|
400: import_zod88.default.object({
|
6904
6959
|
message: import_zod88.default.string()
|
@@ -6937,7 +6992,7 @@ var widgetContract = (0, import_core29.initContract)().router(
|
|
6937
6992
|
summary: "Delete a widget."
|
6938
6993
|
}
|
6939
6994
|
},
|
6940
|
-
{ pathPrefix: "widget" }
|
6995
|
+
{ pathPrefix: "ms/widget" }
|
6941
6996
|
);
|
6942
6997
|
|
6943
6998
|
// src/wrap-up-form/index.ts
|