@kl1/contracts 1.0.32 → 1.0.33

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.
Files changed (57) hide show
  1. package/dist/index.js +1809 -1627
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1807 -1627
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/attribute/validation.d.ts.map +1 -1
  6. package/dist/src/call-log/validation.d.ts +2 -2
  7. package/dist/src/channel/index.d.ts +721 -299
  8. package/dist/src/channel/index.d.ts.map +1 -1
  9. package/dist/src/channel/validation.d.ts +0 -291
  10. package/dist/src/channel/validation.d.ts.map +1 -1
  11. package/dist/src/chat/index.d.ts +105 -104
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +16 -16
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +193 -67
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/company/index.d.ts +8 -85
  18. package/dist/src/company/index.d.ts.map +1 -1
  19. package/dist/src/company/schema.d.ts +137 -0
  20. package/dist/src/company/schema.d.ts.map +1 -1
  21. package/dist/src/company/validation.d.ts +0 -40
  22. package/dist/src/company/validation.d.ts.map +1 -1
  23. package/dist/src/contact/index.d.ts +1191 -1191
  24. package/dist/src/contract.d.ts +3159 -2340
  25. package/dist/src/contract.d.ts.map +1 -1
  26. package/dist/src/cx-log/index.d.ts +22 -22
  27. package/dist/src/cx-log/schema.d.ts +16 -16
  28. package/dist/src/dashboard/index.d.ts +11 -7
  29. package/dist/src/dashboard/index.d.ts.map +1 -1
  30. package/dist/src/dashboard/schema.d.ts +127 -2
  31. package/dist/src/dashboard/schema.d.ts.map +1 -1
  32. package/dist/src/evaluate-form/schema.d.ts +6 -6
  33. package/dist/src/index.d.ts +2 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/mail/mail-contract.d.ts +42 -42
  36. package/dist/src/mail/room-contract.d.ts +42 -42
  37. package/dist/src/mail/schemas/room-validation.schema.d.ts +14 -14
  38. package/dist/src/mail/schemas/room.schema.d.ts +10 -10
  39. package/dist/src/messenger/index.d.ts +1212 -707
  40. package/dist/src/messenger/index.d.ts.map +1 -1
  41. package/dist/src/messenger/validation.d.ts +108 -1
  42. package/dist/src/messenger/validation.d.ts.map +1 -1
  43. package/dist/src/ticket/index.d.ts +207 -342
  44. package/dist/src/ticket/index.d.ts.map +1 -1
  45. package/dist/src/ticket/validation.d.ts +168 -338
  46. package/dist/src/ticket/validation.d.ts.map +1 -1
  47. package/dist/src/widget/index.d.ts +72 -1
  48. package/dist/src/widget/index.d.ts.map +1 -1
  49. package/dist/src/widget/validation.d.ts +10 -0
  50. package/dist/src/widget/validation.d.ts.map +1 -1
  51. package/package.json +47 -46
  52. package/dist/src/app/index.d.ts +0 -17
  53. package/dist/src/app/index.d.ts.map +0 -1
  54. package/dist/src/mail/mail-server.d.ts +0 -216
  55. package/dist/src/mail/mail-server.d.ts.map +0 -1
  56. package/dist/src/platform-contact/schema.d.ts +0 -30
  57. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/ticket/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,UAAU;;;;;;;;;EAGrB,CAAC;AAMH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAC;AAEzE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;EAMvC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9C,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBxB,CAAC;AAEb,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB3B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import z from 'zod';
2
2
  import { WidgetSchema } from './schema';
3
- import { CreateWidgetSchema, UpdateWidgetSchema } from './validation';
3
+ import { CreateWidgetSchema, GetWidgetUrlPathQuerySchema, UpdateWidgetSchema } from './validation';
4
4
  export type CreateWidgetRequest = z.infer<typeof CreateWidgetSchema>;
5
5
  export type UpdateWidgetRequest = z.infer<typeof UpdateWidgetSchema>;
6
+ export type GetWidgetUrlQueryRequest = z.infer<typeof GetWidgetUrlPathQuerySchema>;
6
7
  export type Widget = z.infer<typeof WidgetSchema>;
7
8
  export declare const widgetContract: {
8
9
  createWidget: {
@@ -659,6 +660,76 @@ export declare const widgetContract: {
659
660
  'x-client-timezone'?: string | undefined;
660
661
  }>>>;
661
662
  };
663
+ getWidgetUrl: {
664
+ summary: "Generate url token for widget.";
665
+ method: "GET";
666
+ query: z.ZodObject<{
667
+ widgetId: z.ZodString;
668
+ positionId: z.ZodString;
669
+ }, "strip", z.ZodTypeAny, {
670
+ widgetId: string;
671
+ positionId: string;
672
+ }, {
673
+ widgetId: string;
674
+ positionId: string;
675
+ }>;
676
+ responses: {
677
+ 201: z.ZodObject<{
678
+ requestId: z.ZodString;
679
+ widget: z.ZodObject<{
680
+ url: z.ZodString;
681
+ }, "strip", z.ZodTypeAny, {
682
+ url: string;
683
+ }, {
684
+ url: string;
685
+ }>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ requestId: string;
688
+ widget: {
689
+ url: string;
690
+ };
691
+ }, {
692
+ requestId: string;
693
+ widget: {
694
+ url: string;
695
+ };
696
+ }>;
697
+ 400: z.ZodObject<{
698
+ message: z.ZodString;
699
+ }, "strip", z.ZodTypeAny, {
700
+ message: string;
701
+ }, {
702
+ message: string;
703
+ }>;
704
+ 401: z.ZodObject<{
705
+ message: z.ZodString;
706
+ error: z.ZodAny;
707
+ }, "strip", z.ZodTypeAny, {
708
+ message: string;
709
+ error?: any;
710
+ }, {
711
+ message: string;
712
+ error?: any;
713
+ }>;
714
+ };
715
+ path: "widget/url_token/generate";
716
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
717
+ 'x-tenant': z.ZodString;
718
+ authorization: z.ZodString;
719
+ 'x-code': z.ZodOptional<z.ZodString>;
720
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ 'x-tenant': string;
723
+ authorization: string;
724
+ 'x-client-timezone': string;
725
+ 'x-code'?: string | undefined;
726
+ }, {
727
+ 'x-tenant': string;
728
+ authorization: string;
729
+ 'x-code'?: string | undefined;
730
+ 'x-client-timezone'?: string | undefined;
731
+ }>>>;
732
+ };
662
733
  updateWidget: {
663
734
  body: z.ZodObject<{
664
735
  name: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widget/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0J1B,CAAC"}
@@ -57,4 +57,14 @@ export declare const UpdateWidgetSchema: z.ZodObject<{
57
57
  data: string[];
58
58
  } | undefined;
59
59
  }>;
60
+ export declare const GetWidgetUrlPathQuerySchema: z.ZodObject<{
61
+ widgetId: z.ZodString;
62
+ positionId: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ widgetId: string;
65
+ positionId: string;
66
+ }, {
67
+ widgetId: string;
68
+ positionId: string;
69
+ }>;
60
70
  //# sourceMappingURL=validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/widget/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqB,CAAC"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/widget/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqB,CAAC;AAErD,eAAO,MAAM,2BAA2B;;;;;;;;;EAKtC,CAAC"}
package/package.json CHANGED
@@ -1,50 +1,51 @@
1
1
  {
2
- "name": "@kl1/contracts",
3
- "version": "1.0.32",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "types": "dist/src/index.d.ts",
7
- "module": "dist/index.mjs",
8
- "files": [
9
- "dist"
10
- ],
11
- "keywords": [],
12
- "author": "",
13
- "license": "ISC",
14
- "scripts": {
15
- "build": "tsup src/index.ts --sourcemap --format esm,cjs",
16
- "types": "tsc --emitDeclarationOnly --declaration",
17
- "watch:build": "npm-watch build",
18
- "watch:types": "npm-watch types",
19
- "dev": "concurrently \"npm:watch:build\" \"npm:watch:types\"",
20
- "produce": "npm run build && npm run types"
21
- },
22
- "watch": {
23
- "build": {
24
- "patterns": [
25
- "src"
26
- ],
27
- "extensions": "ts",
28
- "quite": true
2
+ "name": "@kl1/contracts",
3
+ "version": "1.0.33",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/src/index.d.ts",
7
+ "module": "dist/index.mjs",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "keywords": [],
12
+ "author": "",
13
+ "license": "ISC",
14
+ "scripts": {
15
+ "build": "tsup src/index.ts --sourcemap --format esm,cjs",
16
+ "types": "tsc --emitDeclarationOnly --declaration",
17
+ "watch:build": "npm-watch build",
18
+ "watch:types": "npm-watch types",
19
+ "dev": "concurrently \"npm:watch:build\" \"npm:watch:types\"",
20
+ "produce": "npm run build && npm run types"
29
21
  },
30
- "types": {
31
- "patterns": [
32
- "src"
33
- ],
34
- "extensions": "ts",
35
- "quite": true
22
+ "watch": {
23
+ "build": {
24
+ "patterns": [
25
+ "src"
26
+ ],
27
+ "extensions": "ts",
28
+ "quite": true
29
+ },
30
+ "types": {
31
+ "patterns": [
32
+ "src"
33
+ ],
34
+ "extensions": "ts",
35
+ "quite": true
36
+ }
37
+ },
38
+ "peerDependencies": {
39
+ "@ts-rest/core": "^3.30.5",
40
+ "zod": "^3.22.4"
41
+ },
42
+ "devDependencies": {
43
+ "concurrently": "^8.2.2",
44
+ "npm-watch": "^0.11.0",
45
+ "tsup": "^8.0.1",
46
+ "typescript": "^5.3.3"
47
+ },
48
+ "dependencies": {
49
+ "zod": "^3.22.4"
36
50
  }
37
- },
38
- "peerDependencies": {
39
- "@ts-rest/core": "^3.30.5",
40
- "zod": "^3.22.4"
41
- },
42
- "devDependencies": {
43
- "concurrently": "^8.2.2",
44
- "npm-watch": "^0.11.0",
45
- "tsup": "^8.0.1"
46
- },
47
- "dependencies": {
48
- "zod": "^3.22.4"
49
- }
50
51
  }
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const appContract: {
3
- getMessage: {
4
- method: "GET";
5
- responses: {
6
- 200: z.ZodObject<{
7
- message: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- message: string;
10
- }, {
11
- message: string;
12
- }>;
13
- };
14
- path: "/";
15
- };
16
- };
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAQtB,CAAC"}
@@ -1,216 +0,0 @@
1
- import z from 'zod';
2
- export declare const serverContract: {
3
- create: {
4
- body: null;
5
- summary: "Register a new mail server";
6
- method: "POST";
7
- responses: {
8
- 401: z.ZodObject<{
9
- message: z.ZodString;
10
- error: z.ZodAny;
11
- }, "strip", z.ZodTypeAny, {
12
- message: string;
13
- error?: any;
14
- }, {
15
- message: string;
16
- error?: any;
17
- }>;
18
- 404: z.ZodObject<{
19
- message: z.ZodString;
20
- error: z.ZodAny;
21
- }, "strip", z.ZodTypeAny, {
22
- message: string;
23
- error?: any;
24
- }, {
25
- message: string;
26
- error?: any;
27
- }>;
28
- 422: z.ZodObject<{
29
- message: z.ZodString;
30
- error: z.ZodAny;
31
- }, "strip", z.ZodTypeAny, {
32
- message: string;
33
- error?: any;
34
- }, {
35
- message: string;
36
- error?: any;
37
- }>;
38
- 200: z.ZodObject<{
39
- requestId: z.ZodString;
40
- message: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- message: string;
43
- requestId: string;
44
- }, {
45
- message: string;
46
- requestId: string;
47
- }>;
48
- };
49
- path: "/server/";
50
- };
51
- get: {
52
- summary: "Get a mail server by id";
53
- method: "GET";
54
- pathParams: z.ZodObject<{
55
- id: z.ZodString;
56
- }, "strip", z.ZodTypeAny, {
57
- id: string;
58
- }, {
59
- id: string;
60
- }>;
61
- responses: {
62
- 401: z.ZodObject<{
63
- message: z.ZodString;
64
- error: z.ZodAny;
65
- }, "strip", z.ZodTypeAny, {
66
- message: string;
67
- error?: any;
68
- }, {
69
- message: string;
70
- error?: any;
71
- }>;
72
- 404: z.ZodObject<{
73
- message: z.ZodString;
74
- error: z.ZodAny;
75
- }, "strip", z.ZodTypeAny, {
76
- message: string;
77
- error?: any;
78
- }, {
79
- message: string;
80
- error?: any;
81
- }>;
82
- 422: z.ZodObject<{
83
- message: z.ZodString;
84
- error: z.ZodAny;
85
- }, "strip", z.ZodTypeAny, {
86
- message: string;
87
- error?: any;
88
- }, {
89
- message: string;
90
- error?: any;
91
- }>;
92
- 200: z.ZodObject<{
93
- requestId: z.ZodString;
94
- message: z.ZodString;
95
- }, "strip", z.ZodTypeAny, {
96
- message: string;
97
- requestId: string;
98
- }, {
99
- message: string;
100
- requestId: string;
101
- }>;
102
- };
103
- path: "/server/:id";
104
- };
105
- update: {
106
- body: null;
107
- summary: "Update a mail server by id";
108
- method: "PATCH";
109
- pathParams: z.ZodObject<{
110
- id: z.ZodString;
111
- }, "strip", z.ZodTypeAny, {
112
- id: string;
113
- }, {
114
- id: string;
115
- }>;
116
- responses: {
117
- 401: z.ZodObject<{
118
- message: z.ZodString;
119
- error: z.ZodAny;
120
- }, "strip", z.ZodTypeAny, {
121
- message: string;
122
- error?: any;
123
- }, {
124
- message: string;
125
- error?: any;
126
- }>;
127
- 404: z.ZodObject<{
128
- message: z.ZodString;
129
- error: z.ZodAny;
130
- }, "strip", z.ZodTypeAny, {
131
- message: string;
132
- error?: any;
133
- }, {
134
- message: string;
135
- error?: any;
136
- }>;
137
- 422: z.ZodObject<{
138
- message: z.ZodString;
139
- error: z.ZodAny;
140
- }, "strip", z.ZodTypeAny, {
141
- message: string;
142
- error?: any;
143
- }, {
144
- message: string;
145
- error?: any;
146
- }>;
147
- 200: z.ZodObject<{
148
- requestId: z.ZodString;
149
- message: z.ZodString;
150
- }, "strip", z.ZodTypeAny, {
151
- message: string;
152
- requestId: string;
153
- }, {
154
- message: string;
155
- requestId: string;
156
- }>;
157
- };
158
- path: "/server/:id";
159
- };
160
- delete: {
161
- body: null;
162
- summary: "Delete a mail server by id";
163
- method: "PATCH";
164
- pathParams: z.ZodObject<{
165
- id: z.ZodString;
166
- }, "strip", z.ZodTypeAny, {
167
- id: string;
168
- }, {
169
- id: string;
170
- }>;
171
- responses: {
172
- 401: z.ZodObject<{
173
- message: z.ZodString;
174
- error: z.ZodAny;
175
- }, "strip", z.ZodTypeAny, {
176
- message: string;
177
- error?: any;
178
- }, {
179
- message: string;
180
- error?: any;
181
- }>;
182
- 404: z.ZodObject<{
183
- message: z.ZodString;
184
- error: z.ZodAny;
185
- }, "strip", z.ZodTypeAny, {
186
- message: string;
187
- error?: any;
188
- }, {
189
- message: string;
190
- error?: any;
191
- }>;
192
- 422: z.ZodObject<{
193
- message: z.ZodString;
194
- error: z.ZodAny;
195
- }, "strip", z.ZodTypeAny, {
196
- message: string;
197
- error?: any;
198
- }, {
199
- message: string;
200
- error?: any;
201
- }>;
202
- 200: z.ZodObject<{
203
- requestId: z.ZodString;
204
- message: z.ZodString;
205
- }, "strip", z.ZodTypeAny, {
206
- message: string;
207
- requestId: string;
208
- }, {
209
- message: string;
210
- requestId: string;
211
- }>;
212
- };
213
- path: "/server/:id";
214
- };
215
- };
216
- //# sourceMappingURL=mail-server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mail-server.d.ts","sourceRoot":"","sources":["../../../src/mail/mail-server.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D1B,CAAC"}
@@ -1,30 +0,0 @@
1
- import z from 'zod';
2
- export declare const PlatformContactSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- createdAt: z.ZodDate;
5
- updatedAt: z.ZodDate;
6
- deletedAt: z.ZodNullable<z.ZodDate>;
7
- contactId: z.ZodString;
8
- channelId: z.ZodString;
9
- config: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
10
- type: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- type: string;
13
- id: string;
14
- createdAt: Date;
15
- updatedAt: Date;
16
- deletedAt: Date | null;
17
- contactId: string;
18
- channelId: string;
19
- config: {};
20
- }, {
21
- type: string;
22
- id: string;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- deletedAt: Date | null;
26
- contactId: string;
27
- channelId: string;
28
- config: {};
29
- }>;
30
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/platform-contact/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhC,CAAC"}