@kl1/contracts 1.0.0

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 (263) 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/contract.d.ts.map +1 -0
  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 +855 -0
  130. package/dist/index.js.map +1 -0
  131. package/dist/index.mjs +817 -0
  132. package/dist/index.mjs.map +1 -0
  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 +433 -0
  144. package/dist/src/attribute/index.d.ts.map +1 -0
  145. package/dist/src/attribute/schema.d.ts +42 -0
  146. package/dist/src/attribute/schema.d.ts.map +1 -0
  147. package/dist/src/attribute/validation.d.ts +131 -0
  148. package/dist/src/attribute/validation.d.ts.map +1 -0
  149. package/dist/src/attribute-option/schema.d.ts +33 -0
  150. package/dist/src/attribute-option/schema.d.ts.map +1 -0
  151. package/dist/src/auth/index.d.ts +431 -0
  152. package/dist/src/auth/index.d.ts.map +1 -0
  153. package/dist/src/base-contract.d.ts +117 -0
  154. package/dist/src/base-contract.d.ts.map +1 -0
  155. package/dist/src/call-log/index.d.ts +4 -0
  156. package/dist/src/call-log/index.d.ts.map +1 -0
  157. package/dist/src/call-log/schema.d.ts +57 -0
  158. package/dist/src/call-log/schema.d.ts.map +1 -0
  159. package/dist/src/call-log/validation.d.ts +24 -0
  160. package/dist/src/call-log/validation.d.ts.map +1 -0
  161. package/dist/src/category/index.d.ts +633 -0
  162. package/dist/src/category/index.d.ts.map +1 -0
  163. package/dist/src/category/schema.d.ts +94 -0
  164. package/dist/src/category/schema.d.ts.map +1 -0
  165. package/dist/src/category/validation.d.ts +45 -0
  166. package/dist/src/category/validation.d.ts.map +1 -0
  167. package/dist/src/company/schema.d.ts +30 -0
  168. package/dist/src/company/schema.d.ts.map +1 -0
  169. package/dist/src/contact/schema.d.ts +42 -0
  170. package/dist/src/contact/schema.d.ts.map +1 -0
  171. package/dist/src/contact-email/schema.d.ts +27 -0
  172. package/dist/src/contact-email/schema.d.ts.map +1 -0
  173. package/dist/src/contact-phone/schema.d.ts +27 -0
  174. package/dist/src/contact-phone/schema.d.ts.map +1 -0
  175. package/dist/src/contract.d.ts +3196 -0
  176. package/dist/src/contract.d.ts.map +1 -0
  177. package/dist/src/custom-field/schema.d.ts +36 -0
  178. package/dist/src/custom-field/schema.d.ts.map +1 -0
  179. package/dist/src/custom-field-upload/schema.d.ts +24 -0
  180. package/dist/src/custom-field-upload/schema.d.ts.map +1 -0
  181. package/dist/src/cx-log/index.d.ts +230 -0
  182. package/dist/src/cx-log/index.d.ts.map +1 -0
  183. package/dist/src/cx-log/schema.d.ts +54 -0
  184. package/dist/src/cx-log/schema.d.ts.map +1 -0
  185. package/dist/src/cx-log/validation.d.ts +95 -0
  186. package/dist/src/cx-log/validation.d.ts.map +1 -0
  187. package/dist/src/evaluate-form/schema.d.ts +27 -0
  188. package/dist/src/evaluate-form/schema.d.ts.map +1 -0
  189. package/dist/src/extension/schema.d.ts +36 -0
  190. package/dist/src/extension/schema.d.ts.map +1 -0
  191. package/dist/src/group/schema.d.ts +24 -0
  192. package/dist/src/group/schema.d.ts.map +1 -0
  193. package/dist/src/index.d.ts +6 -0
  194. package/dist/src/index.d.ts.map +1 -0
  195. package/dist/src/log-form/schema.d.ts +24 -0
  196. package/dist/src/log-form/schema.d.ts.map +1 -0
  197. package/dist/src/mail/account-contract.d.ts +1250 -0
  198. package/dist/src/mail/account-contract.d.ts.map +1 -0
  199. package/dist/src/mail/email-engine-webhooks-events.contract.d.ts +22 -0
  200. package/dist/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -0
  201. package/dist/src/mail/mail-contract.d.ts +1894 -0
  202. package/dist/src/mail/mail-contract.d.ts.map +1 -0
  203. package/dist/src/mail/mail-server.d.ts +216 -0
  204. package/dist/src/mail/mail-server.d.ts.map +1 -0
  205. package/dist/src/mail/message-contract.d.ts +216 -0
  206. package/dist/src/mail/message-contract.d.ts.map +1 -0
  207. package/dist/src/mail/room-contract.d.ts +216 -0
  208. package/dist/src/mail/room-contract.d.ts.map +1 -0
  209. package/dist/src/mail/schemas/account.schema.d.ts +1004 -0
  210. package/dist/src/mail/schemas/account.schema.d.ts.map +1 -0
  211. package/dist/src/permission/schema.d.ts +27 -0
  212. package/dist/src/permission/schema.d.ts.map +1 -0
  213. package/dist/src/platform-contact/schema.d.ts +30 -0
  214. package/dist/src/platform-contact/schema.d.ts.map +1 -0
  215. package/dist/src/role/schema.d.ts +70 -0
  216. package/dist/src/role/schema.d.ts.map +1 -0
  217. package/dist/src/tag/schema.d.ts +21 -0
  218. package/dist/src/tag/schema.d.ts.map +1 -0
  219. package/dist/src/tag-group/schema.d.ts +24 -0
  220. package/dist/src/tag-group/schema.d.ts.map +1 -0
  221. package/dist/src/telephony-cdr/index.d.ts +4 -0
  222. package/dist/src/telephony-cdr/index.d.ts.map +1 -0
  223. package/dist/src/telephony-cdr/schema.d.ts +75 -0
  224. package/dist/src/telephony-cdr/schema.d.ts.map +1 -0
  225. package/dist/src/telephony-cdr/validation.d.ts +48 -0
  226. package/dist/src/telephony-cdr/validation.d.ts.map +1 -0
  227. package/dist/src/telephony-live-queue-call/schema.d.ts +27 -0
  228. package/dist/src/telephony-live-queue-call/schema.d.ts.map +1 -0
  229. package/dist/src/telephony-queue-call-count/schema.d.ts +51 -0
  230. package/dist/src/telephony-queue-call-count/schema.d.ts.map +1 -0
  231. package/dist/src/ticket/schema.d.ts +51 -0
  232. package/dist/src/ticket/schema.d.ts.map +1 -0
  233. package/dist/src/upload/schema.d.ts +30 -0
  234. package/dist/src/upload/schema.d.ts.map +1 -0
  235. package/dist/src/user/schema.d.ts +137 -0
  236. package/dist/src/user/schema.d.ts.map +1 -0
  237. package/dist/src/widget/schema.d.ts +33 -0
  238. package/dist/src/widget/schema.d.ts.map +1 -0
  239. package/dist/tag/schema.d.ts +21 -0
  240. package/dist/tag/schema.d.ts.map +1 -0
  241. package/dist/tag-group/schema.d.ts +24 -0
  242. package/dist/tag-group/schema.d.ts.map +1 -0
  243. package/dist/telephony-cdr/index.d.ts +4 -0
  244. package/dist/telephony-cdr/index.d.ts.map +1 -0
  245. package/dist/telephony-cdr/schema.d.ts +75 -0
  246. package/dist/telephony-cdr/schema.d.ts.map +1 -0
  247. package/dist/telephony-cdr/validation.d.ts +48 -0
  248. package/dist/telephony-cdr/validation.d.ts.map +1 -0
  249. package/dist/telephony-live-queue-call/schema.d.ts +27 -0
  250. package/dist/telephony-live-queue-call/schema.d.ts.map +1 -0
  251. package/dist/telephony-queue-call-count/schema.d.ts +51 -0
  252. package/dist/telephony-queue-call-count/schema.d.ts.map +1 -0
  253. package/dist/ticket/schema.d.ts +51 -0
  254. package/dist/ticket/schema.d.ts.map +1 -0
  255. package/dist/upload/schema.d.ts +30 -0
  256. package/dist/upload/schema.d.ts.map +1 -0
  257. package/dist/user/schema.d.ts +140 -0
  258. package/dist/user/schema.d.ts.map +1 -0
  259. package/dist/utils.d.ts +37 -0
  260. package/dist/utils.d.ts.map +1 -0
  261. package/dist/widget/schema.d.ts +33 -0
  262. package/dist/widget/schema.d.ts.map +1 -0
  263. package/package.json +48 -0
@@ -0,0 +1,433 @@
1
+ import { z } from 'zod';
2
+ export declare const attributeContract: {
3
+ createAttribute: {
4
+ body: z.ZodObject<{
5
+ name: z.ZodString;
6
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"select">, z.ZodLiteral<"textarea">, z.ZodLiteral<"boolean">, z.ZodLiteral<"number">, z.ZodLiteral<"link">, z.ZodLiteral<"date">, z.ZodLiteral<"attachment">, z.ZodLiteral<"dependent">]>;
7
+ isRequired: z.ZodBoolean;
8
+ isVisible: z.ZodBoolean;
9
+ group: z.ZodString;
10
+ options: z.ZodArray<z.ZodObject<{
11
+ label: z.ZodString;
12
+ value: z.ZodString;
13
+ isDefault: z.ZodBoolean;
14
+ position: z.ZodNumber;
15
+ }, "strip", z.ZodTypeAny, {
16
+ position: number;
17
+ value: string;
18
+ label: string;
19
+ isDefault: boolean;
20
+ }, {
21
+ position: number;
22
+ value: string;
23
+ label: string;
24
+ isDefault: boolean;
25
+ }>, "many">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
28
+ name: string;
29
+ options: {
30
+ position: number;
31
+ value: string;
32
+ label: string;
33
+ isDefault: boolean;
34
+ }[];
35
+ group: string;
36
+ isRequired: boolean;
37
+ isVisible: boolean;
38
+ }, {
39
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
40
+ name: string;
41
+ options: {
42
+ position: number;
43
+ value: string;
44
+ label: string;
45
+ isDefault: boolean;
46
+ }[];
47
+ group: string;
48
+ isRequired: boolean;
49
+ isVisible: boolean;
50
+ }>;
51
+ method: "POST";
52
+ responses: {
53
+ 201: z.ZodObject<{
54
+ requestId: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ requestId: string;
57
+ }, {
58
+ requestId: string;
59
+ }>;
60
+ 500: z.ZodObject<{
61
+ message: z.ZodString;
62
+ error: z.ZodAny;
63
+ }, "strip", z.ZodTypeAny, {
64
+ message: string;
65
+ error?: any;
66
+ }, {
67
+ message: string;
68
+ error?: any;
69
+ }>;
70
+ };
71
+ path: "attributes";
72
+ headers: z.ZodObject<{
73
+ 'x-tenant': z.ZodString;
74
+ authorization: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ 'x-tenant': string;
77
+ authorization: string;
78
+ }, {
79
+ 'x-tenant': string;
80
+ authorization: string;
81
+ }>;
82
+ };
83
+ getAttributes: {
84
+ method: "GET";
85
+ query: z.ZodObject<{
86
+ group: z.ZodString;
87
+ visibleOnly: z.ZodDefault<z.ZodBoolean>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ group: string;
90
+ visibleOnly: boolean;
91
+ }, {
92
+ group: string;
93
+ visibleOnly?: boolean | undefined;
94
+ }>;
95
+ responses: {
96
+ 200: z.ZodArray<z.ZodObject<{
97
+ id: z.ZodString;
98
+ createdAt: z.ZodDate;
99
+ updatedAt: z.ZodDate;
100
+ deletedAt: z.ZodDate;
101
+ systemName: z.ZodString;
102
+ type: z.ZodString;
103
+ position: z.ZodNumber;
104
+ isDefault: z.ZodBoolean;
105
+ isArchived: z.ZodBoolean;
106
+ isRequired: z.ZodBoolean;
107
+ isUnique: z.ZodBoolean;
108
+ groupId: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ type: string;
111
+ id: string;
112
+ position: number;
113
+ createdAt: Date;
114
+ updatedAt: Date;
115
+ deletedAt: Date;
116
+ systemName: string;
117
+ isDefault: boolean;
118
+ isArchived: boolean;
119
+ isRequired: boolean;
120
+ isUnique: boolean;
121
+ groupId: string;
122
+ }, {
123
+ type: string;
124
+ id: string;
125
+ position: number;
126
+ createdAt: Date;
127
+ updatedAt: Date;
128
+ deletedAt: Date;
129
+ systemName: string;
130
+ isDefault: boolean;
131
+ isArchived: boolean;
132
+ isRequired: boolean;
133
+ isUnique: boolean;
134
+ groupId: string;
135
+ }>, "many">;
136
+ 500: z.ZodObject<{
137
+ message: z.ZodString;
138
+ error: z.ZodAny;
139
+ }, "strip", z.ZodTypeAny, {
140
+ message: string;
141
+ error?: any;
142
+ }, {
143
+ message: string;
144
+ error?: any;
145
+ }>;
146
+ };
147
+ path: "attributes";
148
+ headers: z.ZodObject<{
149
+ 'x-tenant': z.ZodString;
150
+ authorization: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ 'x-tenant': string;
153
+ authorization: string;
154
+ }, {
155
+ 'x-tenant': string;
156
+ authorization: string;
157
+ }>;
158
+ };
159
+ updateAttribute: {
160
+ body: z.ZodObject<{
161
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"select">, z.ZodLiteral<"textarea">, z.ZodLiteral<"boolean">, z.ZodLiteral<"number">, z.ZodLiteral<"link">, z.ZodLiteral<"date">, z.ZodLiteral<"attachment">, z.ZodLiteral<"dependent">]>;
162
+ name: z.ZodString;
163
+ options: z.ZodArray<z.ZodObject<{
164
+ label: z.ZodString;
165
+ value: z.ZodString;
166
+ isDefault: z.ZodBoolean;
167
+ position: z.ZodNumber;
168
+ }, "strip", z.ZodTypeAny, {
169
+ position: number;
170
+ value: string;
171
+ label: string;
172
+ isDefault: boolean;
173
+ }, {
174
+ position: number;
175
+ value: string;
176
+ label: string;
177
+ isDefault: boolean;
178
+ }>, "many">;
179
+ group: z.ZodString;
180
+ isRequired: z.ZodBoolean;
181
+ isVisible: z.ZodBoolean;
182
+ id: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
185
+ id: string;
186
+ name: string;
187
+ options: {
188
+ position: number;
189
+ value: string;
190
+ label: string;
191
+ isDefault: boolean;
192
+ }[];
193
+ group: string;
194
+ isRequired: boolean;
195
+ isVisible: boolean;
196
+ }, {
197
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
198
+ id: string;
199
+ name: string;
200
+ options: {
201
+ position: number;
202
+ value: string;
203
+ label: string;
204
+ isDefault: boolean;
205
+ }[];
206
+ group: string;
207
+ isRequired: boolean;
208
+ isVisible: boolean;
209
+ }>;
210
+ method: "PATCH";
211
+ responses: {
212
+ 200: z.ZodObject<{
213
+ requestId: z.ZodString;
214
+ }, "strip", z.ZodTypeAny, {
215
+ requestId: string;
216
+ }, {
217
+ requestId: string;
218
+ }>;
219
+ 500: z.ZodObject<{
220
+ message: z.ZodString;
221
+ error: z.ZodAny;
222
+ }, "strip", z.ZodTypeAny, {
223
+ message: string;
224
+ error?: any;
225
+ }, {
226
+ message: string;
227
+ error?: any;
228
+ }>;
229
+ };
230
+ path: "attributes";
231
+ headers: z.ZodObject<{
232
+ 'x-tenant': z.ZodString;
233
+ authorization: z.ZodString;
234
+ }, "strip", z.ZodTypeAny, {
235
+ 'x-tenant': string;
236
+ authorization: string;
237
+ }, {
238
+ 'x-tenant': string;
239
+ authorization: string;
240
+ }>;
241
+ };
242
+ changeVisibility: {
243
+ body: z.ZodObject<{
244
+ isVisible: z.ZodBoolean;
245
+ }, "strip", z.ZodTypeAny, {
246
+ isVisible: boolean;
247
+ }, {
248
+ isVisible: boolean;
249
+ }>;
250
+ method: "PATCH";
251
+ pathParams: z.ZodObject<{
252
+ id: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ id: string;
255
+ }, {
256
+ id: string;
257
+ }>;
258
+ responses: {
259
+ 200: z.ZodObject<{
260
+ requestId: z.ZodString;
261
+ }, "strip", z.ZodTypeAny, {
262
+ requestId: string;
263
+ }, {
264
+ requestId: string;
265
+ }>;
266
+ 500: z.ZodObject<{
267
+ message: z.ZodString;
268
+ error: z.ZodAny;
269
+ }, "strip", z.ZodTypeAny, {
270
+ message: string;
271
+ error?: any;
272
+ }, {
273
+ message: string;
274
+ error?: any;
275
+ }>;
276
+ };
277
+ path: "attributes/visibility/:id";
278
+ headers: z.ZodObject<{
279
+ 'x-tenant': z.ZodString;
280
+ authorization: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ 'x-tenant': string;
283
+ authorization: string;
284
+ }, {
285
+ 'x-tenant': string;
286
+ authorization: string;
287
+ }>;
288
+ };
289
+ changeRequired: {
290
+ body: z.ZodObject<{
291
+ isRequired: z.ZodBoolean;
292
+ }, "strip", z.ZodTypeAny, {
293
+ isRequired: boolean;
294
+ }, {
295
+ isRequired: boolean;
296
+ }>;
297
+ method: "PATCH";
298
+ pathParams: z.ZodObject<{
299
+ id: z.ZodString;
300
+ }, "strip", z.ZodTypeAny, {
301
+ id: string;
302
+ }, {
303
+ id: string;
304
+ }>;
305
+ responses: {
306
+ 200: z.ZodObject<{
307
+ requestId: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ requestId: string;
310
+ }, {
311
+ requestId: string;
312
+ }>;
313
+ 500: z.ZodObject<{
314
+ message: z.ZodString;
315
+ error: z.ZodAny;
316
+ }, "strip", z.ZodTypeAny, {
317
+ message: string;
318
+ error?: any;
319
+ }, {
320
+ message: string;
321
+ error?: any;
322
+ }>;
323
+ };
324
+ path: "attributes/required/:id";
325
+ headers: z.ZodObject<{
326
+ 'x-tenant': z.ZodString;
327
+ authorization: z.ZodString;
328
+ }, "strip", z.ZodTypeAny, {
329
+ 'x-tenant': string;
330
+ authorization: string;
331
+ }, {
332
+ 'x-tenant': string;
333
+ authorization: string;
334
+ }>;
335
+ };
336
+ updatePosition: {
337
+ body: z.ZodObject<{
338
+ attributes: z.ZodArray<z.ZodObject<{
339
+ attributeId: z.ZodString;
340
+ position: z.ZodNumber;
341
+ }, "strip", z.ZodTypeAny, {
342
+ position: number;
343
+ attributeId: string;
344
+ }, {
345
+ position: number;
346
+ attributeId: string;
347
+ }>, "many">;
348
+ }, "strip", z.ZodTypeAny, {
349
+ attributes: {
350
+ position: number;
351
+ attributeId: string;
352
+ }[];
353
+ }, {
354
+ attributes: {
355
+ position: number;
356
+ attributeId: string;
357
+ }[];
358
+ }>;
359
+ method: "PATCH";
360
+ responses: {
361
+ 200: z.ZodObject<{
362
+ requestId: z.ZodString;
363
+ }, "strip", z.ZodTypeAny, {
364
+ requestId: string;
365
+ }, {
366
+ requestId: string;
367
+ }>;
368
+ 500: z.ZodObject<{
369
+ message: z.ZodString;
370
+ error: z.ZodAny;
371
+ }, "strip", z.ZodTypeAny, {
372
+ message: string;
373
+ error?: any;
374
+ }, {
375
+ message: string;
376
+ error?: any;
377
+ }>;
378
+ };
379
+ path: "attributes/position";
380
+ headers: z.ZodObject<{
381
+ 'x-tenant': z.ZodString;
382
+ authorization: z.ZodString;
383
+ }, "strip", z.ZodTypeAny, {
384
+ 'x-tenant': string;
385
+ authorization: string;
386
+ }, {
387
+ 'x-tenant': string;
388
+ authorization: string;
389
+ }>;
390
+ };
391
+ deleteAttribute: {
392
+ body: z.ZodOptional<z.ZodAny>;
393
+ method: "DELETE";
394
+ pathParams: z.ZodObject<{
395
+ id: z.ZodString;
396
+ }, "strip", z.ZodTypeAny, {
397
+ id: string;
398
+ }, {
399
+ id: string;
400
+ }>;
401
+ responses: {
402
+ 200: z.ZodObject<{
403
+ requestId: z.ZodString;
404
+ }, "strip", z.ZodTypeAny, {
405
+ requestId: string;
406
+ }, {
407
+ requestId: string;
408
+ }>;
409
+ 500: z.ZodObject<{
410
+ message: z.ZodString;
411
+ error: z.ZodAny;
412
+ }, "strip", z.ZodTypeAny, {
413
+ message: string;
414
+ error?: any;
415
+ }, {
416
+ message: string;
417
+ error?: any;
418
+ }>;
419
+ };
420
+ path: "attributes/:id";
421
+ headers: z.ZodObject<{
422
+ 'x-tenant': z.ZodString;
423
+ authorization: z.ZodString;
424
+ }, "strip", z.ZodTypeAny, {
425
+ 'x-tenant': string;
426
+ authorization: string;
427
+ }, {
428
+ 'x-tenant': string;
429
+ authorization: string;
430
+ }>;
431
+ };
432
+ };
433
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attribute/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E7B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import z from 'zod';
2
+ export declare const AttributeSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodDate;
7
+ systemName: z.ZodString;
8
+ type: z.ZodString;
9
+ position: z.ZodNumber;
10
+ isDefault: z.ZodBoolean;
11
+ isArchived: z.ZodBoolean;
12
+ isRequired: z.ZodBoolean;
13
+ isUnique: z.ZodBoolean;
14
+ groupId: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: string;
17
+ id: string;
18
+ position: number;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ deletedAt: Date;
22
+ systemName: string;
23
+ isDefault: boolean;
24
+ isArchived: boolean;
25
+ isRequired: boolean;
26
+ isUnique: boolean;
27
+ groupId: string;
28
+ }, {
29
+ type: string;
30
+ id: string;
31
+ position: number;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ deletedAt: Date;
35
+ systemName: string;
36
+ isDefault: boolean;
37
+ isArchived: boolean;
38
+ isRequired: boolean;
39
+ isUnique: boolean;
40
+ groupId: string;
41
+ }>;
42
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/attribute/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAC"}
@@ -0,0 +1,131 @@
1
+ import { z } from 'zod';
2
+ export declare const createAttributeSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"select">, z.ZodLiteral<"textarea">, z.ZodLiteral<"boolean">, z.ZodLiteral<"number">, z.ZodLiteral<"link">, z.ZodLiteral<"date">, z.ZodLiteral<"attachment">, z.ZodLiteral<"dependent">]>;
5
+ isRequired: z.ZodBoolean;
6
+ isVisible: z.ZodBoolean;
7
+ group: z.ZodString;
8
+ options: z.ZodArray<z.ZodObject<{
9
+ label: z.ZodString;
10
+ value: z.ZodString;
11
+ isDefault: z.ZodBoolean;
12
+ position: z.ZodNumber;
13
+ }, "strip", z.ZodTypeAny, {
14
+ position: number;
15
+ value: string;
16
+ label: string;
17
+ isDefault: boolean;
18
+ }, {
19
+ position: number;
20
+ value: string;
21
+ label: string;
22
+ isDefault: boolean;
23
+ }>, "many">;
24
+ }, "strip", z.ZodTypeAny, {
25
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
26
+ name: string;
27
+ options: {
28
+ position: number;
29
+ value: string;
30
+ label: string;
31
+ isDefault: boolean;
32
+ }[];
33
+ group: string;
34
+ isRequired: boolean;
35
+ isVisible: boolean;
36
+ }, {
37
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
38
+ name: string;
39
+ options: {
40
+ position: number;
41
+ value: string;
42
+ label: string;
43
+ isDefault: boolean;
44
+ }[];
45
+ group: string;
46
+ isRequired: boolean;
47
+ isVisible: boolean;
48
+ }>;
49
+ export declare const getAttributesSchema: z.ZodObject<{
50
+ group: z.ZodString;
51
+ visibleOnly: z.ZodDefault<z.ZodBoolean>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ group: string;
54
+ visibleOnly: boolean;
55
+ }, {
56
+ group: string;
57
+ visibleOnly?: boolean | undefined;
58
+ }>;
59
+ export declare const updateAttributeSchema: z.ZodObject<{
60
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"select">, z.ZodLiteral<"textarea">, z.ZodLiteral<"boolean">, z.ZodLiteral<"number">, z.ZodLiteral<"link">, z.ZodLiteral<"date">, z.ZodLiteral<"attachment">, z.ZodLiteral<"dependent">]>;
61
+ name: z.ZodString;
62
+ options: z.ZodArray<z.ZodObject<{
63
+ label: z.ZodString;
64
+ value: z.ZodString;
65
+ isDefault: z.ZodBoolean;
66
+ position: z.ZodNumber;
67
+ }, "strip", z.ZodTypeAny, {
68
+ position: number;
69
+ value: string;
70
+ label: string;
71
+ isDefault: boolean;
72
+ }, {
73
+ position: number;
74
+ value: string;
75
+ label: string;
76
+ isDefault: boolean;
77
+ }>, "many">;
78
+ group: z.ZodString;
79
+ isRequired: z.ZodBoolean;
80
+ isVisible: z.ZodBoolean;
81
+ id: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
84
+ id: string;
85
+ name: string;
86
+ options: {
87
+ position: number;
88
+ value: string;
89
+ label: string;
90
+ isDefault: boolean;
91
+ }[];
92
+ group: string;
93
+ isRequired: boolean;
94
+ isVisible: boolean;
95
+ }, {
96
+ type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
97
+ id: string;
98
+ name: string;
99
+ options: {
100
+ position: number;
101
+ value: string;
102
+ label: string;
103
+ isDefault: boolean;
104
+ }[];
105
+ group: string;
106
+ isRequired: boolean;
107
+ isVisible: boolean;
108
+ }>;
109
+ export declare const updatePositionSchema: z.ZodObject<{
110
+ attributes: z.ZodArray<z.ZodObject<{
111
+ attributeId: z.ZodString;
112
+ position: z.ZodNumber;
113
+ }, "strip", z.ZodTypeAny, {
114
+ position: number;
115
+ attributeId: string;
116
+ }, {
117
+ position: number;
118
+ attributeId: string;
119
+ }>, "many">;
120
+ }, "strip", z.ZodTypeAny, {
121
+ attributes: {
122
+ position: number;
123
+ attributeId: string;
124
+ }[];
125
+ }, {
126
+ attributes: {
127
+ position: number;
128
+ attributeId: string;
129
+ }[];
130
+ }>;
131
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/attribute/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAC"}
@@ -0,0 +1,33 @@
1
+ import z from 'zod';
2
+ export declare const AttributeOptionSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodDate;
7
+ value: z.ZodString;
8
+ label: z.ZodString;
9
+ position: z.ZodNumber;
10
+ isDefault: z.ZodBoolean;
11
+ attributeId: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: string;
14
+ position: number;
15
+ value: string;
16
+ label: string;
17
+ createdAt: Date;
18
+ updatedAt: Date;
19
+ deletedAt: Date;
20
+ attributeId: string;
21
+ isDefault: boolean;
22
+ }, {
23
+ id: string;
24
+ position: number;
25
+ value: string;
26
+ label: string;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ deletedAt: Date;
30
+ attributeId: string;
31
+ isDefault: boolean;
32
+ }>;
33
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/attribute-option/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMhC,CAAC"}