@segment/public-api-sdk-typescript 1.0.1 → 1.0.2-b1

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 (509) hide show
  1. package/README.md +1 -1
  2. package/api/aPICallsApi.ts +1176 -0
  3. package/api/apis.ts +178 -0
  4. package/api/auditTrailApi.ts +714 -0
  5. package/api/catalogApi.ts +2916 -0
  6. package/api/deletionAndSuppressionApi.ts +4298 -0
  7. package/api/destinationFiltersApi.ts +3262 -0
  8. package/api/destinationsApi.ts +3494 -0
  9. package/api/edgeFunctionsApi.ts +593 -0
  10. package/api/eventsApi.ts +922 -0
  11. package/api/functionsApi.ts +3036 -0
  12. package/api/iAMGroupsApi.ts +6204 -0
  13. package/api/iAMRolesApi.ts +566 -0
  14. package/api/iAMUsersApi.ts +4486 -0
  15. package/api/labelsApi.ts +1488 -0
  16. package/api/monthlyTrackedUsersApi.ts +1178 -0
  17. package/api/selectiveSyncApi.ts +3321 -0
  18. package/api/sourcesApi.ts +5602 -0
  19. package/api/spacesApi.ts +489 -0
  20. package/api/testingApi.ts +568 -0
  21. package/api/trackingPlansApi.ts +6238 -0
  22. package/api/transformationsApi.ts +1316 -0
  23. package/api/warehousesApi.ts +5004 -0
  24. package/api/workspacesApi.ts +513 -0
  25. package/api.ts +3 -0
  26. package/dist/model/contact.d.ts +17 -0
  27. package/dist/model/contact.js +36 -0
  28. package/dist/model/contact.js.map +1 -0
  29. package/dist/model/destinationMetadata.d.ts +3 -0
  30. package/dist/model/destinationMetadata.js +10 -0
  31. package/dist/model/destinationMetadata.js.map +1 -1
  32. package/dist/model/destinationMetadataV1.d.ts +3 -0
  33. package/dist/model/destinationMetadataV1.js +10 -0
  34. package/dist/model/destinationMetadataV1.js.map +1 -1
  35. package/dist/model/metadata.d.ts +3 -0
  36. package/dist/model/metadata.js +10 -0
  37. package/dist/model/metadata.js.map +1 -1
  38. package/dist/model/models.d.ts +1 -0
  39. package/dist/model/models.js +3 -0
  40. package/dist/model/models.js.map +1 -1
  41. package/jest.config.js +10 -0
  42. package/model/aPICallSnapshotV1.ts +50 -0
  43. package/model/accessPermissionV1.ts +60 -0
  44. package/model/addConnectionFromSourceToWarehouse200Response.ts +36 -0
  45. package/model/addConnectionFromSourceToWarehouseV1Output.ts +48 -0
  46. package/model/addLabelsToSource200Response.ts +36 -0
  47. package/model/addLabelsToSource200Response1.ts +36 -0
  48. package/model/addLabelsToSourceAlphaInput.ts +42 -0
  49. package/model/addLabelsToSourceAlphaOutput.ts +42 -0
  50. package/model/addLabelsToSourceV1Input.ts +42 -0
  51. package/model/addLabelsToSourceV1Output.ts +42 -0
  52. package/model/addPermissionsToUser200Response.ts +36 -0
  53. package/model/addPermissionsToUserGroup200Response.ts +36 -0
  54. package/model/addPermissionsToUserGroupV1Input.ts +42 -0
  55. package/model/addPermissionsToUserGroupV1Output.ts +42 -0
  56. package/model/addPermissionsToUserV1Input.ts +42 -0
  57. package/model/addPermissionsToUserV1Output.ts +42 -0
  58. package/model/addSourceToTrackingPlan200Response.ts +36 -0
  59. package/model/addSourceToTrackingPlanV1Input.ts +41 -0
  60. package/model/addSourceToTrackingPlanV1Output.ts +47 -0
  61. package/model/addUsersToUserGroup200Response.ts +36 -0
  62. package/model/addUsersToUserGroupV1Input.ts +41 -0
  63. package/model/addUsersToUserGroupV1Output.ts +39 -0
  64. package/model/advancedWarehouseSyncScheduleV1Input.ts +51 -0
  65. package/model/advancedWarehouseSyncScheduleV1Output.ts +51 -0
  66. package/model/allowedLabelBeta.ts +59 -0
  67. package/model/auditEventV1.ts +95 -0
  68. package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +36 -0
  69. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +42 -0
  70. package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +69 -0
  71. package/model/breakdownBeta.ts +50 -0
  72. package/model/commonSourceSettingsV1.ts +68 -0
  73. package/model/contact.ts +68 -0
  74. package/model/createCloudSourceRegulation200Response.ts +36 -0
  75. package/model/createCloudSourceRegulationV1Input.ts +82 -0
  76. package/model/createCloudSourceRegulationV1Output.ts +41 -0
  77. package/model/createDestination200Response.ts +36 -0
  78. package/model/createDestinationSubscription200Response.ts +36 -0
  79. package/model/createDestinationSubscriptionAlphaInput.ts +77 -0
  80. package/model/createDestinationSubscriptionAlphaOutput.ts +39 -0
  81. package/model/createDestinationV1Input.ts +77 -0
  82. package/model/createDestinationV1Output.ts +39 -0
  83. package/model/createEdgeFunctions200Response.ts +36 -0
  84. package/model/createEdgeFunctionsAlphaInput.ts +41 -0
  85. package/model/createEdgeFunctionsAlphaOutput.ts +39 -0
  86. package/model/createFilterForDestination200Response.ts +36 -0
  87. package/model/createFilterForDestinationV1Input.ts +87 -0
  88. package/model/createFilterForDestinationV1Output.ts +39 -0
  89. package/model/createFunction200Response.ts +36 -0
  90. package/model/createFunctionDeployment200Response.ts +36 -0
  91. package/model/createFunctionDeploymentV1Output.ts +39 -0
  92. package/model/createFunctionV1Input.ts +94 -0
  93. package/model/createFunctionV1Output.ts +39 -0
  94. package/model/createInvites200Response.ts +36 -0
  95. package/model/createInvitesV1Input.ts +42 -0
  96. package/model/createInvitesV1Output.ts +41 -0
  97. package/model/createLabel200Response.ts +36 -0
  98. package/model/createLabel200Response1.ts +36 -0
  99. package/model/createLabelAlphaInput.ts +39 -0
  100. package/model/createLabelAlphaOutput.ts +42 -0
  101. package/model/createLabelV1Input.ts +39 -0
  102. package/model/createLabelV1Output.ts +39 -0
  103. package/model/createSource200Response.ts +36 -0
  104. package/model/createSource200Response1.ts +36 -0
  105. package/model/createSourceAlphaInput.ts +77 -0
  106. package/model/createSourceAlphaOutput.ts +39 -0
  107. package/model/createSourceRegulation200Response.ts +36 -0
  108. package/model/createSourceRegulationV1Input.ts +73 -0
  109. package/model/createSourceRegulationV1Output.ts +41 -0
  110. package/model/createSourceV1Input.ts +68 -0
  111. package/model/createSourceV1Output.ts +39 -0
  112. package/model/createTrackingPlan200Response.ts +36 -0
  113. package/model/createTrackingPlanV1Input.ts +68 -0
  114. package/model/createTrackingPlanV1Output.ts +39 -0
  115. package/model/createTransformation200Response.ts +36 -0
  116. package/model/createTransformationBetaInput.ts +96 -0
  117. package/model/createTransformationBetaOutput.ts +39 -0
  118. package/model/createUserGroup200Response.ts +36 -0
  119. package/model/createUserGroupV1Input.ts +41 -0
  120. package/model/createUserGroupV1Output.ts +39 -0
  121. package/model/createValidationInWarehouse200Response.ts +36 -0
  122. package/model/createValidationInWarehouseV1Input.ts +50 -0
  123. package/model/createValidationInWarehouseV1Output.ts +48 -0
  124. package/model/createWarehouse200Response.ts +36 -0
  125. package/model/createWarehouseV1Input.ts +68 -0
  126. package/model/createWarehouseV1Output.ts +39 -0
  127. package/model/createWorkspaceRegulation200Response.ts +36 -0
  128. package/model/createWorkspaceRegulationV1Input.ts +74 -0
  129. package/model/createWorkspaceRegulationV1Output.ts +41 -0
  130. package/model/deleteDestination200Response.ts +36 -0
  131. package/model/deleteDestinationV1Output.ts +47 -0
  132. package/model/deleteFunction200Response.ts +36 -0
  133. package/model/deleteFunctionV1Output.ts +47 -0
  134. package/model/deleteInvites200Response.ts +36 -0
  135. package/model/deleteInvitesV1Output.ts +47 -0
  136. package/model/deleteLabel200Response.ts +36 -0
  137. package/model/deleteLabel200Response1.ts +36 -0
  138. package/model/deleteLabelAlphaOutput.ts +47 -0
  139. package/model/deleteLabelV1Output.ts +47 -0
  140. package/model/deleteRegulation200Response.ts +36 -0
  141. package/model/deleteRegulationV1Output.ts +47 -0
  142. package/model/deleteSource200Response.ts +36 -0
  143. package/model/deleteSource200Response1.ts +36 -0
  144. package/model/deleteSourceAlphaOutput.ts +47 -0
  145. package/model/deleteSourceV1Output.ts +47 -0
  146. package/model/deleteTrackingPlan200Response.ts +36 -0
  147. package/model/deleteTrackingPlanV1Output.ts +47 -0
  148. package/model/deleteTransformation200Response.ts +36 -0
  149. package/model/deleteTransformationBetaOutput.ts +47 -0
  150. package/model/deleteUserGroup200Response.ts +36 -0
  151. package/model/deleteUserGroupV1Output.ts +47 -0
  152. package/model/deleteUsers200Response.ts +36 -0
  153. package/model/deleteUsersV1Output.ts +47 -0
  154. package/model/deleteWarehouse200Response.ts +36 -0
  155. package/model/deleteWarehouseV1Output.ts +47 -0
  156. package/model/deliveryMetricsSummary.ts +60 -0
  157. package/model/deliveryMetricsSummaryBeta.ts +60 -0
  158. package/model/destination.ts +84 -0
  159. package/model/destination1.ts +84 -0
  160. package/model/destination2.ts +84 -0
  161. package/model/destinationFilterActionV1.ts +77 -0
  162. package/model/destinationFilterV1.ts +123 -0
  163. package/model/destinationMetadata.ts +203 -0
  164. package/model/destinationMetadataActionFieldV1.ts +163 -0
  165. package/model/destinationMetadataActionV1.ts +113 -0
  166. package/model/destinationMetadataComponentV1.ts +72 -0
  167. package/model/destinationMetadataFeaturesV1.ts +93 -0
  168. package/model/destinationMetadataMethodsV1.ts +77 -0
  169. package/model/destinationMetadataPlatformsV1.ts +59 -0
  170. package/model/destinationMetadataSubscriptionPresetV1.ts +68 -0
  171. package/model/destinationMetadataV1.ts +203 -0
  172. package/model/destinationStatusV1.ts +74 -0
  173. package/model/destinationSubscription.ts +104 -0
  174. package/model/destinationSubscriptionUpdateInput.ts +68 -0
  175. package/model/destinationV1.ts +84 -0
  176. package/model/disableEdgeFunctions200Response.ts +36 -0
  177. package/model/disableEdgeFunctionsAlphaOutput.ts +39 -0
  178. package/model/echo200Response.ts +36 -0
  179. package/model/echo200Response1.ts +36 -0
  180. package/model/echoAlphaOutput.ts +66 -0
  181. package/model/echoV1Output.ts +66 -0
  182. package/model/edgeFunctions.ts +86 -0
  183. package/model/edgeFunctions1.ts +86 -0
  184. package/model/edgeFunctionsAlpha.ts +86 -0
  185. package/model/eventSourceV1.ts +59 -0
  186. package/model/filter.ts +51 -0
  187. package/model/filter1.ts +123 -0
  188. package/model/filter2.ts +123 -0
  189. package/model/filter3.ts +123 -0
  190. package/model/function.ts +166 -0
  191. package/model/function1.ts +166 -0
  192. package/model/function2.ts +166 -0
  193. package/model/functionDeployment.ts +44 -0
  194. package/model/functionSettingV1.ts +92 -0
  195. package/model/functionV1.ts +166 -0
  196. package/model/generateUploadURLForEdgeFunctions200Response.ts +36 -0
  197. package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +41 -0
  198. package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +36 -0
  199. package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +48 -0
  200. package/model/getConnectionStateFromWarehouse200Response.ts +36 -0
  201. package/model/getConnectionStateFromWarehouseV1Output.ts +48 -0
  202. package/model/getDailyPerSourceAPICallsUsage200Response.ts +36 -0
  203. package/model/getDailyPerSourceAPICallsUsageV1Output.ts +49 -0
  204. package/model/getDailyPerSourceMTUUsage200Response.ts +36 -0
  205. package/model/getDailyPerSourceMTUUsageV1Output.ts +49 -0
  206. package/model/getDailyWorkspaceAPICallsUsage200Response.ts +36 -0
  207. package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +49 -0
  208. package/model/getDailyWorkspaceMTUUsage200Response.ts +36 -0
  209. package/model/getDailyWorkspaceMTUUsageV1Output.ts +49 -0
  210. package/model/getDestination200Response.ts +36 -0
  211. package/model/getDestinationMetadata200Response.ts +36 -0
  212. package/model/getDestinationMetadataV1Output.ts +39 -0
  213. package/model/getDestinationV1Output.ts +39 -0
  214. package/model/getDestinationsCatalog200Response.ts +36 -0
  215. package/model/getDestinationsCatalogV1Output.ts +49 -0
  216. package/model/getEventsVolumeFromWorkspace200Response.ts +36 -0
  217. package/model/getEventsVolumeFromWorkspaceV1Output.ts +49 -0
  218. package/model/getFilterInDestination200Response.ts +36 -0
  219. package/model/getFilterInDestinationV1Output.ts +39 -0
  220. package/model/getFunction200Response.ts +36 -0
  221. package/model/getFunctionV1Output.ts +39 -0
  222. package/model/getLatestFromEdgeFunctions200Response.ts +36 -0
  223. package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +39 -0
  224. package/model/getMessagingSubscriptionFailureResponse.ts +57 -0
  225. package/model/getMessagingSubscriptionSuccessResponse.ts +68 -0
  226. package/model/getRegulation200Response.ts +36 -0
  227. package/model/getRegulationV1Output.ts +39 -0
  228. package/model/getSource200Response.ts +36 -0
  229. package/model/getSource200Response1.ts +36 -0
  230. package/model/getSourceAlphaOutput.ts +39 -0
  231. package/model/getSourceMetadata200Response.ts +36 -0
  232. package/model/getSourceMetadataV1Output.ts +39 -0
  233. package/model/getSourceV1Output.ts +39 -0
  234. package/model/getSourcesCatalog200Response.ts +36 -0
  235. package/model/getSourcesCatalogV1Output.ts +49 -0
  236. package/model/getSpace200Response.ts +36 -0
  237. package/model/getSpaceAlphaOutput.ts +39 -0
  238. package/model/getSubscriptionFromDestination200Response.ts +36 -0
  239. package/model/getSubscriptionFromDestinationAlphaOutput.ts +39 -0
  240. package/model/getSubscriptionRequest.ts +54 -0
  241. package/model/getTrackingPlan200Response.ts +36 -0
  242. package/model/getTrackingPlanV1Output.ts +39 -0
  243. package/model/getTransformation200Response.ts +36 -0
  244. package/model/getTransformationBetaOutput.ts +39 -0
  245. package/model/getUser200Response.ts +36 -0
  246. package/model/getUserGroup200Response.ts +36 -0
  247. package/model/getUserGroupV1Output.ts +39 -0
  248. package/model/getUserV1Output.ts +39 -0
  249. package/model/getWarehouse200Response.ts +36 -0
  250. package/model/getWarehouseMetadata200Response.ts +36 -0
  251. package/model/getWarehouseMetadataV1Output.ts +39 -0
  252. package/model/getWarehouseV1Output.ts +39 -0
  253. package/model/getWarehousesCatalog200Response.ts +36 -0
  254. package/model/getWarehousesCatalogV1Output.ts +49 -0
  255. package/model/getWorkspace200Response.ts +36 -0
  256. package/model/getWorkspaceV1Output.ts +39 -0
  257. package/model/group.ts +67 -0
  258. package/model/groupSourceSettingsV1.ts +64 -0
  259. package/model/identify.ts +67 -0
  260. package/model/identifySourceSettingsV1.ts +64 -0
  261. package/model/input.ts +68 -0
  262. package/model/integrationOptionBeta.ts +86 -0
  263. package/model/invitePermissionV1.ts +61 -0
  264. package/model/inviteV1.ts +51 -0
  265. package/model/label.ts +59 -0
  266. package/model/label1.ts +59 -0
  267. package/model/label2.ts +59 -0
  268. package/model/labelAlpha.ts +59 -0
  269. package/model/labelV1.ts +59 -0
  270. package/model/listAuditEvents200Response.ts +36 -0
  271. package/model/listAuditEventsV1Output.ts +49 -0
  272. package/model/listConnectedDestinationsFromSource200Response.ts +36 -0
  273. package/model/listConnectedDestinationsFromSource200Response1.ts +36 -0
  274. package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +49 -0
  275. package/model/listConnectedDestinationsFromSourceV1Output.ts +49 -0
  276. package/model/listConnectedSourcesFromWarehouse200Response.ts +36 -0
  277. package/model/listConnectedSourcesFromWarehouseV1Output.ts +49 -0
  278. package/model/listConnectedWarehousesFromSource200Response.ts +36 -0
  279. package/model/listConnectedWarehousesFromSource200Response1.ts +36 -0
  280. package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +49 -0
  281. package/model/listConnectedWarehousesFromSourceV1Output.ts +49 -0
  282. package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +36 -0
  283. package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +39 -0
  284. package/model/listDestinations200Response.ts +36 -0
  285. package/model/listDestinationsV1Output.ts +49 -0
  286. package/model/listFiltersFromDestination200Response.ts +36 -0
  287. package/model/listFiltersFromDestinationV1Output.ts +49 -0
  288. package/model/listFunctionItemV1.ts +111 -0
  289. package/model/listFunctions200Response.ts +36 -0
  290. package/model/listFunctionsV1Output.ts +49 -0
  291. package/model/listInvites200Response.ts +36 -0
  292. package/model/listInvitesFromUserGroup200Response.ts +36 -0
  293. package/model/listInvitesFromUserGroupV1Output.ts +48 -0
  294. package/model/listInvitesV1Output.ts +48 -0
  295. package/model/listLabels200Response.ts +36 -0
  296. package/model/listLabels200Response1.ts +36 -0
  297. package/model/listLabelsAlphaOutput.ts +42 -0
  298. package/model/listLabelsV1Output.ts +42 -0
  299. package/model/listRegulationsFromSource200Response.ts +36 -0
  300. package/model/listRegulationsFromSourceV1Output.ts +42 -0
  301. package/model/listRoles200Response.ts +36 -0
  302. package/model/listRolesV1Output.ts +49 -0
  303. package/model/listRulesFromTrackingPlan200Response.ts +36 -0
  304. package/model/listRulesFromTrackingPlanV1Output.ts +49 -0
  305. package/model/listSchemaSettingsInSource200Response.ts +36 -0
  306. package/model/listSchemaSettingsInSourceV1Output.ts +48 -0
  307. package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +36 -0
  308. package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +49 -0
  309. package/model/listSources200Response.ts +36 -0
  310. package/model/listSources200Response1.ts +36 -0
  311. package/model/listSourcesAlphaOutput.ts +49 -0
  312. package/model/listSourcesFromTrackingPlan200Response.ts +36 -0
  313. package/model/listSourcesFromTrackingPlanV1Output.ts +49 -0
  314. package/model/listSourcesV1Output.ts +49 -0
  315. package/model/listSubscriptionsFromDestination200Response.ts +36 -0
  316. package/model/listSubscriptionsFromDestinationAlphaOutput.ts +49 -0
  317. package/model/listSuppressions200Response.ts +36 -0
  318. package/model/listSuppressionsV1Output.ts +49 -0
  319. package/model/listSyncsFromWarehouse200Response.ts +36 -0
  320. package/model/listSyncsFromWarehouseAndSource200Response.ts +36 -0
  321. package/model/listSyncsFromWarehouseAndSourceV1Output.ts +49 -0
  322. package/model/listSyncsFromWarehouseV1Output.ts +49 -0
  323. package/model/listTrackingPlans200Response.ts +36 -0
  324. package/model/listTrackingPlansV1Output.ts +49 -0
  325. package/model/listTransformations200Response.ts +36 -0
  326. package/model/listTransformationsBetaOutput.ts +49 -0
  327. package/model/listUserGroups200Response.ts +36 -0
  328. package/model/listUserGroupsFromUser200Response.ts +36 -0
  329. package/model/listUserGroupsFromUserV1Output.ts +49 -0
  330. package/model/listUserGroupsV1Output.ts +49 -0
  331. package/model/listUsers200Response.ts +36 -0
  332. package/model/listUsersFromUserGroup200Response.ts +36 -0
  333. package/model/listUsersFromUserGroupV1Output.ts +49 -0
  334. package/model/listUsersV1Output.ts +49 -0
  335. package/model/listWarehouses200Response.ts +36 -0
  336. package/model/listWarehousesV1Output.ts +49 -0
  337. package/model/listWorkspaceRegulations200Response.ts +36 -0
  338. package/model/listWorkspaceRegulationsV1Output.ts +49 -0
  339. package/model/logos.ts +59 -0
  340. package/model/logos1.ts +59 -0
  341. package/model/logos2.ts +59 -0
  342. package/model/logosBeta.ts +59 -0
  343. package/model/messageSubscriptionResponse.ts +78 -0
  344. package/model/messageSubscriptionResponseError.ts +47 -0
  345. package/model/messagesSubscriptionRequest.ts +68 -0
  346. package/model/metadata.ts +203 -0
  347. package/model/metadata1.ts +103 -0
  348. package/model/metadata2.ts +85 -0
  349. package/model/metricBeta.ts +60 -0
  350. package/model/minimalUserGroupV1.ts +50 -0
  351. package/model/minimalUserV1.ts +59 -0
  352. package/model/models.ts +1838 -0
  353. package/model/mtuSnapshotV1.ts +95 -0
  354. package/model/pagination.ts +68 -0
  355. package/model/paginationInput.ts +50 -0
  356. package/model/paginationOutput.ts +68 -0
  357. package/model/permissionInputV1.ts +51 -0
  358. package/model/permissionResourceV1.ts +70 -0
  359. package/model/permissionV1.ts +70 -0
  360. package/model/previewDestinationFilter200Response.ts +36 -0
  361. package/model/previewDestinationFilterV1.ts +51 -0
  362. package/model/previewDestinationFilterV1Input.ts +48 -0
  363. package/model/previewDestinationFilterV1Output.ts +50 -0
  364. package/model/propertyRenameBeta.ts +47 -0
  365. package/model/regulation.ts +99 -0
  366. package/model/regulationListEntryV1.ts +77 -0
  367. package/model/removeFilterFromDestination200Response.ts +36 -0
  368. package/model/removeFilterFromDestinationV1Output.ts +47 -0
  369. package/model/removeRuleV1.ts +61 -0
  370. package/model/removeRulesFromTrackingPlan200Response.ts +36 -0
  371. package/model/removeRulesFromTrackingPlanV1Output.ts +47 -0
  372. package/model/removeSourceConnectionFromWarehouse200Response.ts +36 -0
  373. package/model/removeSourceConnectionFromWarehouseV1Output.ts +47 -0
  374. package/model/removeSourceFromTrackingPlan200Response.ts +36 -0
  375. package/model/removeSourceFromTrackingPlanV1Output.ts +47 -0
  376. package/model/removeSubscriptionFromDestination200Response.ts +36 -0
  377. package/model/removeSubscriptionFromDestinationAlphaOutput.ts +47 -0
  378. package/model/removeUsersFromUserGroup200Response.ts +36 -0
  379. package/model/removeUsersFromUserGroupV1Output.ts +47 -0
  380. package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +36 -0
  381. package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +48 -0
  382. package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +48 -0
  383. package/model/replaceLabelsInSource200Response.ts +36 -0
  384. package/model/replaceLabelsInSource200Response1.ts +36 -0
  385. package/model/replaceLabelsInSourceAlphaInput.ts +42 -0
  386. package/model/replaceLabelsInSourceAlphaOutput.ts +42 -0
  387. package/model/replaceLabelsInSourceV1Input.ts +42 -0
  388. package/model/replaceLabelsInSourceV1Output.ts +42 -0
  389. package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +36 -0
  390. package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +42 -0
  391. package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +58 -0
  392. package/model/replacePermissionsForUser200Response.ts +36 -0
  393. package/model/replacePermissionsForUserGroup200Response.ts +36 -0
  394. package/model/replacePermissionsForUserGroupV1Input.ts +42 -0
  395. package/model/replacePermissionsForUserGroupV1Output.ts +42 -0
  396. package/model/replacePermissionsForUserV1Input.ts +42 -0
  397. package/model/replacePermissionsForUserV1Output.ts +42 -0
  398. package/model/replaceRulesInTrackingPlan200Response.ts +36 -0
  399. package/model/replaceRulesInTrackingPlanV1Input.ts +42 -0
  400. package/model/replaceRulesInTrackingPlanV1Output.ts +47 -0
  401. package/model/replaceUsersInUserGroup200Response.ts +36 -0
  402. package/model/replaceUsersInUserGroupV1Input.ts +41 -0
  403. package/model/replaceUsersInUserGroupV1Output.ts +39 -0
  404. package/model/requestError.ts +77 -0
  405. package/model/requestErrorEnvelope.ts +39 -0
  406. package/model/resourceV1.ts +60 -0
  407. package/model/roleV1.ts +59 -0
  408. package/model/ruleV1.ts +106 -0
  409. package/model/schedule.ts +51 -0
  410. package/model/schedule1.ts +51 -0
  411. package/model/schedule2.ts +51 -0
  412. package/model/settings.ts +71 -0
  413. package/model/settings1.ts +71 -0
  414. package/model/source.ts +59 -0
  415. package/model/source1.ts +112 -0
  416. package/model/source2.ts +112 -0
  417. package/model/source3.ts +112 -0
  418. package/model/source4.ts +112 -0
  419. package/model/source5.ts +112 -0
  420. package/model/source6.ts +112 -0
  421. package/model/sourceAPICallSnapshotV1.ts +59 -0
  422. package/model/sourceAlpha.ts +112 -0
  423. package/model/sourceEventVolumeDatapointV1.ts +50 -0
  424. package/model/sourceEventVolumeV1.ts +76 -0
  425. package/model/sourceMetadata.ts +103 -0
  426. package/model/sourceMetadataV1.ts +103 -0
  427. package/model/sourceSettingsOutputV1.ts +71 -0
  428. package/model/sourceV1.ts +112 -0
  429. package/model/space.ts +50 -0
  430. package/model/streamStatusV1.ts +45 -0
  431. package/model/subscription.ts +104 -0
  432. package/model/supportedFeatures.ts +93 -0
  433. package/model/supportedMethods.ts +77 -0
  434. package/model/supportedPlatforms.ts +59 -0
  435. package/model/suppressedInner.ts +41 -0
  436. package/model/syncNoticeV1.ts +59 -0
  437. package/model/syncV1.ts +105 -0
  438. package/model/track.ts +85 -0
  439. package/model/trackSourceSettingsV1.ts +82 -0
  440. package/model/trackingPlan.ts +104 -0
  441. package/model/trackingPlan1.ts +104 -0
  442. package/model/trackingPlanV1.ts +104 -0
  443. package/model/transformation.ts +105 -0
  444. package/model/transformation1.ts +105 -0
  445. package/model/transformation2.ts +105 -0
  446. package/model/transformationBeta.ts +105 -0
  447. package/model/updateDestination200Response.ts +36 -0
  448. package/model/updateDestinationV1Input.ts +59 -0
  449. package/model/updateDestinationV1Output.ts +39 -0
  450. package/model/updateFilterForDestination200Response.ts +36 -0
  451. package/model/updateFilterForDestinationV1Input.ts +78 -0
  452. package/model/updateFilterForDestinationV1Output.ts +39 -0
  453. package/model/updateFunction200Response.ts +36 -0
  454. package/model/updateFunctionV1Input.ts +78 -0
  455. package/model/updateFunctionV1Output.ts +39 -0
  456. package/model/updateRulesInTrackingPlan200Response.ts +36 -0
  457. package/model/updateRulesInTrackingPlanV1Input.ts +42 -0
  458. package/model/updateRulesInTrackingPlanV1Output.ts +47 -0
  459. package/model/updateSchemaSettingsInSource200Response.ts +36 -0
  460. package/model/updateSchemaSettingsInSourceV1Input.ts +71 -0
  461. package/model/updateSchemaSettingsInSourceV1Output.ts +48 -0
  462. package/model/updateSelectiveSyncForWarehouse200Response.ts +36 -0
  463. package/model/updateSelectiveSyncForWarehouseV1Input.ts +42 -0
  464. package/model/updateSelectiveSyncForWarehouseV1Output.ts +57 -0
  465. package/model/updateSource200Response.ts +36 -0
  466. package/model/updateSource200Response1.ts +36 -0
  467. package/model/updateSourceAlphaInput.ts +68 -0
  468. package/model/updateSourceAlphaOutput.ts +39 -0
  469. package/model/updateSourceV1Input.ts +68 -0
  470. package/model/updateSourceV1Output.ts +39 -0
  471. package/model/updateSubscriptionForDestination200Response.ts +36 -0
  472. package/model/updateSubscriptionForDestinationAlphaInput.ts +39 -0
  473. package/model/updateSubscriptionForDestinationAlphaOutput.ts +39 -0
  474. package/model/updateTrackingPlan200Response.ts +36 -0
  475. package/model/updateTrackingPlanV1Input.ts +50 -0
  476. package/model/updateTrackingPlanV1Output.ts +47 -0
  477. package/model/updateTransformation200Response.ts +36 -0
  478. package/model/updateTransformationBetaInput.ts +96 -0
  479. package/model/updateTransformationBetaOutput.ts +39 -0
  480. package/model/updateUserGroup200Response.ts +36 -0
  481. package/model/updateUserGroupV1Input.ts +41 -0
  482. package/model/updateUserGroupV1Output.ts +39 -0
  483. package/model/updateWarehouse200Response.ts +36 -0
  484. package/model/updateWarehouseV1Input.ts +59 -0
  485. package/model/updateWarehouseV1Output.ts +39 -0
  486. package/model/upsertRuleV1.ts +112 -0
  487. package/model/user.ts +69 -0
  488. package/model/userGroup.ts +69 -0
  489. package/model/userGroup1.ts +69 -0
  490. package/model/userGroup2.ts +69 -0
  491. package/model/userGroup3.ts +69 -0
  492. package/model/userGroupV1.ts +69 -0
  493. package/model/userV1.ts +69 -0
  494. package/model/usersPerSourceSnapshotV1.ts +104 -0
  495. package/model/warehouse.ts +75 -0
  496. package/model/warehouse1.ts +75 -0
  497. package/model/warehouse2.ts +75 -0
  498. package/model/warehouseAdvancedSyncV1.ts +50 -0
  499. package/model/warehouseMetadata.ts +85 -0
  500. package/model/warehouseMetadataV1.ts +85 -0
  501. package/model/warehouseSelectiveSyncItemV1.ts +68 -0
  502. package/model/warehouseSyncOverrideV1.ts +68 -0
  503. package/model/warehouseV1.ts +75 -0
  504. package/model/workspace.ts +59 -0
  505. package/model/workspaceV1.ts +59 -0
  506. package/package.json +1 -2
  507. package/tests/__snapshots__/smoke.test.ts.snap +889 -0
  508. package/tests/smoke.test.ts +267 -0
  509. package/tsconfig.json +20 -0
@@ -0,0 +1,889 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Smoke tests parses errors correctly 1`] = `
4
+ Object {
5
+ "_consuming": false,
6
+ "_dumped": false,
7
+ "_events": Object {
8
+ "end": [Function],
9
+ },
10
+ "_eventsCount": 1,
11
+ "_maxListeners": undefined,
12
+ "_readableState": ReadableState {
13
+ "autoDestroy": true,
14
+ "awaitDrainWriters": null,
15
+ "buffer": BufferList {
16
+ "head": null,
17
+ "length": 0,
18
+ "tail": null,
19
+ },
20
+ "closeEmitted": false,
21
+ "closed": false,
22
+ "constructed": true,
23
+ "dataEmitted": false,
24
+ "decoder": null,
25
+ "defaultEncoding": "utf8",
26
+ "destroyed": false,
27
+ "emitClose": true,
28
+ "emittedReadable": false,
29
+ "encoding": null,
30
+ "endEmitted": false,
31
+ "ended": false,
32
+ "errorEmitted": false,
33
+ "errored": null,
34
+ "flowing": null,
35
+ "highWaterMark": 16384,
36
+ "length": 0,
37
+ "multiAwaitDrain": false,
38
+ "needReadable": false,
39
+ "objectMode": false,
40
+ "pipes": Array [],
41
+ "readableListening": false,
42
+ "reading": false,
43
+ "readingMore": true,
44
+ "resumeScheduled": false,
45
+ "sync": true,
46
+ Symbol(kPaused): null,
47
+ },
48
+ "aborted": false,
49
+ "client": Any<Object>,
50
+ "complete": false,
51
+ "httpVersion": "1.1",
52
+ "httpVersionMajor": 1,
53
+ "httpVersionMinor": 1,
54
+ "method": "DELETE",
55
+ "rawHeaders": Array [
56
+ "Accept",
57
+ "application/json",
58
+ "Authorization",
59
+ "Bearer 1ba60ccaae1c1a5230",
60
+ "host",
61
+ "localhost:52338",
62
+ "content-length",
63
+ "0",
64
+ "Connection",
65
+ "close",
66
+ ],
67
+ "rawTrailers": Array [],
68
+ "socket": Any<Object>,
69
+ "statusCode": null,
70
+ "statusMessage": null,
71
+ "upgrade": false,
72
+ "url": "/sources/404",
73
+ Symbol(kCapture): false,
74
+ Symbol(kHeaders): Object {
75
+ "accept": "application/json",
76
+ "authorization": "Bearer 1ba60ccaae1c1a5230",
77
+ "connection": "close",
78
+ "content-length": "0",
79
+ "host": "localhost:52338",
80
+ },
81
+ Symbol(kHeadersCount): 10,
82
+ Symbol(kTrailers): null,
83
+ Symbol(kTrailersCount): 0,
84
+ Symbol(RequestTimeout): undefined,
85
+ }
86
+ `;
87
+
88
+ exports[`Smoke tests parses errors correctly 2`] = `[HttpError: HTTP request failed]`;
89
+
90
+ exports[`Smoke tests sends correct request and parses response for create 1`] = `
91
+ Object {
92
+ "_consuming": false,
93
+ "_dumped": false,
94
+ "_events": Object {
95
+ "end": [Function],
96
+ },
97
+ "_eventsCount": 1,
98
+ "_maxListeners": undefined,
99
+ "_readableState": ReadableState {
100
+ "autoDestroy": true,
101
+ "awaitDrainWriters": null,
102
+ "buffer": BufferList {
103
+ "head": null,
104
+ "length": 0,
105
+ "tail": null,
106
+ },
107
+ "closeEmitted": false,
108
+ "closed": false,
109
+ "constructed": true,
110
+ "dataEmitted": false,
111
+ "decoder": null,
112
+ "defaultEncoding": "utf8",
113
+ "destroyed": false,
114
+ "emitClose": true,
115
+ "emittedReadable": false,
116
+ "encoding": null,
117
+ "endEmitted": false,
118
+ "ended": false,
119
+ "errorEmitted": false,
120
+ "errored": null,
121
+ "flowing": null,
122
+ "highWaterMark": 16384,
123
+ "length": 0,
124
+ "multiAwaitDrain": false,
125
+ "needReadable": false,
126
+ "objectMode": false,
127
+ "pipes": Array [],
128
+ "readableListening": false,
129
+ "reading": false,
130
+ "readingMore": true,
131
+ "resumeScheduled": false,
132
+ "sync": true,
133
+ Symbol(kPaused): null,
134
+ },
135
+ "aborted": false,
136
+ "client": Any<Object>,
137
+ "complete": false,
138
+ "httpVersion": "1.1",
139
+ "httpVersionMajor": 1,
140
+ "httpVersionMinor": 1,
141
+ "method": "POST",
142
+ "rawHeaders": Array [
143
+ "Accept",
144
+ "application/vnd.segment.v1+json",
145
+ "Authorization",
146
+ "Bearer 1ba60ccaae1c1a5230",
147
+ "host",
148
+ "localhost:52338",
149
+ "content-type",
150
+ "application/json",
151
+ "content-length",
152
+ "66",
153
+ "Connection",
154
+ "close",
155
+ ],
156
+ "rawTrailers": Array [],
157
+ "socket": Any<Object>,
158
+ "statusCode": null,
159
+ "statusMessage": null,
160
+ "upgrade": false,
161
+ "url": "/sources",
162
+ Symbol(kCapture): false,
163
+ Symbol(kHeaders): Object {
164
+ "accept": "application/vnd.segment.v1+json",
165
+ "authorization": "Bearer 1ba60ccaae1c1a5230",
166
+ "connection": "close",
167
+ "content-length": "66",
168
+ "content-type": "application/json",
169
+ "host": "localhost:52338",
170
+ },
171
+ Symbol(kHeadersCount): 12,
172
+ Symbol(kTrailers): null,
173
+ Symbol(kTrailersCount): 0,
174
+ Symbol(RequestTimeout): undefined,
175
+ }
176
+ `;
177
+
178
+ exports[`Smoke tests sends correct request and parses response for create 2`] = `
179
+ Object {
180
+ "body": CreateSource200Response1 {
181
+ "data": CreateSourceV1Output {
182
+ "source": Source5 {
183
+ "enabled": true,
184
+ "id": "source-id",
185
+ "labels": Array [],
186
+ "metadata": Metadata1 {
187
+ "categories": Array [
188
+ "Website",
189
+ ],
190
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
191
+ "id": "IqDTy1TpoU",
192
+ "isCloudEventSource": false,
193
+ "logos": Logos1 {
194
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
195
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
196
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
197
+ },
198
+ "name": "Javascript",
199
+ "options": Array [],
200
+ "slug": "javascript",
201
+ },
202
+ "name": "my-test-source",
203
+ "settings": Object {},
204
+ "slug": "my-test-source",
205
+ "workspaceId": "workspace-id",
206
+ "writeKeys": Array [
207
+ "write-key",
208
+ ],
209
+ },
210
+ },
211
+ },
212
+ "response": Object {
213
+ "body": Object {
214
+ "data": Object {
215
+ "source": Object {
216
+ "enabled": true,
217
+ "id": "source-id",
218
+ "labels": Array [],
219
+ "metadata": Object {
220
+ "categories": Array [
221
+ "Website",
222
+ ],
223
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
224
+ "id": "IqDTy1TpoU",
225
+ "isCloudEventSource": false,
226
+ "logos": Object {
227
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
228
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
229
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
230
+ },
231
+ "name": "Javascript",
232
+ "options": Array [],
233
+ "slug": "javascript",
234
+ },
235
+ "name": "my-test-source",
236
+ "settings": Object {},
237
+ "slug": "my-test-source",
238
+ "workspaceId": "workspace-id",
239
+ "writeKeys": Array [
240
+ "write-key",
241
+ ],
242
+ },
243
+ },
244
+ },
245
+ "headers": Object {
246
+ "connection": "close",
247
+ "content-type": "application/json",
248
+ "date": Any<String>,
249
+ "transfer-encoding": "chunked",
250
+ },
251
+ "request": Object {
252
+ "headers": undefined,
253
+ "method": undefined,
254
+ "uri": undefined,
255
+ },
256
+ "statusCode": 200,
257
+ },
258
+ }
259
+ `;
260
+
261
+ exports[`Smoke tests sends correct request and parses response for delete 1`] = `
262
+ Object {
263
+ "_consuming": false,
264
+ "_dumped": false,
265
+ "_events": Object {
266
+ "end": [Function],
267
+ },
268
+ "_eventsCount": 1,
269
+ "_maxListeners": undefined,
270
+ "_readableState": ReadableState {
271
+ "autoDestroy": true,
272
+ "awaitDrainWriters": null,
273
+ "buffer": BufferList {
274
+ "head": null,
275
+ "length": 0,
276
+ "tail": null,
277
+ },
278
+ "closeEmitted": false,
279
+ "closed": false,
280
+ "constructed": true,
281
+ "dataEmitted": false,
282
+ "decoder": null,
283
+ "defaultEncoding": "utf8",
284
+ "destroyed": false,
285
+ "emitClose": true,
286
+ "emittedReadable": false,
287
+ "encoding": null,
288
+ "endEmitted": false,
289
+ "ended": false,
290
+ "errorEmitted": false,
291
+ "errored": null,
292
+ "flowing": null,
293
+ "highWaterMark": 16384,
294
+ "length": 0,
295
+ "multiAwaitDrain": false,
296
+ "needReadable": false,
297
+ "objectMode": false,
298
+ "pipes": Array [],
299
+ "readableListening": false,
300
+ "reading": false,
301
+ "readingMore": true,
302
+ "resumeScheduled": false,
303
+ "sync": true,
304
+ Symbol(kPaused): null,
305
+ },
306
+ "aborted": false,
307
+ "client": Any<Object>,
308
+ "complete": false,
309
+ "httpVersion": "1.1",
310
+ "httpVersionMajor": 1,
311
+ "httpVersionMinor": 1,
312
+ "method": "DELETE",
313
+ "rawHeaders": Array [
314
+ "Accept",
315
+ "application/json",
316
+ "Authorization",
317
+ "Bearer 1ba60ccaae1c1a5230",
318
+ "host",
319
+ "localhost:52338",
320
+ "content-length",
321
+ "0",
322
+ "Connection",
323
+ "close",
324
+ ],
325
+ "rawTrailers": Array [],
326
+ "socket": Any<Object>,
327
+ "statusCode": null,
328
+ "statusMessage": null,
329
+ "upgrade": false,
330
+ "url": "/sources/my-source",
331
+ Symbol(kCapture): false,
332
+ Symbol(kHeaders): Object {
333
+ "accept": "application/json",
334
+ "authorization": "Bearer 1ba60ccaae1c1a5230",
335
+ "connection": "close",
336
+ "content-length": "0",
337
+ "host": "localhost:52338",
338
+ },
339
+ Symbol(kHeadersCount): 10,
340
+ Symbol(kTrailers): null,
341
+ Symbol(kTrailersCount): 0,
342
+ Symbol(RequestTimeout): undefined,
343
+ }
344
+ `;
345
+
346
+ exports[`Smoke tests sends correct request and parses response for delete 2`] = `
347
+ Object {
348
+ "body": DeleteSource200Response1 {
349
+ "data": DeleteSourceV1Output {
350
+ "status": "SUCCESS",
351
+ },
352
+ },
353
+ "response": Object {
354
+ "body": Object {
355
+ "data": Object {
356
+ "status": "SUCCESS",
357
+ },
358
+ },
359
+ "headers": Object {
360
+ "connection": "close",
361
+ "content-type": "application/json",
362
+ "date": Any<String>,
363
+ "transfer-encoding": "chunked",
364
+ },
365
+ "request": Object {
366
+ "headers": undefined,
367
+ "method": undefined,
368
+ "uri": undefined,
369
+ },
370
+ "statusCode": 200,
371
+ },
372
+ }
373
+ `;
374
+
375
+ exports[`Smoke tests sends correct request and parses response for list 1`] = `
376
+ Object {
377
+ "_consuming": false,
378
+ "_dumped": false,
379
+ "_events": Object {
380
+ "end": [Function],
381
+ },
382
+ "_eventsCount": 1,
383
+ "_maxListeners": undefined,
384
+ "_readableState": ReadableState {
385
+ "autoDestroy": true,
386
+ "awaitDrainWriters": null,
387
+ "buffer": BufferList {
388
+ "head": null,
389
+ "length": 0,
390
+ "tail": null,
391
+ },
392
+ "closeEmitted": false,
393
+ "closed": false,
394
+ "constructed": true,
395
+ "dataEmitted": false,
396
+ "decoder": null,
397
+ "defaultEncoding": "utf8",
398
+ "destroyed": false,
399
+ "emitClose": true,
400
+ "emittedReadable": false,
401
+ "encoding": null,
402
+ "endEmitted": false,
403
+ "ended": false,
404
+ "errorEmitted": false,
405
+ "errored": null,
406
+ "flowing": null,
407
+ "highWaterMark": 16384,
408
+ "length": 0,
409
+ "multiAwaitDrain": false,
410
+ "needReadable": false,
411
+ "objectMode": false,
412
+ "pipes": Array [],
413
+ "readableListening": false,
414
+ "reading": false,
415
+ "readingMore": true,
416
+ "resumeScheduled": false,
417
+ "sync": true,
418
+ Symbol(kPaused): null,
419
+ },
420
+ "aborted": false,
421
+ "client": Any<Object>,
422
+ "complete": false,
423
+ "httpVersion": "1.1",
424
+ "httpVersionMajor": 1,
425
+ "httpVersionMinor": 1,
426
+ "method": "GET",
427
+ "rawHeaders": Array [
428
+ "Accept",
429
+ "application/json",
430
+ "Authorization",
431
+ "Bearer 1ba60ccaae1c1a5230",
432
+ "host",
433
+ "localhost:52338",
434
+ "Connection",
435
+ "close",
436
+ ],
437
+ "rawTrailers": Array [],
438
+ "socket": Any<Object>,
439
+ "statusCode": null,
440
+ "statusMessage": null,
441
+ "upgrade": false,
442
+ "url": "/sources?pagination%5Bcount%5D=1",
443
+ Symbol(kCapture): false,
444
+ Symbol(kHeaders): Object {
445
+ "accept": "application/json",
446
+ "authorization": "Bearer 1ba60ccaae1c1a5230",
447
+ "connection": "close",
448
+ "host": "localhost:52338",
449
+ },
450
+ Symbol(kHeadersCount): 8,
451
+ Symbol(kTrailers): null,
452
+ Symbol(kTrailersCount): 0,
453
+ Symbol(RequestTimeout): undefined,
454
+ }
455
+ `;
456
+
457
+ exports[`Smoke tests sends correct request and parses response for list 2`] = `
458
+ Object {
459
+ "body": ListSources200Response1 {
460
+ "data": ListSourcesV1Output {
461
+ "pagination": Pagination {
462
+ "current": "MA==",
463
+ "next": "MQ==",
464
+ "previous": undefined,
465
+ "totalEntries": 63,
466
+ },
467
+ "sources": Array [
468
+ SourceV1 {
469
+ "enabled": true,
470
+ "id": "source-id",
471
+ "labels": Array [],
472
+ "metadata": Metadata1 {
473
+ "categories": Array [
474
+ "Website",
475
+ ],
476
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
477
+ "id": "IqDTy1TpoU",
478
+ "isCloudEventSource": false,
479
+ "logos": Logos1 {
480
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
481
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
482
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
483
+ },
484
+ "name": "Javascript",
485
+ "options": Array [],
486
+ "slug": "javascript",
487
+ },
488
+ "name": "my-test-source",
489
+ "settings": Object {},
490
+ "slug": "my-test-source",
491
+ "workspaceId": "workspace-id",
492
+ "writeKeys": Array [
493
+ "write-key",
494
+ ],
495
+ },
496
+ ],
497
+ },
498
+ },
499
+ "response": Object {
500
+ "body": Object {
501
+ "data": Object {
502
+ "pagination": Object {
503
+ "current": "MA==",
504
+ "next": "MQ==",
505
+ "totalEntries": 63,
506
+ },
507
+ "sources": Array [
508
+ Object {
509
+ "enabled": true,
510
+ "id": "source-id",
511
+ "labels": Array [],
512
+ "metadata": Object {
513
+ "categories": Array [
514
+ "Website",
515
+ ],
516
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
517
+ "id": "IqDTy1TpoU",
518
+ "isCloudEventSource": false,
519
+ "logos": Object {
520
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
521
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
522
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
523
+ },
524
+ "name": "Javascript",
525
+ "options": Array [],
526
+ "slug": "javascript",
527
+ },
528
+ "name": "my-test-source",
529
+ "settings": Object {},
530
+ "slug": "my-test-source",
531
+ "workspaceId": "workspace-id",
532
+ "writeKeys": Array [
533
+ "write-key",
534
+ ],
535
+ },
536
+ ],
537
+ },
538
+ },
539
+ "headers": Object {
540
+ "connection": "close",
541
+ "content-type": "application/json",
542
+ "date": Any<String>,
543
+ "transfer-encoding": "chunked",
544
+ },
545
+ "request": Object {
546
+ "headers": undefined,
547
+ "method": undefined,
548
+ "uri": undefined,
549
+ },
550
+ "statusCode": 200,
551
+ },
552
+ }
553
+ `;
554
+
555
+ exports[`Smoke tests sends correct request and parses response for read 1`] = `
556
+ Object {
557
+ "_consuming": false,
558
+ "_dumped": false,
559
+ "_events": Object {
560
+ "end": [Function],
561
+ },
562
+ "_eventsCount": 1,
563
+ "_maxListeners": undefined,
564
+ "_readableState": ReadableState {
565
+ "autoDestroy": true,
566
+ "awaitDrainWriters": null,
567
+ "buffer": BufferList {
568
+ "head": null,
569
+ "length": 0,
570
+ "tail": null,
571
+ },
572
+ "closeEmitted": false,
573
+ "closed": false,
574
+ "constructed": true,
575
+ "dataEmitted": false,
576
+ "decoder": null,
577
+ "defaultEncoding": "utf8",
578
+ "destroyed": false,
579
+ "emitClose": true,
580
+ "emittedReadable": false,
581
+ "encoding": null,
582
+ "endEmitted": false,
583
+ "ended": false,
584
+ "errorEmitted": false,
585
+ "errored": null,
586
+ "flowing": null,
587
+ "highWaterMark": 16384,
588
+ "length": 0,
589
+ "multiAwaitDrain": false,
590
+ "needReadable": false,
591
+ "objectMode": false,
592
+ "pipes": Array [],
593
+ "readableListening": false,
594
+ "reading": false,
595
+ "readingMore": true,
596
+ "resumeScheduled": false,
597
+ "sync": true,
598
+ Symbol(kPaused): null,
599
+ },
600
+ "aborted": false,
601
+ "client": Any<Object>,
602
+ "complete": false,
603
+ "httpVersion": "1.1",
604
+ "httpVersionMajor": 1,
605
+ "httpVersionMinor": 1,
606
+ "method": "GET",
607
+ "rawHeaders": Array [
608
+ "Accept",
609
+ "application/json",
610
+ "Authorization",
611
+ "Bearer 1ba60ccaae1c1a5230",
612
+ "host",
613
+ "localhost:52338",
614
+ "Connection",
615
+ "close",
616
+ ],
617
+ "rawTrailers": Array [],
618
+ "socket": Any<Object>,
619
+ "statusCode": null,
620
+ "statusMessage": null,
621
+ "upgrade": false,
622
+ "url": "/sources/source-id",
623
+ Symbol(kCapture): false,
624
+ Symbol(kHeaders): Object {
625
+ "accept": "application/json",
626
+ "authorization": "Bearer 1ba60ccaae1c1a5230",
627
+ "connection": "close",
628
+ "host": "localhost:52338",
629
+ },
630
+ Symbol(kHeadersCount): 8,
631
+ Symbol(kTrailers): null,
632
+ Symbol(kTrailersCount): 0,
633
+ Symbol(RequestTimeout): undefined,
634
+ }
635
+ `;
636
+
637
+ exports[`Smoke tests sends correct request and parses response for read 2`] = `
638
+ Object {
639
+ "body": GetSource200Response1 {
640
+ "data": GetSourceV1Output {
641
+ "source": Source4 {
642
+ "enabled": true,
643
+ "id": "source-id",
644
+ "labels": Array [],
645
+ "metadata": Metadata1 {
646
+ "categories": Array [
647
+ "Website",
648
+ ],
649
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
650
+ "id": "IqDTy1TpoU",
651
+ "isCloudEventSource": false,
652
+ "logos": Logos1 {
653
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
654
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
655
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
656
+ },
657
+ "name": "Javascript",
658
+ "options": Array [],
659
+ "slug": "javascript",
660
+ },
661
+ "name": "my-test-source",
662
+ "settings": Object {},
663
+ "slug": "my-test-source",
664
+ "workspaceId": "workspace-id",
665
+ "writeKeys": Array [
666
+ "write-key",
667
+ ],
668
+ },
669
+ },
670
+ },
671
+ "response": Object {
672
+ "body": Object {
673
+ "data": Object {
674
+ "source": Object {
675
+ "enabled": true,
676
+ "id": "source-id",
677
+ "labels": Array [],
678
+ "metadata": Object {
679
+ "categories": Array [
680
+ "Website",
681
+ ],
682
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
683
+ "id": "IqDTy1TpoU",
684
+ "isCloudEventSource": false,
685
+ "logos": Object {
686
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
687
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
688
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
689
+ },
690
+ "name": "Javascript",
691
+ "options": Array [],
692
+ "slug": "javascript",
693
+ },
694
+ "name": "my-test-source",
695
+ "settings": Object {},
696
+ "slug": "my-test-source",
697
+ "workspaceId": "workspace-id",
698
+ "writeKeys": Array [
699
+ "write-key",
700
+ ],
701
+ },
702
+ },
703
+ },
704
+ "headers": Object {
705
+ "connection": "close",
706
+ "content-type": "application/json",
707
+ "date": Any<String>,
708
+ "transfer-encoding": "chunked",
709
+ },
710
+ "request": Object {
711
+ "headers": undefined,
712
+ "method": undefined,
713
+ "uri": undefined,
714
+ },
715
+ "statusCode": 200,
716
+ },
717
+ }
718
+ `;
719
+
720
+ exports[`Smoke tests sends correct request and parses response for update 1`] = `
721
+ Object {
722
+ "_consuming": false,
723
+ "_dumped": false,
724
+ "_events": Object {
725
+ "end": [Function],
726
+ },
727
+ "_eventsCount": 1,
728
+ "_maxListeners": undefined,
729
+ "_readableState": ReadableState {
730
+ "autoDestroy": true,
731
+ "awaitDrainWriters": null,
732
+ "buffer": BufferList {
733
+ "head": null,
734
+ "length": 0,
735
+ "tail": null,
736
+ },
737
+ "closeEmitted": false,
738
+ "closed": false,
739
+ "constructed": true,
740
+ "dataEmitted": false,
741
+ "decoder": null,
742
+ "defaultEncoding": "utf8",
743
+ "destroyed": false,
744
+ "emitClose": true,
745
+ "emittedReadable": false,
746
+ "encoding": null,
747
+ "endEmitted": false,
748
+ "ended": false,
749
+ "errorEmitted": false,
750
+ "errored": null,
751
+ "flowing": null,
752
+ "highWaterMark": 16384,
753
+ "length": 0,
754
+ "multiAwaitDrain": false,
755
+ "needReadable": false,
756
+ "objectMode": false,
757
+ "pipes": Array [],
758
+ "readableListening": false,
759
+ "reading": false,
760
+ "readingMore": true,
761
+ "resumeScheduled": false,
762
+ "sync": true,
763
+ Symbol(kPaused): null,
764
+ },
765
+ "aborted": false,
766
+ "client": Any<Object>,
767
+ "complete": false,
768
+ "httpVersion": "1.1",
769
+ "httpVersionMajor": 1,
770
+ "httpVersionMinor": 1,
771
+ "method": "PATCH",
772
+ "rawHeaders": Array [
773
+ "Accept",
774
+ "application/vnd.segment.v1+json",
775
+ "Authorization",
776
+ "Bearer 1ba60ccaae1c1a5230",
777
+ "host",
778
+ "localhost:52338",
779
+ "content-type",
780
+ "application/json",
781
+ "content-length",
782
+ "44",
783
+ "Connection",
784
+ "close",
785
+ ],
786
+ "rawTrailers": Array [],
787
+ "socket": Any<Object>,
788
+ "statusCode": null,
789
+ "statusMessage": null,
790
+ "upgrade": false,
791
+ "url": "/sources/source-id",
792
+ Symbol(kCapture): false,
793
+ Symbol(kHeaders): Object {
794
+ "accept": "application/vnd.segment.v1+json",
795
+ "authorization": "Bearer 1ba60ccaae1c1a5230",
796
+ "connection": "close",
797
+ "content-length": "44",
798
+ "content-type": "application/json",
799
+ "host": "localhost:52338",
800
+ },
801
+ Symbol(kHeadersCount): 12,
802
+ Symbol(kTrailers): null,
803
+ Symbol(kTrailersCount): 0,
804
+ Symbol(RequestTimeout): undefined,
805
+ }
806
+ `;
807
+
808
+ exports[`Smoke tests sends correct request and parses response for update 2`] = `
809
+ Object {
810
+ "body": UpdateSource200Response1 {
811
+ "data": UpdateSourceV1Output {
812
+ "source": Source6 {
813
+ "enabled": false,
814
+ "id": "source-id",
815
+ "labels": Array [],
816
+ "metadata": Metadata1 {
817
+ "categories": Array [
818
+ "Website",
819
+ ],
820
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
821
+ "id": "IqDTy1TpoU",
822
+ "isCloudEventSource": false,
823
+ "logos": Logos1 {
824
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
825
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
826
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
827
+ },
828
+ "name": "Javascript",
829
+ "options": Array [],
830
+ "slug": "javascript",
831
+ },
832
+ "name": "My updated source",
833
+ "settings": Object {},
834
+ "slug": "my-test-source",
835
+ "workspaceId": "workspace-id",
836
+ "writeKeys": Array [
837
+ "write-key",
838
+ ],
839
+ },
840
+ },
841
+ },
842
+ "response": Object {
843
+ "body": Object {
844
+ "data": Object {
845
+ "source": Object {
846
+ "enabled": false,
847
+ "id": "source-id",
848
+ "labels": Array [],
849
+ "metadata": Object {
850
+ "categories": Array [
851
+ "Website",
852
+ ],
853
+ "description": "This is our most flexible and powerful tracking system, using analytics.js. Track and analyze information about your visitors and customers, and every action that they take, in any of our 140 integrations, business intelligence tools, or directly with SQL tools.",
854
+ "id": "IqDTy1TpoU",
855
+ "isCloudEventSource": false,
856
+ "logos": Object {
857
+ "alt": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
858
+ "default": "https://cdn.filepicker.io/api/file/aRgo4XJQZausZxD4gZQq",
859
+ "mark": "https://cdn.filepicker.io/api/file/kBpmEoSSaakidAvoFmzd",
860
+ },
861
+ "name": "Javascript",
862
+ "options": Array [],
863
+ "slug": "javascript",
864
+ },
865
+ "name": "My updated source",
866
+ "settings": Object {},
867
+ "slug": "my-test-source",
868
+ "workspaceId": "workspace-id",
869
+ "writeKeys": Array [
870
+ "write-key",
871
+ ],
872
+ },
873
+ },
874
+ },
875
+ "headers": Object {
876
+ "connection": "close",
877
+ "content-type": "application/json",
878
+ "date": Any<String>,
879
+ "transfer-encoding": "chunked",
880
+ },
881
+ "request": Object {
882
+ "headers": undefined,
883
+ "method": undefined,
884
+ "uri": undefined,
885
+ },
886
+ "statusCode": 200,
887
+ },
888
+ }
889
+ `;