polytomic 1.5.0 → 1.8.4

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 (481) hide show
  1. package/Client.d.ts +10 -0
  2. package/Client.js +25 -20
  3. package/api/errors/BadRequestError.d.ts +2 -2
  4. package/api/errors/BadRequestError.js +1 -1
  5. package/api/errors/ForbiddenError.d.ts +2 -2
  6. package/api/errors/ForbiddenError.js +1 -1
  7. package/api/errors/InternalServerError.d.ts +2 -2
  8. package/api/errors/InternalServerError.js +1 -1
  9. package/api/errors/NotFoundError.d.ts +2 -2
  10. package/api/errors/NotFoundError.js +1 -1
  11. package/api/errors/UnauthorizedError.d.ts +2 -2
  12. package/api/errors/UnauthorizedError.js +1 -1
  13. package/api/errors/UnprocessableEntityError.d.ts +2 -2
  14. package/api/errors/UnprocessableEntityError.js +1 -1
  15. package/api/resources/bulkSync/client/Client.d.ts +54 -11
  16. package/api/resources/bulkSync/client/Client.js +106 -40
  17. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  18. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  19. package/api/resources/bulkSync/client/requests/index.d.ts +6 -6
  20. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
  21. package/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
  22. package/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
  23. package/api/resources/bulkSync/resources/executions/client/index.js +15 -0
  24. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
  25. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  26. package/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
  27. package/api/resources/bulkSync/resources/index.d.ts +1 -0
  28. package/api/resources/bulkSync/resources/index.js +1 -0
  29. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
  30. package/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
  31. package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
  32. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  33. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
  34. package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
  35. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  36. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  37. package/api/resources/bulkSync/types/index.d.ts +0 -4
  38. package/api/resources/bulkSync/types/index.js +0 -4
  39. package/api/resources/connections/client/Client.d.ts +40 -9
  40. package/api/resources/connections/client/Client.js +78 -30
  41. package/api/resources/connections/client/requests/index.d.ts +4 -4
  42. package/api/resources/events/client/Client.d.ts +15 -3
  43. package/api/resources/events/client/Client.js +19 -8
  44. package/api/resources/events/client/requests/index.d.ts +1 -1
  45. package/api/resources/identity/client/Client.d.ts +11 -2
  46. package/api/resources/identity/client/Client.js +10 -5
  47. package/api/resources/index.d.ts +2 -0
  48. package/api/resources/index.js +3 -1
  49. package/api/resources/jobs/client/Client.d.ts +13 -2
  50. package/api/resources/jobs/client/Client.js +13 -6
  51. package/api/resources/modelSync/client/Client.d.ts +65 -22
  52. package/api/resources/modelSync/client/Client.js +135 -60
  53. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
  54. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  55. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
  56. package/api/resources/modelSync/client/requests/index.d.ts +6 -6
  57. package/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
  58. package/api/resources/modelSync/resources/executions/client/Client.js +48 -18
  59. package/api/resources/models/client/Client.d.ts +46 -9
  60. package/api/resources/models/client/Client.js +85 -31
  61. package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
  62. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
  63. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
  64. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  65. package/api/resources/models/client/requests/index.d.ts +7 -7
  66. package/api/resources/organization/client/Client.d.ts +33 -6
  67. package/api/resources/organization/client/Client.js +55 -20
  68. package/api/resources/organization/client/requests/index.d.ts +2 -2
  69. package/api/resources/permissions/client/Client.d.ts +7 -0
  70. package/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
  71. package/api/resources/permissions/resources/policies/client/Client.js +50 -20
  72. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
  73. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
  74. package/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
  75. package/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
  76. package/api/resources/permissions/resources/roles/client/Client.js +50 -20
  77. package/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
  78. package/api/resources/queryRunner/client/Client.d.ts +58 -0
  79. package/api/resources/queryRunner/client/Client.js +223 -0
  80. package/api/resources/queryRunner/client/index.d.ts +1 -0
  81. package/api/resources/queryRunner/client/index.js +17 -0
  82. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
  83. package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
  84. package/api/resources/queryRunner/client/requests/index.d.ts +2 -0
  85. package/api/resources/queryRunner/client/requests/index.js +2 -0
  86. package/api/resources/queryRunner/index.d.ts +1 -0
  87. package/api/resources/queryRunner/index.js +17 -0
  88. package/api/resources/schemas/client/Client.d.ts +26 -5
  89. package/api/resources/schemas/client/Client.js +44 -18
  90. package/api/resources/users/client/Client.d.ts +45 -7
  91. package/api/resources/users/client/Client.js +75 -26
  92. package/api/resources/users/client/requests/index.d.ts +3 -3
  93. package/api/resources/webhooks/client/Client.d.ts +32 -6
  94. package/api/resources/webhooks/client/Client.js +54 -20
  95. package/api/resources/webhooks/client/requests/index.d.ts +2 -2
  96. package/api/types/ActivateSyncEnvelope.d.ts +1 -1
  97. package/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
  98. package/api/types/BulkFilter.d.ts +10 -0
  99. package/api/types/BulkItemizedSchedule.d.ts +1 -1
  100. package/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
  101. package/api/types/BulkSchedule.d.ts +1 -1
  102. package/api/types/BulkSchema.d.ts +2 -1
  103. package/api/types/BulkSchemaEnvelope.d.ts +1 -1
  104. package/api/types/BulkSyncCanceledEvent.d.ts +11 -0
  105. package/api/types/BulkSyncCompletedEvent.d.ts +12 -0
  106. package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
  107. package/api/types/BulkSyncDest.d.ts +1 -1
  108. package/api/types/BulkSyncDestEnvelope.d.ts +1 -1
  109. package/api/types/BulkSyncExecution.d.ts +1 -1
  110. package/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
  111. package/api/types/BulkSyncExecutionStatus.d.ts +10 -0
  112. package/api/types/BulkSyncFailedEvent.d.ts +12 -0
  113. package/api/types/BulkSyncFailedEvent.js +5 -0
  114. package/api/types/BulkSyncListEnvelope.d.ts +1 -1
  115. package/api/types/BulkSyncResponse.d.ts +1 -1
  116. package/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
  117. package/api/types/BulkSyncRunningEvent.d.ts +11 -0
  118. package/api/types/BulkSyncRunningEvent.js +5 -0
  119. package/api/types/BulkSyncSchemaExecution.d.ts +1 -1
  120. package/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
  121. package/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
  122. package/api/types/BulkSyncSource.d.ts +1 -1
  123. package/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
  124. package/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
  125. package/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
  126. package/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
  127. package/api/types/BulkSyncStatusResponse.d.ts +1 -1
  128. package/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
  129. package/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
  130. package/api/types/ConnectionMetaResponse.d.ts +1 -1
  131. package/api/types/ConnectionParameterValuesResp.d.ts +1 -1
  132. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  133. package/api/types/ConnectionResponseEnvelope.d.ts +1 -1
  134. package/api/types/ConnectionResponseSchema.d.ts +1 -1
  135. package/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
  136. package/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
  137. package/api/types/CreateConnectionResponseSchema.d.ts +1 -1
  138. package/api/types/CreateModelRequest.d.ts +1 -1
  139. package/api/types/Enrichment.d.ts +1 -1
  140. package/api/types/Event.d.ts +2 -1
  141. package/api/types/EventBody.d.ts +5 -0
  142. package/api/types/EventBody.js +5 -0
  143. package/api/types/EventsEnvelope.d.ts +1 -1
  144. package/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
  145. package/api/types/FieldConfiguration.js +5 -0
  146. package/api/types/Filter.d.ts +1 -1
  147. package/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
  148. package/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
  149. package/api/types/GetExecutionResponseSchema.d.ts +1 -1
  150. package/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
  151. package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
  152. package/api/types/Identity.d.ts +1 -1
  153. package/api/types/JobResponse.d.ts +1 -1
  154. package/api/types/JobResponseEnvelope.d.ts +1 -1
  155. package/api/types/ListBulkSchema.d.ts +1 -1
  156. package/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
  157. package/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
  158. package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
  159. package/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
  160. package/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
  161. package/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
  162. package/api/types/ListUsersEnvelope.d.ts +1 -1
  163. package/api/types/ModelFieldResponse.d.ts +1 -1
  164. package/api/types/ModelListResponseEnvelope.d.ts +1 -1
  165. package/api/types/ModelRelation.d.ts +1 -1
  166. package/api/types/ModelResponse.d.ts +1 -1
  167. package/api/types/ModelResponseEnvelope.d.ts +1 -1
  168. package/api/types/ModelSample.d.ts +1 -1
  169. package/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
  170. package/api/types/ModelSyncField.d.ts +6 -2
  171. package/api/types/ModelSyncResponse.d.ts +1 -1
  172. package/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
  173. package/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
  174. package/api/types/OrganizationEnvelope.d.ts +1 -1
  175. package/api/types/OrganizationsEnvelope.d.ts +1 -1
  176. package/api/types/Override.d.ts +1 -1
  177. package/api/types/Pagination.d.ts +9 -0
  178. package/api/types/Pagination.js +5 -0
  179. package/api/types/PolicyResponse.d.ts +1 -1
  180. package/api/types/PolicyResponseEnvelope.d.ts +1 -1
  181. package/api/types/Relation.d.ts +1 -1
  182. package/api/types/RoleListResponseEnvelope.d.ts +1 -1
  183. package/api/types/RoleResponseEnvelope.d.ts +1 -1
  184. package/api/types/Schedule.d.ts +1 -1
  185. package/api/types/ScheduleOptionResponse.d.ts +1 -1
  186. package/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
  187. package/api/types/ScheduleScheduleOption.d.ts +1 -1
  188. package/api/types/Schema.d.ts +1 -1
  189. package/api/{resources/bulkSync/types → types}/SchemaConfiguration.d.ts +3 -2
  190. package/api/types/SchemaConfiguration.js +5 -0
  191. package/api/types/SchemaField.d.ts +1 -1
  192. package/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
  193. package/api/types/StartModelSyncResponseSchema.d.ts +1 -1
  194. package/api/types/SyncCanceledEvent.d.ts +12 -0
  195. package/api/types/SyncCanceledEvent.js +5 -0
  196. package/api/types/SyncCompletedEvent.d.ts +25 -0
  197. package/api/types/SyncCompletedEvent.js +5 -0
  198. package/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
  199. package/api/types/SyncCompletedWithErrorsEvent.js +5 -0
  200. package/api/types/SyncDestinationProperties.d.ts +1 -0
  201. package/api/types/SyncFailedEvent.d.ts +11 -0
  202. package/api/types/SyncFailedEvent.js +5 -0
  203. package/api/types/SyncRunningEvent.d.ts +10 -0
  204. package/api/types/SyncRunningEvent.js +5 -0
  205. package/api/types/SyncStatusEnvelope.d.ts +1 -1
  206. package/api/types/SyncStatusResponse.d.ts +1 -1
  207. package/api/types/TargetField.d.ts +1 -1
  208. package/api/types/TargetResponse.d.ts +1 -1
  209. package/api/types/TargetResponseEnvelope.d.ts +1 -1
  210. package/api/types/UserEnvelope.d.ts +1 -1
  211. package/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
  212. package/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
  213. package/api/types/V4QueryResultsEnvelope.d.ts +8 -0
  214. package/api/types/V4QueryResultsEnvelope.js +5 -0
  215. package/api/types/V4RunQueryEnvelope.d.ts +7 -0
  216. package/api/types/V4RunQueryEnvelope.js +5 -0
  217. package/api/types/V4RunQueryResult.d.ts +18 -0
  218. package/api/types/V4RunQueryResult.js +5 -0
  219. package/api/types/WebhookEnvelope.d.ts +1 -1
  220. package/api/types/WebhookListEnvelope.d.ts +1 -1
  221. package/api/types/WorkTaskStatus.d.ts +2 -1
  222. package/api/types/WorkTaskStatus.js +1 -0
  223. package/api/types/index.d.ts +22 -0
  224. package/api/types/index.js +22 -0
  225. package/core/fetcher/Fetcher.d.ts +3 -2
  226. package/core/fetcher/Fetcher.js +130 -19
  227. package/core/runtime/runtime.d.ts +1 -1
  228. package/core/runtime/runtime.js +11 -1
  229. package/dist/Client.d.ts +10 -0
  230. package/dist/Client.js +25 -20
  231. package/dist/api/errors/BadRequestError.d.ts +2 -2
  232. package/dist/api/errors/BadRequestError.js +1 -1
  233. package/dist/api/errors/ForbiddenError.d.ts +2 -2
  234. package/dist/api/errors/ForbiddenError.js +1 -1
  235. package/dist/api/errors/InternalServerError.d.ts +2 -2
  236. package/dist/api/errors/InternalServerError.js +1 -1
  237. package/dist/api/errors/NotFoundError.d.ts +2 -2
  238. package/dist/api/errors/NotFoundError.js +1 -1
  239. package/dist/api/errors/UnauthorizedError.d.ts +2 -2
  240. package/dist/api/errors/UnauthorizedError.js +1 -1
  241. package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
  242. package/dist/api/errors/UnprocessableEntityError.js +1 -1
  243. package/dist/api/resources/bulkSync/client/Client.d.ts +54 -11
  244. package/dist/api/resources/bulkSync/client/Client.js +106 -40
  245. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  246. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  247. package/dist/api/resources/bulkSync/client/requests/index.d.ts +6 -6
  248. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
  249. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
  250. package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
  251. package/dist/api/resources/bulkSync/resources/executions/client/index.js +15 -0
  252. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
  253. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +5 -0
  254. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  255. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
  256. package/dist/api/resources/bulkSync/resources/index.d.ts +1 -0
  257. package/dist/api/resources/bulkSync/resources/index.js +1 -0
  258. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
  259. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
  260. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
  261. package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  262. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
  263. package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
  264. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
  265. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
  266. package/dist/api/resources/bulkSync/types/index.d.ts +0 -4
  267. package/dist/api/resources/bulkSync/types/index.js +0 -4
  268. package/dist/api/resources/connections/client/Client.d.ts +40 -9
  269. package/dist/api/resources/connections/client/Client.js +78 -30
  270. package/dist/api/resources/connections/client/requests/index.d.ts +4 -4
  271. package/dist/api/resources/events/client/Client.d.ts +15 -3
  272. package/dist/api/resources/events/client/Client.js +19 -8
  273. package/dist/api/resources/events/client/requests/index.d.ts +1 -1
  274. package/dist/api/resources/identity/client/Client.d.ts +11 -2
  275. package/dist/api/resources/identity/client/Client.js +10 -5
  276. package/dist/api/resources/index.d.ts +2 -0
  277. package/dist/api/resources/index.js +3 -1
  278. package/dist/api/resources/jobs/client/Client.d.ts +13 -2
  279. package/dist/api/resources/jobs/client/Client.js +13 -6
  280. package/dist/api/resources/modelSync/client/Client.d.ts +65 -22
  281. package/dist/api/resources/modelSync/client/Client.js +135 -60
  282. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
  283. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  284. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
  285. package/dist/api/resources/modelSync/client/requests/index.d.ts +6 -6
  286. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
  287. package/dist/api/resources/modelSync/resources/executions/client/Client.js +48 -18
  288. package/dist/api/resources/models/client/Client.d.ts +46 -9
  289. package/dist/api/resources/models/client/Client.js +85 -31
  290. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
  291. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
  292. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
  293. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  294. package/dist/api/resources/models/client/requests/index.d.ts +7 -7
  295. package/dist/api/resources/organization/client/Client.d.ts +33 -6
  296. package/dist/api/resources/organization/client/Client.js +55 -20
  297. package/dist/api/resources/organization/client/requests/index.d.ts +2 -2
  298. package/dist/api/resources/permissions/client/Client.d.ts +7 -0
  299. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
  300. package/dist/api/resources/permissions/resources/policies/client/Client.js +50 -20
  301. package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
  302. package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
  303. package/dist/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
  304. package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
  305. package/dist/api/resources/permissions/resources/roles/client/Client.js +50 -20
  306. package/dist/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
  307. package/dist/api/resources/queryRunner/client/Client.d.ts +58 -0
  308. package/dist/api/resources/queryRunner/client/Client.js +223 -0
  309. package/dist/api/resources/queryRunner/client/index.d.ts +1 -0
  310. package/dist/api/resources/queryRunner/client/index.js +17 -0
  311. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
  312. package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +5 -0
  313. package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
  314. package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -0
  315. package/dist/api/resources/queryRunner/client/requests/index.d.ts +2 -0
  316. package/dist/api/resources/queryRunner/client/requests/index.js +2 -0
  317. package/dist/api/resources/queryRunner/index.d.ts +1 -0
  318. package/dist/api/resources/queryRunner/index.js +17 -0
  319. package/dist/api/resources/schemas/client/Client.d.ts +26 -5
  320. package/dist/api/resources/schemas/client/Client.js +44 -18
  321. package/dist/api/resources/users/client/Client.d.ts +45 -7
  322. package/dist/api/resources/users/client/Client.js +75 -26
  323. package/dist/api/resources/users/client/requests/index.d.ts +3 -3
  324. package/dist/api/resources/webhooks/client/Client.d.ts +32 -6
  325. package/dist/api/resources/webhooks/client/Client.js +54 -20
  326. package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -2
  327. package/dist/api/types/ActivateSyncEnvelope.d.ts +1 -1
  328. package/dist/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
  329. package/dist/api/types/BulkFilter.d.ts +10 -0
  330. package/dist/api/types/BulkFilter.js +5 -0
  331. package/dist/api/types/BulkItemizedSchedule.d.ts +1 -1
  332. package/dist/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
  333. package/dist/api/types/BulkSchedule.d.ts +1 -1
  334. package/dist/api/types/BulkSchema.d.ts +2 -1
  335. package/dist/api/types/BulkSchemaEnvelope.d.ts +1 -1
  336. package/dist/api/types/BulkSyncCanceledEvent.d.ts +11 -0
  337. package/dist/api/types/BulkSyncCanceledEvent.js +5 -0
  338. package/dist/api/types/BulkSyncCompletedEvent.d.ts +12 -0
  339. package/dist/api/types/BulkSyncCompletedEvent.js +5 -0
  340. package/dist/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
  341. package/dist/api/types/BulkSyncCompletedWithErrorEvent.js +5 -0
  342. package/dist/api/types/BulkSyncDest.d.ts +1 -1
  343. package/dist/api/types/BulkSyncDestEnvelope.d.ts +1 -1
  344. package/dist/api/types/BulkSyncExecution.d.ts +1 -1
  345. package/dist/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
  346. package/dist/api/types/BulkSyncExecutionStatus.d.ts +10 -0
  347. package/dist/api/types/BulkSyncExecutionStatus.js +5 -0
  348. package/dist/api/types/BulkSyncFailedEvent.d.ts +12 -0
  349. package/dist/api/types/BulkSyncFailedEvent.js +5 -0
  350. package/dist/api/types/BulkSyncListEnvelope.d.ts +1 -1
  351. package/dist/api/types/BulkSyncResponse.d.ts +1 -1
  352. package/dist/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
  353. package/dist/api/types/BulkSyncRunningEvent.d.ts +11 -0
  354. package/dist/api/types/BulkSyncRunningEvent.js +5 -0
  355. package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -1
  356. package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
  357. package/dist/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
  358. package/dist/api/types/BulkSyncSource.d.ts +1 -1
  359. package/dist/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
  360. package/dist/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
  361. package/dist/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
  362. package/dist/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
  363. package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -1
  364. package/dist/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
  365. package/dist/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
  366. package/dist/api/types/ConnectionMetaResponse.d.ts +1 -1
  367. package/dist/api/types/ConnectionParameterValuesResp.d.ts +1 -1
  368. package/dist/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  369. package/dist/api/types/ConnectionResponseEnvelope.d.ts +1 -1
  370. package/dist/api/types/ConnectionResponseSchema.d.ts +1 -1
  371. package/dist/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
  372. package/dist/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
  373. package/dist/api/types/CreateConnectionResponseSchema.d.ts +1 -1
  374. package/dist/api/types/CreateModelRequest.d.ts +1 -1
  375. package/dist/api/types/Enrichment.d.ts +1 -1
  376. package/dist/api/types/Event.d.ts +2 -1
  377. package/dist/api/types/EventBody.d.ts +5 -0
  378. package/dist/api/types/EventBody.js +5 -0
  379. package/dist/api/types/EventsEnvelope.d.ts +1 -1
  380. package/dist/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
  381. package/dist/api/types/FieldConfiguration.js +5 -0
  382. package/dist/api/types/Filter.d.ts +1 -1
  383. package/dist/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
  384. package/dist/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
  385. package/dist/api/types/GetExecutionResponseSchema.d.ts +1 -1
  386. package/dist/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
  387. package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
  388. package/dist/api/types/Identity.d.ts +1 -1
  389. package/dist/api/types/JobResponse.d.ts +1 -1
  390. package/dist/api/types/JobResponseEnvelope.d.ts +1 -1
  391. package/dist/api/types/ListBulkSchema.d.ts +1 -1
  392. package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
  393. package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
  394. package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
  395. package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
  396. package/dist/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
  397. package/dist/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
  398. package/dist/api/types/ListUsersEnvelope.d.ts +1 -1
  399. package/dist/api/types/ModelFieldResponse.d.ts +1 -1
  400. package/dist/api/types/ModelListResponseEnvelope.d.ts +1 -1
  401. package/dist/api/types/ModelRelation.d.ts +1 -1
  402. package/dist/api/types/ModelResponse.d.ts +1 -1
  403. package/dist/api/types/ModelResponseEnvelope.d.ts +1 -1
  404. package/dist/api/types/ModelSample.d.ts +1 -1
  405. package/dist/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
  406. package/dist/api/types/ModelSyncField.d.ts +6 -2
  407. package/dist/api/types/ModelSyncResponse.d.ts +1 -1
  408. package/dist/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
  409. package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
  410. package/dist/api/types/OrganizationEnvelope.d.ts +1 -1
  411. package/dist/api/types/OrganizationsEnvelope.d.ts +1 -1
  412. package/dist/api/types/Override.d.ts +1 -1
  413. package/dist/api/types/Pagination.d.ts +9 -0
  414. package/dist/api/types/Pagination.js +5 -0
  415. package/dist/api/types/PolicyResponse.d.ts +1 -1
  416. package/dist/api/types/PolicyResponseEnvelope.d.ts +1 -1
  417. package/dist/api/types/Relation.d.ts +1 -1
  418. package/dist/api/types/RoleListResponseEnvelope.d.ts +1 -1
  419. package/dist/api/types/RoleResponseEnvelope.d.ts +1 -1
  420. package/dist/api/types/Schedule.d.ts +1 -1
  421. package/dist/api/types/ScheduleOptionResponse.d.ts +1 -1
  422. package/dist/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
  423. package/dist/api/types/ScheduleScheduleOption.d.ts +1 -1
  424. package/dist/api/types/Schema.d.ts +1 -1
  425. package/dist/api/{resources/bulkSync/types → types}/SchemaConfiguration.d.ts +3 -2
  426. package/dist/api/types/SchemaConfiguration.js +5 -0
  427. package/dist/api/types/SchemaField.d.ts +1 -1
  428. package/dist/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
  429. package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -1
  430. package/dist/api/types/SyncCanceledEvent.d.ts +12 -0
  431. package/dist/api/types/SyncCanceledEvent.js +5 -0
  432. package/dist/api/types/SyncCompletedEvent.d.ts +25 -0
  433. package/dist/api/types/SyncCompletedEvent.js +5 -0
  434. package/dist/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
  435. package/dist/api/types/SyncCompletedWithErrorsEvent.js +5 -0
  436. package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
  437. package/dist/api/types/SyncFailedEvent.d.ts +11 -0
  438. package/dist/api/types/SyncFailedEvent.js +5 -0
  439. package/dist/api/types/SyncRunningEvent.d.ts +10 -0
  440. package/dist/api/types/SyncRunningEvent.js +5 -0
  441. package/dist/api/types/SyncStatusEnvelope.d.ts +1 -1
  442. package/dist/api/types/SyncStatusResponse.d.ts +1 -1
  443. package/dist/api/types/TargetField.d.ts +1 -1
  444. package/dist/api/types/TargetResponse.d.ts +1 -1
  445. package/dist/api/types/TargetResponseEnvelope.d.ts +1 -1
  446. package/dist/api/types/UserEnvelope.d.ts +1 -1
  447. package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
  448. package/dist/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
  449. package/dist/api/types/V4QueryResultsEnvelope.d.ts +8 -0
  450. package/dist/api/types/V4QueryResultsEnvelope.js +5 -0
  451. package/dist/api/types/V4RunQueryEnvelope.d.ts +7 -0
  452. package/dist/api/types/V4RunQueryEnvelope.js +5 -0
  453. package/dist/api/types/V4RunQueryResult.d.ts +18 -0
  454. package/dist/api/types/V4RunQueryResult.js +5 -0
  455. package/dist/api/types/WebhookEnvelope.d.ts +1 -1
  456. package/dist/api/types/WebhookListEnvelope.d.ts +1 -1
  457. package/dist/api/types/WorkTaskStatus.d.ts +2 -1
  458. package/dist/api/types/WorkTaskStatus.js +1 -0
  459. package/dist/api/types/index.d.ts +22 -0
  460. package/dist/api/types/index.js +22 -0
  461. package/dist/core/fetcher/Fetcher.d.ts +3 -2
  462. package/dist/core/fetcher/Fetcher.js +130 -19
  463. package/dist/core/runtime/runtime.d.ts +1 -1
  464. package/dist/core/runtime/runtime.js +11 -1
  465. package/jest.config.js +2 -2
  466. package/package.json +13 -6
  467. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
  468. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
  469. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
  470. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
  471. package/tests/client.test.ts +0 -11
  472. /package/api/resources/bulkSync/{types/FieldConfiguration.js → resources/executions/client/requests/ExecutionsListStatusRequest.js} +0 -0
  473. /package/api/resources/{bulkSync/types/SchemaConfiguration.js → queryRunner/client/requests/QueryRunnerGetQueryRequest.js} +0 -0
  474. /package/api/resources/{bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js → queryRunner/client/requests/V4RunQueryRequest.js} +0 -0
  475. /package/api/{resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js → types/BulkFilter.js} +0 -0
  476. /package/{dist/api/resources/bulkSync/types/FieldConfiguration.js → api/types/BulkSyncCanceledEvent.js} +0 -0
  477. /package/{dist/api/resources/bulkSync/types/SchemaConfiguration.js → api/types/BulkSyncCompletedEvent.js} +0 -0
  478. /package/{dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js → api/types/BulkSyncCompletedWithErrorEvent.js} +0 -0
  479. /package/{dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js → api/types/BulkSyncExecutionStatus.js} +0 -0
  480. /package/api/{resources/bulkSync/types → types}/FieldConfiguration.d.ts +0 -0
  481. /package/dist/api/{resources/bulkSync/types → types}/FieldConfiguration.d.ts +0 -0
@@ -41,15 +41,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.ModelSync = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Polytomic = __importStar(require("../../.."));
44
+ const Polytomic = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
- const errors = __importStar(require("../../../../errors"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
47
  const Client_1 = require("../resources/executions/client/Client");
48
48
  class ModelSync {
49
49
  constructor(_options) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
53
+ * @param {string} id
54
+ * @param {Polytomic.ModelSyncGetSourceRequest} request
55
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
53
57
  * @throws {@link Polytomic.BadRequestError}
54
58
  * @throws {@link Polytomic.UnauthorizedError}
55
59
  * @throws {@link Polytomic.ForbiddenError}
@@ -57,7 +61,7 @@ class ModelSync {
57
61
  * @throws {@link Polytomic.InternalServerError}
58
62
  *
59
63
  * @example
60
- * await polytomic.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {})
64
+ * await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
61
65
  */
62
66
  getSource(id, request = {}, requestOptions) {
63
67
  var _a;
@@ -65,17 +69,19 @@ class ModelSync {
65
69
  const { params } = request;
66
70
  const _queryParams = {};
67
71
  if (params != null) {
68
- _queryParams["params"] = params;
72
+ _queryParams["params"] = JSON.stringify(params);
69
73
  }
70
74
  const _response = yield core.fetcher({
71
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}/modelsync/source`),
75
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/source`),
72
76
  method: "GET",
73
77
  headers: {
74
78
  Authorization: yield this._getAuthorizationHeader(),
75
- "X-Polytomic-Version": "2024-02-08",
79
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
80
+ ? yield core.Supplier.get(this._options.version)
81
+ : undefined,
76
82
  "X-Fern-Language": "JavaScript",
77
83
  "X-Fern-SDK-Name": "polytomic",
78
- "X-Fern-SDK-Version": "1.5.0",
84
+ "X-Fern-SDK-Version": "1.8.4",
79
85
  "X-Fern-Runtime": core.RUNTIME.type,
80
86
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
87
  },
@@ -83,6 +89,7 @@ class ModelSync {
83
89
  queryParameters: _queryParams,
84
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
91
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
92
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
93
  });
87
94
  if (_response.ok) {
88
95
  return _response.body;
@@ -122,6 +129,9 @@ class ModelSync {
122
129
  });
123
130
  }
124
131
  /**
132
+ * @param {string} id
133
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
134
+ *
125
135
  * @throws {@link Polytomic.BadRequestError}
126
136
  * @throws {@link Polytomic.UnauthorizedError}
127
137
  * @throws {@link Polytomic.ForbiddenError}
@@ -129,26 +139,29 @@ class ModelSync {
129
139
  * @throws {@link Polytomic.InternalServerError}
130
140
  *
131
141
  * @example
132
- * await polytomic.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
142
+ * await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
133
143
  */
134
144
  getSourceFields(id, requestOptions) {
135
145
  var _a;
136
146
  return __awaiter(this, void 0, void 0, function* () {
137
147
  const _response = yield core.fetcher({
138
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}/modelsync/source/fields`),
148
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/source/fields`),
139
149
  method: "GET",
140
150
  headers: {
141
151
  Authorization: yield this._getAuthorizationHeader(),
142
- "X-Polytomic-Version": "2024-02-08",
152
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
153
+ ? yield core.Supplier.get(this._options.version)
154
+ : undefined,
143
155
  "X-Fern-Language": "JavaScript",
144
156
  "X-Fern-SDK-Name": "polytomic",
145
- "X-Fern-SDK-Version": "1.5.0",
157
+ "X-Fern-SDK-Version": "1.8.4",
146
158
  "X-Fern-Runtime": core.RUNTIME.type,
147
159
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
160
  },
149
161
  contentType: "application/json",
150
162
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
151
163
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
164
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
165
  });
153
166
  if (_response.ok) {
154
167
  return _response.body;
@@ -188,6 +201,10 @@ class ModelSync {
188
201
  });
189
202
  }
190
203
  /**
204
+ * @param {string} id
205
+ * @param {Polytomic.ModelSyncGetTargetRequest} request
206
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
207
+ *
191
208
  * @throws {@link Polytomic.BadRequestError}
192
209
  * @throws {@link Polytomic.UnauthorizedError}
193
210
  * @throws {@link Polytomic.ForbiddenError}
@@ -195,7 +212,7 @@ class ModelSync {
195
212
  * @throws {@link Polytomic.InternalServerError}
196
213
  *
197
214
  * @example
198
- * await polytomic.modelSync.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d", {})
215
+ * await client.modelSync.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d")
199
216
  */
200
217
  getTarget(id, request = {}, requestOptions) {
201
218
  var _a;
@@ -209,14 +226,16 @@ class ModelSync {
209
226
  _queryParams["search"] = search;
210
227
  }
211
228
  const _response = yield core.fetcher({
212
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}/modelsync/target`),
229
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/target`),
213
230
  method: "GET",
214
231
  headers: {
215
232
  Authorization: yield this._getAuthorizationHeader(),
216
- "X-Polytomic-Version": "2024-02-08",
233
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
234
+ ? yield core.Supplier.get(this._options.version)
235
+ : undefined,
217
236
  "X-Fern-Language": "JavaScript",
218
237
  "X-Fern-SDK-Name": "polytomic",
219
- "X-Fern-SDK-Version": "1.5.0",
238
+ "X-Fern-SDK-Version": "1.8.4",
220
239
  "X-Fern-Runtime": core.RUNTIME.type,
221
240
  "X-Fern-Runtime-Version": core.RUNTIME.version,
222
241
  },
@@ -224,6 +243,7 @@ class ModelSync {
224
243
  queryParameters: _queryParams,
225
244
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
226
245
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
246
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
227
247
  });
228
248
  if (_response.ok) {
229
249
  return _response.body;
@@ -263,13 +283,17 @@ class ModelSync {
263
283
  });
264
284
  }
265
285
  /**
286
+ * @param {string} id
287
+ * @param {Polytomic.ModelSyncGetTargetFieldsRequest} request
288
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
289
+ *
266
290
  * @throws {@link Polytomic.UnauthorizedError}
267
291
  * @throws {@link Polytomic.ForbiddenError}
268
292
  * @throws {@link Polytomic.NotFoundError}
269
293
  * @throws {@link Polytomic.InternalServerError}
270
294
  *
271
295
  * @example
272
- * await polytomic.modelSync.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
296
+ * await client.modelSync.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
273
297
  * target: "database.table",
274
298
  * refresh: false
275
299
  * })
@@ -284,14 +308,16 @@ class ModelSync {
284
308
  _queryParams["refresh"] = refresh.toString();
285
309
  }
286
310
  const _response = yield core.fetcher({
287
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}/modelsync/target/fields`),
311
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/target/fields`),
288
312
  method: "GET",
289
313
  headers: {
290
314
  Authorization: yield this._getAuthorizationHeader(),
291
- "X-Polytomic-Version": "2024-02-08",
315
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
316
+ ? yield core.Supplier.get(this._options.version)
317
+ : undefined,
292
318
  "X-Fern-Language": "JavaScript",
293
319
  "X-Fern-SDK-Name": "polytomic",
294
- "X-Fern-SDK-Version": "1.5.0",
320
+ "X-Fern-SDK-Version": "1.8.4",
295
321
  "X-Fern-Runtime": core.RUNTIME.type,
296
322
  "X-Fern-Runtime-Version": core.RUNTIME.version,
297
323
  },
@@ -299,6 +325,7 @@ class ModelSync {
299
325
  queryParameters: _queryParams,
300
326
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
301
327
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
328
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
302
329
  });
303
330
  if (_response.ok) {
304
331
  return _response.body;
@@ -336,12 +363,14 @@ class ModelSync {
336
363
  });
337
364
  }
338
365
  /**
366
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
367
+ *
339
368
  * @throws {@link Polytomic.UnauthorizedError}
340
369
  * @throws {@link Polytomic.NotFoundError}
341
370
  * @throws {@link Polytomic.InternalServerError}
342
371
  *
343
372
  * @example
344
- * await polytomic.modelSync.list()
373
+ * await client.modelSync.list()
345
374
  */
346
375
  list(requestOptions) {
347
376
  var _a;
@@ -351,16 +380,19 @@ class ModelSync {
351
380
  method: "GET",
352
381
  headers: {
353
382
  Authorization: yield this._getAuthorizationHeader(),
354
- "X-Polytomic-Version": "2024-02-08",
383
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
384
+ ? yield core.Supplier.get(this._options.version)
385
+ : undefined,
355
386
  "X-Fern-Language": "JavaScript",
356
387
  "X-Fern-SDK-Name": "polytomic",
357
- "X-Fern-SDK-Version": "1.5.0",
388
+ "X-Fern-SDK-Version": "1.8.4",
358
389
  "X-Fern-Runtime": core.RUNTIME.type,
359
390
  "X-Fern-Runtime-Version": core.RUNTIME.version,
360
391
  },
361
392
  contentType: "application/json",
362
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
363
394
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
395
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
364
396
  });
365
397
  if (_response.ok) {
366
398
  return _response.body;
@@ -396,6 +428,9 @@ class ModelSync {
396
428
  });
397
429
  }
398
430
  /**
431
+ * @param {Polytomic.CreateModelSyncRequest} request
432
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
433
+ *
399
434
  * @throws {@link Polytomic.BadRequestError}
400
435
  * @throws {@link Polytomic.UnauthorizedError}
401
436
  * @throws {@link Polytomic.ForbiddenError}
@@ -403,12 +438,8 @@ class ModelSync {
403
438
  * @throws {@link Polytomic.InternalServerError}
404
439
  *
405
440
  * @example
406
- * await polytomic.modelSync.create({
441
+ * await client.modelSync.create({
407
442
  * fields: [{
408
- * source: {
409
- * field: "id",
410
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
411
- * },
412
443
  * target: "name"
413
444
  * }],
414
445
  * mode: "create",
@@ -428,10 +459,12 @@ class ModelSync {
428
459
  method: "POST",
429
460
  headers: {
430
461
  Authorization: yield this._getAuthorizationHeader(),
431
- "X-Polytomic-Version": "2024-02-08",
462
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
463
+ ? yield core.Supplier.get(this._options.version)
464
+ : undefined,
432
465
  "X-Fern-Language": "JavaScript",
433
466
  "X-Fern-SDK-Name": "polytomic",
434
- "X-Fern-SDK-Version": "1.5.0",
467
+ "X-Fern-SDK-Version": "1.8.4",
435
468
  "X-Fern-Runtime": core.RUNTIME.type,
436
469
  "X-Fern-Runtime-Version": core.RUNTIME.version,
437
470
  },
@@ -439,6 +472,7 @@ class ModelSync {
439
472
  body: request,
440
473
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
441
474
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
475
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
442
476
  });
443
477
  if (_response.ok) {
444
478
  return _response.body;
@@ -478,11 +512,13 @@ class ModelSync {
478
512
  });
479
513
  }
480
514
  /**
515
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
516
+ *
481
517
  * @throws {@link Polytomic.UnauthorizedError}
482
518
  * @throws {@link Polytomic.InternalServerError}
483
519
  *
484
520
  * @example
485
- * await polytomic.modelSync.getScheduleOptions()
521
+ * await client.modelSync.getScheduleOptions()
486
522
  */
487
523
  getScheduleOptions(requestOptions) {
488
524
  var _a;
@@ -492,16 +528,19 @@ class ModelSync {
492
528
  method: "GET",
493
529
  headers: {
494
530
  Authorization: yield this._getAuthorizationHeader(),
495
- "X-Polytomic-Version": "2024-02-08",
531
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
532
+ ? yield core.Supplier.get(this._options.version)
533
+ : undefined,
496
534
  "X-Fern-Language": "JavaScript",
497
535
  "X-Fern-SDK-Name": "polytomic",
498
- "X-Fern-SDK-Version": "1.5.0",
536
+ "X-Fern-SDK-Version": "1.8.4",
499
537
  "X-Fern-Runtime": core.RUNTIME.type,
500
538
  "X-Fern-Runtime-Version": core.RUNTIME.version,
501
539
  },
502
540
  contentType: "application/json",
503
541
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
504
542
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
543
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
505
544
  });
506
545
  if (_response.ok) {
507
546
  return _response.body;
@@ -535,31 +574,37 @@ class ModelSync {
535
574
  });
536
575
  }
537
576
  /**
577
+ * @param {string} id
578
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
579
+ *
538
580
  * @throws {@link Polytomic.UnauthorizedError}
539
581
  * @throws {@link Polytomic.NotFoundError}
540
582
  * @throws {@link Polytomic.InternalServerError}
541
583
  *
542
584
  * @example
543
- * await polytomic.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
585
+ * await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
544
586
  */
545
587
  get(id, requestOptions) {
546
588
  var _a;
547
589
  return __awaiter(this, void 0, void 0, function* () {
548
590
  const _response = yield core.fetcher({
549
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}`),
591
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}`),
550
592
  method: "GET",
551
593
  headers: {
552
594
  Authorization: yield this._getAuthorizationHeader(),
553
- "X-Polytomic-Version": "2024-02-08",
595
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
596
+ ? yield core.Supplier.get(this._options.version)
597
+ : undefined,
554
598
  "X-Fern-Language": "JavaScript",
555
599
  "X-Fern-SDK-Name": "polytomic",
556
- "X-Fern-SDK-Version": "1.5.0",
600
+ "X-Fern-SDK-Version": "1.8.4",
557
601
  "X-Fern-Runtime": core.RUNTIME.type,
558
602
  "X-Fern-Runtime-Version": core.RUNTIME.version,
559
603
  },
560
604
  contentType: "application/json",
561
605
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
562
606
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
607
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
563
608
  });
564
609
  if (_response.ok) {
565
610
  return _response.body;
@@ -595,6 +640,10 @@ class ModelSync {
595
640
  });
596
641
  }
597
642
  /**
643
+ * @param {string} id
644
+ * @param {Polytomic.UpdateModelSyncRequest} request
645
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
646
+ *
598
647
  * @throws {@link Polytomic.BadRequestError}
599
648
  * @throws {@link Polytomic.UnauthorizedError}
600
649
  * @throws {@link Polytomic.ForbiddenError}
@@ -603,12 +652,8 @@ class ModelSync {
603
652
  * @throws {@link Polytomic.InternalServerError}
604
653
  *
605
654
  * @example
606
- * await polytomic.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
655
+ * await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
607
656
  * fields: [{
608
- * source: {
609
- * field: "id",
610
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
611
- * },
612
657
  * target: "name"
613
658
  * }],
614
659
  * mode: "create",
@@ -624,14 +669,16 @@ class ModelSync {
624
669
  var _a;
625
670
  return __awaiter(this, void 0, void 0, function* () {
626
671
  const _response = yield core.fetcher({
627
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}`),
672
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}`),
628
673
  method: "PUT",
629
674
  headers: {
630
675
  Authorization: yield this._getAuthorizationHeader(),
631
- "X-Polytomic-Version": "2024-02-08",
676
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
677
+ ? yield core.Supplier.get(this._options.version)
678
+ : undefined,
632
679
  "X-Fern-Language": "JavaScript",
633
680
  "X-Fern-SDK-Name": "polytomic",
634
- "X-Fern-SDK-Version": "1.5.0",
681
+ "X-Fern-SDK-Version": "1.8.4",
635
682
  "X-Fern-Runtime": core.RUNTIME.type,
636
683
  "X-Fern-Runtime-Version": core.RUNTIME.version,
637
684
  },
@@ -639,6 +686,7 @@ class ModelSync {
639
686
  body: request,
640
687
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
641
688
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
689
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
642
690
  });
643
691
  if (_response.ok) {
644
692
  return _response.body;
@@ -680,32 +728,38 @@ class ModelSync {
680
728
  });
681
729
  }
682
730
  /**
731
+ * @param {string} id
732
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
733
+ *
683
734
  * @throws {@link Polytomic.UnauthorizedError}
684
735
  * @throws {@link Polytomic.ForbiddenError}
685
736
  * @throws {@link Polytomic.NotFoundError}
686
737
  * @throws {@link Polytomic.InternalServerError}
687
738
  *
688
739
  * @example
689
- * await polytomic.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
740
+ * await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
690
741
  */
691
742
  remove(id, requestOptions) {
692
743
  var _a;
693
744
  return __awaiter(this, void 0, void 0, function* () {
694
745
  const _response = yield core.fetcher({
695
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}`),
746
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}`),
696
747
  method: "DELETE",
697
748
  headers: {
698
749
  Authorization: yield this._getAuthorizationHeader(),
699
- "X-Polytomic-Version": "2024-02-08",
750
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
751
+ ? yield core.Supplier.get(this._options.version)
752
+ : undefined,
700
753
  "X-Fern-Language": "JavaScript",
701
754
  "X-Fern-SDK-Name": "polytomic",
702
- "X-Fern-SDK-Version": "1.5.0",
755
+ "X-Fern-SDK-Version": "1.8.4",
703
756
  "X-Fern-Runtime": core.RUNTIME.type,
704
757
  "X-Fern-Runtime-Version": core.RUNTIME.version,
705
758
  },
706
759
  contentType: "application/json",
707
760
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
708
761
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
762
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
709
763
  });
710
764
  if (_response.ok) {
711
765
  return;
@@ -743,13 +797,17 @@ class ModelSync {
743
797
  });
744
798
  }
745
799
  /**
800
+ * @param {string} id
801
+ * @param {Polytomic.ActivateSyncInput} request
802
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
803
+ *
746
804
  * @throws {@link Polytomic.UnauthorizedError}
747
805
  * @throws {@link Polytomic.ForbiddenError}
748
806
  * @throws {@link Polytomic.NotFoundError}
749
807
  * @throws {@link Polytomic.InternalServerError}
750
808
  *
751
809
  * @example
752
- * await polytomic.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
810
+ * await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
753
811
  * active: true
754
812
  * })
755
813
  */
@@ -757,14 +815,16 @@ class ModelSync {
757
815
  var _a;
758
816
  return __awaiter(this, void 0, void 0, function* () {
759
817
  const _response = yield core.fetcher({
760
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}/activate`),
818
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}/activate`),
761
819
  method: "POST",
762
820
  headers: {
763
821
  Authorization: yield this._getAuthorizationHeader(),
764
- "X-Polytomic-Version": "2024-02-08",
822
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
823
+ ? yield core.Supplier.get(this._options.version)
824
+ : undefined,
765
825
  "X-Fern-Language": "JavaScript",
766
826
  "X-Fern-SDK-Name": "polytomic",
767
- "X-Fern-SDK-Version": "1.5.0",
827
+ "X-Fern-SDK-Version": "1.8.4",
768
828
  "X-Fern-Runtime": core.RUNTIME.type,
769
829
  "X-Fern-Runtime-Version": core.RUNTIME.version,
770
830
  },
@@ -772,6 +832,7 @@ class ModelSync {
772
832
  body: request,
773
833
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
774
834
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
835
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
775
836
  });
776
837
  if (_response.ok) {
777
838
  return _response.body;
@@ -812,6 +873,11 @@ class ModelSync {
812
873
  * > 🚧 Force full resync
813
874
  * >
814
875
  * > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
876
+ *
877
+ * @param {string} id
878
+ * @param {Polytomic.StartModelSyncRequest} request
879
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
880
+ *
815
881
  * @throws {@link Polytomic.BadRequestError}
816
882
  * @throws {@link Polytomic.UnauthorizedError}
817
883
  * @throws {@link Polytomic.ForbiddenError}
@@ -819,20 +885,22 @@ class ModelSync {
819
885
  * @throws {@link Polytomic.InternalServerError}
820
886
  *
821
887
  * @example
822
- * await polytomic.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {})
888
+ * await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
823
889
  */
824
890
  start(id, request = {}, requestOptions) {
825
891
  var _a;
826
892
  return __awaiter(this, void 0, void 0, function* () {
827
893
  const _response = yield core.fetcher({
828
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}/executions`),
894
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}/executions`),
829
895
  method: "POST",
830
896
  headers: {
831
897
  Authorization: yield this._getAuthorizationHeader(),
832
- "X-Polytomic-Version": "2024-02-08",
898
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
899
+ ? yield core.Supplier.get(this._options.version)
900
+ : undefined,
833
901
  "X-Fern-Language": "JavaScript",
834
902
  "X-Fern-SDK-Name": "polytomic",
835
- "X-Fern-SDK-Version": "1.5.0",
903
+ "X-Fern-SDK-Version": "1.8.4",
836
904
  "X-Fern-Runtime": core.RUNTIME.type,
837
905
  "X-Fern-Runtime-Version": core.RUNTIME.version,
838
906
  },
@@ -840,6 +908,7 @@ class ModelSync {
840
908
  body: request,
841
909
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
842
910
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
911
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
843
912
  });
844
913
  if (_response.ok) {
845
914
  return _response.body;
@@ -879,31 +948,37 @@ class ModelSync {
879
948
  });
880
949
  }
881
950
  /**
951
+ * @param {string} id
952
+ * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
953
+ *
882
954
  * @throws {@link Polytomic.UnauthorizedError}
883
955
  * @throws {@link Polytomic.NotFoundError}
884
956
  * @throws {@link Polytomic.InternalServerError}
885
957
  *
886
958
  * @example
887
- * await polytomic.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
959
+ * await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
888
960
  */
889
961
  getStatus(id, requestOptions) {
890
962
  var _a;
891
963
  return __awaiter(this, void 0, void 0, function* () {
892
964
  const _response = yield core.fetcher({
893
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}/status`),
965
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}/status`),
894
966
  method: "GET",
895
967
  headers: {
896
968
  Authorization: yield this._getAuthorizationHeader(),
897
- "X-Polytomic-Version": "2024-02-08",
969
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
970
+ ? yield core.Supplier.get(this._options.version)
971
+ : undefined,
898
972
  "X-Fern-Language": "JavaScript",
899
973
  "X-Fern-SDK-Name": "polytomic",
900
- "X-Fern-SDK-Version": "1.5.0",
974
+ "X-Fern-SDK-Version": "1.8.4",
901
975
  "X-Fern-Runtime": core.RUNTIME.type,
902
976
  "X-Fern-Runtime-Version": core.RUNTIME.version,
903
977
  },
904
978
  contentType: "application/json",
905
979
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
906
980
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
981
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
907
982
  });
908
983
  if (_response.ok) {
909
984
  return _response.body;
@@ -1,15 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated from our API Definition.
3
3
  */
4
- import * as Polytomic from "../../../..";
4
+ import * as Polytomic from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
8
  * fields: [{
9
- * source: {
10
- * field: "id",
11
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
12
- * },
13
9
  * target: "name"
14
10
  * }],
15
11
  * mode: "create",
@@ -24,6 +20,7 @@ import * as Polytomic from "../../../..";
24
20
  export interface CreateModelSyncRequest {
25
21
  active?: boolean;
26
22
  enricher?: Polytomic.Enrichment;
23
+ /** Fields to sync from source to target. */
27
24
  fields: Polytomic.ModelSyncField[];
28
25
  filter_logic?: string;
29
26
  filters?: Polytomic.Filter[];
@@ -31,9 +28,9 @@ export interface CreateModelSyncRequest {
31
28
  mode: string;
32
29
  name: string;
33
30
  organization_id?: string;
34
- /** Values to set as sync target fields. */
31
+ /** Values to set in the target unconditionally. */
35
32
  override_fields?: Polytomic.ModelSyncField[];
36
- /** Conditional value replacement for field mappings. */
33
+ /** Conditional value replacement for fields. */
37
34
  overrides?: Polytomic.Override[];
38
35
  policies?: string[];
39
36
  schedule: Polytomic.Schedule;
@@ -6,5 +6,5 @@
6
6
  * {}
7
7
  */
8
8
  export interface ModelSyncGetSourceRequest {
9
- params?: string;
9
+ params?: Record<string, string[] | undefined>;
10
10
  }