@widgetic/api-sdk-ts 1.11.64 → 1.11.111

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 (321) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/BrandKitApi.d.ts +130 -0
  3. package/dist/apis/BrandKitApi.js +381 -0
  4. package/dist/apis/CompositionsApi.d.ts +24 -6
  5. package/dist/apis/CompositionsApi.js +73 -6
  6. package/dist/apis/ManagedUsersApi.d.ts +2 -2
  7. package/dist/apis/ManagedUsersApi.js +2 -2
  8. package/dist/apis/PartnerApi.d.ts +614 -21
  9. package/dist/apis/PartnerApi.js +1767 -169
  10. package/dist/apis/PartnersApi.d.ts +63 -5
  11. package/dist/apis/PartnersApi.js +158 -4
  12. package/dist/apis/PublicEmbedApi.d.ts +62 -7
  13. package/dist/apis/PublicEmbedApi.js +126 -6
  14. package/dist/apis/UsersApi.d.ts +19 -3
  15. package/dist/apis/UsersApi.js +46 -2
  16. package/dist/apis/WorkflowsApi.d.ts +394 -0
  17. package/dist/apis/WorkflowsApi.js +1056 -0
  18. package/dist/apis/WorkspacesApi.d.ts +352 -0
  19. package/dist/apis/WorkspacesApi.js +946 -0
  20. package/dist/apis/index.d.ts +3 -0
  21. package/dist/apis/index.js +3 -0
  22. package/dist/esm/apis/BrandKitApi.js +344 -0
  23. package/dist/esm/apis/CompositionsApi.js +73 -6
  24. package/dist/esm/apis/ManagedUsersApi.js +2 -2
  25. package/dist/esm/apis/PartnerApi.js +1767 -169
  26. package/dist/esm/apis/PartnersApi.js +159 -5
  27. package/dist/esm/apis/PublicEmbedApi.js +127 -7
  28. package/dist/esm/apis/UsersApi.js +47 -3
  29. package/dist/esm/apis/WorkflowsApi.js +1019 -0
  30. package/dist/esm/apis/WorkspacesApi.js +909 -0
  31. package/dist/esm/apis/index.js +3 -0
  32. package/dist/esm/models/AdapterConnection.js +12 -0
  33. package/dist/esm/models/BrandColor.js +64 -0
  34. package/dist/esm/models/BrandFont.js +72 -0
  35. package/dist/esm/models/BrandKitAssetView.js +96 -0
  36. package/dist/esm/models/BrandKitFigmaSource.js +59 -0
  37. package/dist/esm/models/BrandKitTokens.js +56 -0
  38. package/dist/esm/models/BrandKitTokensFonts.js +48 -0
  39. package/dist/esm/models/BrandKitView.js +75 -0
  40. package/dist/esm/models/BrandKitViewOwner.js +54 -0
  41. package/dist/esm/models/BrandKitViewResponse.js +51 -0
  42. package/dist/esm/models/BrandSpacing.js +71 -0
  43. package/dist/esm/models/Composition.js +5 -0
  44. package/dist/esm/models/CompositionLastEditedBy.js +43 -0
  45. package/dist/esm/models/ConfirmAdapterConnectionRequest.js +43 -0
  46. package/dist/esm/models/CreateWidget201ResponseData.js +2 -4
  47. package/dist/esm/models/CreateWorkspaceWorkflowFromPreset201Response.js +51 -0
  48. package/dist/esm/models/CreateWorkspaceWorkflowFromPresetRequest.js +45 -0
  49. package/dist/esm/models/CreateWorkspaceWorkflowRequest.js +47 -0
  50. package/dist/esm/models/DeleteWorkspaceWorkflow200Response.js +51 -0
  51. package/dist/esm/models/EditorSession.js +2 -1
  52. package/dist/esm/models/GetPublicCompositionEmbed200Response.js +9 -0
  53. package/dist/esm/models/GetPublicCompositionEmbed200ResponseAdapters.js +44 -0
  54. package/dist/esm/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.js +41 -0
  55. package/dist/esm/models/GetPublicCompositionEmbed200ResponseEntries.js +43 -0
  56. package/dist/esm/models/GetPublicCompositionEmbed200ResponseMedia.js +41 -0
  57. package/dist/esm/models/GetPublicWorkflow200Response.js +51 -0
  58. package/dist/esm/models/GetWorkspaceWorkflowStats200Response.js +51 -0
  59. package/dist/esm/models/GetWorkspaceWorkflowVersion200Response.js +51 -0
  60. package/dist/esm/models/ListPartnerWorkflowPresets200Response.js +51 -0
  61. package/dist/esm/models/ListWorkspaceWorkflowCompositionOptions200Response.js +51 -0
  62. package/dist/esm/models/ListWorkspaceWorkflowPresets200Response.js +51 -0
  63. package/dist/esm/models/ListWorkspaceWorkflowVersions200Response.js +51 -0
  64. package/dist/esm/models/ListWorkspaceWorkflows200Response.js +51 -0
  65. package/dist/esm/models/NewEditorSession.js +2 -1
  66. package/dist/esm/models/OfferWorkflowPresetRequest.js +49 -0
  67. package/dist/esm/models/OfferedWorkflowPreset.js +101 -0
  68. package/dist/esm/models/OfferedWorkflowPresetList.js +44 -0
  69. package/dist/esm/models/OfferedWorkflowPresetWidget.js +51 -0
  70. package/dist/esm/models/PartnerNotificationEventType.js +5 -1
  71. package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
  72. package/dist/esm/models/PatchBrandKitRequest.js +54 -0
  73. package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
  74. package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
  75. package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
  76. package/dist/esm/models/PublicWorkflow.js +73 -0
  77. package/dist/esm/models/PublicWorkflowEventsAccepted.js +47 -0
  78. package/dist/esm/models/PublicWorkflowEventsRequest.js +53 -0
  79. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +57 -0
  80. package/dist/esm/models/PublicWorkflowEventsRequestHeightsInner.js +47 -0
  81. package/dist/esm/models/PublicWorkflowTranslation.js +47 -0
  82. package/dist/esm/models/PublishWorkspaceWorkflow200Response.js +51 -0
  83. package/dist/esm/models/PublishWorkspaceWorkflowRequest.js +43 -0
  84. package/dist/esm/models/PutBrandKitRequest.js +49 -0
  85. package/dist/esm/models/RemovePartnerWorkflowPreset200Response.js +51 -0
  86. package/dist/esm/models/ReportPublicWorkflowEvents200Response.js +51 -0
  87. package/dist/esm/models/SaveWorkspaceWorkflow200Response.js +51 -0
  88. package/dist/esm/models/SaveWorkspaceWorkflowRequest.js +50 -0
  89. package/dist/esm/models/SetPartnerWorkflowPreset200Response.js +51 -0
  90. package/dist/esm/models/Widget.js +2 -4
  91. package/dist/esm/models/Workflow.js +96 -0
  92. package/dist/esm/models/WorkflowCompositionAction.js +53 -0
  93. package/dist/esm/models/WorkflowCompositionField.js +63 -0
  94. package/dist/esm/models/WorkflowCompositionOption.js +67 -0
  95. package/dist/esm/models/WorkflowCompositionOptionActions.js +57 -0
  96. package/dist/esm/models/WorkflowCompositionOptionInputs.js +61 -0
  97. package/dist/esm/models/WorkflowCompositionOptions.js +56 -0
  98. package/dist/esm/models/WorkflowConditionCase.js +61 -0
  99. package/dist/esm/models/WorkflowConditionTest.js +67 -0
  100. package/dist/esm/models/WorkflowCounter.js +47 -0
  101. package/dist/esm/models/WorkflowDetail.js +113 -0
  102. package/dist/esm/models/WorkflowDetailAllOfLastEditedBy.js +43 -0
  103. package/dist/esm/models/WorkflowEdge.js +55 -0
  104. package/dist/esm/models/WorkflowFieldReference.js +66 -0
  105. package/dist/esm/models/WorkflowGraph.js +59 -0
  106. package/dist/esm/models/WorkflowIssue.js +62 -0
  107. package/dist/esm/models/WorkflowList.js +56 -0
  108. package/dist/esm/models/WorkflowNode.js +68 -0
  109. package/dist/esm/models/WorkflowNodePosition.js +47 -0
  110. package/dist/esm/models/WorkflowPresetChoice.js +60 -0
  111. package/dist/esm/models/WorkflowPresetChoices.js +44 -0
  112. package/dist/esm/models/WorkflowPresetRemoval.js +43 -0
  113. package/dist/esm/models/WorkflowPresetWidget.js +47 -0
  114. package/dist/esm/models/WorkflowPublishResult.js +54 -0
  115. package/dist/esm/models/WorkflowRemoved.js +43 -0
  116. package/dist/esm/models/WorkflowSchedule.js +66 -0
  117. package/dist/esm/models/WorkflowStats.js +68 -0
  118. package/dist/esm/models/WorkflowStatus.js +48 -0
  119. package/dist/esm/models/WorkflowTrigger.js +64 -0
  120. package/dist/esm/models/WorkflowTriggerValuesInner.js +55 -0
  121. package/dist/esm/models/WorkflowVersion.js +62 -0
  122. package/dist/esm/models/WorkflowVersionDetail.js +71 -0
  123. package/dist/esm/models/WorkflowVersionList.js +44 -0
  124. package/dist/esm/models/WorkflowVersionPublishedBy.js +43 -0
  125. package/dist/esm/models/index.js +85 -0
  126. package/dist/esm/runtime.js +1 -1
  127. package/dist/models/AdapterConnection.d.ts +18 -0
  128. package/dist/models/AdapterConnection.js +12 -0
  129. package/dist/models/BrandColor.d.ts +60 -0
  130. package/dist/models/BrandColor.js +72 -0
  131. package/dist/models/BrandFont.d.ts +73 -0
  132. package/dist/models/BrandFont.js +80 -0
  133. package/dist/models/BrandKitAssetView.d.ts +130 -0
  134. package/dist/models/BrandKitAssetView.js +104 -0
  135. package/dist/models/BrandKitFigmaSource.d.ts +56 -0
  136. package/dist/models/BrandKitFigmaSource.js +66 -0
  137. package/dist/models/BrandKitTokens.d.ts +53 -0
  138. package/dist/models/BrandKitTokens.js +63 -0
  139. package/dist/models/BrandKitTokensFonts.d.ts +51 -0
  140. package/dist/models/BrandKitTokensFonts.js +55 -0
  141. package/dist/models/BrandKitView.d.ts +90 -0
  142. package/dist/models/BrandKitView.js +82 -0
  143. package/dist/models/BrandKitViewOwner.d.ts +46 -0
  144. package/dist/models/BrandKitViewOwner.js +62 -0
  145. package/dist/models/BrandKitViewResponse.d.ts +46 -0
  146. package/dist/models/BrandKitViewResponse.js +58 -0
  147. package/dist/models/BrandSpacing.d.ts +74 -0
  148. package/dist/models/BrandSpacing.js +78 -0
  149. package/dist/models/Composition.d.ts +13 -0
  150. package/dist/models/Composition.js +5 -0
  151. package/dist/models/CompositionLastEditedBy.d.ts +52 -0
  152. package/dist/models/CompositionLastEditedBy.js +50 -0
  153. package/dist/models/ConfirmAdapterConnectionRequest.d.ts +32 -0
  154. package/dist/models/ConfirmAdapterConnectionRequest.js +50 -0
  155. package/dist/models/CreateWidget201ResponseData.d.ts +2 -8
  156. package/dist/models/CreateWidget201ResponseData.js +2 -4
  157. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +46 -0
  158. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +58 -0
  159. package/dist/models/CreateWorkspaceWorkflowFromPresetRequest.d.ts +38 -0
  160. package/dist/models/CreateWorkspaceWorkflowFromPresetRequest.js +52 -0
  161. package/dist/models/CreateWorkspaceWorkflowRequest.d.ts +44 -0
  162. package/dist/models/CreateWorkspaceWorkflowRequest.js +54 -0
  163. package/dist/models/DeleteWorkspaceWorkflow200Response.d.ts +46 -0
  164. package/dist/models/DeleteWorkspaceWorkflow200Response.js +58 -0
  165. package/dist/models/EditorSession.d.ts +1 -0
  166. package/dist/models/EditorSession.js +2 -1
  167. package/dist/models/GetPublicCompositionEmbed200Response.d.ts +22 -1
  168. package/dist/models/GetPublicCompositionEmbed200Response.js +9 -0
  169. package/dist/models/GetPublicCompositionEmbed200ResponseAdapters.d.ts +39 -0
  170. package/dist/models/GetPublicCompositionEmbed200ResponseAdapters.js +51 -0
  171. package/dist/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.d.ts +32 -0
  172. package/dist/models/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.js +48 -0
  173. package/dist/models/GetPublicCompositionEmbed200ResponseEntries.d.ts +38 -0
  174. package/dist/models/GetPublicCompositionEmbed200ResponseEntries.js +50 -0
  175. package/dist/models/GetPublicCompositionEmbed200ResponseMedia.d.ts +32 -0
  176. package/dist/models/GetPublicCompositionEmbed200ResponseMedia.js +48 -0
  177. package/dist/models/GetPublicWorkflow200Response.d.ts +46 -0
  178. package/dist/models/GetPublicWorkflow200Response.js +58 -0
  179. package/dist/models/GetWorkspaceWorkflowStats200Response.d.ts +46 -0
  180. package/dist/models/GetWorkspaceWorkflowStats200Response.js +58 -0
  181. package/dist/models/GetWorkspaceWorkflowVersion200Response.d.ts +46 -0
  182. package/dist/models/GetWorkspaceWorkflowVersion200Response.js +58 -0
  183. package/dist/models/ListPartnerWorkflowPresets200Response.d.ts +46 -0
  184. package/dist/models/ListPartnerWorkflowPresets200Response.js +58 -0
  185. package/dist/models/ListWorkspaceWorkflowCompositionOptions200Response.d.ts +46 -0
  186. package/dist/models/ListWorkspaceWorkflowCompositionOptions200Response.js +58 -0
  187. package/dist/models/ListWorkspaceWorkflowPresets200Response.d.ts +46 -0
  188. package/dist/models/ListWorkspaceWorkflowPresets200Response.js +58 -0
  189. package/dist/models/ListWorkspaceWorkflowVersions200Response.d.ts +46 -0
  190. package/dist/models/ListWorkspaceWorkflowVersions200Response.js +58 -0
  191. package/dist/models/ListWorkspaceWorkflows200Response.d.ts +46 -0
  192. package/dist/models/ListWorkspaceWorkflows200Response.js +58 -0
  193. package/dist/models/NewComposition.d.ts +16 -3
  194. package/dist/models/NewEditorSession.d.ts +2 -1
  195. package/dist/models/NewEditorSession.js +2 -1
  196. package/dist/models/OfferWorkflowPresetRequest.d.ts +50 -0
  197. package/dist/models/OfferWorkflowPresetRequest.js +56 -0
  198. package/dist/models/OfferedWorkflowPreset.d.ts +120 -0
  199. package/dist/models/OfferedWorkflowPreset.js +109 -0
  200. package/dist/models/OfferedWorkflowPresetList.d.ts +33 -0
  201. package/dist/models/OfferedWorkflowPresetList.js +51 -0
  202. package/dist/models/OfferedWorkflowPresetWidget.d.ts +44 -0
  203. package/dist/models/OfferedWorkflowPresetWidget.js +58 -0
  204. package/dist/models/PartnerNotification.d.ts +1 -1
  205. package/dist/models/PartnerNotificationEventType.d.ts +4 -0
  206. package/dist/models/PartnerNotificationEventType.js +5 -1
  207. package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
  208. package/dist/models/PatchBrandKitAssetRequest.js +76 -0
  209. package/dist/models/PatchBrandKitRequest.d.ts +65 -0
  210. package/dist/models/PatchBrandKitRequest.js +61 -0
  211. package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
  212. package/dist/models/PatchBrandKitRequestFonts.js +55 -0
  213. package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
  214. package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
  215. package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
  216. package/dist/models/PostBrandKitIconRequest.js +54 -0
  217. package/dist/models/PublicWorkflow.d.ts +109 -0
  218. package/dist/models/PublicWorkflow.js +81 -0
  219. package/dist/models/PublicWorkflowEventsAccepted.d.ts +44 -0
  220. package/dist/models/PublicWorkflowEventsAccepted.js +54 -0
  221. package/dist/models/PublicWorkflowEventsRequest.d.ts +59 -0
  222. package/dist/models/PublicWorkflowEventsRequest.js +60 -0
  223. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +53 -0
  224. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +65 -0
  225. package/dist/models/PublicWorkflowEventsRequestHeightsInner.d.ts +38 -0
  226. package/dist/models/PublicWorkflowEventsRequestHeightsInner.js +54 -0
  227. package/dist/models/PublicWorkflowTranslation.d.ts +40 -0
  228. package/dist/models/PublicWorkflowTranslation.js +54 -0
  229. package/dist/models/PublishWorkspaceWorkflow200Response.d.ts +46 -0
  230. package/dist/models/PublishWorkspaceWorkflow200Response.js +58 -0
  231. package/dist/models/PublishWorkspaceWorkflowRequest.d.ts +32 -0
  232. package/dist/models/PublishWorkspaceWorkflowRequest.js +50 -0
  233. package/dist/models/PutBrandKitRequest.d.ts +46 -0
  234. package/dist/models/PutBrandKitRequest.js +56 -0
  235. package/dist/models/RemovePartnerWorkflowPreset200Response.d.ts +46 -0
  236. package/dist/models/RemovePartnerWorkflowPreset200Response.js +58 -0
  237. package/dist/models/ReportPublicWorkflowEvents200Response.d.ts +46 -0
  238. package/dist/models/ReportPublicWorkflowEvents200Response.js +58 -0
  239. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +46 -0
  240. package/dist/models/SaveWorkspaceWorkflow200Response.js +58 -0
  241. package/dist/models/SaveWorkspaceWorkflowRequest.d.ts +51 -0
  242. package/dist/models/SaveWorkspaceWorkflowRequest.js +57 -0
  243. package/dist/models/SetAdapterConnectionRequest.d.ts +1 -1
  244. package/dist/models/SetPartnerWorkflowPreset200Response.d.ts +46 -0
  245. package/dist/models/SetPartnerWorkflowPreset200Response.js +58 -0
  246. package/dist/models/UpdateComposition.d.ts +3 -1
  247. package/dist/models/Widget.d.ts +2 -8
  248. package/dist/models/Widget.js +2 -4
  249. package/dist/models/Workflow.d.ts +133 -0
  250. package/dist/models/Workflow.js +103 -0
  251. package/dist/models/WorkflowCompositionAction.d.ts +52 -0
  252. package/dist/models/WorkflowCompositionAction.js +60 -0
  253. package/dist/models/WorkflowCompositionField.d.ts +59 -0
  254. package/dist/models/WorkflowCompositionField.js +71 -0
  255. package/dist/models/WorkflowCompositionOption.d.ts +73 -0
  256. package/dist/models/WorkflowCompositionOption.js +74 -0
  257. package/dist/models/WorkflowCompositionOptionActions.d.ts +55 -0
  258. package/dist/models/WorkflowCompositionOptionActions.js +65 -0
  259. package/dist/models/WorkflowCompositionOptionInputs.d.ts +64 -0
  260. package/dist/models/WorkflowCompositionOptionInputs.js +69 -0
  261. package/dist/models/WorkflowCompositionOptions.d.ts +51 -0
  262. package/dist/models/WorkflowCompositionOptions.js +63 -0
  263. package/dist/models/WorkflowConditionCase.d.ts +61 -0
  264. package/dist/models/WorkflowConditionCase.js +69 -0
  265. package/dist/models/WorkflowConditionTest.d.ts +68 -0
  266. package/dist/models/WorkflowConditionTest.js +75 -0
  267. package/dist/models/WorkflowCounter.d.ts +38 -0
  268. package/dist/models/WorkflowCounter.js +54 -0
  269. package/dist/models/WorkflowDetail.d.ts +166 -0
  270. package/dist/models/WorkflowDetail.js +120 -0
  271. package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +42 -0
  272. package/dist/models/WorkflowDetailAllOfLastEditedBy.js +50 -0
  273. package/dist/models/WorkflowEdge.d.ts +50 -0
  274. package/dist/models/WorkflowEdge.js +62 -0
  275. package/dist/models/WorkflowFieldReference.d.ts +63 -0
  276. package/dist/models/WorkflowFieldReference.js +74 -0
  277. package/dist/models/WorkflowGraph.d.ts +53 -0
  278. package/dist/models/WorkflowGraph.js +67 -0
  279. package/dist/models/WorkflowIssue.d.ts +72 -0
  280. package/dist/models/WorkflowIssue.js +70 -0
  281. package/dist/models/WorkflowList.d.ts +51 -0
  282. package/dist/models/WorkflowList.js +63 -0
  283. package/dist/models/WorkflowNode.d.ts +83 -0
  284. package/dist/models/WorkflowNode.js +76 -0
  285. package/dist/models/WorkflowNodePosition.d.ts +38 -0
  286. package/dist/models/WorkflowNodePosition.js +54 -0
  287. package/dist/models/WorkflowPresetChoice.d.ts +60 -0
  288. package/dist/models/WorkflowPresetChoice.js +67 -0
  289. package/dist/models/WorkflowPresetChoices.d.ts +33 -0
  290. package/dist/models/WorkflowPresetChoices.js +51 -0
  291. package/dist/models/WorkflowPresetRemoval.d.ts +32 -0
  292. package/dist/models/WorkflowPresetRemoval.js +50 -0
  293. package/dist/models/WorkflowPresetWidget.d.ts +38 -0
  294. package/dist/models/WorkflowPresetWidget.js +54 -0
  295. package/dist/models/WorkflowPublishResult.d.ts +47 -0
  296. package/dist/models/WorkflowPublishResult.js +61 -0
  297. package/dist/models/WorkflowRemoved.d.ts +32 -0
  298. package/dist/models/WorkflowRemoved.js +50 -0
  299. package/dist/models/WorkflowSchedule.d.ts +69 -0
  300. package/dist/models/WorkflowSchedule.js +74 -0
  301. package/dist/models/WorkflowStats.d.ts +77 -0
  302. package/dist/models/WorkflowStats.js +75 -0
  303. package/dist/models/WorkflowStatus.d.ts +30 -0
  304. package/dist/models/WorkflowStatus.js +56 -0
  305. package/dist/models/WorkflowTrigger.d.ts +77 -0
  306. package/dist/models/WorkflowTrigger.js +72 -0
  307. package/dist/models/WorkflowTriggerValuesInner.d.ts +47 -0
  308. package/dist/models/WorkflowTriggerValuesInner.js +63 -0
  309. package/dist/models/WorkflowVersion.d.ts +63 -0
  310. package/dist/models/WorkflowVersion.js +69 -0
  311. package/dist/models/WorkflowVersionDetail.d.ts +76 -0
  312. package/dist/models/WorkflowVersionDetail.js +78 -0
  313. package/dist/models/WorkflowVersionList.d.ts +33 -0
  314. package/dist/models/WorkflowVersionList.js +51 -0
  315. package/dist/models/WorkflowVersionPublishedBy.d.ts +38 -0
  316. package/dist/models/WorkflowVersionPublishedBy.js +50 -0
  317. package/dist/models/index.d.ts +85 -0
  318. package/dist/models/index.js +85 -0
  319. package/dist/runtime.d.ts +2 -2
  320. package/dist/runtime.js +1 -1
  321. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './BrandKitApi.js';
3
4
  export * from './CanvasesApi.js';
4
5
  export * from './CompositionsApi.js';
5
6
  export * from './CreditsApi.js';
@@ -14,3 +15,5 @@ export * from './TokensApi.js';
14
15
  export * from './UploadsApi.js';
15
16
  export * from './UsersApi.js';
16
17
  export * from './WidgetsApi.js';
18
+ export * from './WorkflowsApi.js';
19
+ export * from './WorkspacesApi.js';
@@ -37,6 +37,12 @@ export function instanceOfAdapterConnection(value) {
37
37
  return false;
38
38
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
39
39
  return false;
40
+ if (!('confirmation' in value) || value['confirmation'] === undefined)
41
+ return false;
42
+ if (!('awaitingConfirmation' in value) || value['awaitingConfirmation'] === undefined)
43
+ return false;
44
+ if (!('confirmedAt' in value) || value['confirmedAt'] === undefined)
45
+ return false;
40
46
  return true;
41
47
  }
42
48
  export function AdapterConnectionFromJSON(json) {
@@ -54,6 +60,9 @@ export function AdapterConnectionFromJSONTyped(json, ignoreDiscriminator) {
54
60
  'scope': json['scope'],
55
61
  'connected': json['connected'],
56
62
  'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
63
+ 'confirmation': json['confirmation'],
64
+ 'awaitingConfirmation': json['awaitingConfirmation'],
65
+ 'confirmedAt': (json['confirmedAt'] == null ? null : new Date(json['confirmedAt'])),
57
66
  };
58
67
  }
59
68
  export function AdapterConnectionToJSON(json) {
@@ -71,5 +80,8 @@ export function AdapterConnectionToJSONTyped(value, ignoreDiscriminator = false)
71
80
  'scope': value['scope'],
72
81
  'connected': value['connected'],
73
82
  'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
83
+ 'confirmation': value['confirmation'],
84
+ 'awaitingConfirmation': value['awaitingConfirmation'],
85
+ 'confirmedAt': (value['confirmedAt'] == null ? null : value['confirmedAt'].toISOString()),
74
86
  };
75
87
  }
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const BrandColorRoleEnum = {
18
+ Primary: 'primary',
19
+ Secondary: 'secondary',
20
+ Accent: 'accent',
21
+ Background: 'background',
22
+ Surface: 'surface',
23
+ Text: 'text',
24
+ Title: 'title',
25
+ Sub: 'sub',
26
+ Border: 'border',
27
+ Error: 'error'
28
+ };
29
+ /**
30
+ * Check if a given object implements the BrandColor interface.
31
+ */
32
+ export function instanceOfBrandColor(value) {
33
+ if (!('name' in value) || value['name'] === undefined)
34
+ return false;
35
+ if (!('hex' in value) || value['hex'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function BrandColorFromJSON(json) {
40
+ return BrandColorFromJSONTyped(json, false);
41
+ }
42
+ export function BrandColorFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'name': json['name'],
48
+ 'hex': json['hex'],
49
+ 'role': json['role'] == null ? undefined : json['role'],
50
+ };
51
+ }
52
+ export function BrandColorToJSON(json) {
53
+ return BrandColorToJSONTyped(json, false);
54
+ }
55
+ export function BrandColorToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'name': value['name'],
61
+ 'hex': value['hex'],
62
+ 'role': value['role'],
63
+ };
64
+ }
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const BrandFontSourceEnum = {
18
+ Google: 'google',
19
+ Upload: 'upload'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const BrandFontWeightEnum = {
25
+ NUMBER_100: 100,
26
+ NUMBER_200: 200,
27
+ NUMBER_300: 300,
28
+ NUMBER_400: 400,
29
+ NUMBER_500: 500,
30
+ NUMBER_600: 600,
31
+ NUMBER_700: 700,
32
+ NUMBER_800: 800,
33
+ NUMBER_900: 900
34
+ };
35
+ /**
36
+ * Check if a given object implements the BrandFont interface.
37
+ */
38
+ export function instanceOfBrandFont(value) {
39
+ if (!('family' in value) || value['family'] === undefined)
40
+ return false;
41
+ if (!('source' in value) || value['source'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ export function BrandFontFromJSON(json) {
46
+ return BrandFontFromJSONTyped(json, false);
47
+ }
48
+ export function BrandFontFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'family': json['family'],
54
+ 'source': json['source'],
55
+ 'weight': json['weight'] == null ? undefined : json['weight'],
56
+ 'sizeMax': json['sizeMax'] == null ? undefined : json['sizeMax'],
57
+ };
58
+ }
59
+ export function BrandFontToJSON(json) {
60
+ return BrandFontToJSONTyped(json, false);
61
+ }
62
+ export function BrandFontToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'family': value['family'],
68
+ 'source': value['source'],
69
+ 'weight': value['weight'],
70
+ 'sizeMax': value['sizeMax'],
71
+ };
72
+ }
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const BrandKitAssetViewKindEnum = {
18
+ Font: 'font',
19
+ Icon: 'icon'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const BrandKitAssetViewStyleEnum = {
25
+ Normal: 'normal',
26
+ Italic: 'italic'
27
+ };
28
+ /**
29
+ * @export
30
+ */
31
+ export const BrandKitAssetViewFormatEnum = {
32
+ Woff2: 'woff2',
33
+ Woff: 'woff',
34
+ Ttf: 'ttf',
35
+ Otf: 'otf'
36
+ };
37
+ /**
38
+ * Check if a given object implements the BrandKitAssetView interface.
39
+ */
40
+ export function instanceOfBrandKitAssetView(value) {
41
+ if (!('id' in value) || value['id'] === undefined)
42
+ return false;
43
+ if (!('kind' in value) || value['kind'] === undefined)
44
+ return false;
45
+ if (!('name' in value) || value['name'] === undefined)
46
+ return false;
47
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ export function BrandKitAssetViewFromJSON(json) {
52
+ return BrandKitAssetViewFromJSONTyped(json, false);
53
+ }
54
+ export function BrandKitAssetViewFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'id': json['id'],
60
+ 'kind': json['kind'],
61
+ 'name': json['name'],
62
+ 'createdAt': (new Date(json['createdAt'])),
63
+ 'family': json['family'] == null ? undefined : json['family'],
64
+ 'weight': json['weight'] == null ? undefined : json['weight'],
65
+ 'style': json['style'] == null ? undefined : json['style'],
66
+ 'format': json['format'] == null ? undefined : json['format'],
67
+ 'bytes': json['bytes'] == null ? undefined : json['bytes'],
68
+ 'url': json['url'] == null ? undefined : json['url'],
69
+ 'slug': json['slug'] == null ? undefined : json['slug'],
70
+ 'exportName': json['exportName'] == null ? undefined : json['exportName'],
71
+ 'svg': json['svg'] == null ? undefined : json['svg'],
72
+ };
73
+ }
74
+ export function BrandKitAssetViewToJSON(json) {
75
+ return BrandKitAssetViewToJSONTyped(json, false);
76
+ }
77
+ export function BrandKitAssetViewToJSONTyped(value, ignoreDiscriminator = false) {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'id': value['id'],
83
+ 'kind': value['kind'],
84
+ 'name': value['name'],
85
+ 'createdAt': ((value['createdAt']).toISOString()),
86
+ 'family': value['family'],
87
+ 'weight': value['weight'],
88
+ 'style': value['style'],
89
+ 'format': value['format'],
90
+ 'bytes': value['bytes'],
91
+ 'url': value['url'],
92
+ 'slug': value['slug'],
93
+ 'exportName': value['exportName'],
94
+ 'svg': value['svg'],
95
+ };
96
+ }
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the BrandKitFigmaSource interface.
16
+ */
17
+ export function instanceOfBrandKitFigmaSource(value) {
18
+ if (!('url' in value) || value['url'] === undefined)
19
+ return false;
20
+ if (!('fileKey' in value) || value['fileKey'] === undefined)
21
+ return false;
22
+ if (!('nodeId' in value) || value['nodeId'] === undefined)
23
+ return false;
24
+ if (!('fileName' in value) || value['fileName'] === undefined)
25
+ return false;
26
+ if (!('importedAt' in value) || value['importedAt'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function BrandKitFigmaSourceFromJSON(json) {
31
+ return BrandKitFigmaSourceFromJSONTyped(json, false);
32
+ }
33
+ export function BrandKitFigmaSourceFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'url': json['url'],
39
+ 'fileKey': json['fileKey'],
40
+ 'nodeId': json['nodeId'],
41
+ 'fileName': json['fileName'],
42
+ 'importedAt': (new Date(json['importedAt'])),
43
+ };
44
+ }
45
+ export function BrandKitFigmaSourceToJSON(json) {
46
+ return BrandKitFigmaSourceToJSONTyped(json, false);
47
+ }
48
+ export function BrandKitFigmaSourceToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'url': value['url'],
54
+ 'fileKey': value['fileKey'],
55
+ 'nodeId': value['nodeId'],
56
+ 'fileName': value['fileName'],
57
+ 'importedAt': ((value['importedAt']).toISOString()),
58
+ };
59
+ }
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { BrandSpacingFromJSON, BrandSpacingToJSON, } from './BrandSpacing.js';
15
+ import { BrandColorFromJSON, BrandColorToJSON, } from './BrandColor.js';
16
+ import { BrandKitTokensFontsFromJSON, BrandKitTokensFontsToJSON, } from './BrandKitTokensFonts.js';
17
+ /**
18
+ * Check if a given object implements the BrandKitTokens interface.
19
+ */
20
+ export function instanceOfBrandKitTokens(value) {
21
+ if (!('colors' in value) || value['colors'] === undefined)
22
+ return false;
23
+ if (!('fonts' in value) || value['fonts'] === undefined)
24
+ return false;
25
+ if (!('spacing' in value) || value['spacing'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function BrandKitTokensFromJSON(json) {
30
+ return BrandKitTokensFromJSONTyped(json, false);
31
+ }
32
+ export function BrandKitTokensFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'colors': (json['colors'].map(BrandColorFromJSON)),
38
+ 'fonts': BrandKitTokensFontsFromJSON(json['fonts']),
39
+ 'spacing': BrandSpacingFromJSON(json['spacing']),
40
+ 'instructions': json['instructions'] == null ? undefined : json['instructions'],
41
+ };
42
+ }
43
+ export function BrandKitTokensToJSON(json) {
44
+ return BrandKitTokensToJSONTyped(json, false);
45
+ }
46
+ export function BrandKitTokensToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'colors': (value['colors'].map(BrandColorToJSON)),
52
+ 'fonts': BrandKitTokensFontsToJSON(value['fonts']),
53
+ 'spacing': BrandSpacingToJSON(value['spacing']),
54
+ 'instructions': value['instructions'],
55
+ };
56
+ }
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { BrandFontFromJSON, BrandFontToJSON, } from './BrandFont.js';
15
+ /**
16
+ * Check if a given object implements the BrandKitTokensFonts interface.
17
+ */
18
+ export function instanceOfBrandKitTokensFonts(value) {
19
+ return true;
20
+ }
21
+ export function BrandKitTokensFontsFromJSON(json) {
22
+ return BrandKitTokensFontsFromJSONTyped(json, false);
23
+ }
24
+ export function BrandKitTokensFontsFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'title': json['title'] == null ? undefined : BrandFontFromJSON(json['title']),
30
+ 'subtitle': json['subtitle'] == null ? undefined : BrandFontFromJSON(json['subtitle']),
31
+ 'body': json['body'] == null ? undefined : BrandFontFromJSON(json['body']),
32
+ 'caption': json['caption'] == null ? undefined : BrandFontFromJSON(json['caption']),
33
+ };
34
+ }
35
+ export function BrandKitTokensFontsToJSON(json) {
36
+ return BrandKitTokensFontsToJSONTyped(json, false);
37
+ }
38
+ export function BrandKitTokensFontsToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'title': BrandFontToJSON(value['title']),
44
+ 'subtitle': BrandFontToJSON(value['subtitle']),
45
+ 'body': BrandFontToJSON(value['body']),
46
+ 'caption': BrandFontToJSON(value['caption']),
47
+ };
48
+ }
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { BrandKitAssetViewFromJSON, BrandKitAssetViewToJSON, } from './BrandKitAssetView.js';
15
+ import { BrandKitViewOwnerFromJSON, BrandKitViewOwnerToJSON, } from './BrandKitViewOwner.js';
16
+ import { BrandKitTokensFromJSON, BrandKitTokensToJSON, } from './BrandKitTokens.js';
17
+ import { BrandKitFigmaSourceFromJSON, BrandKitFigmaSourceToJSON, } from './BrandKitFigmaSource.js';
18
+ /**
19
+ * Check if a given object implements the BrandKitView interface.
20
+ */
21
+ export function instanceOfBrandKitView(value) {
22
+ if (!('owner' in value) || value['owner'] === undefined)
23
+ return false;
24
+ if (!('isDefault' in value) || value['isDefault'] === undefined)
25
+ return false;
26
+ if (!('canEdit' in value) || value['canEdit'] === undefined)
27
+ return false;
28
+ if (!('version' in value) || value['version'] === undefined)
29
+ return false;
30
+ if (!('tokens' in value) || value['tokens'] === undefined)
31
+ return false;
32
+ if (!('assets' in value) || value['assets'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function BrandKitViewFromJSON(json) {
37
+ return BrandKitViewFromJSONTyped(json, false);
38
+ }
39
+ export function BrandKitViewFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'owner': BrandKitViewOwnerFromJSON(json['owner']),
45
+ 'isDefault': json['isDefault'],
46
+ 'canEdit': json['canEdit'],
47
+ 'version': json['version'],
48
+ 'tokens': BrandKitTokensFromJSON(json['tokens']),
49
+ 'assets': (json['assets'].map(BrandKitAssetViewFromJSON)),
50
+ 'figmaSource': json['figmaSource'] == null ? undefined : BrandKitFigmaSourceFromJSON(json['figmaSource']),
51
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
52
+ 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
53
+ 'warnings': json['warnings'] == null ? undefined : json['warnings'],
54
+ };
55
+ }
56
+ export function BrandKitViewToJSON(json) {
57
+ return BrandKitViewToJSONTyped(json, false);
58
+ }
59
+ export function BrandKitViewToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'owner': BrandKitViewOwnerToJSON(value['owner']),
65
+ 'isDefault': value['isDefault'],
66
+ 'canEdit': value['canEdit'],
67
+ 'version': value['version'],
68
+ 'tokens': BrandKitTokensToJSON(value['tokens']),
69
+ 'assets': (value['assets'].map(BrandKitAssetViewToJSON)),
70
+ 'figmaSource': BrandKitFigmaSourceToJSON(value['figmaSource']),
71
+ 'updatedAt': value['updatedAt'] == null ? undefined : (value['updatedAt'].toISOString()),
72
+ 'updatedBy': value['updatedBy'],
73
+ 'warnings': value['warnings'],
74
+ };
75
+ }
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const BrandKitViewOwnerTypeEnum = {
18
+ User: 'user',
19
+ Organization: 'organization'
20
+ };
21
+ /**
22
+ * Check if a given object implements the BrandKitViewOwner interface.
23
+ */
24
+ export function instanceOfBrandKitViewOwner(value) {
25
+ if (!('type' in value) || value['type'] === undefined)
26
+ return false;
27
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function BrandKitViewOwnerFromJSON(json) {
32
+ return BrandKitViewOwnerFromJSONTyped(json, false);
33
+ }
34
+ export function BrandKitViewOwnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'type': json['type'],
40
+ 'organizationId': json['organizationId'],
41
+ };
42
+ }
43
+ export function BrandKitViewOwnerToJSON(json) {
44
+ return BrandKitViewOwnerToJSONTyped(json, false);
45
+ }
46
+ export function BrandKitViewOwnerToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'type': value['type'],
52
+ 'organizationId': value['organizationId'],
53
+ };
54
+ }
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { BrandKitViewFromJSON, BrandKitViewToJSON, } from './BrandKitView.js';
15
+ import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
16
+ /**
17
+ * Check if a given object implements the BrandKitViewResponse interface.
18
+ */
19
+ export function instanceOfBrandKitViewResponse(value) {
20
+ if (!('success' in value) || value['success'] === undefined)
21
+ return false;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function BrandKitViewResponseFromJSON(json) {
27
+ return BrandKitViewResponseFromJSONTyped(json, false);
28
+ }
29
+ export function BrandKitViewResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'success': json['success'],
35
+ 'data': BrandKitViewFromJSON(json['data']),
36
+ 'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
37
+ };
38
+ }
39
+ export function BrandKitViewResponseToJSON(json) {
40
+ return BrandKitViewResponseToJSONTyped(json, false);
41
+ }
42
+ export function BrandKitViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'success': value['success'],
48
+ 'data': BrandKitViewToJSON(value['data']),
49
+ 'meta': ResponseMetaToJSON(value['meta']),
50
+ };
51
+ }