@kl1/contracts 1.0.1 → 1.0.2

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 (218) hide show
  1. package/dist/api-contracts/src/auth/index.d.ts +436 -0
  2. package/dist/api-contracts/src/auth/index.d.ts.map +1 -0
  3. package/dist/api-contracts/src/auth/permission-schema.d.ts +27 -0
  4. package/dist/api-contracts/src/auth/permission-schema.d.ts.map +1 -0
  5. package/dist/api-contracts/src/auth/role-schema.d.ts +70 -0
  6. package/dist/api-contracts/src/auth/role-schema.d.ts.map +1 -0
  7. package/dist/api-contracts/src/auth/user-schema.d.ts +140 -0
  8. package/dist/api-contracts/src/auth/user-schema.d.ts.map +1 -0
  9. package/dist/api-contracts/src/base-contract.d.ts +85 -0
  10. package/dist/api-contracts/src/base-contract.d.ts.map +1 -0
  11. package/dist/api-contracts/src/contract.d.ts +593 -0
  12. package/dist/api-contracts/src/contract.d.ts.map +1 -0
  13. package/dist/api-contracts/src/cx-log/cx-log-schema.d.ts +54 -0
  14. package/dist/api-contracts/src/cx-log/cx-log-schema.d.ts.map +1 -0
  15. package/dist/api-contracts/src/cx-log/index.d.ts +252 -0
  16. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -0
  17. package/dist/api-contracts/src/index.d.ts +2 -0
  18. package/dist/api-contracts/src/index.d.ts.map +1 -0
  19. package/dist/attribute/schema.d.ts +42 -0
  20. package/dist/attribute/schema.d.ts.map +1 -0
  21. package/dist/attribute-option/schema.d.ts +33 -0
  22. package/dist/attribute-option/schema.d.ts.map +1 -0
  23. package/dist/auth/index.d.ts +436 -0
  24. package/dist/auth/index.d.ts.map +1 -0
  25. package/dist/auth/permission-schema.d.ts +27 -0
  26. package/dist/auth/permission-schema.d.ts.map +1 -0
  27. package/dist/auth/role-schema.d.ts +70 -0
  28. package/dist/auth/role-schema.d.ts.map +1 -0
  29. package/dist/auth/user-schema.d.ts +140 -0
  30. package/dist/auth/user-schema.d.ts.map +1 -0
  31. package/dist/base-contract.d.ts +85 -0
  32. package/dist/base-contract.d.ts.map +1 -0
  33. package/dist/call-log/index.d.ts +4 -0
  34. package/dist/call-log/index.d.ts.map +1 -0
  35. package/dist/call-log/schema.d.ts +57 -0
  36. package/dist/call-log/schema.d.ts.map +1 -0
  37. package/dist/call-log/validation.d.ts +24 -0
  38. package/dist/call-log/validation.d.ts.map +1 -0
  39. package/dist/company/schema.d.ts +30 -0
  40. package/dist/company/schema.d.ts.map +1 -0
  41. package/dist/contact/schema.d.ts +42 -0
  42. package/dist/contact/schema.d.ts.map +1 -0
  43. package/dist/contact-email/schema.d.ts +27 -0
  44. package/dist/contact-email/schema.d.ts.map +1 -0
  45. package/dist/contact-phone/schema.d.ts +27 -0
  46. package/dist/contact-phone/schema.d.ts.map +1 -0
  47. package/dist/contract.d.ts +663 -0
  48. package/dist/{src/channel/index.d.ts.map → contract.d.ts.map} +1 -1
  49. package/dist/custom-field/schema.d.ts +36 -0
  50. package/dist/custom-field/schema.d.ts.map +1 -0
  51. package/dist/custom-field-upload/schema.d.ts +24 -0
  52. package/dist/custom-field-upload/schema.d.ts.map +1 -0
  53. package/dist/cx-log/cx-log-schema.d.ts +54 -0
  54. package/dist/cx-log/cx-log-schema.d.ts.map +1 -0
  55. package/dist/cx-log/index.d.ts +230 -0
  56. package/dist/cx-log/index.d.ts.map +1 -0
  57. package/dist/cx-log/schema.d.ts +54 -0
  58. package/dist/cx-log/schema.d.ts.map +1 -0
  59. package/dist/cx-log/validation.d.ts +95 -0
  60. package/dist/cx-log/validation.d.ts.map +1 -0
  61. package/dist/entities/src/base.entity.d.ts +7 -0
  62. package/dist/entities/src/base.entity.d.ts.map +1 -0
  63. package/dist/entities/src/tenants/attribute-option.entity.d.ts +9 -0
  64. package/dist/entities/src/tenants/attribute-option.entity.d.ts.map +1 -0
  65. package/dist/entities/src/tenants/attribute.entity.d.ts +12 -0
  66. package/dist/entities/src/tenants/attribute.entity.d.ts.map +1 -0
  67. package/dist/entities/src/tenants/call-log.entity.d.ts +18 -0
  68. package/dist/entities/src/tenants/call-log.entity.d.ts.map +1 -0
  69. package/dist/entities/src/tenants/company.entity.d.ts +8 -0
  70. package/dist/entities/src/tenants/company.entity.d.ts.map +1 -0
  71. package/dist/entities/src/tenants/contact-custom-field.entity.d.ts +14 -0
  72. package/dist/entities/src/tenants/contact-custom-field.entity.d.ts.map +1 -0
  73. package/dist/entities/src/tenants/contact-email.entity.d.ts +7 -0
  74. package/dist/entities/src/tenants/contact-email.entity.d.ts.map +1 -0
  75. package/dist/entities/src/tenants/contact-phone.entity.d.ts +7 -0
  76. package/dist/entities/src/tenants/contact-phone.entity.d.ts.map +1 -0
  77. package/dist/entities/src/tenants/contact.entity.d.ts +14 -0
  78. package/dist/entities/src/tenants/contact.entity.d.ts.map +1 -0
  79. package/dist/entities/src/tenants/custom-field-upload.entity.d.ts +8 -0
  80. package/dist/entities/src/tenants/custom-field-upload.entity.d.ts.map +1 -0
  81. package/dist/entities/src/tenants/custom-field.entity.d.ts +10 -0
  82. package/dist/entities/src/tenants/custom-field.entity.d.ts.map +1 -0
  83. package/dist/entities/src/tenants/cx-log.entity.d.ts +20 -0
  84. package/dist/entities/src/tenants/cx-log.entity.d.ts.map +1 -0
  85. package/dist/entities/src/tenants/evaluate-form.entity.d.ts +9 -0
  86. package/dist/entities/src/tenants/evaluate-form.entity.d.ts.map +1 -0
  87. package/dist/entities/src/tenants/extension.entity.d.ts +10 -0
  88. package/dist/entities/src/tenants/extension.entity.d.ts.map +1 -0
  89. package/dist/entities/src/tenants/group.entity.d.ts +6 -0
  90. package/dist/entities/src/tenants/group.entity.d.ts.map +1 -0
  91. package/dist/entities/src/tenants/index.d.ts +25 -0
  92. package/dist/entities/src/tenants/index.d.ts.map +1 -0
  93. package/dist/entities/src/tenants/log-form.entity.d.ts +6 -0
  94. package/dist/entities/src/tenants/log-form.entity.d.ts.map +1 -0
  95. package/dist/entities/src/tenants/permission.entity.d.ts +9 -0
  96. package/dist/entities/src/tenants/permission.entity.d.ts.map +1 -0
  97. package/dist/entities/src/tenants/platform-contact.entity.d.ts +8 -0
  98. package/dist/entities/src/tenants/platform-contact.entity.d.ts.map +1 -0
  99. package/dist/entities/src/tenants/role.entity.d.ts +11 -0
  100. package/dist/entities/src/tenants/role.entity.d.ts.map +1 -0
  101. package/dist/entities/src/tenants/tag-group.entity.d.ts +8 -0
  102. package/dist/entities/src/tenants/tag-group.entity.d.ts.map +1 -0
  103. package/dist/entities/src/tenants/tag.entity.d.ts +11 -0
  104. package/dist/entities/src/tenants/tag.entity.d.ts.map +1 -0
  105. package/dist/entities/src/tenants/telephony-cdr.entity.d.ts +23 -0
  106. package/dist/entities/src/tenants/telephony-cdr.entity.d.ts.map +1 -0
  107. package/dist/entities/src/tenants/telephony-live-queue-call.entity.d.ts +7 -0
  108. package/dist/entities/src/tenants/telephony-live-queue-call.entity.d.ts.map +1 -0
  109. package/dist/entities/src/tenants/telephony-queue-call-count.entity.d.ts +15 -0
  110. package/dist/entities/src/tenants/telephony-queue-call-count.entity.d.ts.map +1 -0
  111. package/dist/entities/src/tenants/ticket.entity.d.ts +17 -0
  112. package/dist/entities/src/tenants/ticket.entity.d.ts.map +1 -0
  113. package/dist/entities/src/tenants/upload.entity.d.ts +8 -0
  114. package/dist/entities/src/tenants/upload.entity.d.ts.map +1 -0
  115. package/dist/entities/src/tenants/user.entity.d.ts +13 -0
  116. package/dist/entities/src/tenants/user.entity.d.ts.map +1 -0
  117. package/dist/entities/src/tenants/widget.entity.d.ts +9 -0
  118. package/dist/entities/src/tenants/widget.entity.d.ts.map +1 -0
  119. package/dist/evaluate-form/schema.d.ts +27 -0
  120. package/dist/evaluate-form/schema.d.ts.map +1 -0
  121. package/dist/exchange-token/index.d.ts +32 -0
  122. package/dist/exchange-token/index.d.ts.map +1 -0
  123. package/dist/extension/schema.d.ts +36 -0
  124. package/dist/extension/schema.d.ts.map +1 -0
  125. package/dist/group/schema.d.ts +24 -0
  126. package/dist/group/schema.d.ts.map +1 -0
  127. package/dist/index.d.ts +3 -0
  128. package/dist/index.d.ts.map +1 -0
  129. package/dist/index.js +759 -636
  130. package/dist/index.js.map +1 -1
  131. package/dist/index.mjs +759 -636
  132. package/dist/index.mjs.map +1 -1
  133. package/dist/log-form/schema.d.ts +24 -0
  134. package/dist/log-form/schema.d.ts.map +1 -0
  135. package/dist/permission/schema.d.ts +27 -0
  136. package/dist/permission/schema.d.ts.map +1 -0
  137. package/dist/platform-contact/schema.d.ts +30 -0
  138. package/dist/platform-contact/schema.d.ts.map +1 -0
  139. package/dist/posts/index.d.ts +118 -0
  140. package/dist/posts/index.d.ts.map +1 -0
  141. package/dist/role/schema.d.ts +70 -0
  142. package/dist/role/schema.d.ts.map +1 -0
  143. package/dist/src/attribute/index.d.ts +8 -7
  144. package/dist/src/attribute/index.d.ts.map +1 -1
  145. package/dist/src/attribute/schema.d.ts +3 -3
  146. package/dist/src/attribute/validation.d.ts +4 -4
  147. package/dist/src/auth/index.d.ts +1 -1
  148. package/dist/src/base-contract.d.ts +1 -1
  149. package/dist/src/call-log/validation.d.ts +2 -2
  150. package/dist/src/category/index.d.ts +7 -7
  151. package/dist/src/category/index.d.ts.map +1 -1
  152. package/dist/src/category/schema.d.ts +3 -3
  153. package/dist/src/category/validation.d.ts +4 -4
  154. package/dist/src/chat/index.d.ts +2111 -0
  155. package/dist/src/chat/index.d.ts.map +1 -0
  156. package/dist/src/chat/schema.d.ts +1742 -0
  157. package/dist/src/chat/schema.d.ts.map +1 -0
  158. package/dist/src/{channel/schema.d.ts → chat/validation.d.ts} +143 -81
  159. package/dist/src/chat/validation.d.ts.map +1 -0
  160. package/dist/src/contract.d.ts +4099 -3378
  161. package/dist/src/contract.d.ts.map +1 -1
  162. package/dist/src/custom-field/schema.d.ts +2 -2
  163. package/dist/src/cx-log/index.d.ts +8 -8
  164. package/dist/src/cx-log/schema.d.ts +4 -4
  165. package/dist/src/extension/index.d.ts.map +1 -1
  166. package/dist/src/mail/account-contract.d.ts +105 -105
  167. package/dist/src/mail/account-contract.d.ts.map +1 -1
  168. package/dist/src/mail/mail-contract.d.ts +615 -616
  169. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  170. package/dist/src/mail/mail-server.d.ts.map +1 -1
  171. package/dist/src/mail/message-contract.d.ts.map +1 -1
  172. package/dist/src/mail/room-contract.d.ts.map +1 -1
  173. package/dist/src/mail/schemas/account.schema.d.ts +129 -129
  174. package/dist/src/permission/index.d.ts +0 -84
  175. package/dist/src/permission/index.d.ts.map +1 -1
  176. package/dist/src/platform-contact/schema.d.ts +2 -2
  177. package/dist/src/role/index.d.ts.map +1 -1
  178. package/dist/src/tag/index.d.ts +6 -6
  179. package/dist/src/tag/index.d.ts.map +1 -1
  180. package/dist/src/tag/schema.d.ts +2 -2
  181. package/dist/src/tag/validation.d.ts +3 -3
  182. package/dist/src/ticket/schema.d.ts +2 -2
  183. package/dist/src/types.d.ts +5 -0
  184. package/dist/src/types.d.ts.map +1 -0
  185. package/dist/src/user/index.d.ts +32 -229
  186. package/dist/src/user/index.d.ts.map +1 -1
  187. package/dist/src/user/validation.d.ts +49 -0
  188. package/dist/src/user/validation.d.ts.map +1 -0
  189. package/dist/src/widget/index.d.ts +31 -70
  190. package/dist/src/widget/index.d.ts.map +1 -1
  191. package/dist/tag/schema.d.ts +21 -0
  192. package/dist/tag/schema.d.ts.map +1 -0
  193. package/dist/tag-group/schema.d.ts +24 -0
  194. package/dist/tag-group/schema.d.ts.map +1 -0
  195. package/dist/telephony-cdr/index.d.ts +4 -0
  196. package/dist/telephony-cdr/index.d.ts.map +1 -0
  197. package/dist/telephony-cdr/schema.d.ts +75 -0
  198. package/dist/telephony-cdr/schema.d.ts.map +1 -0
  199. package/dist/telephony-cdr/validation.d.ts +48 -0
  200. package/dist/telephony-cdr/validation.d.ts.map +1 -0
  201. package/dist/telephony-live-queue-call/schema.d.ts +27 -0
  202. package/dist/telephony-live-queue-call/schema.d.ts.map +1 -0
  203. package/dist/telephony-queue-call-count/schema.d.ts +51 -0
  204. package/dist/telephony-queue-call-count/schema.d.ts.map +1 -0
  205. package/dist/ticket/schema.d.ts +51 -0
  206. package/dist/ticket/schema.d.ts.map +1 -0
  207. package/dist/upload/schema.d.ts +30 -0
  208. package/dist/upload/schema.d.ts.map +1 -0
  209. package/dist/user/schema.d.ts +140 -0
  210. package/dist/user/schema.d.ts.map +1 -0
  211. package/dist/utils.d.ts +2 -2
  212. package/dist/widget/schema.d.ts +33 -0
  213. package/dist/widget/schema.d.ts.map +1 -0
  214. package/package.json +2 -3
  215. package/dist/src/channel/index.d.ts +0 -629
  216. package/dist/src/channel/schema.d.ts.map +0 -1
  217. package/dist/src/channel/validation.d.ts +0 -242
  218. package/dist/src/channel/validation.d.ts.map +0 -1
@@ -0,0 +1,85 @@
1
+ import z from 'zod';
2
+ export declare const DefaultHeaderSchema: z.ZodObject<{
3
+ 'x-tenant': z.ZodString;
4
+ authorization: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ 'x-tenant': string;
7
+ authorization: string;
8
+ }, {
9
+ 'x-tenant': string;
10
+ authorization: string;
11
+ }>;
12
+ export declare const DefaultEntitySchema: z.ZodObject<{
13
+ id: z.ZodString;
14
+ createdAt: z.ZodDate;
15
+ updatedAt: z.ZodDate;
16
+ deletedAt: z.ZodDate;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ deletedAt: Date;
22
+ }, {
23
+ id: string;
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ deletedAt: Date;
27
+ }>;
28
+ export declare const DefaultQueryParamsSchema: z.ZodObject<{
29
+ page: z.ZodDefault<z.ZodNumber>;
30
+ pageSize: z.ZodDefault<z.ZodNumber>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ page: number;
33
+ pageSize: number;
34
+ }, {
35
+ page?: number | undefined;
36
+ pageSize?: number | undefined;
37
+ }>;
38
+ export declare const DefaultSuccessResponseSchema: z.ZodObject<{
39
+ requestId: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ requestId: string;
42
+ }, {
43
+ requestId: string;
44
+ }>;
45
+ export declare const DefaultErrorResponseSchema: z.ZodObject<{
46
+ message: z.ZodString;
47
+ error: z.ZodAny;
48
+ }, "strip", z.ZodTypeAny, {
49
+ message: string;
50
+ error?: any;
51
+ }, {
52
+ message: string;
53
+ error?: any;
54
+ }>;
55
+ export declare const DefaultNotFoundSchema: z.ZodObject<{
56
+ message: z.ZodString;
57
+ error: z.ZodAny;
58
+ }, "strip", z.ZodTypeAny, {
59
+ message: string;
60
+ error?: any;
61
+ }, {
62
+ message: string;
63
+ error?: any;
64
+ }>;
65
+ export declare const DefaultUnprocessibleSchema: z.ZodObject<{
66
+ message: z.ZodString;
67
+ error: z.ZodAny;
68
+ }, "strip", z.ZodTypeAny, {
69
+ message: string;
70
+ error?: any;
71
+ }, {
72
+ message: string;
73
+ error?: any;
74
+ }>;
75
+ export declare const DefaultUnauthorizedSchema: z.ZodObject<{
76
+ message: z.ZodString;
77
+ error: z.ZodAny;
78
+ }, "strip", z.ZodTypeAny, {
79
+ message: string;
80
+ error?: any;
81
+ }, {
82
+ message: string;
83
+ error?: any;
84
+ }>;
85
+ //# sourceMappingURL=base-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-contract.d.ts","sourceRoot":"","sources":["../../../src/base-contract.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAIH,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAIH,eAAO,MAAM,4BAA4B;;;;;;EAEvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;EAA6B,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;;;;;;;EAA6B,CAAC;AAErE,eAAO,MAAM,yBAAyB;;;;;;;;;EAA6B,CAAC"}
@@ -0,0 +1,593 @@
1
+ export declare const apiContract: {
2
+ auth: {
3
+ refreshToken: {
4
+ body: null;
5
+ summary: "Refresh token";
6
+ method: "POST";
7
+ responses: {
8
+ 200: import("zod").ZodObject<{
9
+ requestId: import("zod").ZodString;
10
+ accessToken: import("zod").ZodString;
11
+ refreshToken: import("zod").ZodString;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ requestId: string;
14
+ refreshToken: string;
15
+ accessToken: string;
16
+ }, {
17
+ requestId: string;
18
+ refreshToken: string;
19
+ accessToken: string;
20
+ }>;
21
+ 401: import("zod").ZodObject<{
22
+ message: import("zod").ZodString;
23
+ error: import("zod").ZodAny;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ message: string;
26
+ error?: any;
27
+ }, {
28
+ message: string;
29
+ error?: any;
30
+ }>;
31
+ 404: import("zod").ZodObject<{
32
+ message: import("zod").ZodString;
33
+ error: import("zod").ZodAny;
34
+ }, "strip", import("zod").ZodTypeAny, {
35
+ message: string;
36
+ error?: any;
37
+ }, {
38
+ message: string;
39
+ error?: any;
40
+ }>;
41
+ 422: import("zod").ZodObject<{
42
+ message: import("zod").ZodString;
43
+ error: import("zod").ZodAny;
44
+ }, "strip", import("zod").ZodTypeAny, {
45
+ message: string;
46
+ error?: any;
47
+ }, {
48
+ message: string;
49
+ error?: any;
50
+ }>;
51
+ };
52
+ path: "auth/refresh-token";
53
+ headers: import("zod").ZodObject<{
54
+ 'x-tenant': import("zod").ZodString;
55
+ authorization: import("zod").ZodString;
56
+ }, "strip", import("zod").ZodTypeAny, {
57
+ 'x-tenant': string;
58
+ authorization: string;
59
+ }, {
60
+ 'x-tenant': string;
61
+ authorization: string;
62
+ }>;
63
+ };
64
+ exchangeToken: {
65
+ body: null;
66
+ summary: "Exchange jwt token";
67
+ method: "POST";
68
+ responses: {
69
+ 200: import("zod").ZodObject<{
70
+ requestId: import("zod").ZodString;
71
+ accessToken: import("zod").ZodString;
72
+ refreshToken: import("zod").ZodString;
73
+ }, "strip", import("zod").ZodTypeAny, {
74
+ requestId: string;
75
+ refreshToken: string;
76
+ accessToken: string;
77
+ }, {
78
+ requestId: string;
79
+ refreshToken: string;
80
+ accessToken: string;
81
+ }>;
82
+ 401: import("zod").ZodObject<{
83
+ message: import("zod").ZodString;
84
+ error: import("zod").ZodAny;
85
+ }, "strip", import("zod").ZodTypeAny, {
86
+ message: string;
87
+ error?: any;
88
+ }, {
89
+ message: string;
90
+ error?: any;
91
+ }>;
92
+ 404: import("zod").ZodObject<{
93
+ message: import("zod").ZodString;
94
+ error: import("zod").ZodAny;
95
+ }, "strip", import("zod").ZodTypeAny, {
96
+ message: string;
97
+ error?: any;
98
+ }, {
99
+ message: string;
100
+ error?: any;
101
+ }>;
102
+ 422: import("zod").ZodObject<{
103
+ message: import("zod").ZodString;
104
+ error: import("zod").ZodAny;
105
+ }, "strip", import("zod").ZodTypeAny, {
106
+ message: string;
107
+ error?: any;
108
+ }, {
109
+ message: string;
110
+ error?: any;
111
+ }>;
112
+ };
113
+ path: "auth/exchange-token";
114
+ headers: import("zod").ZodObject<{
115
+ 'x-tenant': import("zod").ZodString;
116
+ authorization: import("zod").ZodString;
117
+ }, "strip", import("zod").ZodTypeAny, {
118
+ 'x-tenant': string;
119
+ authorization: string;
120
+ }, {
121
+ 'x-tenant': string;
122
+ authorization: string;
123
+ }>;
124
+ };
125
+ logout: {
126
+ body: null;
127
+ summary: "Logout";
128
+ method: "POST";
129
+ responses: {
130
+ 200: import("zod").ZodObject<{
131
+ requestId: import("zod").ZodString;
132
+ message: import("zod").ZodString;
133
+ }, "strip", import("zod").ZodTypeAny, {
134
+ message: string;
135
+ requestId: string;
136
+ }, {
137
+ message: string;
138
+ requestId: string;
139
+ }>;
140
+ 401: import("zod").ZodObject<{
141
+ message: import("zod").ZodString;
142
+ error: import("zod").ZodAny;
143
+ }, "strip", import("zod").ZodTypeAny, {
144
+ message: string;
145
+ error?: any;
146
+ }, {
147
+ message: string;
148
+ error?: any;
149
+ }>;
150
+ 404: import("zod").ZodObject<{
151
+ message: import("zod").ZodString;
152
+ error: import("zod").ZodAny;
153
+ }, "strip", import("zod").ZodTypeAny, {
154
+ message: string;
155
+ error?: any;
156
+ }, {
157
+ message: string;
158
+ error?: any;
159
+ }>;
160
+ 422: import("zod").ZodObject<{
161
+ message: import("zod").ZodString;
162
+ error: import("zod").ZodAny;
163
+ }, "strip", import("zod").ZodTypeAny, {
164
+ message: string;
165
+ error?: any;
166
+ }, {
167
+ message: string;
168
+ error?: any;
169
+ }>;
170
+ };
171
+ path: "auth/logout";
172
+ headers: import("zod").ZodObject<{
173
+ 'x-tenant': import("zod").ZodString;
174
+ authorization: import("zod").ZodString;
175
+ }, "strip", import("zod").ZodTypeAny, {
176
+ 'x-tenant': string;
177
+ authorization: string;
178
+ }, {
179
+ 'x-tenant': string;
180
+ authorization: string;
181
+ }>;
182
+ };
183
+ me: {
184
+ summary: "Get current user";
185
+ method: "GET";
186
+ responses: {
187
+ 200: import("zod").ZodObject<{
188
+ requestId: import("zod").ZodString;
189
+ user: import("zod").ZodObject<{
190
+ id: import("zod").ZodString;
191
+ createdAt: import("zod").ZodDate;
192
+ updatedAt: import("zod").ZodDate;
193
+ deletedAt: import("zod").ZodDate;
194
+ name: import("zod").ZodString;
195
+ email: import("zod").ZodString;
196
+ address: import("zod").ZodNullable<import("zod").ZodString>;
197
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
198
+ notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
199
+ userId: import("zod").ZodNullable<import("zod").ZodString>;
200
+ roles: import("zod").ZodArray<import("zod").ZodObject<{
201
+ id: import("zod").ZodString;
202
+ createdAt: import("zod").ZodDate;
203
+ updatedAt: import("zod").ZodDate;
204
+ deletedAt: import("zod").ZodDate;
205
+ systemName: import("zod").ZodString;
206
+ displayName: import("zod").ZodString;
207
+ description: import("zod").ZodNullable<import("zod").ZodString>;
208
+ permissions: import("zod").ZodArray<import("zod").ZodObject<{
209
+ id: import("zod").ZodString;
210
+ createdAt: import("zod").ZodDate;
211
+ updatedAt: import("zod").ZodDate;
212
+ deletedAt: import("zod").ZodDate;
213
+ systemName: import("zod").ZodString;
214
+ displayName: import("zod").ZodString;
215
+ description: import("zod").ZodNullable<import("zod").ZodString>;
216
+ }, "strip", import("zod").ZodTypeAny, {
217
+ id: string;
218
+ description: string | null;
219
+ createdAt: Date;
220
+ updatedAt: Date;
221
+ deletedAt: Date;
222
+ systemName: string;
223
+ displayName: string;
224
+ }, {
225
+ id: string;
226
+ description: string | null;
227
+ createdAt: Date;
228
+ updatedAt: Date;
229
+ deletedAt: Date;
230
+ systemName: string;
231
+ displayName: string;
232
+ }>, "many">;
233
+ }, "strip", import("zod").ZodTypeAny, {
234
+ id: string;
235
+ description: string | null;
236
+ createdAt: Date;
237
+ updatedAt: Date;
238
+ deletedAt: Date;
239
+ systemName: string;
240
+ displayName: string;
241
+ permissions: {
242
+ id: string;
243
+ description: string | null;
244
+ createdAt: Date;
245
+ updatedAt: Date;
246
+ deletedAt: Date;
247
+ systemName: string;
248
+ displayName: string;
249
+ }[];
250
+ }, {
251
+ id: string;
252
+ description: string | null;
253
+ createdAt: Date;
254
+ updatedAt: Date;
255
+ deletedAt: Date;
256
+ systemName: string;
257
+ displayName: string;
258
+ permissions: {
259
+ id: string;
260
+ description: string | null;
261
+ createdAt: Date;
262
+ updatedAt: Date;
263
+ deletedAt: Date;
264
+ systemName: string;
265
+ displayName: string;
266
+ }[];
267
+ }>, "many">;
268
+ }, "strip", import("zod").ZodTypeAny, {
269
+ id: string;
270
+ address: string | null;
271
+ name: string;
272
+ email: string;
273
+ createdAt: Date;
274
+ updatedAt: Date;
275
+ deletedAt: Date;
276
+ phone: string | null;
277
+ notificationCount: number | null;
278
+ userId: string | null;
279
+ roles: {
280
+ id: string;
281
+ description: string | null;
282
+ createdAt: Date;
283
+ updatedAt: Date;
284
+ deletedAt: Date;
285
+ systemName: string;
286
+ displayName: string;
287
+ permissions: {
288
+ id: string;
289
+ description: string | null;
290
+ createdAt: Date;
291
+ updatedAt: Date;
292
+ deletedAt: Date;
293
+ systemName: string;
294
+ displayName: string;
295
+ }[];
296
+ }[];
297
+ }, {
298
+ id: string;
299
+ address: string | null;
300
+ name: string;
301
+ email: string;
302
+ createdAt: Date;
303
+ updatedAt: Date;
304
+ deletedAt: Date;
305
+ phone: string | null;
306
+ notificationCount: number | null;
307
+ userId: string | null;
308
+ roles: {
309
+ id: string;
310
+ description: string | null;
311
+ createdAt: Date;
312
+ updatedAt: Date;
313
+ deletedAt: Date;
314
+ systemName: string;
315
+ displayName: string;
316
+ permissions: {
317
+ id: string;
318
+ description: string | null;
319
+ createdAt: Date;
320
+ updatedAt: Date;
321
+ deletedAt: Date;
322
+ systemName: string;
323
+ displayName: string;
324
+ }[];
325
+ }[];
326
+ }>;
327
+ }, "strip", import("zod").ZodTypeAny, {
328
+ user: {
329
+ id: string;
330
+ address: string | null;
331
+ name: string;
332
+ email: string;
333
+ createdAt: Date;
334
+ updatedAt: Date;
335
+ deletedAt: Date;
336
+ phone: string | null;
337
+ notificationCount: number | null;
338
+ userId: string | null;
339
+ roles: {
340
+ id: string;
341
+ description: string | null;
342
+ createdAt: Date;
343
+ updatedAt: Date;
344
+ deletedAt: Date;
345
+ systemName: string;
346
+ displayName: string;
347
+ permissions: {
348
+ id: string;
349
+ description: string | null;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
+ deletedAt: Date;
353
+ systemName: string;
354
+ displayName: string;
355
+ }[];
356
+ }[];
357
+ };
358
+ requestId: string;
359
+ }, {
360
+ user: {
361
+ id: string;
362
+ address: string | null;
363
+ name: string;
364
+ email: string;
365
+ createdAt: Date;
366
+ updatedAt: Date;
367
+ deletedAt: Date;
368
+ phone: string | null;
369
+ notificationCount: number | null;
370
+ userId: string | null;
371
+ roles: {
372
+ id: string;
373
+ description: string | null;
374
+ createdAt: Date;
375
+ updatedAt: Date;
376
+ deletedAt: Date;
377
+ systemName: string;
378
+ displayName: string;
379
+ permissions: {
380
+ id: string;
381
+ description: string | null;
382
+ createdAt: Date;
383
+ updatedAt: Date;
384
+ deletedAt: Date;
385
+ systemName: string;
386
+ displayName: string;
387
+ }[];
388
+ }[];
389
+ };
390
+ requestId: string;
391
+ }>;
392
+ 401: import("zod").ZodObject<{
393
+ message: import("zod").ZodString;
394
+ error: import("zod").ZodAny;
395
+ }, "strip", import("zod").ZodTypeAny, {
396
+ message: string;
397
+ error?: any;
398
+ }, {
399
+ message: string;
400
+ error?: any;
401
+ }>;
402
+ 404: import("zod").ZodObject<{
403
+ message: import("zod").ZodString;
404
+ error: import("zod").ZodAny;
405
+ }, "strip", import("zod").ZodTypeAny, {
406
+ message: string;
407
+ error?: any;
408
+ }, {
409
+ message: string;
410
+ error?: any;
411
+ }>;
412
+ 422: import("zod").ZodObject<{
413
+ message: import("zod").ZodString;
414
+ error: import("zod").ZodAny;
415
+ }, "strip", import("zod").ZodTypeAny, {
416
+ message: string;
417
+ error?: any;
418
+ }, {
419
+ message: string;
420
+ error?: any;
421
+ }>;
422
+ };
423
+ path: "auth/me";
424
+ headers: import("zod").ZodObject<{
425
+ 'x-tenant': import("zod").ZodString;
426
+ authorization: import("zod").ZodString;
427
+ }, "strip", import("zod").ZodTypeAny, {
428
+ 'x-tenant': string;
429
+ authorization: string;
430
+ }, {
431
+ 'x-tenant': string;
432
+ authorization: string;
433
+ }>;
434
+ };
435
+ };
436
+ cxLog: {
437
+ findAll: {
438
+ summary: "Get all cx-logs";
439
+ method: "GET";
440
+ query: import("zod").ZodObject<{
441
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
442
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
443
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
444
+ channelIds: import("zod").ZodOptional<import("zod").ZodString>;
445
+ queueIds: import("zod").ZodOptional<import("zod").ZodString>;
446
+ direction: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["inbound", "outbound"]>, "many">>;
447
+ sentimentScore: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["positive", "negative"]>, "many">>;
448
+ csatScore: import("zod").ZodOptional<import("zod").ZodString>;
449
+ sla: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["meet", "unmeet"]>, "many">>;
450
+ caseId: import("zod").ZodOptional<import("zod").ZodString>;
451
+ name: import("zod").ZodOptional<import("zod").ZodString>;
452
+ email: import("zod").ZodOptional<import("zod").ZodString>;
453
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
454
+ address: import("zod").ZodOptional<import("zod").ZodString>;
455
+ company: import("zod").ZodOptional<import("zod").ZodString>;
456
+ agentIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
457
+ channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
458
+ disposition: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
459
+ notes: import("zod").ZodOptional<import("zod").ZodString>;
460
+ contactLabels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
461
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
462
+ selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
463
+ customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
464
+ attributeId: import("zod").ZodString;
465
+ value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
466
+ type: import("zod").ZodString;
467
+ }, "strip", import("zod").ZodTypeAny, {
468
+ type: string;
469
+ value: (string | string[]) & (string | string[] | undefined);
470
+ attributeId: string;
471
+ }, {
472
+ type: string;
473
+ value: (string | string[]) & (string | string[] | undefined);
474
+ attributeId: string;
475
+ }>, "many">>;
476
+ }, "strip", import("zod").ZodTypeAny, {
477
+ page: number;
478
+ pageSize: number;
479
+ contactId?: string | undefined;
480
+ channelIds?: string | undefined;
481
+ queueIds?: string | undefined;
482
+ direction?: ("inbound" | "outbound")[] | undefined;
483
+ sentimentScore?: ("positive" | "negative")[] | undefined;
484
+ csatScore?: string | undefined;
485
+ sla?: ("meet" | "unmeet")[] | undefined;
486
+ caseId?: string | undefined;
487
+ name?: string | undefined;
488
+ email?: string | undefined;
489
+ phone?: string | undefined;
490
+ address?: string | undefined;
491
+ company?: string | undefined;
492
+ agentIds?: string[] | undefined;
493
+ channel?: string[] | undefined;
494
+ disposition?: string[] | undefined;
495
+ notes?: string | undefined;
496
+ contactLabels?: string[] | undefined;
497
+ tags?: string[] | undefined;
498
+ selectedDate?: string | undefined;
499
+ customFields?: {
500
+ type: string;
501
+ value: (string | string[]) & (string | string[] | undefined);
502
+ attributeId: string;
503
+ }[] | undefined;
504
+ }, {
505
+ page?: number | undefined;
506
+ pageSize?: number | undefined;
507
+ contactId?: string | undefined;
508
+ channelIds?: string | undefined;
509
+ queueIds?: string | undefined;
510
+ direction?: ("inbound" | "outbound")[] | undefined;
511
+ sentimentScore?: ("positive" | "negative")[] | undefined;
512
+ csatScore?: string | undefined;
513
+ sla?: ("meet" | "unmeet")[] | undefined;
514
+ caseId?: string | undefined;
515
+ name?: string | undefined;
516
+ email?: string | undefined;
517
+ phone?: string | undefined;
518
+ address?: string | undefined;
519
+ company?: string | undefined;
520
+ agentIds?: string[] | undefined;
521
+ channel?: string[] | undefined;
522
+ disposition?: string[] | undefined;
523
+ notes?: string | undefined;
524
+ contactLabels?: string[] | undefined;
525
+ tags?: string[] | undefined;
526
+ selectedDate?: string | undefined;
527
+ customFields?: {
528
+ type: string;
529
+ value: (string | string[]) & (string | string[] | undefined);
530
+ attributeId: string;
531
+ }[] | undefined;
532
+ }>;
533
+ responses: {
534
+ 200: import("zod").ZodObject<{
535
+ requestId: import("zod").ZodString;
536
+ total: import("zod").ZodNumber;
537
+ page: import("zod").ZodNumber;
538
+ pageSize: import("zod").ZodNumber;
539
+ cxLogs: import("zod").ZodObject<{
540
+ requestId: import("zod").ZodString;
541
+ cxLogs: import("zod").ZodArray<import("zod").ZodType<import("@app/entity/tenants").CxLog, import("zod").ZodTypeDef, import("@app/entity/tenants").CxLog>, "many">;
542
+ }, "strip", import("zod").ZodTypeAny, {
543
+ requestId: string;
544
+ cxLogs: import("@app/entity/tenants").CxLog[];
545
+ }, {
546
+ requestId: string;
547
+ cxLogs: import("@app/entity/tenants").CxLog[];
548
+ }>;
549
+ }, "strip", import("zod").ZodTypeAny, {
550
+ total: number;
551
+ page: number;
552
+ pageSize: number;
553
+ requestId: string;
554
+ cxLogs: {
555
+ requestId: string;
556
+ cxLogs: import("@app/entity/tenants").CxLog[];
557
+ };
558
+ }, {
559
+ total: number;
560
+ page: number;
561
+ pageSize: number;
562
+ requestId: string;
563
+ cxLogs: {
564
+ requestId: string;
565
+ cxLogs: import("@app/entity/tenants").CxLog[];
566
+ };
567
+ }>;
568
+ 401: import("zod").ZodObject<{
569
+ message: import("zod").ZodString;
570
+ error: import("zod").ZodAny;
571
+ }, "strip", import("zod").ZodTypeAny, {
572
+ message: string;
573
+ error?: any;
574
+ }, {
575
+ message: string;
576
+ error?: any;
577
+ }>;
578
+ };
579
+ path: "/cx-logs";
580
+ headers: import("zod").ZodObject<{
581
+ 'x-tenant': import("zod").ZodString;
582
+ authorization: import("zod").ZodString;
583
+ }, "strip", import("zod").ZodTypeAny, {
584
+ 'x-tenant': string;
585
+ authorization: string;
586
+ }, {
587
+ 'x-tenant': string;
588
+ authorization: string;
589
+ }>;
590
+ };
591
+ };
592
+ };
593
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/contract.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGtB,CAAC"}