@kl1/contracts 1.0.0 → 1.0.1

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 (251) hide show
  1. package/dist/index.js +1279 -405
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1276 -404
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/attribute/index.d.ts +526 -65
  6. package/dist/src/attribute/index.d.ts.map +1 -1
  7. package/dist/src/attribute/schema.d.ts +92 -12
  8. package/dist/src/attribute/schema.d.ts.map +1 -1
  9. package/dist/src/attribute/validation.d.ts +9 -12
  10. package/dist/src/attribute/validation.d.ts.map +1 -1
  11. package/dist/src/attribute-option/schema.d.ts +5 -5
  12. package/dist/src/auth/index.d.ts +64 -29
  13. package/dist/src/auth/index.d.ts.map +1 -1
  14. package/dist/src/base-contract.d.ts +5 -5
  15. package/dist/src/base-contract.d.ts.map +1 -1
  16. package/dist/src/call-log/schema.d.ts +5 -5
  17. package/dist/src/category/index.d.ts +188 -104
  18. package/dist/src/category/index.d.ts.map +1 -1
  19. package/dist/src/category/schema.d.ts +22 -0
  20. package/dist/src/category/schema.d.ts.map +1 -1
  21. package/dist/src/channel/index.d.ts +629 -0
  22. package/dist/{contract.d.ts.map → src/channel/index.d.ts.map} +1 -1
  23. package/dist/src/channel/schema.d.ts +293 -0
  24. package/dist/src/channel/schema.d.ts.map +1 -0
  25. package/dist/src/channel/validation.d.ts +242 -0
  26. package/dist/src/channel/validation.d.ts.map +1 -0
  27. package/dist/src/company/schema.d.ts +3 -3
  28. package/dist/src/contact/schema.d.ts +3 -3
  29. package/dist/src/contact-email/schema.d.ts +3 -3
  30. package/dist/src/contact-phone/schema.d.ts +3 -3
  31. package/dist/src/contract.d.ts +5278 -481
  32. package/dist/src/contract.d.ts.map +1 -1
  33. package/dist/src/custom-field/schema.d.ts +5 -5
  34. package/dist/src/custom-field-upload/schema.d.ts +3 -3
  35. package/dist/src/cx-log/index.d.ts +56 -54
  36. package/dist/src/cx-log/index.d.ts.map +1 -1
  37. package/dist/src/cx-log/schema.d.ts +3 -3
  38. package/dist/src/cx-log/validation.d.ts +47 -47
  39. package/dist/src/cx-log/validation.d.ts.map +1 -1
  40. package/dist/src/evaluate-form/schema.d.ts +3 -3
  41. package/dist/src/extension/index.d.ts +547 -0
  42. package/dist/src/extension/index.d.ts.map +1 -0
  43. package/dist/src/extension/schema.d.ts +9 -9
  44. package/dist/src/extension/validation.d.ts +49 -0
  45. package/dist/src/extension/validation.d.ts.map +1 -0
  46. package/dist/src/group/schema.d.ts +3 -3
  47. package/dist/src/index.d.ts +2 -0
  48. package/dist/src/index.d.ts.map +1 -1
  49. package/dist/src/line/index.d.ts +86 -0
  50. package/dist/src/line/index.d.ts.map +1 -0
  51. package/dist/src/line/schema.d.ts +12 -0
  52. package/dist/src/line/schema.d.ts.map +1 -0
  53. package/dist/src/line/validation.d.ts +18 -0
  54. package/dist/src/line/validation.d.ts.map +1 -0
  55. package/dist/src/log-form/schema.d.ts +3 -3
  56. package/dist/src/mail/account-contract.d.ts +14 -14
  57. package/dist/src/mail/mail-contract.d.ts +14 -14
  58. package/dist/src/permission/index.d.ts +179 -0
  59. package/dist/src/permission/index.d.ts.map +1 -0
  60. package/dist/src/permission/schema.d.ts +3 -3
  61. package/dist/src/platform-contact/schema.d.ts +3 -3
  62. package/dist/src/role/index.d.ts +545 -0
  63. package/dist/{api-contracts/src/contract.d.ts.map → src/role/index.d.ts.map} +1 -1
  64. package/dist/src/role/schema.d.ts +8 -8
  65. package/dist/src/role/validation.d.ts +37 -0
  66. package/dist/src/role/validation.d.ts.map +1 -0
  67. package/dist/src/tag/index.d.ts +286 -0
  68. package/dist/src/tag/index.d.ts.map +1 -0
  69. package/dist/src/tag/schema.d.ts +5 -4
  70. package/dist/src/tag/schema.d.ts.map +1 -1
  71. package/dist/src/tag/validation.d.ts +29 -0
  72. package/dist/src/tag/validation.d.ts.map +1 -0
  73. package/dist/src/tag-group/schema.d.ts +3 -3
  74. package/dist/src/telephony-cdr/schema.d.ts +5 -5
  75. package/dist/src/telephony-extension/index.d.ts +65 -0
  76. package/dist/src/telephony-extension/index.d.ts.map +1 -0
  77. package/dist/src/telephony-extension/schema.d.ts +18 -0
  78. package/dist/src/telephony-extension/schema.d.ts.map +1 -0
  79. package/dist/src/telephony-live-queue-call/schema.d.ts +3 -3
  80. package/dist/src/telephony-queue-call-count/schema.d.ts +3 -3
  81. package/dist/src/ticket/schema.d.ts +3 -3
  82. package/dist/src/upload/schema.d.ts +3 -3
  83. package/dist/src/user/index.d.ts +1261 -0
  84. package/dist/src/user/index.d.ts.map +1 -0
  85. package/dist/src/user/schema.d.ts +15 -15
  86. package/dist/src/user/schema.d.ts.map +1 -1
  87. package/dist/src/widget/index.d.ts +856 -0
  88. package/dist/src/widget/index.d.ts.map +1 -0
  89. package/dist/src/widget/schema.d.ts +20 -9
  90. package/dist/src/widget/schema.d.ts.map +1 -1
  91. package/dist/src/widget/validation.d.ts +63 -0
  92. package/dist/src/widget/validation.d.ts.map +1 -0
  93. package/package.json +4 -2
  94. package/dist/api-contracts/src/auth/index.d.ts +0 -436
  95. package/dist/api-contracts/src/auth/index.d.ts.map +0 -1
  96. package/dist/api-contracts/src/auth/permission-schema.d.ts +0 -27
  97. package/dist/api-contracts/src/auth/permission-schema.d.ts.map +0 -1
  98. package/dist/api-contracts/src/auth/role-schema.d.ts +0 -70
  99. package/dist/api-contracts/src/auth/role-schema.d.ts.map +0 -1
  100. package/dist/api-contracts/src/auth/user-schema.d.ts +0 -140
  101. package/dist/api-contracts/src/auth/user-schema.d.ts.map +0 -1
  102. package/dist/api-contracts/src/base-contract.d.ts +0 -85
  103. package/dist/api-contracts/src/base-contract.d.ts.map +0 -1
  104. package/dist/api-contracts/src/contract.d.ts +0 -593
  105. package/dist/api-contracts/src/cx-log/cx-log-schema.d.ts +0 -54
  106. package/dist/api-contracts/src/cx-log/cx-log-schema.d.ts.map +0 -1
  107. package/dist/api-contracts/src/cx-log/index.d.ts +0 -252
  108. package/dist/api-contracts/src/cx-log/index.d.ts.map +0 -1
  109. package/dist/api-contracts/src/index.d.ts +0 -2
  110. package/dist/api-contracts/src/index.d.ts.map +0 -1
  111. package/dist/attribute/schema.d.ts +0 -42
  112. package/dist/attribute/schema.d.ts.map +0 -1
  113. package/dist/attribute-option/schema.d.ts +0 -33
  114. package/dist/attribute-option/schema.d.ts.map +0 -1
  115. package/dist/auth/index.d.ts +0 -436
  116. package/dist/auth/index.d.ts.map +0 -1
  117. package/dist/auth/permission-schema.d.ts +0 -27
  118. package/dist/auth/permission-schema.d.ts.map +0 -1
  119. package/dist/auth/role-schema.d.ts +0 -70
  120. package/dist/auth/role-schema.d.ts.map +0 -1
  121. package/dist/auth/user-schema.d.ts +0 -140
  122. package/dist/auth/user-schema.d.ts.map +0 -1
  123. package/dist/base-contract.d.ts +0 -85
  124. package/dist/base-contract.d.ts.map +0 -1
  125. package/dist/call-log/index.d.ts +0 -4
  126. package/dist/call-log/index.d.ts.map +0 -1
  127. package/dist/call-log/schema.d.ts +0 -57
  128. package/dist/call-log/schema.d.ts.map +0 -1
  129. package/dist/call-log/validation.d.ts +0 -24
  130. package/dist/call-log/validation.d.ts.map +0 -1
  131. package/dist/company/schema.d.ts +0 -30
  132. package/dist/company/schema.d.ts.map +0 -1
  133. package/dist/contact/schema.d.ts +0 -42
  134. package/dist/contact/schema.d.ts.map +0 -1
  135. package/dist/contact-email/schema.d.ts +0 -27
  136. package/dist/contact-email/schema.d.ts.map +0 -1
  137. package/dist/contact-phone/schema.d.ts +0 -27
  138. package/dist/contact-phone/schema.d.ts.map +0 -1
  139. package/dist/contract.d.ts +0 -663
  140. package/dist/custom-field/schema.d.ts +0 -36
  141. package/dist/custom-field/schema.d.ts.map +0 -1
  142. package/dist/custom-field-upload/schema.d.ts +0 -24
  143. package/dist/custom-field-upload/schema.d.ts.map +0 -1
  144. package/dist/cx-log/cx-log-schema.d.ts +0 -54
  145. package/dist/cx-log/cx-log-schema.d.ts.map +0 -1
  146. package/dist/cx-log/index.d.ts +0 -230
  147. package/dist/cx-log/index.d.ts.map +0 -1
  148. package/dist/cx-log/schema.d.ts +0 -54
  149. package/dist/cx-log/schema.d.ts.map +0 -1
  150. package/dist/cx-log/validation.d.ts +0 -95
  151. package/dist/cx-log/validation.d.ts.map +0 -1
  152. package/dist/entities/src/base.entity.d.ts +0 -7
  153. package/dist/entities/src/base.entity.d.ts.map +0 -1
  154. package/dist/entities/src/tenants/attribute-option.entity.d.ts +0 -9
  155. package/dist/entities/src/tenants/attribute-option.entity.d.ts.map +0 -1
  156. package/dist/entities/src/tenants/attribute.entity.d.ts +0 -12
  157. package/dist/entities/src/tenants/attribute.entity.d.ts.map +0 -1
  158. package/dist/entities/src/tenants/call-log.entity.d.ts +0 -18
  159. package/dist/entities/src/tenants/call-log.entity.d.ts.map +0 -1
  160. package/dist/entities/src/tenants/company.entity.d.ts +0 -8
  161. package/dist/entities/src/tenants/company.entity.d.ts.map +0 -1
  162. package/dist/entities/src/tenants/contact-custom-field.entity.d.ts +0 -14
  163. package/dist/entities/src/tenants/contact-custom-field.entity.d.ts.map +0 -1
  164. package/dist/entities/src/tenants/contact-email.entity.d.ts +0 -7
  165. package/dist/entities/src/tenants/contact-email.entity.d.ts.map +0 -1
  166. package/dist/entities/src/tenants/contact-phone.entity.d.ts +0 -7
  167. package/dist/entities/src/tenants/contact-phone.entity.d.ts.map +0 -1
  168. package/dist/entities/src/tenants/contact.entity.d.ts +0 -14
  169. package/dist/entities/src/tenants/contact.entity.d.ts.map +0 -1
  170. package/dist/entities/src/tenants/custom-field-upload.entity.d.ts +0 -8
  171. package/dist/entities/src/tenants/custom-field-upload.entity.d.ts.map +0 -1
  172. package/dist/entities/src/tenants/custom-field.entity.d.ts +0 -10
  173. package/dist/entities/src/tenants/custom-field.entity.d.ts.map +0 -1
  174. package/dist/entities/src/tenants/cx-log.entity.d.ts +0 -20
  175. package/dist/entities/src/tenants/cx-log.entity.d.ts.map +0 -1
  176. package/dist/entities/src/tenants/evaluate-form.entity.d.ts +0 -9
  177. package/dist/entities/src/tenants/evaluate-form.entity.d.ts.map +0 -1
  178. package/dist/entities/src/tenants/extension.entity.d.ts +0 -10
  179. package/dist/entities/src/tenants/extension.entity.d.ts.map +0 -1
  180. package/dist/entities/src/tenants/group.entity.d.ts +0 -6
  181. package/dist/entities/src/tenants/group.entity.d.ts.map +0 -1
  182. package/dist/entities/src/tenants/index.d.ts +0 -25
  183. package/dist/entities/src/tenants/index.d.ts.map +0 -1
  184. package/dist/entities/src/tenants/log-form.entity.d.ts +0 -6
  185. package/dist/entities/src/tenants/log-form.entity.d.ts.map +0 -1
  186. package/dist/entities/src/tenants/permission.entity.d.ts +0 -9
  187. package/dist/entities/src/tenants/permission.entity.d.ts.map +0 -1
  188. package/dist/entities/src/tenants/platform-contact.entity.d.ts +0 -8
  189. package/dist/entities/src/tenants/platform-contact.entity.d.ts.map +0 -1
  190. package/dist/entities/src/tenants/role.entity.d.ts +0 -11
  191. package/dist/entities/src/tenants/role.entity.d.ts.map +0 -1
  192. package/dist/entities/src/tenants/tag-group.entity.d.ts +0 -8
  193. package/dist/entities/src/tenants/tag-group.entity.d.ts.map +0 -1
  194. package/dist/entities/src/tenants/tag.entity.d.ts +0 -11
  195. package/dist/entities/src/tenants/tag.entity.d.ts.map +0 -1
  196. package/dist/entities/src/tenants/telephony-cdr.entity.d.ts +0 -23
  197. package/dist/entities/src/tenants/telephony-cdr.entity.d.ts.map +0 -1
  198. package/dist/entities/src/tenants/telephony-live-queue-call.entity.d.ts +0 -7
  199. package/dist/entities/src/tenants/telephony-live-queue-call.entity.d.ts.map +0 -1
  200. package/dist/entities/src/tenants/telephony-queue-call-count.entity.d.ts +0 -15
  201. package/dist/entities/src/tenants/telephony-queue-call-count.entity.d.ts.map +0 -1
  202. package/dist/entities/src/tenants/ticket.entity.d.ts +0 -17
  203. package/dist/entities/src/tenants/ticket.entity.d.ts.map +0 -1
  204. package/dist/entities/src/tenants/upload.entity.d.ts +0 -8
  205. package/dist/entities/src/tenants/upload.entity.d.ts.map +0 -1
  206. package/dist/entities/src/tenants/user.entity.d.ts +0 -13
  207. package/dist/entities/src/tenants/user.entity.d.ts.map +0 -1
  208. package/dist/entities/src/tenants/widget.entity.d.ts +0 -9
  209. package/dist/entities/src/tenants/widget.entity.d.ts.map +0 -1
  210. package/dist/evaluate-form/schema.d.ts +0 -27
  211. package/dist/evaluate-form/schema.d.ts.map +0 -1
  212. package/dist/exchange-token/index.d.ts +0 -32
  213. package/dist/exchange-token/index.d.ts.map +0 -1
  214. package/dist/extension/schema.d.ts +0 -36
  215. package/dist/extension/schema.d.ts.map +0 -1
  216. package/dist/group/schema.d.ts +0 -24
  217. package/dist/group/schema.d.ts.map +0 -1
  218. package/dist/index.d.ts +0 -3
  219. package/dist/index.d.ts.map +0 -1
  220. package/dist/log-form/schema.d.ts +0 -24
  221. package/dist/log-form/schema.d.ts.map +0 -1
  222. package/dist/permission/schema.d.ts +0 -27
  223. package/dist/permission/schema.d.ts.map +0 -1
  224. package/dist/platform-contact/schema.d.ts +0 -30
  225. package/dist/platform-contact/schema.d.ts.map +0 -1
  226. package/dist/posts/index.d.ts +0 -118
  227. package/dist/posts/index.d.ts.map +0 -1
  228. package/dist/role/schema.d.ts +0 -70
  229. package/dist/role/schema.d.ts.map +0 -1
  230. package/dist/tag/schema.d.ts +0 -21
  231. package/dist/tag/schema.d.ts.map +0 -1
  232. package/dist/tag-group/schema.d.ts +0 -24
  233. package/dist/tag-group/schema.d.ts.map +0 -1
  234. package/dist/telephony-cdr/index.d.ts +0 -4
  235. package/dist/telephony-cdr/index.d.ts.map +0 -1
  236. package/dist/telephony-cdr/schema.d.ts +0 -75
  237. package/dist/telephony-cdr/schema.d.ts.map +0 -1
  238. package/dist/telephony-cdr/validation.d.ts +0 -48
  239. package/dist/telephony-cdr/validation.d.ts.map +0 -1
  240. package/dist/telephony-live-queue-call/schema.d.ts +0 -27
  241. package/dist/telephony-live-queue-call/schema.d.ts.map +0 -1
  242. package/dist/telephony-queue-call-count/schema.d.ts +0 -51
  243. package/dist/telephony-queue-call-count/schema.d.ts.map +0 -1
  244. package/dist/ticket/schema.d.ts +0 -51
  245. package/dist/ticket/schema.d.ts.map +0 -1
  246. package/dist/upload/schema.d.ts +0 -30
  247. package/dist/upload/schema.d.ts.map +0 -1
  248. package/dist/user/schema.d.ts +0 -140
  249. package/dist/user/schema.d.ts.map +0 -1
  250. package/dist/widget/schema.d.ts +0 -33
  251. package/dist/widget/schema.d.ts.map +0 -1
@@ -1,9 +1,16 @@
1
1
  import { z } from 'zod';
2
+ import { attributeSchema } from './schema';
3
+ import { createAttributeSchema, getAttributesSchema, updateAttributeSchema, updatePositionSchema } from './validation';
4
+ export type Attribute = z.infer<typeof attributeSchema>;
5
+ export type CreateAttributeRequest = z.infer<typeof createAttributeSchema>;
6
+ export type GetAttributesRequest = z.infer<typeof getAttributesSchema>;
7
+ export type UpdateAttributeRequest = z.infer<typeof updateAttributeSchema>;
8
+ export type UpdatePositionRequest = z.infer<typeof updatePositionSchema>;
2
9
  export declare const attributeContract: {
3
10
  createAttribute: {
4
11
  body: z.ZodObject<{
5
12
  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">]>;
13
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
7
14
  isRequired: z.ZodBoolean;
8
15
  isVisible: z.ZodBoolean;
9
16
  group: z.ZodString;
@@ -24,7 +31,7 @@ export declare const attributeContract: {
24
31
  isDefault: boolean;
25
32
  }>, "many">;
26
33
  }, "strip", z.ZodTypeAny, {
27
- type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
34
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
28
35
  name: string;
29
36
  options: {
30
37
  position: number;
@@ -36,7 +43,7 @@ export declare const attributeContract: {
36
43
  isRequired: boolean;
37
44
  isVisible: boolean;
38
45
  }, {
39
- type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
46
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
40
47
  name: string;
41
48
  options: {
42
49
  position: number;
@@ -52,10 +59,167 @@ export declare const attributeContract: {
52
59
  responses: {
53
60
  201: z.ZodObject<{
54
61
  requestId: z.ZodString;
62
+ attribute: z.ZodObject<{
63
+ id: z.ZodString;
64
+ createdAt: z.ZodDate;
65
+ updatedAt: z.ZodDate;
66
+ deletedAt: z.ZodNullable<z.ZodDate>;
67
+ systemName: z.ZodString;
68
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
69
+ position: z.ZodNumber;
70
+ isDefault: z.ZodBoolean;
71
+ isArchived: z.ZodBoolean;
72
+ isRequired: z.ZodBoolean;
73
+ isUnique: z.ZodBoolean;
74
+ options: z.ZodArray<z.ZodObject<{
75
+ label: z.ZodString;
76
+ value: z.ZodString;
77
+ isDefault: z.ZodBoolean;
78
+ position: z.ZodNumber;
79
+ }, "strip", z.ZodTypeAny, {
80
+ position: number;
81
+ value: string;
82
+ label: string;
83
+ isDefault: boolean;
84
+ }, {
85
+ position: number;
86
+ value: string;
87
+ label: string;
88
+ isDefault: boolean;
89
+ }>, "many">;
90
+ group: z.ZodObject<{
91
+ id: z.ZodString;
92
+ createdAt: z.ZodDate;
93
+ updatedAt: z.ZodDate;
94
+ deletedAt: z.ZodNullable<z.ZodDate>;
95
+ systemName: z.ZodString;
96
+ displayName: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ id: string;
99
+ createdAt: Date;
100
+ updatedAt: Date;
101
+ deletedAt: Date | null;
102
+ systemName: string;
103
+ displayName: string;
104
+ }, {
105
+ id: string;
106
+ createdAt: Date;
107
+ updatedAt: Date;
108
+ deletedAt: Date | null;
109
+ systemName: string;
110
+ displayName: string;
111
+ }>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
114
+ id: string;
115
+ position: number;
116
+ options: {
117
+ position: number;
118
+ value: string;
119
+ label: string;
120
+ isDefault: boolean;
121
+ }[];
122
+ group: {
123
+ id: string;
124
+ createdAt: Date;
125
+ updatedAt: Date;
126
+ deletedAt: Date | null;
127
+ systemName: string;
128
+ displayName: string;
129
+ };
130
+ createdAt: Date;
131
+ updatedAt: Date;
132
+ deletedAt: Date | null;
133
+ isDefault: boolean;
134
+ systemName: string;
135
+ isArchived: boolean;
136
+ isRequired: boolean;
137
+ isUnique: boolean;
138
+ }, {
139
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
140
+ id: string;
141
+ position: number;
142
+ options: {
143
+ position: number;
144
+ value: string;
145
+ label: string;
146
+ isDefault: boolean;
147
+ }[];
148
+ group: {
149
+ id: string;
150
+ createdAt: Date;
151
+ updatedAt: Date;
152
+ deletedAt: Date | null;
153
+ systemName: string;
154
+ displayName: string;
155
+ };
156
+ createdAt: Date;
157
+ updatedAt: Date;
158
+ deletedAt: Date | null;
159
+ isDefault: boolean;
160
+ systemName: string;
161
+ isArchived: boolean;
162
+ isRequired: boolean;
163
+ isUnique: boolean;
164
+ }>;
55
165
  }, "strip", z.ZodTypeAny, {
56
166
  requestId: string;
167
+ attribute: {
168
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
169
+ id: string;
170
+ position: number;
171
+ options: {
172
+ position: number;
173
+ value: string;
174
+ label: string;
175
+ isDefault: boolean;
176
+ }[];
177
+ group: {
178
+ id: string;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ deletedAt: Date | null;
182
+ systemName: string;
183
+ displayName: string;
184
+ };
185
+ createdAt: Date;
186
+ updatedAt: Date;
187
+ deletedAt: Date | null;
188
+ isDefault: boolean;
189
+ systemName: string;
190
+ isArchived: boolean;
191
+ isRequired: boolean;
192
+ isUnique: boolean;
193
+ };
57
194
  }, {
58
195
  requestId: string;
196
+ attribute: {
197
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
198
+ id: string;
199
+ position: number;
200
+ options: {
201
+ position: number;
202
+ value: string;
203
+ label: string;
204
+ isDefault: boolean;
205
+ }[];
206
+ group: {
207
+ id: string;
208
+ createdAt: Date;
209
+ updatedAt: Date;
210
+ deletedAt: Date | null;
211
+ systemName: string;
212
+ displayName: string;
213
+ };
214
+ createdAt: Date;
215
+ updatedAt: Date;
216
+ deletedAt: Date | null;
217
+ isDefault: boolean;
218
+ systemName: string;
219
+ isArchived: boolean;
220
+ isRequired: boolean;
221
+ isUnique: boolean;
222
+ };
59
223
  }>;
60
224
  500: z.ZodObject<{
61
225
  message: z.ZodString;
@@ -69,7 +233,7 @@ export declare const attributeContract: {
69
233
  }>;
70
234
  };
71
235
  path: "attributes";
72
- headers: z.ZodObject<{
236
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
73
237
  'x-tenant': z.ZodString;
74
238
  authorization: z.ZodString;
75
239
  }, "strip", z.ZodTypeAny, {
@@ -78,7 +242,7 @@ export declare const attributeContract: {
78
242
  }, {
79
243
  'x-tenant': string;
80
244
  authorization: string;
81
- }>;
245
+ }>>>;
82
246
  };
83
247
  getAttributes: {
84
248
  method: "GET";
@@ -93,46 +257,170 @@ export declare const attributeContract: {
93
257
  visibleOnly?: boolean | undefined;
94
258
  }>;
95
259
  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;
260
+ 200: z.ZodObject<{
261
+ requestId: z.ZodString;
262
+ attributes: z.ZodArray<z.ZodObject<{
263
+ id: z.ZodString;
264
+ createdAt: z.ZodDate;
265
+ updatedAt: z.ZodDate;
266
+ deletedAt: z.ZodNullable<z.ZodDate>;
267
+ systemName: z.ZodString;
268
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
269
+ position: z.ZodNumber;
270
+ isDefault: z.ZodBoolean;
271
+ isArchived: z.ZodBoolean;
272
+ isRequired: z.ZodBoolean;
273
+ isUnique: z.ZodBoolean;
274
+ options: z.ZodArray<z.ZodObject<{
275
+ label: z.ZodString;
276
+ value: z.ZodString;
277
+ isDefault: z.ZodBoolean;
278
+ position: z.ZodNumber;
279
+ }, "strip", z.ZodTypeAny, {
280
+ position: number;
281
+ value: string;
282
+ label: string;
283
+ isDefault: boolean;
284
+ }, {
285
+ position: number;
286
+ value: string;
287
+ label: string;
288
+ isDefault: boolean;
289
+ }>, "many">;
290
+ group: z.ZodObject<{
291
+ id: z.ZodString;
292
+ createdAt: z.ZodDate;
293
+ updatedAt: z.ZodDate;
294
+ deletedAt: z.ZodNullable<z.ZodDate>;
295
+ systemName: z.ZodString;
296
+ displayName: z.ZodString;
297
+ }, "strip", z.ZodTypeAny, {
298
+ id: string;
299
+ createdAt: Date;
300
+ updatedAt: Date;
301
+ deletedAt: Date | null;
302
+ systemName: string;
303
+ displayName: string;
304
+ }, {
305
+ id: string;
306
+ createdAt: Date;
307
+ updatedAt: Date;
308
+ deletedAt: Date | null;
309
+ systemName: string;
310
+ displayName: string;
311
+ }>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
314
+ id: string;
315
+ position: number;
316
+ options: {
317
+ position: number;
318
+ value: string;
319
+ label: string;
320
+ isDefault: boolean;
321
+ }[];
322
+ group: {
323
+ id: string;
324
+ createdAt: Date;
325
+ updatedAt: Date;
326
+ deletedAt: Date | null;
327
+ systemName: string;
328
+ displayName: string;
329
+ };
330
+ createdAt: Date;
331
+ updatedAt: Date;
332
+ deletedAt: Date | null;
333
+ isDefault: boolean;
334
+ systemName: string;
335
+ isArchived: boolean;
336
+ isRequired: boolean;
337
+ isUnique: boolean;
338
+ }, {
339
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
340
+ id: string;
341
+ position: number;
342
+ options: {
343
+ position: number;
344
+ value: string;
345
+ label: string;
346
+ isDefault: boolean;
347
+ }[];
348
+ group: {
349
+ id: string;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
+ deletedAt: Date | null;
353
+ systemName: string;
354
+ displayName: string;
355
+ };
356
+ createdAt: Date;
357
+ updatedAt: Date;
358
+ deletedAt: Date | null;
359
+ isDefault: boolean;
360
+ systemName: string;
361
+ isArchived: boolean;
362
+ isRequired: boolean;
363
+ isUnique: boolean;
364
+ }>, "many">;
109
365
  }, "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;
366
+ attributes: {
367
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
368
+ id: string;
369
+ position: number;
370
+ options: {
371
+ position: number;
372
+ value: string;
373
+ label: string;
374
+ isDefault: boolean;
375
+ }[];
376
+ group: {
377
+ id: string;
378
+ createdAt: Date;
379
+ updatedAt: Date;
380
+ deletedAt: Date | null;
381
+ systemName: string;
382
+ displayName: string;
383
+ };
384
+ createdAt: Date;
385
+ updatedAt: Date;
386
+ deletedAt: Date | null;
387
+ isDefault: boolean;
388
+ systemName: string;
389
+ isArchived: boolean;
390
+ isRequired: boolean;
391
+ isUnique: boolean;
392
+ }[];
393
+ requestId: string;
122
394
  }, {
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">;
395
+ attributes: {
396
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
397
+ id: string;
398
+ position: number;
399
+ options: {
400
+ position: number;
401
+ value: string;
402
+ label: string;
403
+ isDefault: boolean;
404
+ }[];
405
+ group: {
406
+ id: string;
407
+ createdAt: Date;
408
+ updatedAt: Date;
409
+ deletedAt: Date | null;
410
+ systemName: string;
411
+ displayName: string;
412
+ };
413
+ createdAt: Date;
414
+ updatedAt: Date;
415
+ deletedAt: Date | null;
416
+ isDefault: boolean;
417
+ systemName: string;
418
+ isArchived: boolean;
419
+ isRequired: boolean;
420
+ isUnique: boolean;
421
+ }[];
422
+ requestId: string;
423
+ }>;
136
424
  500: z.ZodObject<{
137
425
  message: z.ZodString;
138
426
  error: z.ZodAny;
@@ -145,7 +433,7 @@ export declare const attributeContract: {
145
433
  }>;
146
434
  };
147
435
  path: "attributes";
148
- headers: z.ZodObject<{
436
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
149
437
  'x-tenant': z.ZodString;
150
438
  authorization: z.ZodString;
151
439
  }, "strip", z.ZodTypeAny, {
@@ -154,12 +442,15 @@ export declare const attributeContract: {
154
442
  }, {
155
443
  'x-tenant': string;
156
444
  authorization: string;
157
- }>;
445
+ }>>>;
158
446
  };
159
447
  updateAttribute: {
160
448
  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
449
  name: z.ZodString;
450
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
451
+ isRequired: z.ZodBoolean;
452
+ isVisible: z.ZodBoolean;
453
+ group: z.ZodString;
163
454
  options: z.ZodArray<z.ZodObject<{
164
455
  label: z.ZodString;
165
456
  value: z.ZodString;
@@ -176,13 +467,8 @@ export declare const attributeContract: {
176
467
  label: string;
177
468
  isDefault: boolean;
178
469
  }>, "many">;
179
- group: z.ZodString;
180
- isRequired: z.ZodBoolean;
181
- isVisible: z.ZodBoolean;
182
- id: z.ZodString;
183
470
  }, "strip", z.ZodTypeAny, {
184
- type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
185
- id: string;
471
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
186
472
  name: string;
187
473
  options: {
188
474
  position: number;
@@ -194,8 +480,7 @@ export declare const attributeContract: {
194
480
  isRequired: boolean;
195
481
  isVisible: boolean;
196
482
  }, {
197
- type: "number" | "boolean" | "link" | "attachment" | "select" | "textarea" | "text" | "date" | "dependent";
198
- id: string;
483
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
199
484
  name: string;
200
485
  options: {
201
486
  position: number;
@@ -208,13 +493,177 @@ export declare const attributeContract: {
208
493
  isVisible: boolean;
209
494
  }>;
210
495
  method: "PATCH";
496
+ pathParams: z.ZodObject<{
497
+ id: z.ZodString;
498
+ }, "strip", z.ZodTypeAny, {
499
+ id: string;
500
+ }, {
501
+ id: string;
502
+ }>;
211
503
  responses: {
212
504
  200: z.ZodObject<{
213
505
  requestId: z.ZodString;
506
+ attribute: z.ZodObject<{
507
+ id: z.ZodString;
508
+ createdAt: z.ZodDate;
509
+ updatedAt: z.ZodDate;
510
+ deletedAt: z.ZodNullable<z.ZodDate>;
511
+ systemName: z.ZodString;
512
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
513
+ position: z.ZodNumber;
514
+ isDefault: z.ZodBoolean;
515
+ isArchived: z.ZodBoolean;
516
+ isRequired: z.ZodBoolean;
517
+ isUnique: z.ZodBoolean;
518
+ options: z.ZodArray<z.ZodObject<{
519
+ label: z.ZodString;
520
+ value: z.ZodString;
521
+ isDefault: z.ZodBoolean;
522
+ position: z.ZodNumber;
523
+ }, "strip", z.ZodTypeAny, {
524
+ position: number;
525
+ value: string;
526
+ label: string;
527
+ isDefault: boolean;
528
+ }, {
529
+ position: number;
530
+ value: string;
531
+ label: string;
532
+ isDefault: boolean;
533
+ }>, "many">;
534
+ group: z.ZodObject<{
535
+ id: z.ZodString;
536
+ createdAt: z.ZodDate;
537
+ updatedAt: z.ZodDate;
538
+ deletedAt: z.ZodNullable<z.ZodDate>;
539
+ systemName: z.ZodString;
540
+ displayName: z.ZodString;
541
+ }, "strip", z.ZodTypeAny, {
542
+ id: string;
543
+ createdAt: Date;
544
+ updatedAt: Date;
545
+ deletedAt: Date | null;
546
+ systemName: string;
547
+ displayName: string;
548
+ }, {
549
+ id: string;
550
+ createdAt: Date;
551
+ updatedAt: Date;
552
+ deletedAt: Date | null;
553
+ systemName: string;
554
+ displayName: string;
555
+ }>;
556
+ }, "strip", z.ZodTypeAny, {
557
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
558
+ id: string;
559
+ position: number;
560
+ options: {
561
+ position: number;
562
+ value: string;
563
+ label: string;
564
+ isDefault: boolean;
565
+ }[];
566
+ group: {
567
+ id: string;
568
+ createdAt: Date;
569
+ updatedAt: Date;
570
+ deletedAt: Date | null;
571
+ systemName: string;
572
+ displayName: string;
573
+ };
574
+ createdAt: Date;
575
+ updatedAt: Date;
576
+ deletedAt: Date | null;
577
+ isDefault: boolean;
578
+ systemName: string;
579
+ isArchived: boolean;
580
+ isRequired: boolean;
581
+ isUnique: boolean;
582
+ }, {
583
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
584
+ id: string;
585
+ position: number;
586
+ options: {
587
+ position: number;
588
+ value: string;
589
+ label: string;
590
+ isDefault: boolean;
591
+ }[];
592
+ group: {
593
+ id: string;
594
+ createdAt: Date;
595
+ updatedAt: Date;
596
+ deletedAt: Date | null;
597
+ systemName: string;
598
+ displayName: string;
599
+ };
600
+ createdAt: Date;
601
+ updatedAt: Date;
602
+ deletedAt: Date | null;
603
+ isDefault: boolean;
604
+ systemName: string;
605
+ isArchived: boolean;
606
+ isRequired: boolean;
607
+ isUnique: boolean;
608
+ }>;
214
609
  }, "strip", z.ZodTypeAny, {
215
610
  requestId: string;
611
+ attribute: {
612
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
613
+ id: string;
614
+ position: number;
615
+ options: {
616
+ position: number;
617
+ value: string;
618
+ label: string;
619
+ isDefault: boolean;
620
+ }[];
621
+ group: {
622
+ id: string;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ deletedAt: Date | null;
626
+ systemName: string;
627
+ displayName: string;
628
+ };
629
+ createdAt: Date;
630
+ updatedAt: Date;
631
+ deletedAt: Date | null;
632
+ isDefault: boolean;
633
+ systemName: string;
634
+ isArchived: boolean;
635
+ isRequired: boolean;
636
+ isUnique: boolean;
637
+ };
216
638
  }, {
217
639
  requestId: string;
640
+ attribute: {
641
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
642
+ id: string;
643
+ position: number;
644
+ options: {
645
+ position: number;
646
+ value: string;
647
+ label: string;
648
+ isDefault: boolean;
649
+ }[];
650
+ group: {
651
+ id: string;
652
+ createdAt: Date;
653
+ updatedAt: Date;
654
+ deletedAt: Date | null;
655
+ systemName: string;
656
+ displayName: string;
657
+ };
658
+ createdAt: Date;
659
+ updatedAt: Date;
660
+ deletedAt: Date | null;
661
+ isDefault: boolean;
662
+ systemName: string;
663
+ isArchived: boolean;
664
+ isRequired: boolean;
665
+ isUnique: boolean;
666
+ };
218
667
  }>;
219
668
  500: z.ZodObject<{
220
669
  message: z.ZodString;
@@ -227,8 +676,8 @@ export declare const attributeContract: {
227
676
  error?: any;
228
677
  }>;
229
678
  };
230
- path: "attributes";
231
- headers: z.ZodObject<{
679
+ path: "attributes/:id";
680
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
232
681
  'x-tenant': z.ZodString;
233
682
  authorization: z.ZodString;
234
683
  }, "strip", z.ZodTypeAny, {
@@ -237,7 +686,7 @@ export declare const attributeContract: {
237
686
  }, {
238
687
  'x-tenant': string;
239
688
  authorization: string;
240
- }>;
689
+ }>>>;
241
690
  };
242
691
  changeVisibility: {
243
692
  body: z.ZodObject<{
@@ -258,10 +707,13 @@ export declare const attributeContract: {
258
707
  responses: {
259
708
  200: z.ZodObject<{
260
709
  requestId: z.ZodString;
710
+ message: z.ZodOptional<z.ZodString>;
261
711
  }, "strip", z.ZodTypeAny, {
262
712
  requestId: string;
713
+ message?: string | undefined;
263
714
  }, {
264
715
  requestId: string;
716
+ message?: string | undefined;
265
717
  }>;
266
718
  500: z.ZodObject<{
267
719
  message: z.ZodString;
@@ -275,7 +727,7 @@ export declare const attributeContract: {
275
727
  }>;
276
728
  };
277
729
  path: "attributes/visibility/:id";
278
- headers: z.ZodObject<{
730
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
279
731
  'x-tenant': z.ZodString;
280
732
  authorization: z.ZodString;
281
733
  }, "strip", z.ZodTypeAny, {
@@ -284,7 +736,7 @@ export declare const attributeContract: {
284
736
  }, {
285
737
  'x-tenant': string;
286
738
  authorization: string;
287
- }>;
739
+ }>>>;
288
740
  };
289
741
  changeRequired: {
290
742
  body: z.ZodObject<{
@@ -305,10 +757,13 @@ export declare const attributeContract: {
305
757
  responses: {
306
758
  200: z.ZodObject<{
307
759
  requestId: z.ZodString;
760
+ message: z.ZodOptional<z.ZodString>;
308
761
  }, "strip", z.ZodTypeAny, {
309
762
  requestId: string;
763
+ message?: string | undefined;
310
764
  }, {
311
765
  requestId: string;
766
+ message?: string | undefined;
312
767
  }>;
313
768
  500: z.ZodObject<{
314
769
  message: z.ZodString;
@@ -322,7 +777,7 @@ export declare const attributeContract: {
322
777
  }>;
323
778
  };
324
779
  path: "attributes/required/:id";
325
- headers: z.ZodObject<{
780
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
326
781
  'x-tenant': z.ZodString;
327
782
  authorization: z.ZodString;
328
783
  }, "strip", z.ZodTypeAny, {
@@ -331,7 +786,7 @@ export declare const attributeContract: {
331
786
  }, {
332
787
  'x-tenant': string;
333
788
  authorization: string;
334
- }>;
789
+ }>>>;
335
790
  };
336
791
  updatePosition: {
337
792
  body: z.ZodObject<{
@@ -360,10 +815,13 @@ export declare const attributeContract: {
360
815
  responses: {
361
816
  200: z.ZodObject<{
362
817
  requestId: z.ZodString;
818
+ message: z.ZodOptional<z.ZodString>;
363
819
  }, "strip", z.ZodTypeAny, {
364
820
  requestId: string;
821
+ message?: string | undefined;
365
822
  }, {
366
823
  requestId: string;
824
+ message?: string | undefined;
367
825
  }>;
368
826
  500: z.ZodObject<{
369
827
  message: z.ZodString;
@@ -377,7 +835,7 @@ export declare const attributeContract: {
377
835
  }>;
378
836
  };
379
837
  path: "attributes/position";
380
- headers: z.ZodObject<{
838
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
381
839
  'x-tenant': z.ZodString;
382
840
  authorization: z.ZodString;
383
841
  }, "strip", z.ZodTypeAny, {
@@ -386,7 +844,7 @@ export declare const attributeContract: {
386
844
  }, {
387
845
  'x-tenant': string;
388
846
  authorization: string;
389
- }>;
847
+ }>>>;
390
848
  };
391
849
  deleteAttribute: {
392
850
  body: z.ZodOptional<z.ZodAny>;
@@ -401,9 +859,12 @@ export declare const attributeContract: {
401
859
  responses: {
402
860
  200: z.ZodObject<{
403
861
  requestId: z.ZodString;
862
+ message: z.ZodString;
404
863
  }, "strip", z.ZodTypeAny, {
864
+ message: string;
405
865
  requestId: string;
406
866
  }, {
867
+ message: string;
407
868
  requestId: string;
408
869
  }>;
409
870
  500: z.ZodObject<{
@@ -418,7 +879,7 @@ export declare const attributeContract: {
418
879
  }>;
419
880
  };
420
881
  path: "attributes/:id";
421
- headers: z.ZodObject<{
882
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
422
883
  'x-tenant': z.ZodString;
423
884
  authorization: z.ZodString;
424
885
  }, "strip", z.ZodTypeAny, {
@@ -427,7 +888,7 @@ export declare const attributeContract: {
427
888
  }, {
428
889
  'x-tenant': string;
429
890
  authorization: string;
430
- }>;
891
+ }>>>;
431
892
  };
432
893
  };
433
894
  //# sourceMappingURL=index.d.ts.map