@epilot/sdk 2.1.0-rc.0 → 2.1.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 (357) hide show
  1. package/definitions/app.json +38 -0
  2. package/definitions/automation.json +2 -37
  3. package/definitions/blueprint-manifest-runtime.json +1 -1
  4. package/definitions/blueprint-manifest.json +115 -1
  5. package/definitions/customer-portal-runtime.json +1 -1
  6. package/definitions/customer-portal.json +279 -42
  7. package/definitions/data-management.json +10 -0
  8. package/definitions/email-template.json +25 -3
  9. package/definitions/entity.json +205 -3
  10. package/definitions/erp-integration-runtime.json +1 -1
  11. package/definitions/erp-integration.json +472 -13
  12. package/definitions/journey.json +257 -12
  13. package/definitions/kanban.json +630 -78
  14. package/definitions/organization-runtime.json +1 -1
  15. package/definitions/organization.json +614 -51
  16. package/definitions/workflow.json +40 -0
  17. package/dist/README-VG67PX4R.js +7 -0
  18. package/dist/README-W4B35MRN.cjs +7 -0
  19. package/dist/_index-AMVZBT2K.cjs +99 -0
  20. package/dist/_index-S6LFD3ER.js +99 -0
  21. package/dist/access-token-6BJDZSFE.cjs +7 -0
  22. package/dist/access-token-GSQZLDXR.js +7 -0
  23. package/dist/address-HA4RMRNQ.cjs +7 -0
  24. package/dist/address-QVJUGMOG.js +7 -0
  25. package/dist/address-suggestions-74244BAJ.js +7 -0
  26. package/dist/address-suggestions-IUQMYF27.cjs +7 -0
  27. package/dist/ai-agents-IZWFEUSH.js +7 -0
  28. package/dist/ai-agents-PWHKNRCX.cjs +7 -0
  29. package/dist/apis/access-token.cjs +10 -13
  30. package/dist/apis/access-token.js +7 -10
  31. package/dist/apis/address-suggestions.cjs +10 -13
  32. package/dist/apis/address-suggestions.js +7 -10
  33. package/dist/apis/address.cjs +10 -13
  34. package/dist/apis/address.js +7 -10
  35. package/dist/apis/ai-agents.cjs +10 -13
  36. package/dist/apis/ai-agents.js +7 -10
  37. package/dist/apis/app.cjs +10 -13
  38. package/dist/apis/app.js +7 -10
  39. package/dist/apis/audit-logs.cjs +10 -13
  40. package/dist/apis/audit-logs.js +7 -10
  41. package/dist/apis/automation.cjs +10 -13
  42. package/dist/apis/automation.js +7 -10
  43. package/dist/apis/billing.cjs +10 -13
  44. package/dist/apis/billing.js +7 -10
  45. package/dist/apis/blueprint-manifest.cjs +10 -13
  46. package/dist/apis/blueprint-manifest.js +7 -10
  47. package/dist/apis/consent.cjs +10 -13
  48. package/dist/apis/consent.js +7 -10
  49. package/dist/apis/customer-portal.cjs +10 -13
  50. package/dist/apis/customer-portal.js +7 -10
  51. package/dist/apis/dashboard.cjs +10 -13
  52. package/dist/apis/dashboard.js +7 -10
  53. package/dist/apis/data-management.cjs +10 -13
  54. package/dist/apis/data-management.js +7 -10
  55. package/dist/apis/deduplication.cjs +10 -13
  56. package/dist/apis/deduplication.js +7 -10
  57. package/dist/apis/design.cjs +10 -13
  58. package/dist/apis/design.js +7 -10
  59. package/dist/apis/document.cjs +10 -13
  60. package/dist/apis/document.js +7 -10
  61. package/dist/apis/email-settings.cjs +10 -13
  62. package/dist/apis/email-settings.js +7 -10
  63. package/dist/apis/email-template.cjs +10 -13
  64. package/dist/apis/email-template.js +7 -10
  65. package/dist/apis/entity-mapping.cjs +10 -13
  66. package/dist/apis/entity-mapping.js +7 -10
  67. package/dist/apis/entity.cjs +10 -13
  68. package/dist/apis/entity.js +7 -10
  69. package/dist/apis/environments.cjs +10 -13
  70. package/dist/apis/environments.js +7 -10
  71. package/dist/apis/erp-integration.cjs +10 -13
  72. package/dist/apis/erp-integration.js +7 -10
  73. package/dist/apis/event-catalog.cjs +10 -13
  74. package/dist/apis/event-catalog.js +7 -10
  75. package/dist/apis/file.cjs +10 -13
  76. package/dist/apis/file.js +7 -10
  77. package/dist/apis/iban.cjs +10 -13
  78. package/dist/apis/iban.js +7 -10
  79. package/dist/apis/journey.cjs +10 -13
  80. package/dist/apis/journey.js +7 -10
  81. package/dist/apis/kanban.cjs +10 -13
  82. package/dist/apis/kanban.js +7 -10
  83. package/dist/apis/message.cjs +10 -13
  84. package/dist/apis/message.js +7 -10
  85. package/dist/apis/metering.cjs +10 -13
  86. package/dist/apis/metering.js +7 -10
  87. package/dist/apis/notes.cjs +10 -13
  88. package/dist/apis/notes.js +7 -10
  89. package/dist/apis/notification.cjs +10 -13
  90. package/dist/apis/notification.js +7 -10
  91. package/dist/apis/organization.cjs +10 -13
  92. package/dist/apis/organization.d.cts +2 -2
  93. package/dist/apis/organization.d.ts +2 -2
  94. package/dist/apis/organization.js +7 -10
  95. package/dist/apis/partner-directory.cjs +10 -13
  96. package/dist/apis/partner-directory.js +7 -10
  97. package/dist/apis/permissions.cjs +10 -13
  98. package/dist/apis/permissions.js +7 -10
  99. package/dist/apis/pricing-tier.cjs +10 -13
  100. package/dist/apis/pricing-tier.js +7 -10
  101. package/dist/apis/pricing.cjs +10 -13
  102. package/dist/apis/pricing.js +7 -10
  103. package/dist/apis/purpose.cjs +10 -13
  104. package/dist/apis/purpose.js +7 -10
  105. package/dist/apis/sandbox.cjs +10 -13
  106. package/dist/apis/sandbox.js +7 -10
  107. package/dist/apis/submission.cjs +10 -13
  108. package/dist/apis/submission.js +7 -10
  109. package/dist/apis/targeting.cjs +10 -13
  110. package/dist/apis/targeting.js +7 -10
  111. package/dist/apis/template-variables.cjs +10 -13
  112. package/dist/apis/template-variables.js +7 -10
  113. package/dist/apis/user.cjs +10 -13
  114. package/dist/apis/user.js +7 -10
  115. package/dist/apis/validation-rules.cjs +10 -13
  116. package/dist/apis/validation-rules.js +7 -10
  117. package/dist/apis/webhooks.cjs +10 -13
  118. package/dist/apis/webhooks.js +7 -10
  119. package/dist/apis/workflow-definition.cjs +10 -13
  120. package/dist/apis/workflow-definition.js +7 -10
  121. package/dist/apis/workflow.cjs +10 -13
  122. package/dist/apis/workflow.js +7 -10
  123. package/dist/app-IKHWU222.cjs +7 -0
  124. package/dist/app-VLM3SWKA.js +7 -0
  125. package/dist/audit-logs-5VXHOQ7S.js +7 -0
  126. package/dist/audit-logs-D2LFUA2R.cjs +7 -0
  127. package/dist/automation-3HGCK725.cjs +7 -0
  128. package/dist/automation-72VGEJCY.js +7 -0
  129. package/dist/billing-DUWDISHP.cjs +7 -0
  130. package/dist/billing-IPALEAG2.js +7 -0
  131. package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
  132. package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
  133. package/dist/chunk-2HOJWFQ4.js +14 -0
  134. package/dist/chunk-372VUPHN.js +14 -0
  135. package/dist/chunk-3HJEWWPS.cjs +14 -0
  136. package/dist/chunk-3N67SSL3.js +14 -0
  137. package/dist/chunk-3XEP56SV.cjs +204 -0
  138. package/dist/chunk-3ZZ57K3S.cjs +14 -0
  139. package/dist/chunk-4SWC43JO.cjs +14 -0
  140. package/dist/chunk-4VFQTSJQ.js +14 -0
  141. package/dist/chunk-57QIBYDN.js +14 -0
  142. package/dist/chunk-5SNJAD6F.cjs +14 -0
  143. package/dist/chunk-73H6TVKN.js +14 -0
  144. package/dist/chunk-A6JOROUC.cjs +14 -0
  145. package/dist/chunk-AJKH25H2.cjs +14 -0
  146. package/dist/chunk-ARWMTXJV.cjs +14 -0
  147. package/dist/chunk-B3ZGAG7B.js +14 -0
  148. package/dist/chunk-BH5ZXK4J.cjs +14 -0
  149. package/dist/chunk-BWFXLUK5.cjs +14 -0
  150. package/dist/chunk-C6UTZEHH.js +14 -0
  151. package/dist/chunk-CPKBR34V.js +14 -0
  152. package/dist/chunk-CWSHYFVZ.js +14 -0
  153. package/dist/chunk-DJKSULPK.js +14 -0
  154. package/dist/chunk-DNJ54L2G.js +14 -0
  155. package/dist/chunk-DY2D2IW5.cjs +14 -0
  156. package/dist/chunk-E26ZO7QM.cjs +14 -0
  157. package/dist/chunk-EBCHCYUO.js +14 -0
  158. package/dist/chunk-EPAIOB5U.cjs +14 -0
  159. package/dist/chunk-EQZMT2HF.cjs +14 -0
  160. package/dist/chunk-F376L6PP.cjs +14 -0
  161. package/dist/chunk-F472YLJG.cjs +14 -0
  162. package/dist/chunk-FXOX3X7E.cjs +14 -0
  163. package/dist/chunk-G2REP2VZ.cjs +14 -0
  164. package/dist/chunk-GLO477NZ.js +14 -0
  165. package/dist/chunk-H4VSK4KF.js +14 -0
  166. package/dist/chunk-HPSGM6QP.js +14 -0
  167. package/dist/chunk-HPYHWTTA.cjs +14 -0
  168. package/dist/chunk-IH4CMOML.js +14 -0
  169. package/dist/chunk-IMT3IE5M.cjs +14 -0
  170. package/dist/chunk-IP2WWEOU.js +14 -0
  171. package/dist/chunk-IS2VB342.js +14 -0
  172. package/dist/chunk-ITX53XAZ.js +14 -0
  173. package/dist/chunk-JXBXDTFG.cjs +14 -0
  174. package/dist/chunk-K62XK7KU.js +14 -0
  175. package/dist/chunk-KA3TGFJP.js +14 -0
  176. package/dist/chunk-KBOVBUBM.js +14 -0
  177. package/dist/chunk-KPGC2D6E.js +14 -0
  178. package/dist/chunk-KSXTBGIV.js +14 -0
  179. package/dist/chunk-LCIJ4TJ4.cjs +14 -0
  180. package/dist/chunk-LQOLYXGQ.cjs +14 -0
  181. package/dist/chunk-LSIWCIQV.js +14 -0
  182. package/dist/chunk-MHNSZ4HE.js +14 -0
  183. package/dist/chunk-MKX4CKAB.cjs +14 -0
  184. package/dist/chunk-MRTAFRO7.js +14 -0
  185. package/dist/chunk-MRZ7LGKZ.js +14 -0
  186. package/dist/chunk-MSASBR2Y.js +14 -0
  187. package/dist/chunk-NAWLLC3T.cjs +14 -0
  188. package/dist/chunk-NJK5F5TF.cjs +21 -0
  189. package/dist/chunk-NLSZVGHK.cjs +14 -0
  190. package/dist/chunk-O4LRVGOY.js +14 -0
  191. package/dist/chunk-OG2DMGU6.cjs +14 -0
  192. package/dist/chunk-OGQKJTXF.js +14 -0
  193. package/dist/chunk-PETLAONH.js +14 -0
  194. package/dist/chunk-PVSS2WPM.cjs +14 -0
  195. package/dist/chunk-PXITFTJA.cjs +14 -0
  196. package/dist/chunk-QDVPPRWI.cjs +14 -0
  197. package/dist/chunk-QKERXNJJ.cjs +14 -0
  198. package/dist/chunk-QLML3IP5.cjs +14 -0
  199. package/dist/chunk-QVAJ5JP4.js +14 -0
  200. package/dist/chunk-RD7E4OSJ.cjs +14 -0
  201. package/dist/chunk-RWSA3LXE.cjs +14 -0
  202. package/dist/chunk-RXSS67VI.cjs +14 -0
  203. package/dist/chunk-S3ZNESMC.cjs +14 -0
  204. package/dist/chunk-S7NDMDRX.js +14 -0
  205. package/dist/chunk-SK3VYIZ6.cjs +14 -0
  206. package/dist/chunk-SMGHAG5C.cjs +14 -0
  207. package/dist/chunk-T46LODOF.js +14 -0
  208. package/dist/chunk-TIJWJVKZ.js +14 -0
  209. package/dist/chunk-TLWCYLNA.js +14 -0
  210. package/dist/chunk-TRJLYZHD.js +14 -0
  211. package/dist/chunk-UKKJMCNH.js +14 -0
  212. package/dist/chunk-ULBEEHG4.js +204 -0
  213. package/dist/chunk-VGTUK3QD.cjs +14 -0
  214. package/dist/chunk-VQ7R36AC.js +14 -0
  215. package/dist/chunk-VVQB5W7U.cjs +14 -0
  216. package/dist/chunk-VVVATFGK.cjs +14 -0
  217. package/dist/chunk-WMTYO5OX.cjs +14 -0
  218. package/dist/chunk-WOSSSFXB.js +14 -0
  219. package/dist/chunk-WOXXNKTE.js +14 -0
  220. package/dist/chunk-XKI2OAYV.cjs +14 -0
  221. package/dist/chunk-XR4QF6KQ.cjs +14 -0
  222. package/dist/chunk-XYHTQ523.cjs +14 -0
  223. package/dist/chunk-XZYZLSUO.cjs +14 -0
  224. package/dist/chunk-YPSWSI3M.js +21 -0
  225. package/dist/chunk-YYBIU5BQ.js +14 -0
  226. package/dist/chunk-YZA5WZUS.js +14 -0
  227. package/dist/chunk-Z4LUE424.cjs +14 -0
  228. package/dist/chunk-ZV6XYUXS.js +14 -0
  229. package/dist/consent-CS2ZBZX4.cjs +7 -0
  230. package/dist/consent-NNYHF2N4.js +7 -0
  231. package/dist/customer-portal-D3SLPAHZ.js +7 -0
  232. package/dist/customer-portal-UR3GN4VU.cjs +7 -0
  233. package/dist/dashboard-UHYR5RTY.cjs +7 -0
  234. package/dist/dashboard-UTPGXFW5.js +7 -0
  235. package/dist/data-management-QH2IJ5QV.js +7 -0
  236. package/dist/data-management-TEFRLGSU.cjs +7 -0
  237. package/dist/deduplication-ECVAZVVA.cjs +7 -0
  238. package/dist/deduplication-GYIST22B.js +7 -0
  239. package/dist/design-KUVXMFFK.cjs +7 -0
  240. package/dist/design-YKBXRW5C.js +7 -0
  241. package/dist/document-CY2A2OE7.js +7 -0
  242. package/dist/document-RYQ7MF6U.cjs +7 -0
  243. package/dist/email-settings-TQ5GGDYG.js +7 -0
  244. package/dist/email-settings-TQC34GST.cjs +7 -0
  245. package/dist/email-template-M2VVL4TI.cjs +7 -0
  246. package/dist/email-template-WYROV3UG.js +7 -0
  247. package/dist/entity-FA6PZX6S.js +7 -0
  248. package/dist/entity-IX5NSHPX.cjs +7 -0
  249. package/dist/entity-mapping-7J3IAGKQ.js +7 -0
  250. package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
  251. package/dist/environments-E3X6NYGX.js +7 -0
  252. package/dist/environments-P2JS4F5N.cjs +7 -0
  253. package/dist/erp-integration-EP2XFEH5.js +7 -0
  254. package/dist/erp-integration-NNV72VFI.cjs +7 -0
  255. package/dist/event-catalog-C45ISVMP.cjs +7 -0
  256. package/dist/event-catalog-D7VJ7WRS.js +7 -0
  257. package/dist/file-UOWBTDIU.cjs +7 -0
  258. package/dist/file-XSN3NAVZ.js +7 -0
  259. package/dist/iban-24GHLFDB.cjs +7 -0
  260. package/dist/iban-LDKYDVQV.js +7 -0
  261. package/dist/index.cjs +199 -58
  262. package/dist/index.d.cts +17 -2
  263. package/dist/index.d.ts +17 -2
  264. package/dist/index.js +197 -56
  265. package/dist/journey-7CKX67M7.js +7 -0
  266. package/dist/journey-EUZ6MVHG.cjs +7 -0
  267. package/dist/kanban-CHTH2ZSY.cjs +7 -0
  268. package/dist/kanban-HI6LL5WY.js +7 -0
  269. package/dist/message-3XZLJR6R.cjs +7 -0
  270. package/dist/message-ZNMCS5YH.js +7 -0
  271. package/dist/metering-DZNZPPY6.cjs +7 -0
  272. package/dist/metering-KOSCPPKB.js +7 -0
  273. package/dist/notes-3AO5GXIT.js +7 -0
  274. package/dist/notes-MPWOQC5J.cjs +7 -0
  275. package/dist/notification-PZOCUYD5.cjs +7 -0
  276. package/dist/notification-VWDZRSFZ.js +7 -0
  277. package/dist/organization-RARYYG2E.cjs +7 -0
  278. package/dist/organization-ZERPH2IH.js +7 -0
  279. package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
  280. package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
  281. package/dist/partner-directory-2XMPQWWX.js +7 -0
  282. package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
  283. package/dist/permissions-4T3GFNB4.js +7 -0
  284. package/dist/permissions-FGBIJNN7.cjs +7 -0
  285. package/dist/pricing-4Z4TOETA.cjs +7 -0
  286. package/dist/pricing-C65DTZSX.js +7 -0
  287. package/dist/pricing-tier-NI35WOUP.cjs +7 -0
  288. package/dist/pricing-tier-VUOFK5Q7.js +7 -0
  289. package/dist/purpose-AKOEUHZ4.cjs +7 -0
  290. package/dist/purpose-RBRV3AQZ.js +7 -0
  291. package/dist/sandbox-2KN4X66E.cjs +7 -0
  292. package/dist/sandbox-L2SOOGGR.js +7 -0
  293. package/dist/submission-7BISSPO6.js +7 -0
  294. package/dist/submission-Q24BU4GS.cjs +7 -0
  295. package/dist/targeting-EYGYZD6M.cjs +7 -0
  296. package/dist/targeting-GEJTJN5Z.js +7 -0
  297. package/dist/template-variables-OAYS2E3G.cjs +1148 -0
  298. package/dist/template-variables-VKDJJZUT.js +1148 -0
  299. package/dist/user-EIEOI3OG.js +7 -0
  300. package/dist/user-NJJ7XVKB.cjs +7 -0
  301. package/dist/validation-rules-P6F5P73P.js +7 -0
  302. package/dist/validation-rules-VDU3CIZV.cjs +7 -0
  303. package/dist/webhooks-I7JWU34X.cjs +7 -0
  304. package/dist/webhooks-WPLEHVPX.js +7 -0
  305. package/dist/workflow-3LLURW3H.js +7 -0
  306. package/dist/workflow-RAGQDYXT.cjs +7 -0
  307. package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
  308. package/dist/workflow-definition-D24CRCK2.js +7 -0
  309. package/docs/access-token.md +440 -0
  310. package/docs/address-suggestions.md +256 -0
  311. package/docs/address.md +284 -0
  312. package/docs/ai-agents.md +1891 -0
  313. package/docs/app.md +3388 -0
  314. package/docs/audit-logs.md +242 -0
  315. package/docs/automation.md +4044 -0
  316. package/docs/billing.md +783 -0
  317. package/docs/blueprint-manifest.md +3234 -0
  318. package/docs/consent.md +213 -0
  319. package/docs/customer-portal.md +11399 -0
  320. package/docs/dashboard.md +640 -0
  321. package/docs/data-management.md +883 -0
  322. package/docs/deduplication.md +135 -0
  323. package/docs/design.md +1273 -0
  324. package/docs/document.md +590 -0
  325. package/docs/email-settings.md +1544 -0
  326. package/docs/email-template.md +1197 -0
  327. package/docs/entity-mapping.md +2864 -0
  328. package/docs/entity.md +9595 -0
  329. package/docs/environments.md +259 -0
  330. package/docs/erp-integration.md +4572 -0
  331. package/docs/event-catalog.md +835 -0
  332. package/docs/file.md +1453 -0
  333. package/docs/iban.md +61 -0
  334. package/docs/journey.md +2268 -0
  335. package/docs/kanban.md +882 -0
  336. package/docs/message.md +2122 -0
  337. package/docs/metering.md +1431 -0
  338. package/docs/notes.md +670 -0
  339. package/docs/notification.md +1207 -0
  340. package/docs/organization.md +733 -0
  341. package/docs/partner-directory.md +1197 -0
  342. package/docs/permissions.md +1047 -0
  343. package/docs/pricing-tier.md +81 -0
  344. package/docs/pricing.md +5923 -0
  345. package/docs/purpose.md +283 -0
  346. package/docs/sandbox.md +389 -0
  347. package/docs/submission.md +195 -0
  348. package/docs/targeting.md +959 -0
  349. package/docs/template-variables.md +1141 -0
  350. package/docs/user.md +2555 -0
  351. package/docs/validation-rules.md +1597 -0
  352. package/docs/webhooks.md +996 -0
  353. package/docs/workflow-definition.md +3842 -0
  354. package/docs/workflow.md +4465 -0
  355. package/package.json +3 -2
  356. package/dist/chunk-XE25WERA.js +0 -125
  357. package/dist/chunk-XEQMAKGA.cjs +0 -125
package/docs/design.md ADDED
@@ -0,0 +1,1273 @@
1
+ # Design Builder API v2
2
+
3
+ - **Base URL:** `https://design-builder-api.epilot.io`
4
+ - **Full API Docs:** [https://docs.epilot.io/api/design](https://docs.epilot.io/api/design)
5
+
6
+ ## Usage
7
+
8
+ ```ts
9
+ import { epilot } from '@epilot/sdk'
10
+
11
+ epilot.authorize(() => '<token>')
12
+ const { data } = await epilot.design.getAllDesigns(...)
13
+ ```
14
+
15
+ ### Tree-shakeable import
16
+
17
+ ```ts
18
+ import { getClient, authorize } from '@epilot/sdk/design'
19
+
20
+ const designClient = getClient()
21
+ authorize(designClient, () => '<token>')
22
+ const { data } = await designClient.getAllDesigns(...)
23
+ ```
24
+
25
+ ## Operations
26
+
27
+ **design-builder**
28
+ - [`getAllDesigns`](#getalldesigns)
29
+ - [`addDesign`](#adddesign)
30
+ - [`getDesign`](#getdesign)
31
+ - [`deleteDesign`](#deletedesign)
32
+ - [`updateDesign`](#updatedesign)
33
+ - [`getThemeFromDesign`](#getthemefromdesign)
34
+ - [`uploadFile`](#uploadfile)
35
+ - [`getFiles`](#getfiles)
36
+ - [`getConsumerDesign`](#getconsumerdesign)
37
+ - [`addConsumer`](#addconsumer)
38
+ - [`removeConsumer`](#removeconsumer)
39
+
40
+ **Schemas**
41
+ - [`UploadFileReq`](#uploadfilereq)
42
+ - [`UploadFileRes`](#uploadfileres)
43
+ - [`GetFilesRes`](#getfilesres)
44
+ - [`GetAllDesignsRes`](#getalldesignsres)
45
+ - [`GetBrandsRes`](#getbrandsres)
46
+ - [`AddDesignReq`](#adddesignreq)
47
+ - [`AddDesignRes`](#adddesignres)
48
+ - [`GetDesignRes`](#getdesignres)
49
+ - [`UpdateDesignReq`](#updatedesignreq)
50
+ - [`ItemMetada`](#itemmetada)
51
+ - [`AddConsumerReq`](#addconsumerreq)
52
+ - [`DesignItem`](#designitem)
53
+ - [`BrandItem`](#branditem)
54
+ - [`Custom_Style`](#custom_style)
55
+ - [`Journey`](#journey)
56
+ - [`ConsumerData`](#consumerdata)
57
+ - [`WidgetData`](#widgetdata)
58
+ - [`CustomerPortalData`](#customerportaldata)
59
+ - [`LogoData`](#logodata)
60
+ - [`PaletteData`](#palettedata)
61
+ - [`TypographyData`](#typographydata)
62
+ - [`ShapeData`](#shapedata)
63
+ - [`FontData`](#fontdata)
64
+ - [`FontResponseUrl`](#fontresponseurl)
65
+ - [`WidgetPortalData`](#widgetportaldata)
66
+ - [`ErrorResp`](#errorresp)
67
+ - [`FileData`](#filedata)
68
+
69
+ ### `getAllDesigns`
70
+
71
+ Scan all designs linked to a organization, based in orgId attribute from JWT auth token
72
+
73
+ `GET /v1/designs`
74
+
75
+ ```ts
76
+ const { data } = await client.getAllDesigns()
77
+ ```
78
+
79
+ <details>
80
+ <summary>Response</summary>
81
+
82
+ ```json
83
+ [
84
+ {
85
+ "designs": [
86
+ {
87
+ "id": "string",
88
+ "created_at": "2021-01-30T08:30:00Z",
89
+ "created_by": "string",
90
+ "edited": true,
91
+ "last_modified_at": "string",
92
+ "brand_id": "string",
93
+ "brand_name": "string",
94
+ "user": {
95
+ "emailaddress": "string",
96
+ "fullname": "string",
97
+ "name": "string",
98
+ "userid": "string"
99
+ },
100
+ "style_name": "string",
101
+ "style": {
102
+ "logo": {
103
+ "main": {
104
+ "name": "string",
105
+ "display_name": "string",
106
+ "file_type": "LOGO",
107
+ "s3_object_key": "string",
108
+ "url": "string"
109
+ }
110
+ },
111
+ "palette": {
112
+ "primary": "string",
113
+ "secondary": "string",
114
+ "error": "string",
115
+ "background": "string",
116
+ "paper": "string",
117
+ "navbar": "string",
118
+ "portal_login_background": "string"
119
+ },
120
+ "typography": {
121
+ "font": {
122
+ "font_id": "string",
123
+ "font_name": "string",
124
+ "font_family": "string",
125
+ "font_weight_regular": "string",
126
+ "font_weight_medium": "string",
127
+ "font_weight_bold": "string",
128
+ "urls": [
129
+ {
130
+ "type": "WOFF2",
131
+ "url": "string"
132
+ }
133
+ ]
134
+ },
135
+ "primary": "string",
136
+ "secondary": "string"
137
+ },
138
+ "shape": {
139
+ "border_radius": 0
140
+ },
141
+ "consumer": {
142
+ "widgets": [
143
+ {
144
+ "id": "string",
145
+ "name": "string"
146
+ }
147
+ ],
148
+ "customer_portals": [
149
+ {
150
+ "id": "string",
151
+ "name": "string"
152
+ }
153
+ ]
154
+ }
155
+ },
156
+ "is_default": true,
157
+ "custom_theme": "string",
158
+ "use_custom_theme": true,
159
+ "design_tokens": {
160
+ "coupon": "string",
161
+ "cashback": "string",
162
+ "custom_css": "string"
163
+ }
164
+ }
165
+ ]
166
+ }
167
+ ]
168
+ ```
169
+
170
+ </details>
171
+
172
+ ---
173
+
174
+ ### `addDesign`
175
+
176
+ Create a brand new design linked to a organization, based in orgId attribute from JWT auth token
177
+
178
+ `POST /v1/designs`
179
+
180
+ ```ts
181
+ const { data } = await client.addDesign(
182
+ null,
183
+ {
184
+ design: {
185
+ brand_id: 'string',
186
+ brand_name: 'string',
187
+ user: {
188
+ emailaddress: 'string',
189
+ fullname: 'string',
190
+ name: 'string',
191
+ userid: 'string'
192
+ },
193
+ style_name: 'string',
194
+ style: {
195
+ logo: {
196
+ main: {
197
+ name: 'string',
198
+ display_name: 'string',
199
+ file_type: 'LOGO',
200
+ s3_object_key: 'string',
201
+ url: 'string'
202
+ }
203
+ },
204
+ palette: {
205
+ primary: 'string',
206
+ secondary: 'string',
207
+ error: 'string',
208
+ background: 'string',
209
+ paper: 'string',
210
+ navbar: 'string',
211
+ portal_login_background: 'string'
212
+ },
213
+ typography: {
214
+ font: {
215
+ font_id: 'string',
216
+ font_name: 'string',
217
+ font_family: 'string',
218
+ font_weight_regular: 'string',
219
+ font_weight_medium: 'string',
220
+ font_weight_bold: 'string',
221
+ urls: [
222
+ {
223
+ type: 'WOFF2',
224
+ url: 'string'
225
+ }
226
+ ]
227
+ },
228
+ primary: 'string',
229
+ secondary: 'string'
230
+ },
231
+ shape: {
232
+ border_radius: 0
233
+ },
234
+ consumer: {
235
+ widgets: [
236
+ {
237
+ id: 'string',
238
+ name: 'string'
239
+ }
240
+ ],
241
+ customer_portals: [
242
+ {
243
+ id: 'string',
244
+ name: 'string'
245
+ }
246
+ ]
247
+ }
248
+ },
249
+ is_default: true,
250
+ custom_theme: 'string',
251
+ use_custom_theme: true,
252
+ design_tokens: {
253
+ coupon: 'string',
254
+ cashback: 'string',
255
+ custom_css: 'string'
256
+ }
257
+ }
258
+ },
259
+ )
260
+ ```
261
+
262
+ <details>
263
+ <summary>Response</summary>
264
+
265
+ ```json
266
+ {
267
+ "design": {
268
+ "id": "string",
269
+ "created_at": "2021-01-30T08:30:00Z",
270
+ "created_by": "string",
271
+ "edited": true,
272
+ "last_modified_at": "string",
273
+ "brand_id": "string",
274
+ "brand_name": "string",
275
+ "user": {
276
+ "emailaddress": "string",
277
+ "fullname": "string",
278
+ "name": "string",
279
+ "userid": "string"
280
+ },
281
+ "style_name": "string",
282
+ "style": {
283
+ "logo": {
284
+ "main": {
285
+ "name": "string",
286
+ "display_name": "string",
287
+ "file_type": "LOGO",
288
+ "s3_object_key": "string",
289
+ "url": "string"
290
+ }
291
+ },
292
+ "palette": {
293
+ "primary": "string",
294
+ "secondary": "string",
295
+ "error": "string",
296
+ "background": "string",
297
+ "paper": "string",
298
+ "navbar": "string",
299
+ "portal_login_background": "string"
300
+ },
301
+ "typography": {
302
+ "font": {
303
+ "font_id": "string",
304
+ "font_name": "string",
305
+ "font_family": "string",
306
+ "font_weight_regular": "string",
307
+ "font_weight_medium": "string",
308
+ "font_weight_bold": "string",
309
+ "urls": [
310
+ {
311
+ "type": "WOFF2",
312
+ "url": "string"
313
+ }
314
+ ]
315
+ },
316
+ "primary": "string",
317
+ "secondary": "string"
318
+ },
319
+ "shape": {
320
+ "border_radius": 0
321
+ },
322
+ "consumer": {
323
+ "widgets": [
324
+ {
325
+ "id": "string",
326
+ "name": "string"
327
+ }
328
+ ],
329
+ "customer_portals": [
330
+ {
331
+ "id": "string",
332
+ "name": "string"
333
+ }
334
+ ]
335
+ }
336
+ },
337
+ "is_default": true,
338
+ "custom_theme": "string",
339
+ "use_custom_theme": true,
340
+ "design_tokens": {
341
+ "coupon": "string",
342
+ "cashback": "string",
343
+ "custom_css": "string"
344
+ }
345
+ }
346
+ }
347
+ ```
348
+
349
+ </details>
350
+
351
+ ---
352
+
353
+ ### `getDesign`
354
+
355
+ Search for a especific design owned by user organization
356
+
357
+ `GET /v1/designs/{designId}`
358
+
359
+ ```ts
360
+ const { data } = await client.getDesign({
361
+ designId: 'example',
362
+ })
363
+ ```
364
+
365
+ <details>
366
+ <summary>Response</summary>
367
+
368
+ ```json
369
+ {
370
+ "design": {
371
+ "id": "string",
372
+ "created_at": "2021-01-30T08:30:00Z",
373
+ "created_by": "string",
374
+ "edited": true,
375
+ "last_modified_at": "string",
376
+ "brand_id": "string",
377
+ "brand_name": "string",
378
+ "user": {
379
+ "emailaddress": "string",
380
+ "fullname": "string",
381
+ "name": "string",
382
+ "userid": "string"
383
+ },
384
+ "style_name": "string",
385
+ "style": {
386
+ "logo": {
387
+ "main": {
388
+ "name": "string",
389
+ "display_name": "string",
390
+ "file_type": "LOGO",
391
+ "s3_object_key": "string",
392
+ "url": "string"
393
+ }
394
+ },
395
+ "palette": {
396
+ "primary": "string",
397
+ "secondary": "string",
398
+ "error": "string",
399
+ "background": "string",
400
+ "paper": "string",
401
+ "navbar": "string",
402
+ "portal_login_background": "string"
403
+ },
404
+ "typography": {
405
+ "font": {
406
+ "font_id": "string",
407
+ "font_name": "string",
408
+ "font_family": "string",
409
+ "font_weight_regular": "string",
410
+ "font_weight_medium": "string",
411
+ "font_weight_bold": "string",
412
+ "urls": [
413
+ {
414
+ "type": "WOFF2",
415
+ "url": "string"
416
+ }
417
+ ]
418
+ },
419
+ "primary": "string",
420
+ "secondary": "string"
421
+ },
422
+ "shape": {
423
+ "border_radius": 0
424
+ },
425
+ "consumer": {
426
+ "widgets": [
427
+ {
428
+ "id": "string",
429
+ "name": "string"
430
+ }
431
+ ],
432
+ "customer_portals": [
433
+ {
434
+ "id": "string",
435
+ "name": "string"
436
+ }
437
+ ]
438
+ }
439
+ },
440
+ "is_default": true,
441
+ "custom_theme": "string",
442
+ "use_custom_theme": true,
443
+ "design_tokens": {
444
+ "coupon": "string",
445
+ "cashback": "string",
446
+ "custom_css": "string"
447
+ }
448
+ }
449
+ }
450
+ ```
451
+
452
+ </details>
453
+
454
+ ---
455
+
456
+ ### `deleteDesign`
457
+
458
+ Search and delete for a especific design owned by user organization
459
+
460
+ `DELETE /v1/designs/{designId}`
461
+
462
+ ```ts
463
+ const { data } = await client.deleteDesign({
464
+ designId: 'example',
465
+ })
466
+ ```
467
+
468
+ ---
469
+
470
+ ### `updateDesign`
471
+
472
+ Update a especific design owned by user organization
473
+
474
+ `PUT /v1/designs/{designId}`
475
+
476
+ ```ts
477
+ const { data } = await client.updateDesign(
478
+ {
479
+ designId: 'example',
480
+ },
481
+ {
482
+ design: {
483
+ brand_id: 'string',
484
+ brand_name: 'string',
485
+ user: {
486
+ emailaddress: 'string',
487
+ fullname: 'string',
488
+ name: 'string',
489
+ userid: 'string'
490
+ },
491
+ style_name: 'string',
492
+ style: {
493
+ logo: {
494
+ main: {
495
+ name: 'string',
496
+ display_name: 'string',
497
+ file_type: 'LOGO',
498
+ s3_object_key: 'string',
499
+ url: 'string'
500
+ }
501
+ },
502
+ palette: {
503
+ primary: 'string',
504
+ secondary: 'string',
505
+ error: 'string',
506
+ background: 'string',
507
+ paper: 'string',
508
+ navbar: 'string',
509
+ portal_login_background: 'string'
510
+ },
511
+ typography: {
512
+ font: {
513
+ font_id: 'string',
514
+ font_name: 'string',
515
+ font_family: 'string',
516
+ font_weight_regular: 'string',
517
+ font_weight_medium: 'string',
518
+ font_weight_bold: 'string',
519
+ urls: [
520
+ {
521
+ type: 'WOFF2',
522
+ url: 'string'
523
+ }
524
+ ]
525
+ },
526
+ primary: 'string',
527
+ secondary: 'string'
528
+ },
529
+ shape: {
530
+ border_radius: 0
531
+ },
532
+ consumer: {
533
+ widgets: [
534
+ {
535
+ id: 'string',
536
+ name: 'string'
537
+ }
538
+ ],
539
+ customer_portals: [
540
+ {
541
+ id: 'string',
542
+ name: 'string'
543
+ }
544
+ ]
545
+ }
546
+ },
547
+ is_default: true,
548
+ custom_theme: 'string',
549
+ use_custom_theme: true,
550
+ design_tokens: {
551
+ coupon: 'string',
552
+ cashback: 'string',
553
+ custom_css: 'string'
554
+ }
555
+ }
556
+ },
557
+ )
558
+ ```
559
+
560
+ ---
561
+
562
+ ### `getThemeFromDesign`
563
+
564
+ Search for a especific design owned by user organization and parse them to a new or old theme
565
+
566
+ `GET /v1/designs/{designId}/parse`
567
+
568
+ ```ts
569
+ const { data } = await client.getThemeFromDesign({
570
+ designId: 'example',
571
+ orgId: 'example',
572
+ theme: 'example',
573
+ })
574
+ ```
575
+
576
+ <details>
577
+ <summary>Response</summary>
578
+
579
+ ```json
580
+ {}
581
+ ```
582
+
583
+ </details>
584
+
585
+ ---
586
+
587
+ ### `uploadFile`
588
+
589
+ Upload a new file for the user organization bucket
590
+
591
+ `POST /v1/designs/files`
592
+
593
+ ```ts
594
+ const { data } = await client.uploadFile()
595
+ ```
596
+
597
+ <details>
598
+ <summary>Response</summary>
599
+
600
+ ```json
601
+ {
602
+ "name": "string",
603
+ "display_name": "string",
604
+ "file_type": "LOGO",
605
+ "s3_object_key": "string",
606
+ "url": "string"
607
+ }
608
+ ```
609
+
610
+ </details>
611
+
612
+ ---
613
+
614
+ ### `getFiles`
615
+
616
+ List all files for the user organization bucket
617
+
618
+ `GET /v1/designs/files`
619
+
620
+ ```ts
621
+ const { data } = await client.getFiles({
622
+ type: 'example',
623
+ })
624
+ ```
625
+
626
+ <details>
627
+ <summary>Response</summary>
628
+
629
+ ```json
630
+ [
631
+ {
632
+ "name": "string",
633
+ "display_name": "string",
634
+ "file_type": "LOGO",
635
+ "s3_object_key": "string",
636
+ "url": "string"
637
+ }
638
+ ]
639
+ ```
640
+
641
+ </details>
642
+
643
+ ---
644
+
645
+ ### `getConsumerDesign`
646
+
647
+ Search for a especific design owned by user organization
648
+
649
+ `GET /v1/designs/consumer/{application}/{consumerId}`
650
+
651
+ ```ts
652
+ const { data } = await client.getConsumerDesign({
653
+ consumerId: 'example',
654
+ application: 'example',
655
+ })
656
+ ```
657
+
658
+ <details>
659
+ <summary>Response</summary>
660
+
661
+ ```json
662
+ {
663
+ "design": {
664
+ "id": "string",
665
+ "created_at": "2021-01-30T08:30:00Z",
666
+ "created_by": "string",
667
+ "edited": true,
668
+ "last_modified_at": "string",
669
+ "brand_id": "string",
670
+ "brand_name": "string",
671
+ "user": {
672
+ "emailaddress": "string",
673
+ "fullname": "string",
674
+ "name": "string",
675
+ "userid": "string"
676
+ },
677
+ "style_name": "string",
678
+ "style": {
679
+ "logo": {
680
+ "main": {
681
+ "name": "string",
682
+ "display_name": "string",
683
+ "file_type": "LOGO",
684
+ "s3_object_key": "string",
685
+ "url": "string"
686
+ }
687
+ },
688
+ "palette": {
689
+ "primary": "string",
690
+ "secondary": "string",
691
+ "error": "string",
692
+ "background": "string",
693
+ "paper": "string",
694
+ "navbar": "string",
695
+ "portal_login_background": "string"
696
+ },
697
+ "typography": {
698
+ "font": {
699
+ "font_id": "string",
700
+ "font_name": "string",
701
+ "font_family": "string",
702
+ "font_weight_regular": "string",
703
+ "font_weight_medium": "string",
704
+ "font_weight_bold": "string",
705
+ "urls": [
706
+ {
707
+ "type": "WOFF2",
708
+ "url": "string"
709
+ }
710
+ ]
711
+ },
712
+ "primary": "string",
713
+ "secondary": "string"
714
+ },
715
+ "shape": {
716
+ "border_radius": 0
717
+ },
718
+ "consumer": {
719
+ "widgets": [
720
+ {
721
+ "id": "string",
722
+ "name": "string"
723
+ }
724
+ ],
725
+ "customer_portals": [
726
+ {
727
+ "id": "string",
728
+ "name": "string"
729
+ }
730
+ ]
731
+ }
732
+ },
733
+ "is_default": true,
734
+ "custom_theme": "string",
735
+ "use_custom_theme": true,
736
+ "design_tokens": {
737
+ "coupon": "string",
738
+ "cashback": "string",
739
+ "custom_css": "string"
740
+ }
741
+ }
742
+ }
743
+ ```
744
+
745
+ </details>
746
+
747
+ ---
748
+
749
+ ### `addConsumer`
750
+
751
+ Add a consumer that uses a specific design
752
+
753
+ `PUT /v1/designs/addConsumer/{application}/{designId}`
754
+
755
+ ```ts
756
+ const { data } = await client.addConsumer(
757
+ {
758
+ designId: 'example',
759
+ application: 'example',
760
+ },
761
+ {
762
+ consumer_id: 'string',
763
+ consumer_name: 'string',
764
+ should_delete: 'string'
765
+ },
766
+ )
767
+ ```
768
+
769
+ ---
770
+
771
+ ### `removeConsumer`
772
+
773
+ Remove a consumer that uses a specific design
774
+
775
+ `PUT /v1/designs/removeConsumer/{application}/{designId}`
776
+
777
+ ```ts
778
+ const { data } = await client.removeConsumer(
779
+ {
780
+ designId: 'example',
781
+ application: 'example',
782
+ },
783
+ {
784
+ consumer_id: 'string',
785
+ consumer_name: 'string',
786
+ should_delete: 'string'
787
+ },
788
+ )
789
+ ```
790
+
791
+ ---
792
+
793
+ ## Schemas
794
+
795
+ ### `UploadFileReq`
796
+
797
+ ```ts
798
+ type UploadFileReq = {
799
+ file_type: "LOGO" | "FONT"
800
+ file_data: string // base64
801
+ display_name?: string
802
+ file_name: string
803
+ }
804
+ ```
805
+
806
+ ### `UploadFileRes`
807
+
808
+ ```ts
809
+ type UploadFileRes = {
810
+ name: string
811
+ display_name?: string
812
+ file_type?: "LOGO" | "FONT"
813
+ s3_object_key: string
814
+ url: string
815
+ }
816
+ ```
817
+
818
+ ### `GetFilesRes`
819
+
820
+ ```ts
821
+ type GetFilesRes = Array<{
822
+ name: string
823
+ display_name?: string
824
+ file_type?: "LOGO" | "FONT"
825
+ s3_object_key: string
826
+ url: string
827
+ }>
828
+ ```
829
+
830
+ ### `GetAllDesignsRes`
831
+
832
+ ```ts
833
+ type GetAllDesignsRes = {
834
+ designs?: Array<{
835
+ id?: string
836
+ created_at?: string
837
+ created_by?: string
838
+ edited: boolean
839
+ last_modified_at?: string
840
+ brand_id?: string
841
+ brand_name?: string
842
+ user?: {
843
+ emailaddress?: { ... }
844
+ fullname?: { ... }
845
+ name?: { ... }
846
+ userid?: { ... }
847
+ }
848
+ style_name: string
849
+ style: {
850
+ logo?: { ... }
851
+ palette: { ... }
852
+ typography: { ... }
853
+ shape?: { ... }
854
+ consumer: { ... }
855
+ }
856
+ is_default?: boolean
857
+ custom_theme?: string
858
+ use_custom_theme?: boolean
859
+ design_tokens?: {
860
+ coupon?: { ... }
861
+ cashback?: { ... }
862
+ custom_css?: { ... }
863
+ }
864
+ }>
865
+ }
866
+ ```
867
+
868
+ ### `GetBrandsRes`
869
+
870
+ ```ts
871
+ type GetBrandsRes = {
872
+ brands?: Array<{
873
+ id: string
874
+ name: string
875
+ created_by?: string
876
+ created_date?: string
877
+ main_brand?: string
878
+ organization_id?: string
879
+ updated_date?: string
880
+ updated_by?: string
881
+ status?: string
882
+ }>
883
+ }
884
+ ```
885
+
886
+ ### `AddDesignReq`
887
+
888
+ ```ts
889
+ type AddDesignReq = {
890
+ design: {
891
+ brand_id?: string
892
+ brand_name?: string
893
+ user?: {
894
+ emailaddress?: { ... }
895
+ fullname?: { ... }
896
+ name?: { ... }
897
+ userid?: { ... }
898
+ }
899
+ style_name: string
900
+ style: {
901
+ logo?: { ... }
902
+ palette: { ... }
903
+ typography: { ... }
904
+ shape?: { ... }
905
+ consumer: { ... }
906
+ }
907
+ is_default?: boolean
908
+ custom_theme?: string
909
+ use_custom_theme?: boolean
910
+ design_tokens?: {
911
+ coupon?: { ... }
912
+ cashback?: { ... }
913
+ custom_css?: { ... }
914
+ }
915
+ }
916
+ }
917
+ ```
918
+
919
+ ### `AddDesignRes`
920
+
921
+ ```ts
922
+ type AddDesignRes = {
923
+ design?: {
924
+ id?: string
925
+ created_at?: string
926
+ created_by?: string
927
+ edited: boolean
928
+ last_modified_at?: string
929
+ brand_id?: string
930
+ brand_name?: string
931
+ user?: {
932
+ emailaddress?: { ... }
933
+ fullname?: { ... }
934
+ name?: { ... }
935
+ userid?: { ... }
936
+ }
937
+ style_name: string
938
+ style: {
939
+ logo?: { ... }
940
+ palette: { ... }
941
+ typography: { ... }
942
+ shape?: { ... }
943
+ consumer: { ... }
944
+ }
945
+ is_default?: boolean
946
+ custom_theme?: string
947
+ use_custom_theme?: boolean
948
+ design_tokens?: {
949
+ coupon?: { ... }
950
+ cashback?: { ... }
951
+ custom_css?: { ... }
952
+ }
953
+ }
954
+ }
955
+ ```
956
+
957
+ ### `GetDesignRes`
958
+
959
+ ```ts
960
+ type GetDesignRes = {
961
+ design?: {
962
+ id?: string
963
+ created_at?: string
964
+ created_by?: string
965
+ edited: boolean
966
+ last_modified_at?: string
967
+ brand_id?: string
968
+ brand_name?: string
969
+ user?: {
970
+ emailaddress?: { ... }
971
+ fullname?: { ... }
972
+ name?: { ... }
973
+ userid?: { ... }
974
+ }
975
+ style_name: string
976
+ style: {
977
+ logo?: { ... }
978
+ palette: { ... }
979
+ typography: { ... }
980
+ shape?: { ... }
981
+ consumer: { ... }
982
+ }
983
+ is_default?: boolean
984
+ custom_theme?: string
985
+ use_custom_theme?: boolean
986
+ design_tokens?: {
987
+ coupon?: { ... }
988
+ cashback?: { ... }
989
+ custom_css?: { ... }
990
+ }
991
+ }
992
+ }
993
+ ```
994
+
995
+ ### `UpdateDesignReq`
996
+
997
+ ```ts
998
+ type UpdateDesignReq = {
999
+ design: {
1000
+ brand_id?: string
1001
+ brand_name?: string
1002
+ user?: {
1003
+ emailaddress?: { ... }
1004
+ fullname?: { ... }
1005
+ name?: { ... }
1006
+ userid?: { ... }
1007
+ }
1008
+ style_name: string
1009
+ style: {
1010
+ logo?: { ... }
1011
+ palette: { ... }
1012
+ typography: { ... }
1013
+ shape?: { ... }
1014
+ consumer: { ... }
1015
+ }
1016
+ is_default?: boolean
1017
+ custom_theme?: string
1018
+ use_custom_theme?: boolean
1019
+ design_tokens?: {
1020
+ coupon?: { ... }
1021
+ cashback?: { ... }
1022
+ custom_css?: { ... }
1023
+ }
1024
+ }
1025
+ }
1026
+ ```
1027
+
1028
+ ### `ItemMetada`
1029
+
1030
+ ```ts
1031
+ type ItemMetada = {
1032
+ id?: string
1033
+ created_at?: string
1034
+ created_by?: string
1035
+ edited?: boolean
1036
+ last_modified_at?: string
1037
+ }
1038
+ ```
1039
+
1040
+ ### `AddConsumerReq`
1041
+
1042
+ ```ts
1043
+ type AddConsumerReq = {
1044
+ consumer_id: string
1045
+ consumer_name: string
1046
+ should_delete?: string
1047
+ }
1048
+ ```
1049
+
1050
+ ### `DesignItem`
1051
+
1052
+ ```ts
1053
+ type DesignItem = {
1054
+ brand_id?: string
1055
+ brand_name?: string
1056
+ user?: {
1057
+ emailaddress?: string
1058
+ fullname?: string
1059
+ name?: string
1060
+ userid?: string
1061
+ }
1062
+ style_name: string
1063
+ style: {
1064
+ logo?: {
1065
+ main?: { ... }
1066
+ }
1067
+ palette: {
1068
+ primary: { ... }
1069
+ secondary: { ... }
1070
+ error: { ... }
1071
+ background: { ... }
1072
+ paper: { ... }
1073
+ navbar: { ... }
1074
+ portal_login_background?: { ... }
1075
+ }
1076
+ typography: {
1077
+ font: { ... }
1078
+ primary: { ... }
1079
+ secondary: { ... }
1080
+ }
1081
+ shape?: {
1082
+ border_radius?: { ... }
1083
+ }
1084
+ consumer: {
1085
+ widgets: { ... }
1086
+ customer_portals: { ... }
1087
+ }
1088
+ }
1089
+ is_default?: boolean
1090
+ }
1091
+ ```
1092
+
1093
+ ### `BrandItem`
1094
+
1095
+ ```ts
1096
+ type BrandItem = {
1097
+ id: string
1098
+ name: string
1099
+ created_by?: string
1100
+ created_date?: string
1101
+ main_brand?: string
1102
+ organization_id?: string
1103
+ updated_date?: string
1104
+ updated_by?: string
1105
+ status?: string
1106
+ }
1107
+ ```
1108
+
1109
+ ### `Custom_Style`
1110
+
1111
+ ```ts
1112
+ type Custom_Style = {
1113
+ custom_theme?: string
1114
+ use_custom_theme?: boolean
1115
+ }
1116
+ ```
1117
+
1118
+ ### `Journey`
1119
+
1120
+ ```ts
1121
+ type Journey = {
1122
+ design_tokens?: {
1123
+ coupon?: string
1124
+ cashback?: string
1125
+ custom_css?: string
1126
+ }
1127
+ }
1128
+ ```
1129
+
1130
+ ### `ConsumerData`
1131
+
1132
+ ```ts
1133
+ type ConsumerData = {
1134
+ widgets: Array<{
1135
+ id: string
1136
+ name: string
1137
+ }>
1138
+ customer_portals: Array<{
1139
+ id: string
1140
+ name: string
1141
+ }>
1142
+ }
1143
+ ```
1144
+
1145
+ ### `WidgetData`
1146
+
1147
+ ```ts
1148
+ type WidgetData = {
1149
+ id: string
1150
+ name: string
1151
+ }
1152
+ ```
1153
+
1154
+ ### `CustomerPortalData`
1155
+
1156
+ ```ts
1157
+ type CustomerPortalData = {
1158
+ id: string
1159
+ name: string
1160
+ }
1161
+ ```
1162
+
1163
+ ### `LogoData`
1164
+
1165
+ ```ts
1166
+ type LogoData = {
1167
+ main?: {
1168
+ name: string
1169
+ display_name?: string
1170
+ file_type?: "LOGO" | "FONT"
1171
+ s3_object_key: string
1172
+ url: string
1173
+ }
1174
+ }
1175
+ ```
1176
+
1177
+ ### `PaletteData`
1178
+
1179
+ ```ts
1180
+ type PaletteData = {
1181
+ primary: string
1182
+ secondary: string
1183
+ error: string
1184
+ background: string
1185
+ paper: string
1186
+ navbar: string
1187
+ portal_login_background?: string
1188
+ }
1189
+ ```
1190
+
1191
+ ### `TypographyData`
1192
+
1193
+ ```ts
1194
+ type TypographyData = {
1195
+ font: {
1196
+ font_id: string
1197
+ font_name: string
1198
+ font_family?: string
1199
+ font_weight_regular?: string
1200
+ font_weight_medium?: string
1201
+ font_weight_bold?: string
1202
+ urls: Array<{
1203
+ type?: { ... }
1204
+ url?: { ... }
1205
+ }>
1206
+ }
1207
+ primary: string
1208
+ secondary: string
1209
+ }
1210
+ ```
1211
+
1212
+ ### `ShapeData`
1213
+
1214
+ ```ts
1215
+ type ShapeData = {
1216
+ border_radius?: number
1217
+ }
1218
+ ```
1219
+
1220
+ ### `FontData`
1221
+
1222
+ ```ts
1223
+ type FontData = {
1224
+ font_id: string
1225
+ font_name: string
1226
+ font_family?: string
1227
+ font_weight_regular?: string
1228
+ font_weight_medium?: string
1229
+ font_weight_bold?: string
1230
+ urls: Array<{
1231
+ type?: "WOFF2" | "WOFF" | "TTF" | "EOT"
1232
+ url?: string
1233
+ }>
1234
+ }
1235
+ ```
1236
+
1237
+ ### `FontResponseUrl`
1238
+
1239
+ ```ts
1240
+ type FontResponseUrl = {
1241
+ type?: "WOFF2" | "WOFF" | "TTF" | "EOT"
1242
+ url?: string
1243
+ }
1244
+ ```
1245
+
1246
+ ### `WidgetPortalData`
1247
+
1248
+ ```ts
1249
+ type WidgetPortalData = {
1250
+ id: string
1251
+ name: string
1252
+ }
1253
+ ```
1254
+
1255
+ ### `ErrorResp`
1256
+
1257
+ ```ts
1258
+ type ErrorResp = {
1259
+ message?: string
1260
+ }
1261
+ ```
1262
+
1263
+ ### `FileData`
1264
+
1265
+ ```ts
1266
+ type FileData = {
1267
+ name: string
1268
+ display_name?: string
1269
+ file_type?: "LOGO" | "FONT"
1270
+ s3_object_key: string
1271
+ url: string
1272
+ }
1273
+ ```