@bachelornation/schemas 1.0.5 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (806) hide show
  1. package/CHANGELOG.md +21 -6
  2. package/bachelornation/apollo/PollAnswerV1.js +16 -12
  3. package/bachelornation/apollo/command/CastVoteV1.js +59 -16
  4. package/bachelornation/apollo/command/CreatePollV1.js +57 -13
  5. package/bachelornation/apollo/command/DeletePollV1.js +57 -13
  6. package/bachelornation/apollo/command/ExpirePollV1.js +57 -13
  7. package/bachelornation/apollo/command/MarkPollAsDraftV1.js +57 -13
  8. package/bachelornation/apollo/command/MarkPollAsPendingV1.js +57 -13
  9. package/bachelornation/apollo/command/PublishPollV1.js +57 -13
  10. package/bachelornation/apollo/command/UnpublishPollV1.js +57 -13
  11. package/bachelornation/apollo/command/UpdatePollV1.js +66 -13
  12. package/bachelornation/apollo/event/PollCreatedV1.js +36 -13
  13. package/bachelornation/apollo/event/PollDeletedV1.js +36 -13
  14. package/bachelornation/apollo/event/PollExpiredV1.js +36 -13
  15. package/bachelornation/apollo/event/PollMarkedAsDraftV1.js +36 -13
  16. package/bachelornation/apollo/event/PollMarkedAsPendingV1.js +36 -13
  17. package/bachelornation/apollo/event/PollPublishedV1.js +38 -16
  18. package/bachelornation/apollo/event/PollScheduledV1.js +38 -16
  19. package/bachelornation/apollo/event/PollUnpublishedV1.js +38 -16
  20. package/bachelornation/apollo/event/PollUpdatedV1.js +45 -13
  21. package/bachelornation/apollo/event/VoteCastedV1.js +53 -19
  22. package/bachelornation/apollo/node/PollStatsV1.js +46 -16
  23. package/bachelornation/apollo/node/PollV1.js +60 -25
  24. package/bachelornation/apollo/request/GetPollHistoryRequestV1.js +56 -13
  25. package/bachelornation/apollo/request/GetPollHistoryResponseV1.js +43 -13
  26. package/bachelornation/apollo/request/GetPollRequestV1.js +59 -13
  27. package/bachelornation/apollo/request/GetPollResponseV1.js +38 -13
  28. package/bachelornation/apollo/request/SearchPollsRequestV1.js +66 -14
  29. package/bachelornation/apollo/request/SearchPollsResponseV1.js +55 -14
  30. package/bachelornation/boost/command/CreateSponsorV1.js +57 -13
  31. package/bachelornation/boost/command/DeleteSponsorV1.js +57 -13
  32. package/bachelornation/boost/command/ExpireSponsorV1.js +57 -13
  33. package/bachelornation/boost/command/MarkSponsorAsDraftV1.js +57 -13
  34. package/bachelornation/boost/command/MarkSponsorAsPendingV1.js +57 -13
  35. package/bachelornation/boost/command/PublishSponsorV1.js +57 -13
  36. package/bachelornation/boost/command/RenameSponsorV1.js +58 -13
  37. package/bachelornation/boost/command/UnpublishSponsorV1.js +57 -13
  38. package/bachelornation/boost/command/UpdateSponsorV1.js +66 -13
  39. package/bachelornation/boost/event/SponsorCreatedV1.js +36 -13
  40. package/bachelornation/boost/event/SponsorDeletedV1.js +36 -13
  41. package/bachelornation/boost/event/SponsorExpiredV1.js +36 -13
  42. package/bachelornation/boost/event/SponsorMarkedAsDraftV1.js +36 -13
  43. package/bachelornation/boost/event/SponsorMarkedAsPendingV1.js +36 -13
  44. package/bachelornation/boost/event/SponsorPublishedV1.js +38 -16
  45. package/bachelornation/boost/event/SponsorRenamedV1.js +37 -13
  46. package/bachelornation/boost/event/SponsorScheduledV1.js +38 -16
  47. package/bachelornation/boost/event/SponsorUnpublishedV1.js +38 -16
  48. package/bachelornation/boost/event/SponsorUpdatedV1.js +45 -13
  49. package/bachelornation/boost/node/SponsorV1.js +73 -20
  50. package/bachelornation/boost/request/GetSponsorHistoryRequestV1.js +56 -13
  51. package/bachelornation/boost/request/GetSponsorHistoryResponseV1.js +43 -13
  52. package/bachelornation/boost/request/GetSponsorRequestV1.js +59 -13
  53. package/bachelornation/boost/request/GetSponsorResponseV1.js +38 -13
  54. package/bachelornation/boost/request/SearchSponsorsRequestV1.js +66 -14
  55. package/bachelornation/boost/request/SearchSponsorsResponseV1.js +55 -14
  56. package/bachelornation/canvas/block/ArticleBlockV1.js +43 -16
  57. package/bachelornation/canvas/block/AudioBlockV1.js +48 -16
  58. package/bachelornation/canvas/block/CodeBlockV1.js +35 -15
  59. package/bachelornation/canvas/block/DividerBlockV1.js +36 -15
  60. package/bachelornation/canvas/block/DocumentBlockV1.js +49 -16
  61. package/bachelornation/canvas/block/EmeFormBlockV1.js +35 -15
  62. package/bachelornation/canvas/block/FacebookPostBlockV1.js +36 -15
  63. package/bachelornation/canvas/block/FacebookVideoBlockV1.js +41 -15
  64. package/bachelornation/canvas/block/GalleryBlockV1.js +50 -16
  65. package/bachelornation/canvas/block/GoogleMapBlockV1.js +35 -15
  66. package/bachelornation/canvas/block/HeadingBlockV1.js +36 -15
  67. package/bachelornation/canvas/block/IframeBlockV1.js +40 -15
  68. package/bachelornation/canvas/block/ImageBlockV1.js +45 -16
  69. package/bachelornation/canvas/block/ImgurPostBlockV1.js +39 -15
  70. package/bachelornation/canvas/block/InstagramMediaBlockV1.js +35 -15
  71. package/bachelornation/canvas/block/PageBreakBlockV1.js +35 -15
  72. package/bachelornation/canvas/block/PinterestPinBlockV1.js +40 -15
  73. package/bachelornation/canvas/block/PollBlockV1.js +39 -16
  74. package/bachelornation/canvas/block/PollGridBlockV1.js +40 -15
  75. package/bachelornation/canvas/block/QuoteBlockV1.js +36 -15
  76. package/bachelornation/canvas/block/SoundcloudAudioBlockV1.js +44 -15
  77. package/bachelornation/canvas/block/SpotifyEmbedBlockV1.js +40 -15
  78. package/bachelornation/canvas/block/SpotifyTrackBlockV1.js +35 -15
  79. package/bachelornation/canvas/block/TextBlockV1.js +35 -15
  80. package/bachelornation/canvas/block/TiktokEmbedBlockV1.js +35 -15
  81. package/bachelornation/canvas/block/TumblrPostBlockV1.js +36 -15
  82. package/bachelornation/canvas/block/TwitterTweetBlockV1.js +35 -15
  83. package/bachelornation/canvas/block/VideoBlockV1.js +44 -16
  84. package/bachelornation/canvas/block/VimeoVideoBlockV1.js +52 -15
  85. package/bachelornation/canvas/block/YoutubePlaylistBlockV1.js +40 -15
  86. package/bachelornation/canvas/block/YoutubeVideoBlockV1.js +40 -15
  87. package/bachelornation/canvas/command/CreatePageV1.js +57 -13
  88. package/bachelornation/canvas/command/DeletePageV1.js +57 -13
  89. package/bachelornation/canvas/command/ExpirePageV1.js +57 -13
  90. package/bachelornation/canvas/command/MarkPageAsDraftV1.js +57 -13
  91. package/bachelornation/canvas/command/MarkPageAsPendingV1.js +57 -13
  92. package/bachelornation/canvas/command/PublishPageV1.js +57 -13
  93. package/bachelornation/canvas/command/RenamePageV1.js +58 -13
  94. package/bachelornation/canvas/command/UnpublishPageV1.js +57 -13
  95. package/bachelornation/canvas/command/UpdatePageV1.js +66 -13
  96. package/bachelornation/canvas/event/PageCreatedV1.js +36 -13
  97. package/bachelornation/canvas/event/PageDeletedV1.js +36 -13
  98. package/bachelornation/canvas/event/PageExpiredV1.js +36 -13
  99. package/bachelornation/canvas/event/PageMarkedAsDraftV1.js +36 -13
  100. package/bachelornation/canvas/event/PageMarkedAsPendingV1.js +36 -13
  101. package/bachelornation/canvas/event/PagePublishedV1.js +38 -16
  102. package/bachelornation/canvas/event/PageRenamedV1.js +37 -13
  103. package/bachelornation/canvas/event/PageScheduledV1.js +38 -16
  104. package/bachelornation/canvas/event/PageUnpublishedV1.js +38 -16
  105. package/bachelornation/canvas/event/PageUpdatedV1.js +45 -13
  106. package/bachelornation/canvas/node/PageV1.js +116 -34
  107. package/bachelornation/canvas/request/GetPageHistoryRequestV1.js +56 -13
  108. package/bachelornation/canvas/request/GetPageHistoryResponseV1.js +43 -13
  109. package/bachelornation/canvas/request/GetPageRequestV1.js +59 -13
  110. package/bachelornation/canvas/request/GetPageResponseV1.js +38 -13
  111. package/bachelornation/canvas/request/SearchPagesRequestV1.js +66 -14
  112. package/bachelornation/canvas/request/SearchPagesResponseV1.js +55 -14
  113. package/bachelornation/curator/command/CreateGalleryV1.js +57 -13
  114. package/bachelornation/curator/command/CreatePromotionV1.js +57 -13
  115. package/bachelornation/curator/command/CreateTeaserV1.js +57 -13
  116. package/bachelornation/curator/command/CreateTimelineV1.js +57 -13
  117. package/bachelornation/curator/command/CreateWidgetV1.js +57 -13
  118. package/bachelornation/curator/command/DeleteGalleryV1.js +57 -13
  119. package/bachelornation/curator/command/DeletePromotionV1.js +57 -13
  120. package/bachelornation/curator/command/DeleteTeaserV1.js +57 -13
  121. package/bachelornation/curator/command/DeleteTimelineV1.js +57 -13
  122. package/bachelornation/curator/command/DeleteWidgetV1.js +57 -13
  123. package/bachelornation/curator/command/ExpireGalleryV1.js +57 -13
  124. package/bachelornation/curator/command/ExpirePromotionV1.js +57 -13
  125. package/bachelornation/curator/command/ExpireTeaserV1.js +57 -13
  126. package/bachelornation/curator/command/ExpireTimelineV1.js +57 -13
  127. package/bachelornation/curator/command/MarkGalleryAsDraftV1.js +57 -13
  128. package/bachelornation/curator/command/MarkGalleryAsPendingV1.js +57 -13
  129. package/bachelornation/curator/command/MarkPromotionAsDraftV1.js +57 -13
  130. package/bachelornation/curator/command/MarkPromotionAsPendingV1.js +57 -13
  131. package/bachelornation/curator/command/MarkTeaserAsDraftV1.js +57 -13
  132. package/bachelornation/curator/command/MarkTeaserAsPendingV1.js +57 -13
  133. package/bachelornation/curator/command/MarkTimelineAsDraftV1.js +57 -13
  134. package/bachelornation/curator/command/MarkTimelineAsPendingV1.js +57 -13
  135. package/bachelornation/curator/command/PublishGalleryV1.js +57 -13
  136. package/bachelornation/curator/command/PublishPromotionV1.js +57 -13
  137. package/bachelornation/curator/command/PublishTeaserV1.js +57 -13
  138. package/bachelornation/curator/command/PublishTimelineV1.js +57 -13
  139. package/bachelornation/curator/command/RemoveTeaserSlottingV1.js +66 -13
  140. package/bachelornation/curator/command/RenameGalleryV1.js +58 -13
  141. package/bachelornation/curator/command/RenameTimelineV1.js +58 -13
  142. package/bachelornation/curator/command/SyncTeaserV1.js +66 -13
  143. package/bachelornation/curator/command/UnpublishGalleryV1.js +57 -13
  144. package/bachelornation/curator/command/UnpublishPromotionV1.js +57 -13
  145. package/bachelornation/curator/command/UnpublishTeaserV1.js +57 -13
  146. package/bachelornation/curator/command/UnpublishTimelineV1.js +57 -13
  147. package/bachelornation/curator/command/UpdateGalleryImageCountV1.js +61 -13
  148. package/bachelornation/curator/command/UpdateGalleryV1.js +66 -13
  149. package/bachelornation/curator/command/UpdatePromotionV1.js +66 -13
  150. package/bachelornation/curator/command/UpdateTeaserV1.js +66 -13
  151. package/bachelornation/curator/command/UpdateTimelineV1.js +66 -13
  152. package/bachelornation/curator/command/UpdateWidgetV1.js +66 -13
  153. package/bachelornation/curator/event/GalleryCreatedV1.js +36 -13
  154. package/bachelornation/curator/event/GalleryDeletedV1.js +36 -13
  155. package/bachelornation/curator/event/GalleryExpiredV1.js +36 -13
  156. package/bachelornation/curator/event/GalleryImageCountUpdatedV1.js +40 -13
  157. package/bachelornation/curator/event/GalleryMarkedAsDraftV1.js +36 -13
  158. package/bachelornation/curator/event/GalleryMarkedAsPendingV1.js +36 -13
  159. package/bachelornation/curator/event/GalleryPublishedV1.js +38 -16
  160. package/bachelornation/curator/event/GalleryRenamedV1.js +37 -13
  161. package/bachelornation/curator/event/GalleryScheduledV1.js +38 -16
  162. package/bachelornation/curator/event/GalleryUnpublishedV1.js +38 -16
  163. package/bachelornation/curator/event/GalleryUpdatedV1.js +45 -13
  164. package/bachelornation/curator/event/PromotionCreatedV1.js +36 -13
  165. package/bachelornation/curator/event/PromotionDeletedV1.js +36 -13
  166. package/bachelornation/curator/event/PromotionExpiredV1.js +36 -13
  167. package/bachelornation/curator/event/PromotionMarkedAsDraftV1.js +36 -13
  168. package/bachelornation/curator/event/PromotionMarkedAsPendingV1.js +36 -13
  169. package/bachelornation/curator/event/PromotionPublishedV1.js +38 -16
  170. package/bachelornation/curator/event/PromotionScheduledV1.js +38 -16
  171. package/bachelornation/curator/event/PromotionUnpublishedV1.js +38 -16
  172. package/bachelornation/curator/event/PromotionUpdatedV1.js +45 -13
  173. package/bachelornation/curator/event/TeaserCreatedV1.js +36 -13
  174. package/bachelornation/curator/event/TeaserDeletedV1.js +36 -13
  175. package/bachelornation/curator/event/TeaserExpiredV1.js +36 -13
  176. package/bachelornation/curator/event/TeaserMarkedAsDraftV1.js +36 -13
  177. package/bachelornation/curator/event/TeaserMarkedAsPendingV1.js +36 -13
  178. package/bachelornation/curator/event/TeaserPublishedV1.js +38 -16
  179. package/bachelornation/curator/event/TeaserScheduledV1.js +38 -16
  180. package/bachelornation/curator/event/TeaserSlottingRemovedV1.js +36 -13
  181. package/bachelornation/curator/event/TeaserUnpublishedV1.js +38 -16
  182. package/bachelornation/curator/event/TeaserUpdatedV1.js +45 -13
  183. package/bachelornation/curator/event/TimelineCreatedV1.js +36 -13
  184. package/bachelornation/curator/event/TimelineDeletedV1.js +36 -13
  185. package/bachelornation/curator/event/TimelineExpiredV1.js +36 -13
  186. package/bachelornation/curator/event/TimelineMarkedAsDraftV1.js +36 -13
  187. package/bachelornation/curator/event/TimelineMarkedAsPendingV1.js +36 -13
  188. package/bachelornation/curator/event/TimelinePublishedV1.js +38 -16
  189. package/bachelornation/curator/event/TimelineRenamedV1.js +37 -13
  190. package/bachelornation/curator/event/TimelineScheduledV1.js +38 -16
  191. package/bachelornation/curator/event/TimelineUnpublishedV1.js +38 -16
  192. package/bachelornation/curator/event/TimelineUpdatedV1.js +45 -13
  193. package/bachelornation/curator/event/WidgetCreatedV1.js +36 -13
  194. package/bachelornation/curator/event/WidgetDeletedV1.js +36 -13
  195. package/bachelornation/curator/event/WidgetUpdatedV1.js +45 -13
  196. package/bachelornation/curator/node/AdWidgetV1.js +60 -18
  197. package/bachelornation/curator/node/AlertWidgetV1.js +69 -20
  198. package/bachelornation/curator/node/ArticleTeaserV1.js +126 -30
  199. package/bachelornation/curator/node/AssetTeaserV1.js +126 -30
  200. package/bachelornation/curator/node/BlogrollWidgetV1.js +74 -20
  201. package/bachelornation/curator/node/CarouselWidgetV1.js +69 -20
  202. package/bachelornation/curator/node/CategoryTeaserV1.js +126 -30
  203. package/bachelornation/curator/node/ChannelTeaserV1.js +126 -30
  204. package/bachelornation/curator/node/CodeWidgetV1.js +59 -18
  205. package/bachelornation/curator/node/GalleryTeaserV1.js +126 -30
  206. package/bachelornation/curator/node/GalleryV1.js +129 -31
  207. package/bachelornation/curator/node/GalleryWidgetV1.js +69 -20
  208. package/bachelornation/curator/node/GridlerWidgetV1.js +69 -20
  209. package/bachelornation/curator/node/HeroBarWidgetV1.js +69 -20
  210. package/bachelornation/curator/node/LinkTeaserV1.js +117 -29
  211. package/bachelornation/curator/node/MediaListWidgetV1.js +69 -20
  212. package/bachelornation/curator/node/PageTeaserV1.js +126 -30
  213. package/bachelornation/curator/node/PersonTeaserV1.js +126 -30
  214. package/bachelornation/curator/node/PlaylistWidgetV1.js +69 -20
  215. package/bachelornation/curator/node/PollTeaserV1.js +126 -30
  216. package/bachelornation/curator/node/PromotionV1.js +73 -19
  217. package/bachelornation/curator/node/ShowtimesWidgetV1.js +68 -19
  218. package/bachelornation/curator/node/SliderWidgetV1.js +69 -20
  219. package/bachelornation/curator/node/SpotlightWidgetV1.js +69 -20
  220. package/bachelornation/curator/node/TagCloudWidgetV1.js +69 -20
  221. package/bachelornation/curator/node/TetrisWidgetV1.js +69 -20
  222. package/bachelornation/curator/node/TimelineTeaserV1.js +126 -30
  223. package/bachelornation/curator/node/TimelineV1.js +103 -30
  224. package/bachelornation/curator/node/VideoTeaserV1.js +126 -30
  225. package/bachelornation/curator/node/YoutubeVideoTeaserV1.js +117 -29
  226. package/bachelornation/curator/request/GetGalleryHistoryRequestV1.js +56 -13
  227. package/bachelornation/curator/request/GetGalleryHistoryResponseV1.js +43 -13
  228. package/bachelornation/curator/request/GetGalleryRequestV1.js +59 -13
  229. package/bachelornation/curator/request/GetGalleryResponseV1.js +38 -13
  230. package/bachelornation/curator/request/GetPromotionHistoryRequestV1.js +56 -13
  231. package/bachelornation/curator/request/GetPromotionHistoryResponseV1.js +43 -13
  232. package/bachelornation/curator/request/GetPromotionRequestV1.js +59 -13
  233. package/bachelornation/curator/request/GetPromotionResponseV1.js +38 -13
  234. package/bachelornation/curator/request/GetTeaserHistoryRequestV1.js +56 -13
  235. package/bachelornation/curator/request/GetTeaserHistoryResponseV1.js +43 -13
  236. package/bachelornation/curator/request/GetTeaserRequestV1.js +59 -13
  237. package/bachelornation/curator/request/GetTeaserResponseV1.js +38 -13
  238. package/bachelornation/curator/request/GetTimelineHistoryRequestV1.js +56 -13
  239. package/bachelornation/curator/request/GetTimelineHistoryResponseV1.js +43 -13
  240. package/bachelornation/curator/request/GetTimelineRequestV1.js +59 -13
  241. package/bachelornation/curator/request/GetTimelineResponseV1.js +38 -13
  242. package/bachelornation/curator/request/GetWidgetHistoryRequestV1.js +56 -13
  243. package/bachelornation/curator/request/GetWidgetHistoryResponseV1.js +43 -13
  244. package/bachelornation/curator/request/GetWidgetRequestV1.js +59 -13
  245. package/bachelornation/curator/request/GetWidgetResponseV1.js +38 -13
  246. package/bachelornation/curator/request/RenderPromotionRequestV1.js +53 -13
  247. package/bachelornation/curator/request/RenderPromotionResponseV1.js +38 -13
  248. package/bachelornation/curator/request/RenderWidgetRequestV1.js +43 -13
  249. package/bachelornation/curator/request/RenderWidgetResponseV1.js +38 -13
  250. package/bachelornation/curator/request/SearchGalleriesRequestV1.js +66 -15
  251. package/bachelornation/curator/request/SearchGalleriesResponseV1.js +55 -15
  252. package/bachelornation/curator/request/SearchPromotionsRequestV1.js +70 -14
  253. package/bachelornation/curator/request/SearchPromotionsResponseV1.js +55 -14
  254. package/bachelornation/curator/request/SearchTeasersRequestV1.js +84 -15
  255. package/bachelornation/curator/request/SearchTeasersResponseV1.js +55 -15
  256. package/bachelornation/curator/request/SearchTimelinesRequestV1.js +66 -14
  257. package/bachelornation/curator/request/SearchTimelinesResponseV1.js +55 -14
  258. package/bachelornation/curator/request/SearchWidgetsRequestV1.js +71 -14
  259. package/bachelornation/curator/request/SearchWidgetsResponseV1.js +55 -14
  260. package/bachelornation/dam/command/CreateAssetV1.js +57 -13
  261. package/bachelornation/dam/command/DeleteAssetV1.js +57 -13
  262. package/bachelornation/dam/command/ExpireAssetV1.js +57 -13
  263. package/bachelornation/dam/command/LinkAssetsV1.js +61 -13
  264. package/bachelornation/dam/command/PatchAssetsV1.js +62 -14
  265. package/bachelornation/dam/command/ReorderGalleryAssetsV1.js +69 -13
  266. package/bachelornation/dam/command/UnlinkAssetsV1.js +61 -13
  267. package/bachelornation/dam/command/UpdateAssetV1.js +66 -13
  268. package/bachelornation/dam/event/AssetCreatedV1.js +38 -18
  269. package/bachelornation/dam/event/AssetDeletedV1.js +36 -13
  270. package/bachelornation/dam/event/AssetExpiredV1.js +36 -13
  271. package/bachelornation/dam/event/AssetLinkedV1.js +40 -13
  272. package/bachelornation/dam/event/AssetPatchedV1.js +41 -14
  273. package/bachelornation/dam/event/AssetUnlinkedV1.js +40 -13
  274. package/bachelornation/dam/event/AssetUpdatedV1.js +45 -13
  275. package/bachelornation/dam/event/GalleryAssetReorderedV1.js +48 -13
  276. package/bachelornation/dam/node/ArchiveAssetV1.js +86 -20
  277. package/bachelornation/dam/node/AudioAssetV1.js +90 -21
  278. package/bachelornation/dam/node/CodeAssetV1.js +86 -20
  279. package/bachelornation/dam/node/DocumentAssetV1.js +86 -21
  280. package/bachelornation/dam/node/ImageAssetV1.js +98 -22
  281. package/bachelornation/dam/node/UnknownAssetV1.js +86 -20
  282. package/bachelornation/dam/node/VideoAssetV1.js +90 -21
  283. package/bachelornation/dam/request/GetAssetHistoryRequestV1.js +56 -13
  284. package/bachelornation/dam/request/GetAssetHistoryResponseV1.js +43 -13
  285. package/bachelornation/dam/request/GetAssetRequestV1.js +59 -13
  286. package/bachelornation/dam/request/GetAssetResponseV1.js +38 -13
  287. package/bachelornation/dam/request/GetUploadUrlsRequestV1.js +51 -18
  288. package/bachelornation/dam/request/GetUploadUrlsResponseV1.js +50 -13
  289. package/bachelornation/dam/request/SearchAssetsRequestV1.js +89 -14
  290. package/bachelornation/dam/request/SearchAssetsResponseV1.js +55 -14
  291. package/bachelornation/iam/command/CreateAppV1.js +57 -13
  292. package/bachelornation/iam/command/CreateRoleV1.js +57 -13
  293. package/bachelornation/iam/command/CreateUserV1.js +57 -13
  294. package/bachelornation/iam/command/DeleteAppV1.js +57 -13
  295. package/bachelornation/iam/command/DeleteRoleV1.js +57 -13
  296. package/bachelornation/iam/command/DeleteUserV1.js +57 -13
  297. package/bachelornation/iam/command/GrantRolesToAppV1.js +61 -13
  298. package/bachelornation/iam/command/GrantRolesToUserV1.js +61 -13
  299. package/bachelornation/iam/command/RevokeRolesFromAppV1.js +61 -13
  300. package/bachelornation/iam/command/RevokeRolesFromUserV1.js +61 -13
  301. package/bachelornation/iam/command/UpdateAppV1.js +66 -13
  302. package/bachelornation/iam/command/UpdateRoleV1.js +66 -13
  303. package/bachelornation/iam/command/UpdateUserV1.js +66 -13
  304. package/bachelornation/iam/event/AppCreatedV1.js +38 -18
  305. package/bachelornation/iam/event/AppDeletedV1.js +38 -18
  306. package/bachelornation/iam/event/AppRolesGrantedV1.js +42 -18
  307. package/bachelornation/iam/event/AppRolesRevokedV1.js +42 -18
  308. package/bachelornation/iam/event/AppUpdatedV1.js +47 -18
  309. package/bachelornation/iam/event/RoleCreatedV1.js +38 -18
  310. package/bachelornation/iam/event/RoleDeletedV1.js +38 -18
  311. package/bachelornation/iam/event/RoleUpdatedV1.js +47 -18
  312. package/bachelornation/iam/event/UserCreatedV1.js +38 -18
  313. package/bachelornation/iam/event/UserDeletedV1.js +38 -18
  314. package/bachelornation/iam/event/UserRolesGrantedV1.js +42 -18
  315. package/bachelornation/iam/event/UserRolesRevokedV1.js +42 -18
  316. package/bachelornation/iam/event/UserUpdatedV1.js +47 -18
  317. package/bachelornation/iam/node/AlexaAppV1.js +47 -16
  318. package/bachelornation/iam/node/AndroidAppV1.js +74 -16
  319. package/bachelornation/iam/node/AppleNewsAppV1.js +62 -16
  320. package/bachelornation/iam/node/BrowserAppV1.js +74 -16
  321. package/bachelornation/iam/node/EmailAppV1.js +67 -16
  322. package/bachelornation/iam/node/IosAppV1.js +74 -16
  323. package/bachelornation/iam/node/RoleV1.js +48 -15
  324. package/bachelornation/iam/node/SlackAppV1.js +47 -16
  325. package/bachelornation/iam/node/SmsAppV1.js +47 -16
  326. package/bachelornation/iam/node/TwitterAppV1.js +71 -16
  327. package/bachelornation/iam/node/UserV1.js +68 -17
  328. package/bachelornation/iam/request/GetAllAppsRequestV1.js +43 -13
  329. package/bachelornation/iam/request/GetAllAppsResponseV1.js +38 -13
  330. package/bachelornation/iam/request/GetAppHistoryRequestV1.js +56 -13
  331. package/bachelornation/iam/request/GetAppHistoryResponseV1.js +43 -13
  332. package/bachelornation/iam/request/GetAppRequestV1.js +59 -13
  333. package/bachelornation/iam/request/GetAppResponseV1.js +38 -13
  334. package/bachelornation/iam/request/GetRoleHistoryRequestV1.js +56 -13
  335. package/bachelornation/iam/request/GetRoleHistoryResponseV1.js +43 -13
  336. package/bachelornation/iam/request/GetRoleRequestV1.js +59 -13
  337. package/bachelornation/iam/request/GetRoleResponseV1.js +38 -13
  338. package/bachelornation/iam/request/GetUserHistoryRequestV1.js +56 -13
  339. package/bachelornation/iam/request/GetUserHistoryResponseV1.js +43 -13
  340. package/bachelornation/iam/request/GetUserRequestV1.js +59 -14
  341. package/bachelornation/iam/request/GetUserResponseV1.js +38 -14
  342. package/bachelornation/iam/request/ListAllRolesRequestV1.js +43 -13
  343. package/bachelornation/iam/request/ListAllRolesResponseV1.js +38 -13
  344. package/bachelornation/iam/request/SearchUsersRequestV1.js +66 -14
  345. package/bachelornation/iam/request/SearchUsersResponseV1.js +55 -14
  346. package/bachelornation/news/command/CollectArticleStatsV1.js +62 -13
  347. package/bachelornation/news/command/CreateArticleV1.js +57 -13
  348. package/bachelornation/news/command/DeleteArticleV1.js +57 -13
  349. package/bachelornation/news/command/ExpireArticleV1.js +57 -13
  350. package/bachelornation/news/command/LockArticleV1.js +57 -13
  351. package/bachelornation/news/command/MarkArticleAsDraftV1.js +57 -13
  352. package/bachelornation/news/command/MarkArticleAsPendingV1.js +57 -13
  353. package/bachelornation/news/command/PublishArticleV1.js +57 -13
  354. package/bachelornation/news/command/RemoveArticleSlottingV1.js +66 -13
  355. package/bachelornation/news/command/RenameArticleV1.js +58 -13
  356. package/bachelornation/news/command/UnlockArticleV1.js +57 -13
  357. package/bachelornation/news/command/UnpublishArticleV1.js +57 -13
  358. package/bachelornation/news/command/UpdateArticleV1.js +66 -13
  359. package/bachelornation/news/event/AppleNewsArticleSyncedV1.js +53 -13
  360. package/bachelornation/news/event/ArticleCreatedV1.js +36 -13
  361. package/bachelornation/news/event/ArticleDeletedV1.js +36 -13
  362. package/bachelornation/news/event/ArticleExpiredV1.js +36 -13
  363. package/bachelornation/news/event/ArticleLockedV1.js +38 -18
  364. package/bachelornation/news/event/ArticleMarkedAsDraftV1.js +36 -13
  365. package/bachelornation/news/event/ArticleMarkedAsPendingV1.js +36 -13
  366. package/bachelornation/news/event/ArticlePublishedV1.js +38 -16
  367. package/bachelornation/news/event/ArticleRenamedV1.js +39 -16
  368. package/bachelornation/news/event/ArticleScheduledV1.js +38 -16
  369. package/bachelornation/news/event/ArticleSlottingRemovedV1.js +36 -13
  370. package/bachelornation/news/event/ArticleStatsCollectedV1.js +44 -13
  371. package/bachelornation/news/event/ArticleUnlockedV1.js +38 -18
  372. package/bachelornation/news/event/ArticleUnpublishedV1.js +38 -16
  373. package/bachelornation/news/event/ArticleUpdatedV1.js +45 -13
  374. package/bachelornation/news/node/ArticleStatsV1.js +46 -16
  375. package/bachelornation/news/node/ArticleV1.js +167 -35
  376. package/bachelornation/news/request/GetArticleHistoryRequestV1.js +56 -13
  377. package/bachelornation/news/request/GetArticleHistoryResponseV1.js +43 -13
  378. package/bachelornation/news/request/GetArticleRequestV1.js +59 -13
  379. package/bachelornation/news/request/GetArticleResponseV1.js +38 -13
  380. package/bachelornation/news/request/SearchArticlesRequestV1.js +71 -15
  381. package/bachelornation/news/request/SearchArticlesResponseV1.js +55 -15
  382. package/bachelornation/notify/command/CreateNotificationV1.js +57 -13
  383. package/bachelornation/notify/command/DeleteNotificationV1.js +57 -13
  384. package/bachelornation/notify/command/SendNotificationV1.js +57 -13
  385. package/bachelornation/notify/command/UpdateNotificationV1.js +66 -13
  386. package/bachelornation/notify/event/NotificationCreatedV1.js +36 -13
  387. package/bachelornation/notify/event/NotificationDeletedV1.js +36 -13
  388. package/bachelornation/notify/event/NotificationFailedV1.js +38 -16
  389. package/bachelornation/notify/event/NotificationSentV1.js +38 -16
  390. package/bachelornation/notify/event/NotificationUpdatedV1.js +45 -13
  391. package/bachelornation/notify/node/AlexaNotificationV1.js +56 -17
  392. package/bachelornation/notify/node/AndroidNotificationV1.js +61 -17
  393. package/bachelornation/notify/node/AppleNewsNotificationV1.js +65 -17
  394. package/bachelornation/notify/node/BrowserNotificationV1.js +67 -17
  395. package/bachelornation/notify/node/EmailNotificationV1.js +66 -17
  396. package/bachelornation/notify/node/IosNotificationV1.js +61 -17
  397. package/bachelornation/notify/node/SlackNotificationV1.js +56 -17
  398. package/bachelornation/notify/node/SmsNotificationV1.js +56 -17
  399. package/bachelornation/notify/node/TwitterNotificationV1.js +56 -17
  400. package/bachelornation/notify/request/GetNotificationHistoryRequestV1.js +56 -13
  401. package/bachelornation/notify/request/GetNotificationHistoryResponseV1.js +43 -13
  402. package/bachelornation/notify/request/GetNotificationRequestV1.js +59 -13
  403. package/bachelornation/notify/request/GetNotificationResponseV1.js +38 -13
  404. package/bachelornation/notify/request/SearchNotificationsRequestV1.js +80 -14
  405. package/bachelornation/notify/request/SearchNotificationsResponseV1.js +55 -14
  406. package/bachelornation/ovp/command/CreateVideoV1.js +57 -13
  407. package/bachelornation/ovp/command/DeleteVideoV1.js +57 -13
  408. package/bachelornation/ovp/command/ExpireVideoV1.js +57 -13
  409. package/bachelornation/ovp/command/MarkVideoAsDraftV1.js +57 -13
  410. package/bachelornation/ovp/command/MarkVideoAsPendingV1.js +57 -13
  411. package/bachelornation/ovp/command/PublishVideoV1.js +57 -13
  412. package/bachelornation/ovp/command/RenameVideoV1.js +58 -13
  413. package/bachelornation/ovp/command/UnpublishVideoV1.js +57 -13
  414. package/bachelornation/ovp/command/UpdateVideoV1.js +66 -13
  415. package/bachelornation/ovp/event/VideoCreatedV1.js +36 -13
  416. package/bachelornation/ovp/event/VideoDeletedV1.js +36 -13
  417. package/bachelornation/ovp/event/VideoExpiredV1.js +36 -13
  418. package/bachelornation/ovp/event/VideoMarkedAsDraftV1.js +36 -13
  419. package/bachelornation/ovp/event/VideoMarkedAsPendingV1.js +36 -13
  420. package/bachelornation/ovp/event/VideoPublishedV1.js +38 -16
  421. package/bachelornation/ovp/event/VideoRenamedV1.js +37 -13
  422. package/bachelornation/ovp/event/VideoScheduledV1.js +38 -16
  423. package/bachelornation/ovp/event/VideoUnpublishedV1.js +38 -16
  424. package/bachelornation/ovp/event/VideoUpdatedV1.js +45 -13
  425. package/bachelornation/ovp/node/VideoV1.js +156 -31
  426. package/bachelornation/ovp/request/GetVideoHistoryRequestV1.js +56 -13
  427. package/bachelornation/ovp/request/GetVideoHistoryResponseV1.js +43 -13
  428. package/bachelornation/ovp/request/GetVideoRequestV1.js +59 -13
  429. package/bachelornation/ovp/request/GetVideoResponseV1.js +38 -13
  430. package/bachelornation/ovp/request/SearchVideosRequestV1.js +66 -15
  431. package/bachelornation/ovp/request/SearchVideosResponseV1.js +55 -15
  432. package/bachelornation/people/command/CreatePersonV1.js +57 -13
  433. package/bachelornation/people/command/DeletePersonV1.js +57 -13
  434. package/bachelornation/people/command/RenamePersonV1.js +58 -13
  435. package/bachelornation/people/command/UpdatePersonV1.js +66 -13
  436. package/bachelornation/people/event/PersonCreatedV1.js +36 -13
  437. package/bachelornation/people/event/PersonDeletedV1.js +36 -13
  438. package/bachelornation/people/event/PersonRenamedV1.js +37 -13
  439. package/bachelornation/people/event/PersonUpdatedV1.js +45 -13
  440. package/bachelornation/people/node/PersonV1.js +102 -24
  441. package/bachelornation/people/request/GetPersonHistoryRequestV1.js +56 -13
  442. package/bachelornation/people/request/GetPersonHistoryResponseV1.js +43 -13
  443. package/bachelornation/people/request/GetPersonRequestV1.js +59 -13
  444. package/bachelornation/people/request/GetPersonResponseV1.js +38 -13
  445. package/bachelornation/people/request/SearchPeopleRequestV1.js +66 -14
  446. package/bachelornation/people/request/SearchPeopleResponseV1.js +55 -14
  447. package/bachelornation/sys/command/CreateFlagsetV1.js +57 -13
  448. package/bachelornation/sys/command/CreatePicklistV1.js +57 -13
  449. package/bachelornation/sys/command/CreateRedirectV1.js +57 -13
  450. package/bachelornation/sys/command/DeleteFlagsetV1.js +57 -13
  451. package/bachelornation/sys/command/DeletePicklistV1.js +57 -13
  452. package/bachelornation/sys/command/DeleteRedirectV1.js +57 -13
  453. package/bachelornation/sys/command/UpdateFlagsetV1.js +66 -13
  454. package/bachelornation/sys/command/UpdatePicklistV1.js +66 -13
  455. package/bachelornation/sys/command/UpdateRedirectV1.js +66 -13
  456. package/bachelornation/sys/event/FlagsetCreatedV1.js +36 -13
  457. package/bachelornation/sys/event/FlagsetDeletedV1.js +36 -13
  458. package/bachelornation/sys/event/FlagsetUpdatedV1.js +45 -13
  459. package/bachelornation/sys/event/PicklistCreatedV1.js +36 -13
  460. package/bachelornation/sys/event/PicklistDeletedV1.js +36 -13
  461. package/bachelornation/sys/event/PicklistUpdatedV1.js +45 -13
  462. package/bachelornation/sys/event/RedirectCreatedV1.js +36 -13
  463. package/bachelornation/sys/event/RedirectDeletedV1.js +36 -13
  464. package/bachelornation/sys/event/RedirectUpdatedV1.js +45 -13
  465. package/bachelornation/sys/node/FlagsetV1.js +35 -15
  466. package/bachelornation/sys/node/PicklistV1.js +35 -15
  467. package/bachelornation/sys/node/RedirectV1.js +49 -16
  468. package/bachelornation/sys/request/GetFlagsetHistoryRequestV1.js +56 -13
  469. package/bachelornation/sys/request/GetFlagsetHistoryResponseV1.js +43 -13
  470. package/bachelornation/sys/request/GetFlagsetRequestV1.js +59 -13
  471. package/bachelornation/sys/request/GetFlagsetResponseV1.js +38 -13
  472. package/bachelornation/sys/request/GetPicklistHistoryRequestV1.js +56 -13
  473. package/bachelornation/sys/request/GetPicklistHistoryResponseV1.js +43 -13
  474. package/bachelornation/sys/request/GetPicklistRequestV1.js +59 -13
  475. package/bachelornation/sys/request/GetPicklistResponseV1.js +38 -13
  476. package/bachelornation/sys/request/GetRedirectHistoryRequestV1.js +56 -13
  477. package/bachelornation/sys/request/GetRedirectHistoryResponseV1.js +43 -13
  478. package/bachelornation/sys/request/GetRedirectRequestV1.js +59 -13
  479. package/bachelornation/sys/request/GetRedirectResponseV1.js +43 -14
  480. package/bachelornation/sys/request/ListAllFlagsetsRequestV1.js +43 -13
  481. package/bachelornation/sys/request/ListAllFlagsetsResponseV1.js +38 -13
  482. package/bachelornation/sys/request/ListAllPicklistsRequestV1.js +43 -13
  483. package/bachelornation/sys/request/ListAllPicklistsResponseV1.js +38 -13
  484. package/bachelornation/sys/request/SearchRedirectsRequestV1.js +66 -14
  485. package/bachelornation/sys/request/SearchRedirectsResponseV1.js +55 -14
  486. package/bachelornation/taxonomy/command/CreateCategoryV1.js +57 -13
  487. package/bachelornation/taxonomy/command/CreateChannelV1.js +57 -13
  488. package/bachelornation/taxonomy/command/DeleteCategoryV1.js +57 -13
  489. package/bachelornation/taxonomy/command/DeleteChannelV1.js +57 -13
  490. package/bachelornation/taxonomy/command/RenameCategoryV1.js +58 -13
  491. package/bachelornation/taxonomy/command/RenameChannelV1.js +58 -13
  492. package/bachelornation/taxonomy/command/UpdateCategoryV1.js +66 -13
  493. package/bachelornation/taxonomy/command/UpdateChannelV1.js +66 -13
  494. package/bachelornation/taxonomy/event/CategoryCreatedV1.js +36 -13
  495. package/bachelornation/taxonomy/event/CategoryDeletedV1.js +36 -13
  496. package/bachelornation/taxonomy/event/CategoryRenamedV1.js +37 -13
  497. package/bachelornation/taxonomy/event/CategoryUpdatedV1.js +45 -13
  498. package/bachelornation/taxonomy/event/ChannelCreatedV1.js +36 -13
  499. package/bachelornation/taxonomy/event/ChannelDeletedV1.js +36 -13
  500. package/bachelornation/taxonomy/event/ChannelRenamedV1.js +37 -13
  501. package/bachelornation/taxonomy/event/ChannelUpdatedV1.js +45 -13
  502. package/bachelornation/taxonomy/node/CategoryV1.js +103 -25
  503. package/bachelornation/taxonomy/node/ChannelV1.js +103 -24
  504. package/bachelornation/taxonomy/request/GetAllChannelsRequestV1.js +43 -13
  505. package/bachelornation/taxonomy/request/GetAllChannelsResponseV1.js +38 -13
  506. package/bachelornation/taxonomy/request/GetCategoryHistoryRequestV1.js +56 -13
  507. package/bachelornation/taxonomy/request/GetCategoryHistoryResponseV1.js +43 -13
  508. package/bachelornation/taxonomy/request/GetCategoryRequestV1.js +59 -13
  509. package/bachelornation/taxonomy/request/GetCategoryResponseV1.js +38 -13
  510. package/bachelornation/taxonomy/request/GetChannelHistoryRequestV1.js +56 -13
  511. package/bachelornation/taxonomy/request/GetChannelHistoryResponseV1.js +43 -13
  512. package/bachelornation/taxonomy/request/GetChannelRequestV1.js +59 -13
  513. package/bachelornation/taxonomy/request/GetChannelResponseV1.js +38 -13
  514. package/bachelornation/taxonomy/request/SearchCategoriesRequestV1.js +66 -14
  515. package/bachelornation/taxonomy/request/SearchCategoriesResponseV1.js +55 -14
  516. package/bachelornation/taxonomy/request/SuggestHashtagsRequestV1.js +47 -13
  517. package/bachelornation/taxonomy/request/SuggestHashtagsResponseV1.js +43 -13
  518. package/index.js +5 -595
  519. package/manifests/gdbots/analytics/mixin/tracked-message/v1.js +8 -0
  520. package/manifests/gdbots/analytics/mixin/tracker/v1.js +8 -0
  521. package/manifests/gdbots/common/mixin/labelable/v1.js +8 -0
  522. package/manifests/gdbots/common/mixin/taggable/v1.js +8 -0
  523. package/manifests/gdbots/enrichments/mixin/ip-to-geo/v1.js +8 -0
  524. package/manifests/gdbots/enrichments/mixin/time-parting/v1.js +8 -0
  525. package/manifests/gdbots/enrichments/mixin/time-sampling/v1.js +8 -0
  526. package/manifests/gdbots/enrichments/mixin/ua-parser/v1.js +8 -0
  527. package/manifests/gdbots/enrichments/mixin/utm/v1.js +8 -0
  528. package/manifests/gdbots/forms/mixin/field/v1.js +8 -0
  529. package/manifests/gdbots/forms/mixin/form/v1.js +8 -0
  530. package/manifests/gdbots/forms/mixin/get-upload-url-request/v1.js +8 -0
  531. package/manifests/gdbots/forms/mixin/get-upload-url-response/v1.js +8 -0
  532. package/manifests/gdbots/forms/mixin/process-irr/v1.js +8 -0
  533. package/manifests/gdbots/forms/mixin/search-forms-request/v1.js +8 -0
  534. package/manifests/gdbots/forms/mixin/search-forms-response/v1.js +8 -0
  535. package/manifests/gdbots/forms/mixin/send-submission/v1.js +8 -0
  536. package/manifests/gdbots/iam/mixin/alexa-app/v1.js +8 -0
  537. package/manifests/gdbots/iam/mixin/android-app/v1.js +8 -0
  538. package/manifests/gdbots/iam/mixin/app/v1.js +8 -0
  539. package/manifests/gdbots/iam/mixin/app-roles-granted/v1.js +8 -0
  540. package/manifests/gdbots/iam/mixin/app-roles-revoked/v1.js +8 -0
  541. package/manifests/gdbots/iam/mixin/apple-news-app/v1.js +8 -0
  542. package/manifests/gdbots/iam/mixin/browser-app/v1.js +8 -0
  543. package/manifests/gdbots/iam/mixin/email-app/v1.js +8 -0
  544. package/manifests/gdbots/iam/mixin/get-all-apps-request/v1.js +8 -0
  545. package/manifests/gdbots/iam/mixin/get-all-apps-response/v1.js +8 -0
  546. package/manifests/gdbots/iam/mixin/get-user-request/v1.js +8 -0
  547. package/manifests/gdbots/iam/mixin/get-user-response/v1.js +8 -0
  548. package/manifests/gdbots/iam/mixin/grant-roles-to-app/v1.js +8 -0
  549. package/manifests/gdbots/iam/mixin/grant-roles-to-user/v1.js +8 -0
  550. package/manifests/gdbots/iam/mixin/ios-app/v1.js +8 -0
  551. package/manifests/gdbots/iam/mixin/list-all-roles-request/v1.js +8 -0
  552. package/manifests/gdbots/iam/mixin/list-all-roles-response/v1.js +8 -0
  553. package/manifests/gdbots/iam/mixin/revoke-roles-from-app/v1.js +8 -0
  554. package/manifests/gdbots/iam/mixin/revoke-roles-from-user/v1.js +8 -0
  555. package/manifests/gdbots/iam/mixin/role/v1.js +8 -0
  556. package/manifests/gdbots/iam/mixin/search-users-request/v1.js +8 -0
  557. package/manifests/gdbots/iam/mixin/search-users-response/v1.js +8 -0
  558. package/manifests/gdbots/iam/mixin/slack-app/v1.js +8 -0
  559. package/manifests/gdbots/iam/mixin/sms-app/v1.js +8 -0
  560. package/manifests/gdbots/iam/mixin/twitter-app/v1.js +8 -0
  561. package/manifests/gdbots/iam/mixin/user/v1.js +8 -0
  562. package/manifests/gdbots/iam/mixin/user-roles-granted/v1.js +8 -0
  563. package/manifests/gdbots/iam/mixin/user-roles-revoked/v1.js +8 -0
  564. package/manifests/gdbots/ncr/mixin/create-node/v1.js +8 -0
  565. package/manifests/gdbots/ncr/mixin/delete-node/v1.js +8 -0
  566. package/manifests/gdbots/ncr/mixin/edge/v1.js +8 -0
  567. package/manifests/gdbots/ncr/mixin/expirable/v1.js +8 -0
  568. package/manifests/gdbots/ncr/mixin/expire-node/v1.js +8 -0
  569. package/manifests/gdbots/ncr/mixin/get-node-batch-request/v1.js +8 -0
  570. package/manifests/gdbots/ncr/mixin/get-node-batch-response/v1.js +8 -0
  571. package/manifests/gdbots/ncr/mixin/get-node-request/v1.js +8 -0
  572. package/manifests/gdbots/ncr/mixin/get-node-response/v1.js +8 -0
  573. package/manifests/gdbots/ncr/mixin/indexed/v1.js +8 -0
  574. package/manifests/gdbots/ncr/mixin/lock-node/v1.js +8 -0
  575. package/manifests/gdbots/ncr/mixin/lockable/v1.js +8 -0
  576. package/manifests/gdbots/ncr/mixin/mark-node-as-draft/v1.js +8 -0
  577. package/manifests/gdbots/ncr/mixin/mark-node-as-pending/v1.js +8 -0
  578. package/manifests/gdbots/ncr/mixin/node/v1.js +8 -0
  579. package/manifests/gdbots/ncr/mixin/node-created/v1.js +8 -0
  580. package/manifests/gdbots/ncr/mixin/node-deleted/v1.js +8 -0
  581. package/manifests/gdbots/ncr/mixin/node-expired/v1.js +8 -0
  582. package/manifests/gdbots/ncr/mixin/node-locked/v1.js +8 -0
  583. package/manifests/gdbots/ncr/mixin/node-marked-as-draft/v1.js +8 -0
  584. package/manifests/gdbots/ncr/mixin/node-marked-as-pending/v1.js +8 -0
  585. package/manifests/gdbots/ncr/mixin/node-patched/v1.js +8 -0
  586. package/manifests/gdbots/ncr/mixin/node-published/v1.js +8 -0
  587. package/manifests/gdbots/ncr/mixin/node-renamed/v1.js +8 -0
  588. package/manifests/gdbots/ncr/mixin/node-scheduled/v1.js +8 -0
  589. package/manifests/gdbots/ncr/mixin/node-unlocked/v1.js +8 -0
  590. package/manifests/gdbots/ncr/mixin/node-unpublished/v1.js +8 -0
  591. package/manifests/gdbots/ncr/mixin/node-updated/v1.js +8 -0
  592. package/manifests/gdbots/ncr/mixin/patch-node/v1.js +8 -0
  593. package/manifests/gdbots/ncr/mixin/patch-nodes/v1.js +8 -0
  594. package/manifests/gdbots/ncr/mixin/publish-node/v1.js +8 -0
  595. package/manifests/gdbots/ncr/mixin/publishable/v1.js +8 -0
  596. package/manifests/gdbots/ncr/mixin/rename-node/v1.js +8 -0
  597. package/manifests/gdbots/ncr/mixin/search-nodes-request/v1.js +8 -0
  598. package/manifests/gdbots/ncr/mixin/search-nodes-response/v1.js +8 -0
  599. package/manifests/gdbots/ncr/mixin/sluggable/v1.js +8 -0
  600. package/manifests/gdbots/ncr/mixin/unlock-node/v1.js +8 -0
  601. package/manifests/gdbots/ncr/mixin/unpublish-node/v1.js +8 -0
  602. package/manifests/gdbots/ncr/mixin/update-node/v1.js +8 -0
  603. package/manifests/gdbots/pbjx/mixin/command/v1.js +8 -0
  604. package/manifests/gdbots/pbjx/mixin/event/v1.js +8 -0
  605. package/manifests/gdbots/pbjx/mixin/get-events-request/v1.js +8 -0
  606. package/manifests/gdbots/pbjx/mixin/get-events-response/v1.js +8 -0
  607. package/manifests/gdbots/pbjx/mixin/indexed/v1.js +8 -0
  608. package/manifests/gdbots/pbjx/mixin/request/v1.js +8 -0
  609. package/manifests/gdbots/pbjx/mixin/response/v1.js +8 -0
  610. package/manifests/gdbots/pbjx/mixin/search-events-request/v1.js +8 -0
  611. package/manifests/gdbots/pbjx/mixin/search-events-response/v1.js +8 -0
  612. package/manifests/messages.js +720 -0
  613. package/manifests/triniti/apollo/mixin/cast-vote/v1.js +8 -0
  614. package/manifests/triniti/apollo/mixin/has-poll/v1.js +8 -0
  615. package/manifests/triniti/apollo/mixin/has-polls/v1.js +8 -0
  616. package/manifests/triniti/apollo/mixin/poll/v1.js +8 -0
  617. package/manifests/triniti/apollo/mixin/poll-answer/v1.js +8 -0
  618. package/manifests/triniti/apollo/mixin/poll-stats/v1.js +8 -0
  619. package/manifests/triniti/apollo/mixin/search-polls-request/v1.js +8 -0
  620. package/manifests/triniti/apollo/mixin/search-polls-response/v1.js +8 -0
  621. package/manifests/triniti/apollo/mixin/vote-casted/v1.js +8 -0
  622. package/manifests/triniti/boost/mixin/search-sponsors-request/v1.js +8 -0
  623. package/manifests/triniti/boost/mixin/search-sponsors-response/v1.js +8 -0
  624. package/manifests/triniti/boost/mixin/sponsor/v1.js +8 -0
  625. package/manifests/triniti/boost/mixin/sponsorable/v1.js +8 -0
  626. package/manifests/triniti/canvas/mixin/article-block/v1.js +8 -0
  627. package/manifests/triniti/canvas/mixin/audio-block/v1.js +8 -0
  628. package/manifests/triniti/canvas/mixin/block/v1.js +8 -0
  629. package/manifests/triniti/canvas/mixin/code-block/v1.js +8 -0
  630. package/manifests/triniti/canvas/mixin/divider-block/v1.js +8 -0
  631. package/manifests/triniti/canvas/mixin/document-block/v1.js +8 -0
  632. package/manifests/triniti/canvas/mixin/eme-form-block/v1.js +8 -0
  633. package/manifests/triniti/canvas/mixin/facebook-post-block/v1.js +8 -0
  634. package/manifests/triniti/canvas/mixin/facebook-video-block/v1.js +8 -0
  635. package/manifests/triniti/canvas/mixin/gallery-block/v1.js +8 -0
  636. package/manifests/triniti/canvas/mixin/google-map-block/v1.js +8 -0
  637. package/manifests/triniti/canvas/mixin/has-blocks/v1.js +8 -0
  638. package/manifests/triniti/canvas/mixin/heading-block/v1.js +8 -0
  639. package/manifests/triniti/canvas/mixin/iframe-block/v1.js +8 -0
  640. package/manifests/triniti/canvas/mixin/image-block/v1.js +8 -0
  641. package/manifests/triniti/canvas/mixin/imgur-post-block/v1.js +8 -0
  642. package/manifests/triniti/canvas/mixin/instagram-media-block/v1.js +8 -0
  643. package/manifests/triniti/canvas/mixin/node-ref-block/v1.js +8 -0
  644. package/manifests/triniti/canvas/mixin/page/v1.js +8 -0
  645. package/manifests/triniti/canvas/mixin/page-break-block/v1.js +8 -0
  646. package/manifests/triniti/canvas/mixin/pinterest-pin-block/v1.js +8 -0
  647. package/manifests/triniti/canvas/mixin/poll-block/v1.js +8 -0
  648. package/manifests/triniti/canvas/mixin/poll-grid-block/v1.js +8 -0
  649. package/manifests/triniti/canvas/mixin/quote-block/v1.js +8 -0
  650. package/manifests/triniti/canvas/mixin/search-pages-request/v1.js +8 -0
  651. package/manifests/triniti/canvas/mixin/search-pages-response/v1.js +8 -0
  652. package/manifests/triniti/canvas/mixin/soundcloud-audio-block/v1.js +8 -0
  653. package/manifests/triniti/canvas/mixin/spotify-embed-block/v1.js +8 -0
  654. package/manifests/triniti/canvas/mixin/spotify-track-block/v1.js +8 -0
  655. package/manifests/triniti/canvas/mixin/text-block/v1.js +8 -0
  656. package/manifests/triniti/canvas/mixin/tiktok-embed-block/v1.js +8 -0
  657. package/manifests/triniti/canvas/mixin/tumblr-post-block/v1.js +8 -0
  658. package/manifests/triniti/canvas/mixin/twitter-tweet-block/v1.js +8 -0
  659. package/manifests/triniti/canvas/mixin/video-block/v1.js +8 -0
  660. package/manifests/triniti/canvas/mixin/vimeo-video-block/v1.js +8 -0
  661. package/manifests/triniti/canvas/mixin/youtube-playlist-block/v1.js +8 -0
  662. package/manifests/triniti/canvas/mixin/youtube-video-block/v1.js +8 -0
  663. package/manifests/triniti/common/mixin/advertising/v1.js +8 -0
  664. package/manifests/triniti/common/mixin/custom-code/v1.js +8 -0
  665. package/manifests/triniti/common/mixin/seo/v1.js +8 -0
  666. package/manifests/triniti/common/mixin/swipeable/v1.js +8 -0
  667. package/manifests/triniti/common/mixin/themeable/v1.js +8 -0
  668. package/manifests/triniti/curator/mixin/ad-widget/v1.js +8 -0
  669. package/manifests/triniti/curator/mixin/alert-widget/v1.js +8 -0
  670. package/manifests/triniti/curator/mixin/article-teaser/v1.js +8 -0
  671. package/manifests/triniti/curator/mixin/asset-teaser/v1.js +8 -0
  672. package/manifests/triniti/curator/mixin/blogroll-widget/v1.js +8 -0
  673. package/manifests/triniti/curator/mixin/carousel-widget/v1.js +8 -0
  674. package/manifests/triniti/curator/mixin/category-teaser/v1.js +8 -0
  675. package/manifests/triniti/curator/mixin/channel-teaser/v1.js +8 -0
  676. package/manifests/triniti/curator/mixin/code-widget/v1.js +8 -0
  677. package/manifests/triniti/curator/mixin/gallery/v1.js +8 -0
  678. package/manifests/triniti/curator/mixin/gallery-image-count-updated/v1.js +8 -0
  679. package/manifests/triniti/curator/mixin/gallery-teaser/v1.js +8 -0
  680. package/manifests/triniti/curator/mixin/gallery-widget/v1.js +8 -0
  681. package/manifests/triniti/curator/mixin/gridler-widget/v1.js +8 -0
  682. package/manifests/triniti/curator/mixin/has-related-teasers/v1.js +8 -0
  683. package/manifests/triniti/curator/mixin/hero-bar-widget/v1.js +8 -0
  684. package/manifests/triniti/curator/mixin/link-teaser/v1.js +8 -0
  685. package/manifests/triniti/curator/mixin/media-list-widget/v1.js +8 -0
  686. package/manifests/triniti/curator/mixin/page-teaser/v1.js +8 -0
  687. package/manifests/triniti/curator/mixin/person-teaser/v1.js +8 -0
  688. package/manifests/triniti/curator/mixin/playlist-widget/v1.js +8 -0
  689. package/manifests/triniti/curator/mixin/poll-teaser/v1.js +8 -0
  690. package/manifests/triniti/curator/mixin/promotion/v1.js +8 -0
  691. package/manifests/triniti/curator/mixin/remove-teaser-slotting/v1.js +8 -0
  692. package/manifests/triniti/curator/mixin/render-promotion-request/v1.js +8 -0
  693. package/manifests/triniti/curator/mixin/render-promotion-response/v1.js +8 -0
  694. package/manifests/triniti/curator/mixin/render-widget-request/v1.js +8 -0
  695. package/manifests/triniti/curator/mixin/render-widget-response/v1.js +8 -0
  696. package/manifests/triniti/curator/mixin/search-galleries-request/v1.js +8 -0
  697. package/manifests/triniti/curator/mixin/search-galleries-response/v1.js +8 -0
  698. package/manifests/triniti/curator/mixin/search-promotions-request/v1.js +8 -0
  699. package/manifests/triniti/curator/mixin/search-promotions-response/v1.js +8 -0
  700. package/manifests/triniti/curator/mixin/search-teasers-request/v1.js +8 -0
  701. package/manifests/triniti/curator/mixin/search-teasers-response/v1.js +8 -0
  702. package/manifests/triniti/curator/mixin/search-timelines-request/v1.js +8 -0
  703. package/manifests/triniti/curator/mixin/search-timelines-response/v1.js +8 -0
  704. package/manifests/triniti/curator/mixin/search-widgets-request/v1.js +8 -0
  705. package/manifests/triniti/curator/mixin/search-widgets-response/v1.js +8 -0
  706. package/manifests/triniti/curator/mixin/showtimes-widget/v1.js +8 -0
  707. package/manifests/triniti/curator/mixin/slider-widget/v1.js +8 -0
  708. package/manifests/triniti/curator/mixin/spotlight-widget/v1.js +8 -0
  709. package/manifests/triniti/curator/mixin/sync-teaser/v1.js +8 -0
  710. package/manifests/triniti/curator/mixin/tag-cloud-widget/v1.js +8 -0
  711. package/manifests/triniti/curator/mixin/teaser/v1.js +8 -0
  712. package/manifests/triniti/curator/mixin/teaser-has-target/v1.js +8 -0
  713. package/manifests/triniti/curator/mixin/teaser-slotting-removed/v1.js +8 -0
  714. package/manifests/triniti/curator/mixin/teaserable/v1.js +8 -0
  715. package/manifests/triniti/curator/mixin/tetris-widget/v1.js +8 -0
  716. package/manifests/triniti/curator/mixin/timeline/v1.js +8 -0
  717. package/manifests/triniti/curator/mixin/timeline-teaser/v1.js +8 -0
  718. package/manifests/triniti/curator/mixin/update-gallery-image-count/v1.js +8 -0
  719. package/manifests/triniti/curator/mixin/video-teaser/v1.js +8 -0
  720. package/manifests/triniti/curator/mixin/widget/v1.js +8 -0
  721. package/manifests/triniti/curator/mixin/widget-has-search-request/v1.js +8 -0
  722. package/manifests/triniti/curator/mixin/widget-search-request/v1.js +8 -0
  723. package/manifests/triniti/curator/mixin/widget-search-response/v1.js +8 -0
  724. package/manifests/triniti/curator/mixin/youtube-video-teaser/v1.js +8 -0
  725. package/manifests/triniti/dam/mixin/archive-asset/v1.js +8 -0
  726. package/manifests/triniti/dam/mixin/asset/v1.js +8 -0
  727. package/manifests/triniti/dam/mixin/asset-linked/v1.js +8 -0
  728. package/manifests/triniti/dam/mixin/asset-patched/v1.js +8 -0
  729. package/manifests/triniti/dam/mixin/asset-unlinked/v1.js +8 -0
  730. package/manifests/triniti/dam/mixin/audio-asset/v1.js +8 -0
  731. package/manifests/triniti/dam/mixin/code-asset/v1.js +8 -0
  732. package/manifests/triniti/dam/mixin/document-asset/v1.js +8 -0
  733. package/manifests/triniti/dam/mixin/gallery-asset-reordered/v1.js +8 -0
  734. package/manifests/triniti/dam/mixin/get-upload-urls-request/v1.js +8 -0
  735. package/manifests/triniti/dam/mixin/get-upload-urls-response/v1.js +8 -0
  736. package/manifests/triniti/dam/mixin/image-asset/v1.js +8 -0
  737. package/manifests/triniti/dam/mixin/link-assets/v1.js +8 -0
  738. package/manifests/triniti/dam/mixin/patch-assets/v1.js +8 -0
  739. package/manifests/triniti/dam/mixin/reorder-gallery-assets/v1.js +8 -0
  740. package/manifests/triniti/dam/mixin/search-assets-request/v1.js +8 -0
  741. package/manifests/triniti/dam/mixin/search-assets-response/v1.js +8 -0
  742. package/manifests/triniti/dam/mixin/unknown-asset/v1.js +8 -0
  743. package/manifests/triniti/dam/mixin/unlink-assets/v1.js +8 -0
  744. package/manifests/triniti/dam/mixin/video-asset/v1.js +8 -0
  745. package/manifests/triniti/news/mixin/apple-news-article-synced/v1.js +8 -0
  746. package/manifests/triniti/news/mixin/article/v1.js +8 -0
  747. package/manifests/triniti/news/mixin/article-slotting-removed/v1.js +8 -0
  748. package/manifests/triniti/news/mixin/article-stats/v1.js +8 -0
  749. package/manifests/triniti/news/mixin/article-stats-collected/v1.js +8 -0
  750. package/manifests/triniti/news/mixin/collect-article-stats/v1.js +8 -0
  751. package/manifests/triniti/news/mixin/headline-fragments/v1.js +8 -0
  752. package/manifests/triniti/news/mixin/remove-article-slotting/v1.js +8 -0
  753. package/manifests/triniti/news/mixin/search-articles-request/v1.js +8 -0
  754. package/manifests/triniti/news/mixin/search-articles-response/v1.js +8 -0
  755. package/manifests/triniti/notify/mixin/alexa-notification/v1.js +8 -0
  756. package/manifests/triniti/notify/mixin/android-notification/v1.js +8 -0
  757. package/manifests/triniti/notify/mixin/apple-news-notification/v1.js +8 -0
  758. package/manifests/triniti/notify/mixin/browser-notification/v1.js +8 -0
  759. package/manifests/triniti/notify/mixin/email-notification/v1.js +8 -0
  760. package/manifests/triniti/notify/mixin/has-notifications/v1.js +8 -0
  761. package/manifests/triniti/notify/mixin/ios-notification/v1.js +8 -0
  762. package/manifests/triniti/notify/mixin/notification/v1.js +8 -0
  763. package/manifests/triniti/notify/mixin/notification-failed/v1.js +8 -0
  764. package/manifests/triniti/notify/mixin/notification-sent/v1.js +8 -0
  765. package/manifests/triniti/notify/mixin/search-notifications-request/v1.js +8 -0
  766. package/manifests/triniti/notify/mixin/search-notifications-response/v1.js +8 -0
  767. package/manifests/triniti/notify/mixin/send-notification/v1.js +8 -0
  768. package/manifests/triniti/notify/mixin/slack-notification/v1.js +8 -0
  769. package/manifests/triniti/notify/mixin/sms-notification/v1.js +8 -0
  770. package/manifests/triniti/notify/mixin/twitter-notification/v1.js +8 -0
  771. package/manifests/triniti/ovp/mixin/search-videos-request/v1.js +8 -0
  772. package/manifests/triniti/ovp/mixin/search-videos-response/v1.js +8 -0
  773. package/manifests/triniti/ovp/mixin/transcodeable/v1.js +8 -0
  774. package/manifests/triniti/ovp/mixin/transcribable/v1.js +8 -0
  775. package/manifests/triniti/ovp/mixin/video/v1.js +8 -0
  776. package/manifests/triniti/ovp.jwplayer/mixin/has-media/v1.js +8 -0
  777. package/manifests/triniti/ovp.kaltura/mixin/has-entry/v1.js +8 -0
  778. package/manifests/triniti/ovp.medialive/mixin/has-channel/v1.js +8 -0
  779. package/manifests/triniti/people/mixin/has-people/v1.js +8 -0
  780. package/manifests/triniti/people/mixin/person/v1.js +8 -0
  781. package/manifests/triniti/people/mixin/search-people-request/v1.js +8 -0
  782. package/manifests/triniti/people/mixin/search-people-response/v1.js +8 -0
  783. package/manifests/triniti/sys/mixin/flagset/v1.js +8 -0
  784. package/manifests/triniti/sys/mixin/get-redirect-response/v1.js +8 -0
  785. package/manifests/triniti/sys/mixin/list-all-flagsets-request/v1.js +8 -0
  786. package/manifests/triniti/sys/mixin/list-all-flagsets-response/v1.js +8 -0
  787. package/manifests/triniti/sys/mixin/list-all-picklists-request/v1.js +8 -0
  788. package/manifests/triniti/sys/mixin/list-all-picklists-response/v1.js +8 -0
  789. package/manifests/triniti/sys/mixin/picklist/v1.js +8 -0
  790. package/manifests/triniti/sys/mixin/redirect/v1.js +8 -0
  791. package/manifests/triniti/sys/mixin/search-redirects-request/v1.js +8 -0
  792. package/manifests/triniti/sys/mixin/search-redirects-response/v1.js +8 -0
  793. package/manifests/triniti/sys/mixin/vanity-urlable/v1.js +8 -0
  794. package/manifests/triniti/taxonomy/mixin/categorizable/v1.js +8 -0
  795. package/manifests/triniti/taxonomy/mixin/category/v1.js +8 -0
  796. package/manifests/triniti/taxonomy/mixin/channel/v1.js +8 -0
  797. package/manifests/triniti/taxonomy/mixin/get-all-channels-request/v1.js +8 -0
  798. package/manifests/triniti/taxonomy/mixin/get-all-channels-response/v1.js +8 -0
  799. package/manifests/triniti/taxonomy/mixin/has-channel/v1.js +8 -0
  800. package/manifests/triniti/taxonomy/mixin/hashtaggable/v1.js +8 -0
  801. package/manifests/triniti/taxonomy/mixin/search-categories-request/v1.js +8 -0
  802. package/manifests/triniti/taxonomy/mixin/search-categories-response/v1.js +8 -0
  803. package/manifests/triniti/taxonomy/mixin/suggest-hashtags-request/v1.js +8 -0
  804. package/manifests/triniti/taxonomy/mixin/suggest-hashtags-response/v1.js +8 -0
  805. package/package.json +22 -33
  806. package/bachelornation/index.js +0 -572
@@ -1,13 +1,13 @@
1
1
  // @link https://schemas.bachelornation.com/json-schema/bachelornation/iam/node/android-app/1-0-0.json#
2
- import GdbotsIamAndroidAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/android-app/AndroidAppV1Mixin';
3
- import GdbotsIamAndroidAppV1Trait from '@gdbots/schemas/gdbots/iam/mixin/android-app/AndroidAppV1Trait';
4
- import GdbotsIamAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/app/AppV1Mixin';
5
- import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin';
6
- import GdbotsNcrNodeV1Trait from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Trait';
7
- import Message from '@gdbots/pbj/Message';
8
- import MessageResolver from '@gdbots/pbj/MessageResolver';
9
- import Schema from '@gdbots/pbj/Schema';
10
-
2
+ import Fb from '@gdbots/pbj/FieldBuilder.js';
3
+ import Format from '@gdbots/pbj/enums/Format.js';
4
+ import GdbotsIamAndroidAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/android-app/AndroidAppV1Mixin.js';
5
+ import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin.js';
6
+ import Message from '@gdbots/pbj/Message.js';
7
+ import NodeStatus from '@gdbots/schemas/gdbots/ncr/enums/NodeStatus.js';
8
+ import Schema from '@gdbots/pbj/Schema.js';
9
+ import T from '@gdbots/pbj/types/index.js';
10
+ import UuidIdentifier from '@gdbots/pbj/well-known/UuidIdentifier.js';
11
11
  export default class AndroidAppV1 extends Message {
12
12
  /**
13
13
  * @private
@@ -15,12 +15,70 @@ export default class AndroidAppV1 extends Message {
15
15
  * @returns {Schema}
16
16
  */
17
17
  static defineSchema() {
18
- return new Schema('pbj:bachelornation:iam:node:android-app:1-0-0', AndroidAppV1, [], [GdbotsNcrNodeV1Mixin.create(), GdbotsIamAppV1Mixin.create(), GdbotsIamAndroidAppV1Mixin.create()]);
18
+ return new Schema(this.SCHEMA_ID, this, [
19
+ /*
20
+ * The "_id" value:
21
+ * - MUST NOT change for the life of the node.
22
+ * - SHOULD be globally unique
23
+ * - SHOULD be generated by the app (ideally in default value closure... e.g. UuidIdentifier::generate())
24
+ */
25
+ Fb.create('_id', T.IdentifierType.create()).required().withDefault(() => UuidIdentifier.generate()).classProto(UuidIdentifier).overridable(true).build(), Fb.create('status', T.StringEnumType.create()).withDefault("draft").classProto(NodeStatus).build(), Fb.create('etag', T.StringType.create()).maxLength(100).pattern('^[\\w\\.:-]+$').build(), Fb.create('created_at', T.MicrotimeType.create()).build(),
26
+ /*
27
+ * A fully qualified reference to what created this node. This is intentionally a message-ref
28
+ * and not a user id because it is often a program that creates nodes, not a user.
29
+ */
30
+ Fb.create('creator_ref', T.MessageRefType.create()).build(), Fb.create('updated_at', T.MicrotimeType.create()).useTypeDefault(false).build(),
31
+ /*
32
+ * A fully qualified reference to what updated this node. This is intentionally a message-ref
33
+ * and not a user id because it is often a program that updates nodes, not a user.
34
+ * E.g. "acme:iam:node:app:cli-scheduler" or "acme:iam:node:user:60c71df0-fda8-11e5-bfb9-30342d363854"
35
+ */
36
+ Fb.create('updater_ref', T.MessageRefType.create()).build(),
37
+ /*
38
+ * A reference to the last event that changed the state of this node.
39
+ * E.g. "acme:blog:event:article-published:60c71df0-fda8-11e5-bfb9-30342d363854"
40
+ */
41
+ Fb.create('last_event_ref', T.MessageRefType.create()).build(), Fb.create('title', T.StringType.create()).build(),
42
+ /*
43
+ * The roles determine what permissions this app will have when using the system.
44
+ * The role itself is a node which has a set of "allow" and "deny" rules.
45
+ */
46
+ Fb.create('roles', T.NodeRefType.create()).asASet().build(),
47
+ /*
48
+ * An encrypted value of connection-string (starts with Endpoint=sb://) that can be obtained from Azure portal.
49
+ * @link
50
+ * https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-nodejs-push-notification-tutorial
51
+ */
52
+ Fb.create('azure_notification_hub_connection', T.TextType.create()).build(), Fb.create('azure_notification_hub_name', T.StringType.create()).pattern('^[\\w\\.-]+$').build(),
53
+ /*
54
+ * An encrypted value of legacy-server-key that can be obtained from the cloud messaging tab of the Firebase
55
+ * console.
56
+ * @link https://firebase.google.com/docs/cloud-messaging/auth-server
57
+ */
58
+ Fb.create('fcm_api_key', T.TextType.create()).build(),
59
+ /*
60
+ * A unique identifier for your Firebase project, used in requests to the FCM v1 HTTP endpoint.
61
+ * @link https://firebase.google.com/docs/cloud-messaging/concept-options#projectid
62
+ */
63
+ Fb.create('fcm_project_id', T.StringType.create()).format(Format.SLUG).build(),
64
+ /*
65
+ * A unique numerical value created when you create your Firebase project.
66
+ * @link https://firebase.google.com/docs/cloud-messaging/concept-options#senderid
67
+ */
68
+ Fb.create('fcm_sender_id', T.StringType.create()).pattern('^\\d+$').build(),
69
+ /*
70
+ * An un-encrypted key that can be obtained from the cloud messaging tab of the Firebase console.
71
+ */
72
+ Fb.create('fcm_web_api_key', T.StringType.create()).pattern('^[\\w\\.-]+$').build()], this.MIXINS);
19
73
  }
20
- }
21
74
 
22
- GdbotsNcrNodeV1Trait(AndroidAppV1);
23
- GdbotsIamAndroidAppV1Trait(AndroidAppV1);
24
- MessageResolver.register('bachelornation:iam:node:android-app', AndroidAppV1);
25
- Object.freeze(AndroidAppV1);
26
- Object.freeze(AndroidAppV1.prototype);
75
+ }
76
+ const M = AndroidAppV1;
77
+ M.prototype.SCHEMA_ID = M.SCHEMA_ID = 'pbj:bachelornation:iam:node:android-app:1-0-0';
78
+ M.prototype.SCHEMA_CURIE = M.SCHEMA_CURIE = 'bachelornation:iam:node:android-app';
79
+ M.prototype.SCHEMA_CURIE_MAJOR = M.SCHEMA_CURIE_MAJOR = 'bachelornation:iam:node:android-app:v1';
80
+ M.prototype.MIXINS = M.MIXINS = ['gdbots:ncr:mixin:node:v1', 'gdbots:ncr:mixin:node', 'gdbots:iam:mixin:app:v1', 'gdbots:iam:mixin:app', 'gdbots:iam:mixin:android-app:v1', 'gdbots:iam:mixin:android-app'];
81
+ GdbotsNcrNodeV1Mixin(M);
82
+ GdbotsIamAndroidAppV1Mixin(M);
83
+ Object.freeze(M);
84
+ Object.freeze(M.prototype);
@@ -1,13 +1,12 @@
1
1
  // @link https://schemas.bachelornation.com/json-schema/bachelornation/iam/node/apple-news-app/1-0-0.json#
2
- import GdbotsIamAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/app/AppV1Mixin';
3
- import GdbotsIamAppleNewsAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/apple-news-app/AppleNewsAppV1Mixin';
4
- import GdbotsIamAppleNewsAppV1Trait from '@gdbots/schemas/gdbots/iam/mixin/apple-news-app/AppleNewsAppV1Trait';
5
- import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin';
6
- import GdbotsNcrNodeV1Trait from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Trait';
7
- import Message from '@gdbots/pbj/Message';
8
- import MessageResolver from '@gdbots/pbj/MessageResolver';
9
- import Schema from '@gdbots/pbj/Schema';
10
-
2
+ import Fb from '@gdbots/pbj/FieldBuilder.js';
3
+ import GdbotsIamAppleNewsAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/apple-news-app/AppleNewsAppV1Mixin.js';
4
+ import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin.js';
5
+ import Message from '@gdbots/pbj/Message.js';
6
+ import NodeStatus from '@gdbots/schemas/gdbots/ncr/enums/NodeStatus.js';
7
+ import Schema from '@gdbots/pbj/Schema.js';
8
+ import T from '@gdbots/pbj/types/index.js';
9
+ import UuidIdentifier from '@gdbots/pbj/well-known/UuidIdentifier.js';
11
10
  export default class AppleNewsAppV1 extends Message {
12
11
  /**
13
12
  * @private
@@ -15,12 +14,59 @@ export default class AppleNewsAppV1 extends Message {
15
14
  * @returns {Schema}
16
15
  */
17
16
  static defineSchema() {
18
- return new Schema('pbj:bachelornation:iam:node:apple-news-app:1-0-0', AppleNewsAppV1, [], [GdbotsNcrNodeV1Mixin.create(), GdbotsIamAppV1Mixin.create(), GdbotsIamAppleNewsAppV1Mixin.create()]);
17
+ return new Schema(this.SCHEMA_ID, this, [
18
+ /*
19
+ * The "_id" value:
20
+ * - MUST NOT change for the life of the node.
21
+ * - SHOULD be globally unique
22
+ * - SHOULD be generated by the app (ideally in default value closure... e.g. UuidIdentifier::generate())
23
+ */
24
+ Fb.create('_id', T.IdentifierType.create()).required().withDefault(() => UuidIdentifier.generate()).classProto(UuidIdentifier).overridable(true).build(), Fb.create('status', T.StringEnumType.create()).withDefault("draft").classProto(NodeStatus).build(), Fb.create('etag', T.StringType.create()).maxLength(100).pattern('^[\\w\\.:-]+$').build(), Fb.create('created_at', T.MicrotimeType.create()).build(),
25
+ /*
26
+ * A fully qualified reference to what created this node. This is intentionally a message-ref
27
+ * and not a user id because it is often a program that creates nodes, not a user.
28
+ */
29
+ Fb.create('creator_ref', T.MessageRefType.create()).build(), Fb.create('updated_at', T.MicrotimeType.create()).useTypeDefault(false).build(),
30
+ /*
31
+ * A fully qualified reference to what updated this node. This is intentionally a message-ref
32
+ * and not a user id because it is often a program that updates nodes, not a user.
33
+ * E.g. "acme:iam:node:app:cli-scheduler" or "acme:iam:node:user:60c71df0-fda8-11e5-bfb9-30342d363854"
34
+ */
35
+ Fb.create('updater_ref', T.MessageRefType.create()).build(),
36
+ /*
37
+ * A reference to the last event that changed the state of this node.
38
+ * E.g. "acme:blog:event:article-published:60c71df0-fda8-11e5-bfb9-30342d363854"
39
+ */
40
+ Fb.create('last_event_ref', T.MessageRefType.create()).build(), Fb.create('title', T.StringType.create()).build(),
41
+ /*
42
+ * The roles determine what permissions this app will have when using the system.
43
+ * The role itself is a node which has a set of "allow" and "deny" rules.
44
+ */
45
+ Fb.create('roles', T.NodeRefType.create()).asASet().build(),
46
+ /*
47
+ * The "channel_id" comes from Apple News and is not a secret so it does
48
+ * not require encryption. It is usually a version 4 uuid.
49
+ * @link https://developer.apple.com/documentation/apple_news/apple_news_api/about_the_news_security_model
50
+ */
51
+ Fb.create('channel_id', T.StringType.create()).pattern('^[\\w-]+$').build(),
52
+ /*
53
+ * The "api_key" comes from Apple News and is not a secret so it does
54
+ * not require encryption. It is usually a version 4 uuid (similar to channel_id).
55
+ */
56
+ Fb.create('api_key', T.StringType.create()).pattern('^[\\w-]+$').build(),
57
+ /*
58
+ * The "api_secret" should be encrypted and never stored in plain text.
59
+ */
60
+ Fb.create('api_secret', T.TextType.create()).build()], this.MIXINS);
19
61
  }
20
- }
21
62
 
22
- GdbotsNcrNodeV1Trait(AppleNewsAppV1);
23
- GdbotsIamAppleNewsAppV1Trait(AppleNewsAppV1);
24
- MessageResolver.register('bachelornation:iam:node:apple-news-app', AppleNewsAppV1);
25
- Object.freeze(AppleNewsAppV1);
26
- Object.freeze(AppleNewsAppV1.prototype);
63
+ }
64
+ const M = AppleNewsAppV1;
65
+ M.prototype.SCHEMA_ID = M.SCHEMA_ID = 'pbj:bachelornation:iam:node:apple-news-app:1-0-0';
66
+ M.prototype.SCHEMA_CURIE = M.SCHEMA_CURIE = 'bachelornation:iam:node:apple-news-app';
67
+ M.prototype.SCHEMA_CURIE_MAJOR = M.SCHEMA_CURIE_MAJOR = 'bachelornation:iam:node:apple-news-app:v1';
68
+ M.prototype.MIXINS = M.MIXINS = ['gdbots:ncr:mixin:node:v1', 'gdbots:ncr:mixin:node', 'gdbots:iam:mixin:app:v1', 'gdbots:iam:mixin:app', 'gdbots:iam:mixin:apple-news-app:v1', 'gdbots:iam:mixin:apple-news-app'];
69
+ GdbotsNcrNodeV1Mixin(M);
70
+ GdbotsIamAppleNewsAppV1Mixin(M);
71
+ Object.freeze(M);
72
+ Object.freeze(M.prototype);
@@ -1,13 +1,13 @@
1
1
  // @link https://schemas.bachelornation.com/json-schema/bachelornation/iam/node/browser-app/1-0-0.json#
2
- import GdbotsIamAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/app/AppV1Mixin';
3
- import GdbotsIamBrowserAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/browser-app/BrowserAppV1Mixin';
4
- import GdbotsIamBrowserAppV1Trait from '@gdbots/schemas/gdbots/iam/mixin/browser-app/BrowserAppV1Trait';
5
- import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin';
6
- import GdbotsNcrNodeV1Trait from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Trait';
7
- import Message from '@gdbots/pbj/Message';
8
- import MessageResolver from '@gdbots/pbj/MessageResolver';
9
- import Schema from '@gdbots/pbj/Schema';
10
-
2
+ import Fb from '@gdbots/pbj/FieldBuilder.js';
3
+ import Format from '@gdbots/pbj/enums/Format.js';
4
+ import GdbotsIamBrowserAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/browser-app/BrowserAppV1Mixin.js';
5
+ import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin.js';
6
+ import Message from '@gdbots/pbj/Message.js';
7
+ import NodeStatus from '@gdbots/schemas/gdbots/ncr/enums/NodeStatus.js';
8
+ import Schema from '@gdbots/pbj/Schema.js';
9
+ import T from '@gdbots/pbj/types/index.js';
10
+ import UuidIdentifier from '@gdbots/pbj/well-known/UuidIdentifier.js';
11
11
  export default class BrowserAppV1 extends Message {
12
12
  /**
13
13
  * @private
@@ -15,12 +15,70 @@ export default class BrowserAppV1 extends Message {
15
15
  * @returns {Schema}
16
16
  */
17
17
  static defineSchema() {
18
- return new Schema('pbj:bachelornation:iam:node:browser-app:1-0-0', BrowserAppV1, [], [GdbotsNcrNodeV1Mixin.create(), GdbotsIamAppV1Mixin.create(), GdbotsIamBrowserAppV1Mixin.create()]);
18
+ return new Schema(this.SCHEMA_ID, this, [
19
+ /*
20
+ * The "_id" value:
21
+ * - MUST NOT change for the life of the node.
22
+ * - SHOULD be globally unique
23
+ * - SHOULD be generated by the app (ideally in default value closure... e.g. UuidIdentifier::generate())
24
+ */
25
+ Fb.create('_id', T.IdentifierType.create()).required().withDefault(() => UuidIdentifier.generate()).classProto(UuidIdentifier).overridable(true).build(), Fb.create('status', T.StringEnumType.create()).withDefault("draft").classProto(NodeStatus).build(), Fb.create('etag', T.StringType.create()).maxLength(100).pattern('^[\\w\\.:-]+$').build(), Fb.create('created_at', T.MicrotimeType.create()).build(),
26
+ /*
27
+ * A fully qualified reference to what created this node. This is intentionally a message-ref
28
+ * and not a user id because it is often a program that creates nodes, not a user.
29
+ */
30
+ Fb.create('creator_ref', T.MessageRefType.create()).build(), Fb.create('updated_at', T.MicrotimeType.create()).useTypeDefault(false).build(),
31
+ /*
32
+ * A fully qualified reference to what updated this node. This is intentionally a message-ref
33
+ * and not a user id because it is often a program that updates nodes, not a user.
34
+ * E.g. "acme:iam:node:app:cli-scheduler" or "acme:iam:node:user:60c71df0-fda8-11e5-bfb9-30342d363854"
35
+ */
36
+ Fb.create('updater_ref', T.MessageRefType.create()).build(),
37
+ /*
38
+ * A reference to the last event that changed the state of this node.
39
+ * E.g. "acme:blog:event:article-published:60c71df0-fda8-11e5-bfb9-30342d363854"
40
+ */
41
+ Fb.create('last_event_ref', T.MessageRefType.create()).build(), Fb.create('title', T.StringType.create()).build(),
42
+ /*
43
+ * The roles determine what permissions this app will have when using the system.
44
+ * The role itself is a node which has a set of "allow" and "deny" rules.
45
+ */
46
+ Fb.create('roles', T.NodeRefType.create()).asASet().build(),
47
+ /*
48
+ * An encrypted value of legacy-server-key that can be obtained from the cloud messaging tab of the Firebase
49
+ * console.
50
+ * @link https://firebase.google.com/docs/cloud-messaging/auth-server
51
+ */
52
+ Fb.create('fcm_api_key', T.TextType.create()).build(),
53
+ /*
54
+ * A unique identifier used to identify an app within a Firebase project that can be obtained
55
+ * from the Firebase console.
56
+ * @link https://firebase.google.com/docs/web/setup?authuser=0#config-object
57
+ */
58
+ Fb.create('fcm_app_id', T.StringType.create()).pattern('^[\\w:]+$').build(),
59
+ /*
60
+ * A unique identifier for your Firebase project, used in requests to the FCM v1 HTTP endpoint.
61
+ * @link https://firebase.google.com/docs/cloud-messaging/concept-options#projectid
62
+ */
63
+ Fb.create('fcm_project_id', T.StringType.create()).format(Format.SLUG).build(),
64
+ /*
65
+ * A unique numerical value created when you create your Firebase project.
66
+ * @link https://firebase.google.com/docs/cloud-messaging/concept-options#senderid
67
+ */
68
+ Fb.create('fcm_sender_id', T.StringType.create()).pattern('^\\d+$').build(),
69
+ /*
70
+ * An un-encrypted key that can be obtained from the cloud messaging tab of the Firebase console.
71
+ */
72
+ Fb.create('fcm_web_api_key', T.StringType.create()).pattern('^[\\w\\.-]+$').build()], this.MIXINS);
19
73
  }
20
- }
21
74
 
22
- GdbotsNcrNodeV1Trait(BrowserAppV1);
23
- GdbotsIamBrowserAppV1Trait(BrowserAppV1);
24
- MessageResolver.register('bachelornation:iam:node:browser-app', BrowserAppV1);
25
- Object.freeze(BrowserAppV1);
26
- Object.freeze(BrowserAppV1.prototype);
75
+ }
76
+ const M = BrowserAppV1;
77
+ M.prototype.SCHEMA_ID = M.SCHEMA_ID = 'pbj:bachelornation:iam:node:browser-app:1-0-0';
78
+ M.prototype.SCHEMA_CURIE = M.SCHEMA_CURIE = 'bachelornation:iam:node:browser-app';
79
+ M.prototype.SCHEMA_CURIE_MAJOR = M.SCHEMA_CURIE_MAJOR = 'bachelornation:iam:node:browser-app:v1';
80
+ M.prototype.MIXINS = M.MIXINS = ['gdbots:ncr:mixin:node:v1', 'gdbots:ncr:mixin:node', 'gdbots:iam:mixin:app:v1', 'gdbots:iam:mixin:app', 'gdbots:iam:mixin:browser-app:v1', 'gdbots:iam:mixin:browser-app'];
81
+ GdbotsNcrNodeV1Mixin(M);
82
+ GdbotsIamBrowserAppV1Mixin(M);
83
+ Object.freeze(M);
84
+ Object.freeze(M.prototype);
@@ -1,13 +1,12 @@
1
1
  // @link https://schemas.bachelornation.com/json-schema/bachelornation/iam/node/email-app/1-0-0.json#
2
- import GdbotsIamAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/app/AppV1Mixin';
3
- import GdbotsIamEmailAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/email-app/EmailAppV1Mixin';
4
- import GdbotsIamEmailAppV1Trait from '@gdbots/schemas/gdbots/iam/mixin/email-app/EmailAppV1Trait';
5
- import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin';
6
- import GdbotsNcrNodeV1Trait from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Trait';
7
- import Message from '@gdbots/pbj/Message';
8
- import MessageResolver from '@gdbots/pbj/MessageResolver';
9
- import Schema from '@gdbots/pbj/Schema';
10
-
2
+ import Fb from '@gdbots/pbj/FieldBuilder.js';
3
+ import GdbotsIamEmailAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/email-app/EmailAppV1Mixin.js';
4
+ import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin.js';
5
+ import Message from '@gdbots/pbj/Message.js';
6
+ import NodeStatus from '@gdbots/schemas/gdbots/ncr/enums/NodeStatus.js';
7
+ import Schema from '@gdbots/pbj/Schema.js';
8
+ import T from '@gdbots/pbj/types/index.js';
9
+ import UuidIdentifier from '@gdbots/pbj/well-known/UuidIdentifier.js';
11
10
  export default class EmailAppV1 extends Message {
12
11
  /**
13
12
  * @private
@@ -15,12 +14,64 @@ export default class EmailAppV1 extends Message {
15
14
  * @returns {Schema}
16
15
  */
17
16
  static defineSchema() {
18
- return new Schema('pbj:bachelornation:iam:node:email-app:1-0-0', EmailAppV1, [], [GdbotsNcrNodeV1Mixin.create(), GdbotsIamAppV1Mixin.create(), GdbotsIamEmailAppV1Mixin.create()]);
17
+ return new Schema(this.SCHEMA_ID, this, [
18
+ /*
19
+ * The "_id" value:
20
+ * - MUST NOT change for the life of the node.
21
+ * - SHOULD be globally unique
22
+ * - SHOULD be generated by the app (ideally in default value closure... e.g. UuidIdentifier::generate())
23
+ */
24
+ Fb.create('_id', T.IdentifierType.create()).required().withDefault(() => UuidIdentifier.generate()).classProto(UuidIdentifier).overridable(true).build(), Fb.create('status', T.StringEnumType.create()).withDefault("draft").classProto(NodeStatus).build(), Fb.create('etag', T.StringType.create()).maxLength(100).pattern('^[\\w\\.:-]+$').build(), Fb.create('created_at', T.MicrotimeType.create()).build(),
25
+ /*
26
+ * A fully qualified reference to what created this node. This is intentionally a message-ref
27
+ * and not a user id because it is often a program that creates nodes, not a user.
28
+ */
29
+ Fb.create('creator_ref', T.MessageRefType.create()).build(), Fb.create('updated_at', T.MicrotimeType.create()).useTypeDefault(false).build(),
30
+ /*
31
+ * A fully qualified reference to what updated this node. This is intentionally a message-ref
32
+ * and not a user id because it is often a program that updates nodes, not a user.
33
+ * E.g. "acme:iam:node:app:cli-scheduler" or "acme:iam:node:user:60c71df0-fda8-11e5-bfb9-30342d363854"
34
+ */
35
+ Fb.create('updater_ref', T.MessageRefType.create()).build(),
36
+ /*
37
+ * A reference to the last event that changed the state of this node.
38
+ * E.g. "acme:blog:event:article-published:60c71df0-fda8-11e5-bfb9-30342d363854"
39
+ */
40
+ Fb.create('last_event_ref', T.MessageRefType.create()).build(), Fb.create('title', T.StringType.create()).build(),
41
+ /*
42
+ * The roles determine what permissions this app will have when using the system.
43
+ * The role itself is a node which has a set of "allow" and "deny" rules.
44
+ */
45
+ Fb.create('roles', T.NodeRefType.create()).asASet().build(),
46
+ /*
47
+ * This field contains an access token (used as bearer token) and
48
+ * in some cases SMTP username and password. It should be encrypted.
49
+ * @link https://sendgrid.com/docs/ui/account-and-settings/api-keys/
50
+ */
51
+ Fb.create('sendgrid_api_key', T.TextType.create()).build(),
52
+ /*
53
+ * Keys are list slugs, e.g. "newsletter-subscribers" and values are sendgrid list ids.
54
+ * @link https://sendgrid.api-docs.io/v3.0/contacts-api-lists/create-a-list
55
+ */
56
+ Fb.create('sendgrid_lists', T.IntType.create()).asAMap().build(),
57
+ /*
58
+ * Keys are emails and values are sendgrid sender ids.
59
+ * @link https://sendgrid.api-docs.io/v3.0/sender-identities-api/create-a-sender-identity
60
+ */
61
+ Fb.create('sendgrid_senders', T.IntType.create()).asAMap().build(),
62
+ /*
63
+ * The default sendgrid suppression group id.
64
+ */
65
+ Fb.create('sendgrid_suppression_group_id', T.IntType.create()).build()], this.MIXINS);
19
66
  }
20
- }
21
67
 
22
- GdbotsNcrNodeV1Trait(EmailAppV1);
23
- GdbotsIamEmailAppV1Trait(EmailAppV1);
24
- MessageResolver.register('bachelornation:iam:node:email-app', EmailAppV1);
25
- Object.freeze(EmailAppV1);
26
- Object.freeze(EmailAppV1.prototype);
68
+ }
69
+ const M = EmailAppV1;
70
+ M.prototype.SCHEMA_ID = M.SCHEMA_ID = 'pbj:bachelornation:iam:node:email-app:1-0-0';
71
+ M.prototype.SCHEMA_CURIE = M.SCHEMA_CURIE = 'bachelornation:iam:node:email-app';
72
+ M.prototype.SCHEMA_CURIE_MAJOR = M.SCHEMA_CURIE_MAJOR = 'bachelornation:iam:node:email-app:v1';
73
+ M.prototype.MIXINS = M.MIXINS = ['gdbots:ncr:mixin:node:v1', 'gdbots:ncr:mixin:node', 'gdbots:iam:mixin:app:v1', 'gdbots:iam:mixin:app', 'gdbots:iam:mixin:email-app:v1', 'gdbots:iam:mixin:email-app'];
74
+ GdbotsNcrNodeV1Mixin(M);
75
+ GdbotsIamEmailAppV1Mixin(M);
76
+ Object.freeze(M);
77
+ Object.freeze(M.prototype);
@@ -1,13 +1,13 @@
1
1
  // @link https://schemas.bachelornation.com/json-schema/bachelornation/iam/node/ios-app/1-0-0.json#
2
- import GdbotsIamAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/app/AppV1Mixin';
3
- import GdbotsIamIosAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/ios-app/IosAppV1Mixin';
4
- import GdbotsIamIosAppV1Trait from '@gdbots/schemas/gdbots/iam/mixin/ios-app/IosAppV1Trait';
5
- import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin';
6
- import GdbotsNcrNodeV1Trait from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Trait';
7
- import Message from '@gdbots/pbj/Message';
8
- import MessageResolver from '@gdbots/pbj/MessageResolver';
9
- import Schema from '@gdbots/pbj/Schema';
10
-
2
+ import Fb from '@gdbots/pbj/FieldBuilder.js';
3
+ import Format from '@gdbots/pbj/enums/Format.js';
4
+ import GdbotsIamIosAppV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/ios-app/IosAppV1Mixin.js';
5
+ import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin.js';
6
+ import Message from '@gdbots/pbj/Message.js';
7
+ import NodeStatus from '@gdbots/schemas/gdbots/ncr/enums/NodeStatus.js';
8
+ import Schema from '@gdbots/pbj/Schema.js';
9
+ import T from '@gdbots/pbj/types/index.js';
10
+ import UuidIdentifier from '@gdbots/pbj/well-known/UuidIdentifier.js';
11
11
  export default class IosAppV1 extends Message {
12
12
  /**
13
13
  * @private
@@ -15,12 +15,70 @@ export default class IosAppV1 extends Message {
15
15
  * @returns {Schema}
16
16
  */
17
17
  static defineSchema() {
18
- return new Schema('pbj:bachelornation:iam:node:ios-app:1-0-0', IosAppV1, [], [GdbotsNcrNodeV1Mixin.create(), GdbotsIamAppV1Mixin.create(), GdbotsIamIosAppV1Mixin.create()]);
18
+ return new Schema(this.SCHEMA_ID, this, [
19
+ /*
20
+ * The "_id" value:
21
+ * - MUST NOT change for the life of the node.
22
+ * - SHOULD be globally unique
23
+ * - SHOULD be generated by the app (ideally in default value closure... e.g. UuidIdentifier::generate())
24
+ */
25
+ Fb.create('_id', T.IdentifierType.create()).required().withDefault(() => UuidIdentifier.generate()).classProto(UuidIdentifier).overridable(true).build(), Fb.create('status', T.StringEnumType.create()).withDefault("draft").classProto(NodeStatus).build(), Fb.create('etag', T.StringType.create()).maxLength(100).pattern('^[\\w\\.:-]+$').build(), Fb.create('created_at', T.MicrotimeType.create()).build(),
26
+ /*
27
+ * A fully qualified reference to what created this node. This is intentionally a message-ref
28
+ * and not a user id because it is often a program that creates nodes, not a user.
29
+ */
30
+ Fb.create('creator_ref', T.MessageRefType.create()).build(), Fb.create('updated_at', T.MicrotimeType.create()).useTypeDefault(false).build(),
31
+ /*
32
+ * A fully qualified reference to what updated this node. This is intentionally a message-ref
33
+ * and not a user id because it is often a program that updates nodes, not a user.
34
+ * E.g. "acme:iam:node:app:cli-scheduler" or "acme:iam:node:user:60c71df0-fda8-11e5-bfb9-30342d363854"
35
+ */
36
+ Fb.create('updater_ref', T.MessageRefType.create()).build(),
37
+ /*
38
+ * A reference to the last event that changed the state of this node.
39
+ * E.g. "acme:blog:event:article-published:60c71df0-fda8-11e5-bfb9-30342d363854"
40
+ */
41
+ Fb.create('last_event_ref', T.MessageRefType.create()).build(), Fb.create('title', T.StringType.create()).build(),
42
+ /*
43
+ * The roles determine what permissions this app will have when using the system.
44
+ * The role itself is a node which has a set of "allow" and "deny" rules.
45
+ */
46
+ Fb.create('roles', T.NodeRefType.create()).asASet().build(),
47
+ /*
48
+ * An encrypted value of connection-string (starts with Endpoint=sb://) that can be obtained from Azure portal.
49
+ * @link
50
+ * https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-nodejs-push-notification-tutorial
51
+ */
52
+ Fb.create('azure_notification_hub_connection', T.TextType.create()).build(), Fb.create('azure_notification_hub_name', T.StringType.create()).pattern('^[\\w\\.-]+$').build(),
53
+ /*
54
+ * An encrypted value of legacy-server-key that can be obtained from the cloud messaging tab of the Firebase
55
+ * console.
56
+ * @link https://firebase.google.com/docs/cloud-messaging/auth-server
57
+ */
58
+ Fb.create('fcm_api_key', T.TextType.create()).build(),
59
+ /*
60
+ * A unique identifier for your Firebase project, used in requests to the FCM v1 HTTP endpoint.
61
+ * @link https://firebase.google.com/docs/cloud-messaging/concept-options#projectid
62
+ */
63
+ Fb.create('fcm_project_id', T.StringType.create()).format(Format.SLUG).build(),
64
+ /*
65
+ * A unique numerical value created when you create your Firebase project.
66
+ * @link https://firebase.google.com/docs/cloud-messaging/concept-options#senderid
67
+ */
68
+ Fb.create('fcm_sender_id', T.StringType.create()).pattern('^\\d+$').build(),
69
+ /*
70
+ * An un-encrypted key that can be obtained from the cloud messaging tab of the Firebase console.
71
+ */
72
+ Fb.create('fcm_web_api_key', T.StringType.create()).pattern('^[\\w\\.-]+$').build()], this.MIXINS);
19
73
  }
20
- }
21
74
 
22
- GdbotsNcrNodeV1Trait(IosAppV1);
23
- GdbotsIamIosAppV1Trait(IosAppV1);
24
- MessageResolver.register('bachelornation:iam:node:ios-app', IosAppV1);
25
- Object.freeze(IosAppV1);
26
- Object.freeze(IosAppV1.prototype);
75
+ }
76
+ const M = IosAppV1;
77
+ M.prototype.SCHEMA_ID = M.SCHEMA_ID = 'pbj:bachelornation:iam:node:ios-app:1-0-0';
78
+ M.prototype.SCHEMA_CURIE = M.SCHEMA_CURIE = 'bachelornation:iam:node:ios-app';
79
+ M.prototype.SCHEMA_CURIE_MAJOR = M.SCHEMA_CURIE_MAJOR = 'bachelornation:iam:node:ios-app:v1';
80
+ M.prototype.MIXINS = M.MIXINS = ['gdbots:ncr:mixin:node:v1', 'gdbots:ncr:mixin:node', 'gdbots:iam:mixin:app:v1', 'gdbots:iam:mixin:app', 'gdbots:iam:mixin:ios-app:v1', 'gdbots:iam:mixin:ios-app'];
81
+ GdbotsNcrNodeV1Mixin(M);
82
+ GdbotsIamIosAppV1Mixin(M);
83
+ Object.freeze(M);
84
+ Object.freeze(M.prototype);
@@ -1,12 +1,12 @@
1
1
  // @link https://schemas.bachelornation.com/json-schema/bachelornation/iam/node/role/1-0-0.json#
2
- import GdbotsIamRoleV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/role/RoleV1Mixin';
3
- import GdbotsIamRoleV1Trait from '@gdbots/schemas/gdbots/iam/mixin/role/RoleV1Trait';
4
- import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin';
5
- import GdbotsNcrNodeV1Trait from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Trait';
6
- import Message from '@gdbots/pbj/Message';
7
- import MessageResolver from '@gdbots/pbj/MessageResolver';
8
- import Schema from '@gdbots/pbj/Schema';
9
-
2
+ import Fb from '@gdbots/pbj/FieldBuilder.js';
3
+ import GdbotsIamRoleV1Mixin from '@gdbots/schemas/gdbots/iam/mixin/role/RoleV1Mixin.js';
4
+ import GdbotsNcrNodeV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node/NodeV1Mixin.js';
5
+ import Message from '@gdbots/pbj/Message.js';
6
+ import NodeStatus from '@gdbots/schemas/gdbots/ncr/enums/NodeStatus.js';
7
+ import RoleId from '@gdbots/schemas/gdbots/iam/RoleId.js';
8
+ import Schema from '@gdbots/pbj/Schema.js';
9
+ import T from '@gdbots/pbj/types/index.js';
10
10
  export default class RoleV1 extends Message {
11
11
  /**
12
12
  * @private
@@ -14,12 +14,45 @@ export default class RoleV1 extends Message {
14
14
  * @returns {Schema}
15
15
  */
16
16
  static defineSchema() {
17
- return new Schema('pbj:bachelornation:iam:node:role:1-0-0', RoleV1, [], [GdbotsNcrNodeV1Mixin.create(), GdbotsIamRoleV1Mixin.create()]);
17
+ return new Schema(this.SCHEMA_ID, this, [Fb.create('_id', T.IdentifierType.create()).required().classProto(RoleId).build(), Fb.create('status', T.StringEnumType.create()).withDefault("draft").classProto(NodeStatus).build(), Fb.create('etag', T.StringType.create()).maxLength(100).pattern('^[\\w\\.:-]+$').build(), Fb.create('created_at', T.MicrotimeType.create()).build(),
18
+ /*
19
+ * A fully qualified reference to what created this node. This is intentionally a message-ref
20
+ * and not a user id because it is often a program that creates nodes, not a user.
21
+ */
22
+ Fb.create('creator_ref', T.MessageRefType.create()).build(), Fb.create('updated_at', T.MicrotimeType.create()).useTypeDefault(false).build(),
23
+ /*
24
+ * A fully qualified reference to what updated this node. This is intentionally a message-ref
25
+ * and not a user id because it is often a program that updates nodes, not a user.
26
+ * E.g. "acme:iam:node:app:cli-scheduler" or "acme:iam:node:user:60c71df0-fda8-11e5-bfb9-30342d363854"
27
+ */
28
+ Fb.create('updater_ref', T.MessageRefType.create()).build(),
29
+ /*
30
+ * A reference to the last event that changed the state of this node.
31
+ * E.g. "acme:blog:event:article-published:60c71df0-fda8-11e5-bfb9-30342d363854"
32
+ */
33
+ Fb.create('last_event_ref', T.MessageRefType.create()).build(), Fb.create('title', T.StringType.create()).build(),
34
+ /*
35
+ * The "allowed" field is a set of actions that a user will be granted.
36
+ * Although the string can be anything it is best practice to use the
37
+ * curies of the pbjx commands and requests from your application.
38
+ * E.g. "acme:blog:command:publish-article" or "acme:blog:command:*"
39
+ */
40
+ Fb.create('allowed', T.StringType.create()).asASet().pattern('^[a-z0-9_\\*\\.:-]+$').build(),
41
+ /*
42
+ * The "denied" field works just like the "allowed" field with the
43
+ * exception that these rules take precedence and deny a user's
44
+ * ability to perform the action.
45
+ */
46
+ Fb.create('denied', T.StringType.create()).asASet().pattern('^[a-z0-9_\\*\\.:-]+$').build()], this.MIXINS);
18
47
  }
19
- }
20
48
 
21
- GdbotsNcrNodeV1Trait(RoleV1);
22
- GdbotsIamRoleV1Trait(RoleV1);
23
- MessageResolver.register('bachelornation:iam:node:role', RoleV1);
24
- Object.freeze(RoleV1);
25
- Object.freeze(RoleV1.prototype);
49
+ }
50
+ const M = RoleV1;
51
+ M.prototype.SCHEMA_ID = M.SCHEMA_ID = 'pbj:bachelornation:iam:node:role:1-0-0';
52
+ M.prototype.SCHEMA_CURIE = M.SCHEMA_CURIE = 'bachelornation:iam:node:role';
53
+ M.prototype.SCHEMA_CURIE_MAJOR = M.SCHEMA_CURIE_MAJOR = 'bachelornation:iam:node:role:v1';
54
+ M.prototype.MIXINS = M.MIXINS = ['gdbots:ncr:mixin:node:v1', 'gdbots:ncr:mixin:node', 'gdbots:iam:mixin:role:v1', 'gdbots:iam:mixin:role'];
55
+ GdbotsNcrNodeV1Mixin(M);
56
+ GdbotsIamRoleV1Mixin(M);
57
+ Object.freeze(M);
58
+ Object.freeze(M.prototype);