polytomic 0.1.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/Client.d.ts +8 -6
  2. package/Client.js +27 -22
  3. package/api/errors/BadRequestError.d.ts +8 -0
  4. package/api/errors/BadRequestError.js +41 -0
  5. package/api/errors/ForbiddenError.d.ts +8 -0
  6. package/api/errors/ForbiddenError.js +41 -0
  7. package/api/errors/InternalServerError.d.ts +8 -0
  8. package/api/errors/InternalServerError.js +41 -0
  9. package/api/errors/NotFoundError.d.ts +8 -0
  10. package/api/errors/NotFoundError.js +41 -0
  11. package/api/errors/UnprocessableEntityError.d.ts +8 -0
  12. package/api/errors/UnprocessableEntityError.js +41 -0
  13. package/api/errors/index.d.ts +5 -0
  14. package/api/errors/index.js +5 -0
  15. package/api/resources/bulkSync/client/Client.d.ts +62 -46
  16. package/api/resources/bulkSync/client/Client.js +174 -184
  17. package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -1
  18. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  19. package/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.d.ts +1 -4
  20. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  21. package/api/resources/bulkSync/client/requests/index.d.ts +3 -2
  22. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +5 -14
  23. package/api/resources/bulkSync/resources/executions/client/Client.js +12 -74
  24. package/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
  25. package/api/resources/bulkSync/resources/executions/client/index.js +0 -15
  26. package/api/resources/bulkSync/resources/index.d.ts +0 -1
  27. package/api/resources/bulkSync/resources/index.js +0 -1
  28. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +20 -9
  29. package/api/resources/bulkSync/resources/schemas/client/Client.js +90 -24
  30. package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +11 -0
  31. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
  32. package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -0
  33. package/api/resources/connections/client/Client.d.ts +40 -49
  34. package/api/resources/connections/client/Client.js +113 -298
  35. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +18 -0
  36. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +2 -4
  37. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
  38. package/api/resources/connections/client/requests/index.d.ts +2 -4
  39. package/api/resources/events/client/Client.d.ts +9 -8
  40. package/api/resources/events/client/Client.js +16 -18
  41. package/{dist/api/resources/events/client/requests/EventsApiV2GetEventsRequest.d.ts → api/resources/events/client/requests/EventsListRequest.d.ts} +1 -1
  42. package/api/resources/events/client/requests/index.d.ts +1 -1
  43. package/api/resources/identity/client/Client.d.ts +29 -0
  44. package/api/resources/identity/client/Client.js +114 -0
  45. package/api/resources/identity/client/index.d.ts +1 -0
  46. package/api/resources/identity/index.d.ts +1 -0
  47. package/api/resources/identity/index.js +17 -0
  48. package/api/resources/index.d.ts +3 -2
  49. package/api/resources/index.js +4 -3
  50. package/api/resources/jobs/client/Client.d.ts +6 -4
  51. package/api/resources/jobs/client/Client.js +13 -10
  52. package/api/resources/modelSync/client/Client.d.ts +87 -53
  53. package/api/resources/modelSync/client/Client.js +405 -100
  54. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
  55. package/api/resources/{connections/client/requests/ModelFieldsRequest.d.ts → modelSync/client/requests/ModelSyncGetSourceRequest.d.ts} +2 -2
  56. package/{dist/api/resources/connections/client/requests/TargetRequest.d.ts → api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.d.ts} +4 -4
  57. package/{dist/api/resources/connections/client/requests/ConnectionsGetTargetRequest.d.ts → api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts} +2 -5
  58. package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  59. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
  60. package/api/resources/modelSync/client/requests/index.d.ts +3 -0
  61. package/api/resources/modelSync/resources/executions/client/Client.d.ts +16 -64
  62. package/api/resources/modelSync/resources/executions/client/Client.js +43 -476
  63. package/api/resources/models/client/Client.d.ts +22 -13
  64. package/api/resources/models/client/Client.js +67 -47
  65. package/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
  66. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
  67. package/api/resources/organization/client/Client.d.ts +23 -26
  68. package/api/resources/organization/client/Client.js +53 -53
  69. package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
  70. package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
  71. package/api/resources/permissions/client/Client.d.ts +2 -3
  72. package/api/resources/permissions/client/Client.js +1 -1
  73. package/api/resources/permissions/resources/policies/client/Client.d.ts +24 -19
  74. package/api/resources/permissions/resources/policies/client/Client.js +66 -46
  75. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
  76. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
  77. package/api/resources/permissions/resources/roles/client/Client.d.ts +22 -10
  78. package/api/resources/permissions/resources/roles/client/Client.js +62 -37
  79. package/api/resources/schemas/client/Client.d.ts +39 -6
  80. package/api/resources/schemas/client/Client.js +208 -13
  81. package/api/resources/users/client/Client.d.ts +27 -19
  82. package/api/resources/users/client/Client.js +63 -48
  83. package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
  84. package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
  85. package/api/resources/webhooks/client/Client.d.ts +22 -15
  86. package/api/resources/webhooks/client/Client.js +56 -46
  87. package/api/types/ApiError.d.ts +8 -0
  88. package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +7 -0
  89. package/api/types/ModelSyncSourceMetaResponse.d.ts +9 -0
  90. package/api/types/SourceMeta.d.ts +8 -0
  91. package/api/types/SourceMeta.js +5 -0
  92. package/api/types/index.d.ts +4 -0
  93. package/api/types/index.js +4 -0
  94. package/dist/Client.d.ts +8 -6
  95. package/dist/Client.js +27 -22
  96. package/dist/api/errors/BadRequestError.d.ts +8 -0
  97. package/dist/api/errors/BadRequestError.js +41 -0
  98. package/dist/api/errors/ForbiddenError.d.ts +8 -0
  99. package/dist/api/errors/ForbiddenError.js +41 -0
  100. package/dist/api/errors/InternalServerError.d.ts +8 -0
  101. package/dist/api/errors/InternalServerError.js +41 -0
  102. package/dist/api/errors/NotFoundError.d.ts +8 -0
  103. package/dist/api/errors/NotFoundError.js +41 -0
  104. package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
  105. package/dist/api/errors/UnprocessableEntityError.js +41 -0
  106. package/dist/api/errors/index.d.ts +5 -0
  107. package/dist/api/errors/index.js +5 -0
  108. package/dist/api/resources/bulkSync/client/Client.d.ts +62 -46
  109. package/dist/api/resources/bulkSync/client/Client.js +174 -184
  110. package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -1
  111. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
  112. package/dist/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.d.ts +1 -4
  113. package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.js +5 -0
  114. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
  115. package/dist/api/resources/bulkSync/client/requests/index.d.ts +3 -2
  116. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +5 -14
  117. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +12 -74
  118. package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
  119. package/dist/api/resources/bulkSync/resources/executions/client/index.js +0 -15
  120. package/dist/api/resources/bulkSync/resources/index.d.ts +0 -1
  121. package/dist/api/resources/bulkSync/resources/index.js +0 -1
  122. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +20 -9
  123. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +90 -24
  124. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +11 -0
  125. package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js +5 -0
  126. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
  127. package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -0
  128. package/dist/api/resources/connections/client/Client.d.ts +40 -49
  129. package/dist/api/resources/connections/client/Client.js +113 -298
  130. package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +18 -0
  131. package/dist/api/resources/connections/client/requests/ConnectCardRequest.js +5 -0
  132. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +2 -4
  133. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
  134. package/dist/api/resources/connections/client/requests/index.d.ts +2 -4
  135. package/dist/api/resources/events/client/Client.d.ts +9 -8
  136. package/dist/api/resources/events/client/Client.js +16 -18
  137. package/{api/resources/events/client/requests/EventsApiV2GetEventsRequest.d.ts → dist/api/resources/events/client/requests/EventsListRequest.d.ts} +1 -1
  138. package/dist/api/resources/events/client/requests/EventsListRequest.js +5 -0
  139. package/dist/api/resources/events/client/requests/index.d.ts +1 -1
  140. package/dist/api/resources/identity/client/Client.d.ts +29 -0
  141. package/dist/api/resources/identity/client/Client.js +114 -0
  142. package/dist/api/resources/identity/client/index.d.ts +1 -0
  143. package/dist/api/resources/identity/index.d.ts +1 -0
  144. package/dist/api/resources/identity/index.js +17 -0
  145. package/dist/api/resources/index.d.ts +3 -2
  146. package/dist/api/resources/index.js +4 -3
  147. package/dist/api/resources/jobs/client/Client.d.ts +6 -4
  148. package/dist/api/resources/jobs/client/Client.js +13 -10
  149. package/dist/api/resources/modelSync/client/Client.d.ts +87 -53
  150. package/dist/api/resources/modelSync/client/Client.js +405 -100
  151. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
  152. package/dist/api/resources/{connections/client/requests/ModelFieldsRequest.d.ts → modelSync/client/requests/ModelSyncGetSourceRequest.d.ts} +2 -2
  153. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.js +5 -0
  154. package/{api/resources/connections/client/requests/TargetRequest.d.ts → dist/api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.d.ts} +4 -4
  155. package/dist/api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js +5 -0
  156. package/{api/resources/connections/client/requests/ConnectionsGetTargetRequest.d.ts → dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts} +2 -5
  157. package/dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.js +5 -0
  158. package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  159. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
  160. package/dist/api/resources/modelSync/client/requests/index.d.ts +3 -0
  161. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +16 -64
  162. package/dist/api/resources/modelSync/resources/executions/client/Client.js +43 -476
  163. package/dist/api/resources/models/client/Client.d.ts +22 -13
  164. package/dist/api/resources/models/client/Client.js +67 -47
  165. package/dist/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
  166. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
  167. package/dist/api/resources/organization/client/Client.d.ts +23 -26
  168. package/dist/api/resources/organization/client/Client.js +53 -53
  169. package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
  170. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
  171. package/dist/api/resources/permissions/client/Client.d.ts +2 -3
  172. package/dist/api/resources/permissions/client/Client.js +1 -1
  173. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +24 -19
  174. package/dist/api/resources/permissions/resources/policies/client/Client.js +66 -46
  175. package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
  176. package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
  177. package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +22 -10
  178. package/dist/api/resources/permissions/resources/roles/client/Client.js +62 -37
  179. package/dist/api/resources/schemas/client/Client.d.ts +39 -6
  180. package/dist/api/resources/schemas/client/Client.js +208 -13
  181. package/dist/api/resources/users/client/Client.d.ts +27 -19
  182. package/dist/api/resources/users/client/Client.js +63 -48
  183. package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
  184. package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
  185. package/dist/api/resources/webhooks/client/Client.d.ts +22 -15
  186. package/dist/api/resources/webhooks/client/Client.js +56 -46
  187. package/dist/api/types/ApiError.d.ts +8 -0
  188. package/dist/api/types/ApiError.js +5 -0
  189. package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +7 -0
  190. package/dist/api/types/GetModelSyncSourceMetaEnvelope.js +5 -0
  191. package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +9 -0
  192. package/dist/api/types/ModelSyncSourceMetaResponse.js +5 -0
  193. package/dist/api/types/SourceMeta.d.ts +8 -0
  194. package/dist/api/types/SourceMeta.js +5 -0
  195. package/dist/api/types/index.d.ts +4 -0
  196. package/dist/api/types/index.js +4 -0
  197. package/package.json +2 -2
  198. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +0 -1
  199. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +0 -1
  200. /package/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.js +0 -0
  201. /package/api/resources/{connections/client/requests/ConnectionsGetTargetRequest.js → bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js} +0 -0
  202. /package/api/resources/connections/client/requests/{ModelFieldsRequest.js → ConnectCardRequest.js} +0 -0
  203. /package/api/resources/{connections/client/requests/TargetRequest.js → events/client/requests/EventsListRequest.js} +0 -0
  204. /package/api/resources/{bulkSync/resources/executions/client/requests → identity/client}/index.js +0 -0
  205. /package/api/resources/{events/client/requests/EventsApiV2GetEventsRequest.js → modelSync/client/requests/ModelSyncGetSourceRequest.js} +0 -0
  206. /package/{dist/api/resources/bulkSync/resources/executions/client/requests/StartBulkSyncRequest.js → api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js} +0 -0
  207. /package/{dist/api/resources/connections/client/requests/ConnectionsGetTargetRequest.js → api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.js} +0 -0
  208. /package/{dist/api/resources/connections/client/requests/ModelFieldsRequest.js → api/types/ApiError.js} +0 -0
  209. /package/{dist/api/resources/connections/client/requests/TargetRequest.js → api/types/GetModelSyncSourceMetaEnvelope.js} +0 -0
  210. /package/{dist/api/resources/events/client/requests/EventsApiV2GetEventsRequest.js → api/types/ModelSyncSourceMetaResponse.js} +0 -0
  211. /package/dist/api/resources/{bulkSync/resources/executions/client/requests → identity/client}/index.js +0 -0
@@ -7,8 +7,7 @@ import * as Polytomic from "../../..";
7
7
  export declare namespace Connections {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.PolytomicEnvironment | string>;
10
- token?: core.Supplier<core.BearerToken | undefined>;
11
- xPolytomicVersion?: core.Supplier<"2023-04-25" | undefined>;
10
+ token: core.Supplier<core.BearerToken>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -17,9 +16,10 @@ export declare namespace Connections {
17
16
  }
18
17
  export declare class Connections {
19
18
  protected readonly _options: Connections.Options;
20
- constructor(_options?: Connections.Options);
19
+ constructor(_options: Connections.Options);
21
20
  /**
22
21
  * @throws {@link Polytomic.UnauthorizedError}
22
+ * @throws {@link Polytomic.InternalServerError}
23
23
  *
24
24
  * @example
25
25
  * await polytomic.connections.getTypes()
@@ -27,92 +27,83 @@ export declare class Connections {
27
27
  getTypes(requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionTypeResponseEnvelope>;
28
28
  /**
29
29
  * @throws {@link Polytomic.UnauthorizedError}
30
+ * @throws {@link Polytomic.InternalServerError}
30
31
  *
31
32
  * @example
32
33
  * await polytomic.connections.list()
33
34
  */
34
35
  list(requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionListResponseEnvelope>;
35
36
  /**
37
+ * @throws {@link Polytomic.BadRequestError}
36
38
  * @throws {@link Polytomic.UnauthorizedError}
39
+ * @throws {@link Polytomic.ForbiddenError}
40
+ * @throws {@link Polytomic.UnprocessableEntityError}
41
+ * @throws {@link Polytomic.InternalServerError}
37
42
  *
38
43
  * @example
39
44
  * await polytomic.connections.create({
40
- * name: "My Connection",
41
- * redirect_url: "https://example.com/oauth_redirect",
42
- * type: "s3",
43
- * validate: true
45
+ * name: "My Postgres Connection",
46
+ * type: "postgresql"
44
47
  * })
45
48
  */
46
49
  create(request: Polytomic.CreateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
47
- connect(requestOptions?: Connections.RequestOptions): Promise<void>;
48
50
  /**
49
51
  * @throws {@link Polytomic.UnauthorizedError}
52
+ * @throws {@link Polytomic.ForbiddenError}
53
+ * @throws {@link Polytomic.UnprocessableEntityError}
54
+ * @throws {@link Polytomic.InternalServerError}
50
55
  *
51
56
  * @example
52
- * await polytomic.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
57
+ * await polytomic.connections.connect({
58
+ * name: "Salesforce Connection",
59
+ * redirect_url: "redirect_url"
60
+ * })
53
61
  */
54
- get(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionResponseEnvelope>;
62
+ connect(request: Polytomic.ConnectCardRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectCardResponseEnvelope>;
55
63
  /**
56
64
  * @throws {@link Polytomic.UnauthorizedError}
65
+ * @throws {@link Polytomic.NotFoundError}
66
+ * @throws {@link Polytomic.InternalServerError}
57
67
  *
58
68
  * @example
59
- * await polytomic.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
60
- * force: true
61
- * })
69
+ * await polytomic.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
62
70
  */
63
- remove(id: string, request?: Polytomic.ConnectionsRemoveRequest, requestOptions?: Connections.RequestOptions): Promise<void>;
71
+ get(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionResponseEnvelope>;
64
72
  /**
73
+ * @throws {@link Polytomic.BadRequestError}
65
74
  * @throws {@link Polytomic.UnauthorizedError}
75
+ * @throws {@link Polytomic.ForbiddenError}
76
+ * @throws {@link Polytomic.NotFoundError}
77
+ * @throws {@link Polytomic.UnprocessableEntityError}
78
+ * @throws {@link Polytomic.InternalServerError}
66
79
  *
67
80
  * @example
68
81
  * await polytomic.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
69
- * name: "My Connection",
70
- * reconnect: false,
71
- * type: "s3",
72
- * validate: true
82
+ * name: "My Postgres Connection"
73
83
  * })
74
84
  */
75
85
  update(id: string, request: Polytomic.UpdateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
76
86
  /**
77
87
  * @throws {@link Polytomic.UnauthorizedError}
88
+ * @throws {@link Polytomic.ForbiddenError}
89
+ * @throws {@link Polytomic.NotFoundError}
90
+ * @throws {@link Polytomic.UnprocessableEntityError}
91
+ * @throws {@link Polytomic.InternalServerError}
78
92
  *
79
93
  * @example
80
- * await polytomic.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
81
- */
82
- getParameterValues(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionParameterValuesResponseEnvelope>;
83
- /**
84
- * @throws {@link Polytomic.UnauthorizedError}
85
- *
86
- * @example
87
- * await polytomic.connections.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
88
- */
89
- getSource(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.GetConnectionMetaEnvelope>;
90
- /**
91
- * @throws {@link Polytomic.UnauthorizedError}
92
- *
93
- * @example
94
- * await polytomic.connections.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d", {})
95
- */
96
- getSourceFields(id: string, request?: Polytomic.ModelFieldsRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ModelFieldResponse>;
97
- /**
98
- * @throws {@link Polytomic.UnauthorizedError}
99
- *
100
- * @example
101
- * await polytomic.connections.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d", {
102
- * type: "table",
103
- * search: "public.users"
94
+ * await polytomic.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
95
+ * force: true
104
96
  * })
105
97
  */
106
- getTarget(id: string, request?: Polytomic.ConnectionsGetTargetRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.GetConnectionMetaEnvelope>;
98
+ remove(id: string, request?: Polytomic.ConnectionsRemoveRequest, requestOptions?: Connections.RequestOptions): Promise<void>;
107
99
  /**
108
100
  * @throws {@link Polytomic.UnauthorizedError}
101
+ * @throws {@link Polytomic.NotFoundError}
102
+ * @throws {@link Polytomic.InternalServerError}
109
103
  *
110
104
  * @example
111
- * await polytomic.connections.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
112
- * refresh: false,
113
- * target: "database.table"
114
- * })
105
+ * await polytomic.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
115
106
  */
116
- getTargetFields(id: string, request: Polytomic.TargetRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
117
- protected _getAuthorizationHeader(): Promise<string | undefined>;
107
+ getParameterValues(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionParameterValuesResponseEnvelope>;
108
+ protected _getAuthorizationHeader(): Promise<string>;
118
109
  }