polytomic 0.2.0 → 1.2.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 (139) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +11 -11
  3. package/api/errors/index.d.ts +2 -2
  4. package/api/errors/index.js +2 -2
  5. package/api/resources/bulkSync/client/Client.d.ts +4 -19
  6. package/api/resources/bulkSync/client/Client.js +14 -29
  7. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
  8. package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
  9. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
  10. package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  11. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
  12. package/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
  13. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
  14. package/api/resources/connections/client/Client.d.ts +3 -10
  15. package/api/resources/connections/client/Client.js +12 -19
  16. package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
  17. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
  18. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
  19. package/api/resources/events/client/Client.js +2 -2
  20. package/api/resources/identity/client/Client.js +1 -1
  21. package/api/resources/index.d.ts +2 -2
  22. package/api/resources/index.js +3 -3
  23. package/api/resources/jobs/client/Client.js +1 -1
  24. package/api/resources/modelSync/client/Client.d.ts +5 -42
  25. package/api/resources/modelSync/client/Client.js +18 -55
  26. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -21
  27. package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  28. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -21
  29. package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  30. package/api/resources/models/client/Client.d.ts +31 -5
  31. package/api/resources/models/client/Client.js +150 -10
  32. package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
  33. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
  34. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
  35. package/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
  36. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  37. package/api/resources/models/client/requests/index.d.ts +3 -1
  38. package/api/resources/organization/client/Client.d.ts +7 -17
  39. package/api/resources/organization/client/Client.js +12 -22
  40. package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
  41. package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
  42. package/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
  43. package/api/resources/permissions/resources/policies/client/Client.js +7 -15
  44. package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
  45. package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
  46. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  47. package/api/resources/schemas/client/Client.js +4 -4
  48. package/api/resources/users/client/Client.d.ts +8 -10
  49. package/api/resources/users/client/Client.js +14 -16
  50. package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
  51. package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
  52. package/api/resources/webhooks/client/Client.d.ts +4 -4
  53. package/api/resources/webhooks/client/Client.js +9 -9
  54. package/api/types/ConnectionResponseSchema.d.ts +2 -0
  55. package/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -10
  56. package/api/types/CreateModelRequest.js +5 -0
  57. package/api/types/Enrichment.d.ts +13 -0
  58. package/api/types/Enrichment.js +5 -0
  59. package/api/types/ModelResponse.d.ts +1 -0
  60. package/api/types/V2EnricherConfiguration.d.ts +7 -0
  61. package/api/types/V2EnricherConfiguration.js +5 -0
  62. package/api/types/V2EnricherMapping.d.ts +7 -0
  63. package/api/types/V2EnricherMapping.js +5 -0
  64. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
  65. package/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
  66. package/api/types/index.d.ts +5 -0
  67. package/api/types/index.js +5 -0
  68. package/dist/Client.d.ts +3 -3
  69. package/dist/Client.js +11 -11
  70. package/dist/api/errors/index.d.ts +2 -2
  71. package/dist/api/errors/index.js +2 -2
  72. package/dist/api/resources/bulkSync/client/Client.d.ts +4 -19
  73. package/dist/api/resources/bulkSync/client/Client.js +14 -29
  74. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
  75. package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
  76. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
  77. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  78. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
  79. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
  80. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
  81. package/dist/api/resources/connections/client/Client.d.ts +3 -10
  82. package/dist/api/resources/connections/client/Client.js +12 -19
  83. package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
  84. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
  85. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
  86. package/dist/api/resources/events/client/Client.js +2 -2
  87. package/dist/api/resources/identity/client/Client.js +1 -1
  88. package/dist/api/resources/index.d.ts +2 -2
  89. package/dist/api/resources/index.js +3 -3
  90. package/dist/api/resources/jobs/client/Client.js +1 -1
  91. package/dist/api/resources/modelSync/client/Client.d.ts +5 -42
  92. package/dist/api/resources/modelSync/client/Client.js +18 -55
  93. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +2 -21
  94. package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
  95. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +2 -21
  96. package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  97. package/dist/api/resources/models/client/Client.d.ts +31 -5
  98. package/dist/api/resources/models/client/Client.js +150 -10
  99. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +11 -0
  100. package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.js +5 -0
  101. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +17 -0
  102. package/dist/api/resources/models/client/requests/ModelsCreateRequest.js +5 -0
  103. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +17 -0
  104. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.js +5 -0
  105. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
  106. package/dist/api/resources/models/client/requests/index.d.ts +3 -1
  107. package/dist/api/resources/organization/client/Client.d.ts +7 -17
  108. package/dist/api/resources/organization/client/Client.js +12 -22
  109. package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
  110. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
  111. package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
  112. package/dist/api/resources/permissions/resources/policies/client/Client.js +7 -15
  113. package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
  114. package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
  115. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  116. package/dist/api/resources/schemas/client/Client.js +4 -4
  117. package/dist/api/resources/users/client/Client.d.ts +8 -10
  118. package/dist/api/resources/users/client/Client.js +14 -16
  119. package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
  120. package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
  121. package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
  122. package/dist/api/resources/webhooks/client/Client.js +9 -9
  123. package/dist/api/types/ConnectionResponseSchema.d.ts +2 -0
  124. package/dist/api/{resources/models/client/requests → types}/CreateModelRequest.d.ts +2 -10
  125. package/dist/api/types/CreateModelRequest.js +5 -0
  126. package/dist/api/types/Enrichment.d.ts +13 -0
  127. package/dist/api/types/Enrichment.js +5 -0
  128. package/dist/api/types/ModelResponse.d.ts +1 -0
  129. package/dist/api/types/V2EnricherConfiguration.d.ts +7 -0
  130. package/dist/api/types/V2EnricherConfiguration.js +5 -0
  131. package/dist/api/types/V2EnricherMapping.d.ts +7 -0
  132. package/dist/api/types/V2EnricherMapping.js +5 -0
  133. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.d.ts +6 -0
  134. package/dist/api/types/V2GetEnrichmentInputFieldsResponseEnvelope.js +5 -0
  135. package/dist/api/types/index.d.ts +5 -0
  136. package/dist/api/types/index.js +5 -0
  137. package/package.json +2 -2
  138. /package/api/resources/models/client/requests/{CreateModelRequest.js → GetEnrichmentInputFieldsRequest.js} +0 -0
  139. /package/{dist/api/resources/models/client/requests/CreateModelRequest.js → api/resources/models/client/requests/ModelsCreateRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -7,10 +7,10 @@ import { BulkSync } from "./api/resources/bulkSync/client/Client";
7
7
  import { Connections } from "./api/resources/connections/client/Client";
8
8
  import { ModelSync } from "./api/resources/modelSync/client/Client";
9
9
  import { Schemas } from "./api/resources/schemas/client/Client";
10
+ import { Models } from "./api/resources/models/client/Client";
10
11
  import { Events } from "./api/resources/events/client/Client";
11
12
  import { Jobs } from "./api/resources/jobs/client/Client";
12
13
  import { Identity } from "./api/resources/identity/client/Client";
13
- import { Models } from "./api/resources/models/client/Client";
14
14
  import { Organization } from "./api/resources/organization/client/Client";
15
15
  import { Users } from "./api/resources/users/client/Client";
16
16
  import { Permissions } from "./api/resources/permissions/client/Client";
@@ -36,14 +36,14 @@ export declare class PolytomicClient {
36
36
  get modelSync(): ModelSync;
37
37
  protected _schemas: Schemas | undefined;
38
38
  get schemas(): Schemas;
39
+ protected _models: Models | undefined;
40
+ get models(): Models;
39
41
  protected _events: Events | undefined;
40
42
  get events(): Events;
41
43
  protected _jobs: Jobs | undefined;
42
44
  get jobs(): Jobs;
43
45
  protected _identity: Identity | undefined;
44
46
  get identity(): Identity;
45
- protected _models: Models | undefined;
46
- get models(): Models;
47
47
  protected _organization: Organization | undefined;
48
48
  get organization(): Organization;
49
49
  protected _users: Users | undefined;
package/Client.js CHANGED
@@ -8,10 +8,10 @@ const Client_1 = require("./api/resources/bulkSync/client/Client");
8
8
  const Client_2 = require("./api/resources/connections/client/Client");
9
9
  const Client_3 = require("./api/resources/modelSync/client/Client");
10
10
  const Client_4 = require("./api/resources/schemas/client/Client");
11
- const Client_5 = require("./api/resources/events/client/Client");
12
- const Client_6 = require("./api/resources/jobs/client/Client");
13
- const Client_7 = require("./api/resources/identity/client/Client");
14
- const Client_8 = require("./api/resources/models/client/Client");
11
+ const Client_5 = require("./api/resources/models/client/Client");
12
+ const Client_6 = require("./api/resources/events/client/Client");
13
+ const Client_7 = require("./api/resources/jobs/client/Client");
14
+ const Client_8 = require("./api/resources/identity/client/Client");
15
15
  const Client_9 = require("./api/resources/organization/client/Client");
16
16
  const Client_10 = require("./api/resources/users/client/Client");
17
17
  const Client_11 = require("./api/resources/permissions/client/Client");
@@ -36,21 +36,21 @@ class PolytomicClient {
36
36
  var _a;
37
37
  return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_4.Schemas(this._options)));
38
38
  }
39
+ get models() {
40
+ var _a;
41
+ return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_5.Models(this._options)));
42
+ }
39
43
  get events() {
40
44
  var _a;
41
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_5.Events(this._options)));
45
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_6.Events(this._options)));
42
46
  }
43
47
  get jobs() {
44
48
  var _a;
45
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_6.Jobs(this._options)));
49
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_7.Jobs(this._options)));
46
50
  }
47
51
  get identity() {
48
52
  var _a;
49
- return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_7.Identity(this._options)));
50
- }
51
- get models() {
52
- var _a;
53
- return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_8.Models(this._options)));
53
+ return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_8.Identity(this._options)));
54
54
  }
55
55
  get organization() {
56
56
  var _a;
@@ -1,6 +1,6 @@
1
- export * from "./BadRequestError";
2
1
  export * from "./UnauthorizedError";
2
+ export * from "./InternalServerError";
3
+ export * from "./BadRequestError";
3
4
  export * from "./ForbiddenError";
4
5
  export * from "./NotFoundError";
5
6
  export * from "./UnprocessableEntityError";
6
- export * from "./InternalServerError";
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BadRequestError"), exports);
18
17
  __exportStar(require("./UnauthorizedError"), exports);
18
+ __exportStar(require("./InternalServerError"), exports);
19
+ __exportStar(require("./BadRequestError"), exports);
19
20
  __exportStar(require("./ForbiddenError"), exports);
20
21
  __exportStar(require("./NotFoundError"), exports);
21
22
  __exportStar(require("./UnprocessableEntityError"), exports);
22
- __exportStar(require("./InternalServerError"), exports);
@@ -36,15 +36,9 @@ export declare class BulkSync {
36
36
  * @example
37
37
  * await polytomic.bulkSync.create({
38
38
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
39
- * mode: "replicate",
40
39
  * name: "My Bulk Sync",
41
40
  * schedule: {
42
- * day_of_month: "1",
43
- * day_of_week: "monday",
44
- * frequency: Polytomic.ScheduleFrequency.Manual,
45
- * hour: "0",
46
- * minute: "0",
47
- * month: "1"
41
+ * frequency: Polytomic.ScheduleFrequency.Manual
48
42
  * },
49
43
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
50
44
  * })
@@ -63,7 +57,7 @@ export declare class BulkSync {
63
57
  /**
64
58
  * > 📘 Updating schemas
65
59
  * >
66
- * > Schema updates can be performed using the [Update Bulk Sync Schemas](https://docs.polytomic.com/reference/apiv3updatebulksyncschemas) endpoint.
60
+ * > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
67
61
  * @throws {@link Polytomic.BadRequestError}
68
62
  * @throws {@link Polytomic.UnauthorizedError}
69
63
  * @throws {@link Polytomic.ForbiddenError}
@@ -73,15 +67,9 @@ export declare class BulkSync {
73
67
  * @example
74
68
  * await polytomic.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
75
69
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
76
- * mode: "replicate",
77
70
  * name: "My Bulk Sync",
78
71
  * schedule: {
79
- * day_of_month: "1",
80
- * day_of_week: "monday",
81
- * frequency: Polytomic.ScheduleFrequency.Manual,
82
- * hour: "0",
83
- * minute: "0",
84
- * month: "1"
72
+ * frequency: Polytomic.ScheduleFrequency.Manual
85
73
  * },
86
74
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
87
75
  * })
@@ -116,10 +104,7 @@ export declare class BulkSync {
116
104
  * @throws {@link Polytomic.UnauthorizedError}
117
105
  *
118
106
  * @example
119
- * await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {
120
- * resync: false,
121
- * test: false
122
- * })
107
+ * await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {})
123
108
  */
124
109
  start(id: string, request?: Polytomic.StartBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
125
110
  /**
@@ -68,7 +68,7 @@ class BulkSync {
68
68
  "X-Polytomic-Version": "2024-02-08",
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "polytomic",
71
- "X-Fern-SDK-Version": "0.2.0",
71
+ "X-Fern-SDK-Version": "1.2.0",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -116,15 +116,9 @@ class BulkSync {
116
116
  * @example
117
117
  * await polytomic.bulkSync.create({
118
118
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
119
- * mode: "replicate",
120
119
  * name: "My Bulk Sync",
121
120
  * schedule: {
122
- * day_of_month: "1",
123
- * day_of_week: "monday",
124
- * frequency: Polytomic.ScheduleFrequency.Manual,
125
- * hour: "0",
126
- * minute: "0",
127
- * month: "1"
121
+ * frequency: Polytomic.ScheduleFrequency.Manual
128
122
  * },
129
123
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
130
124
  * })
@@ -140,7 +134,7 @@ class BulkSync {
140
134
  "X-Polytomic-Version": "2024-02-08",
141
135
  "X-Fern-Language": "JavaScript",
142
136
  "X-Fern-SDK-Name": "polytomic",
143
- "X-Fern-SDK-Version": "0.2.0",
137
+ "X-Fern-SDK-Version": "1.2.0",
144
138
  "X-Fern-Runtime": core.RUNTIME.type,
145
139
  "X-Fern-Runtime-Version": core.RUNTIME.version,
146
140
  },
@@ -209,7 +203,7 @@ class BulkSync {
209
203
  "X-Polytomic-Version": "2024-02-08",
210
204
  "X-Fern-Language": "JavaScript",
211
205
  "X-Fern-SDK-Name": "polytomic",
212
- "X-Fern-SDK-Version": "0.2.0",
206
+ "X-Fern-SDK-Version": "1.2.0",
213
207
  "X-Fern-Runtime": core.RUNTIME.type,
214
208
  "X-Fern-Runtime-Version": core.RUNTIME.version,
215
209
  },
@@ -252,7 +246,7 @@ class BulkSync {
252
246
  /**
253
247
  * > 📘 Updating schemas
254
248
  * >
255
- * > Schema updates can be performed using the [Update Bulk Sync Schemas](https://docs.polytomic.com/reference/apiv3updatebulksyncschemas) endpoint.
249
+ * > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
256
250
  * @throws {@link Polytomic.BadRequestError}
257
251
  * @throws {@link Polytomic.UnauthorizedError}
258
252
  * @throws {@link Polytomic.ForbiddenError}
@@ -262,15 +256,9 @@ class BulkSync {
262
256
  * @example
263
257
  * await polytomic.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
264
258
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
265
- * mode: "replicate",
266
259
  * name: "My Bulk Sync",
267
260
  * schedule: {
268
- * day_of_month: "1",
269
- * day_of_week: "monday",
270
- * frequency: Polytomic.ScheduleFrequency.Manual,
271
- * hour: "0",
272
- * minute: "0",
273
- * month: "1"
261
+ * frequency: Polytomic.ScheduleFrequency.Manual
274
262
  * },
275
263
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
276
264
  * })
@@ -286,7 +274,7 @@ class BulkSync {
286
274
  "X-Polytomic-Version": "2024-02-08",
287
275
  "X-Fern-Language": "JavaScript",
288
276
  "X-Fern-SDK-Name": "polytomic",
289
- "X-Fern-SDK-Version": "0.2.0",
277
+ "X-Fern-SDK-Version": "1.2.0",
290
278
  "X-Fern-Runtime": core.RUNTIME.type,
291
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
292
280
  },
@@ -359,7 +347,7 @@ class BulkSync {
359
347
  "X-Polytomic-Version": "2024-02-08",
360
348
  "X-Fern-Language": "JavaScript",
361
349
  "X-Fern-SDK-Name": "polytomic",
362
- "X-Fern-SDK-Version": "0.2.0",
350
+ "X-Fern-SDK-Version": "1.2.0",
363
351
  "X-Fern-Runtime": core.RUNTIME.type,
364
352
  "X-Fern-Runtime-Version": core.RUNTIME.version,
365
353
  },
@@ -425,7 +413,7 @@ class BulkSync {
425
413
  "X-Polytomic-Version": "2024-02-08",
426
414
  "X-Fern-Language": "JavaScript",
427
415
  "X-Fern-SDK-Name": "polytomic",
428
- "X-Fern-SDK-Version": "0.2.0",
416
+ "X-Fern-SDK-Version": "1.2.0",
429
417
  "X-Fern-Runtime": core.RUNTIME.type,
430
418
  "X-Fern-Runtime-Version": core.RUNTIME.version,
431
419
  },
@@ -474,10 +462,7 @@ class BulkSync {
474
462
  * @throws {@link Polytomic.UnauthorizedError}
475
463
  *
476
464
  * @example
477
- * await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {
478
- * resync: false,
479
- * test: false
480
- * })
465
+ * await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {})
481
466
  */
482
467
  start(id, request = {}, requestOptions) {
483
468
  var _a;
@@ -490,7 +475,7 @@ class BulkSync {
490
475
  "X-Polytomic-Version": "2024-02-08",
491
476
  "X-Fern-Language": "JavaScript",
492
477
  "X-Fern-SDK-Name": "polytomic",
493
- "X-Fern-SDK-Version": "0.2.0",
478
+ "X-Fern-SDK-Version": "1.2.0",
494
479
  "X-Fern-Runtime": core.RUNTIME.type,
495
480
  "X-Fern-Runtime-Version": core.RUNTIME.version,
496
481
  },
@@ -549,7 +534,7 @@ class BulkSync {
549
534
  "X-Polytomic-Version": "2024-02-08",
550
535
  "X-Fern-Language": "JavaScript",
551
536
  "X-Fern-SDK-Name": "polytomic",
552
- "X-Fern-SDK-Version": "0.2.0",
537
+ "X-Fern-SDK-Version": "1.2.0",
553
538
  "X-Fern-Runtime": core.RUNTIME.type,
554
539
  "X-Fern-Runtime-Version": core.RUNTIME.version,
555
540
  },
@@ -617,7 +602,7 @@ class BulkSync {
617
602
  "X-Polytomic-Version": "2024-02-08",
618
603
  "X-Fern-Language": "JavaScript",
619
604
  "X-Fern-SDK-Name": "polytomic",
620
- "X-Fern-SDK-Version": "0.2.0",
605
+ "X-Fern-SDK-Version": "1.2.0",
621
606
  "X-Fern-Runtime": core.RUNTIME.type,
622
607
  "X-Fern-Runtime-Version": core.RUNTIME.version,
623
608
  },
@@ -681,7 +666,7 @@ class BulkSync {
681
666
  "X-Polytomic-Version": "2024-02-08",
682
667
  "X-Fern-Language": "JavaScript",
683
668
  "X-Fern-SDK-Name": "polytomic",
684
- "X-Fern-SDK-Version": "0.2.0",
669
+ "X-Fern-SDK-Version": "1.2.0",
685
670
  "X-Fern-Runtime": core.RUNTIME.type,
686
671
  "X-Fern-Runtime-Version": core.RUNTIME.version,
687
672
  },
@@ -6,15 +6,9 @@ import * as Polytomic from "../../../..";
6
6
  * @example
7
7
  * {
8
8
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
9
- * mode: "replicate",
10
9
  * name: "My Bulk Sync",
11
10
  * schedule: {
12
- * day_of_month: "1",
13
- * day_of_week: "monday",
14
- * frequency: Polytomic.ScheduleFrequency.Manual,
15
- * hour: "0",
16
- * minute: "0",
17
- * month: "1"
11
+ * frequency: Polytomic.ScheduleFrequency.Manual
18
12
  * },
19
13
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
20
14
  * }
@@ -3,10 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * resync: false,
8
- * test: false
9
- * }
6
+ * {}
10
7
  */
11
8
  export interface StartBulkSyncRequest {
12
9
  resync?: boolean;
@@ -6,15 +6,9 @@ import * as Polytomic from "../../../..";
6
6
  * @example
7
7
  * {
8
8
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
9
- * mode: "replicate",
10
9
  * name: "My Bulk Sync",
11
10
  * schedule: {
12
- * day_of_month: "1",
13
- * day_of_week: "monday",
14
- * frequency: Polytomic.ScheduleFrequency.Manual,
15
- * hour: "0",
16
- * minute: "0",
17
- * month: "1"
11
+ * frequency: Polytomic.ScheduleFrequency.Manual
18
12
  * },
19
13
  * source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
20
14
  * }
@@ -66,7 +66,7 @@ class Executions {
66
66
  "X-Polytomic-Version": "2024-02-08",
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "0.2.0",
69
+ "X-Fern-SDK-Version": "1.2.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -123,7 +123,7 @@ class Executions {
123
123
  "X-Polytomic-Version": "2024-02-08",
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "polytomic",
126
- "X-Fern-SDK-Version": "0.2.0",
126
+ "X-Fern-SDK-Version": "1.2.0",
127
127
  "X-Fern-Runtime": core.RUNTIME.type,
128
128
  "X-Fern-Runtime-Version": core.RUNTIME.version,
129
129
  },
@@ -50,10 +50,7 @@ export declare class Schemas {
50
50
  * @throws {@link Polytomic.InternalServerError}
51
51
  *
52
52
  * @example
53
- * await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {
54
- * enabled: true,
55
- * partition_key: "email"
56
- * })
53
+ * await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {})
57
54
  */
58
55
  update(id: string, schemaId: string, request?: Polytomic.bulkSync.UpdateBulkSchema, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.BulkSchemaEnvelope>;
59
56
  protected _getAuthorizationHeader(): Promise<string>;
@@ -71,7 +71,7 @@ class Schemas {
71
71
  "X-Polytomic-Version": "2024-02-08",
72
72
  "X-Fern-Language": "JavaScript",
73
73
  "X-Fern-SDK-Name": "polytomic",
74
- "X-Fern-SDK-Version": "0.2.0",
74
+ "X-Fern-SDK-Version": "1.2.0",
75
75
  "X-Fern-Runtime": core.RUNTIME.type,
76
76
  "X-Fern-Runtime-Version": core.RUNTIME.version,
77
77
  },
@@ -131,7 +131,7 @@ class Schemas {
131
131
  "X-Polytomic-Version": "2024-02-08",
132
132
  "X-Fern-Language": "JavaScript",
133
133
  "X-Fern-SDK-Name": "polytomic",
134
- "X-Fern-SDK-Version": "0.2.0",
134
+ "X-Fern-SDK-Version": "1.2.0",
135
135
  "X-Fern-Runtime": core.RUNTIME.type,
136
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
137
137
  },
@@ -193,7 +193,7 @@ class Schemas {
193
193
  "X-Polytomic-Version": "2024-02-08",
194
194
  "X-Fern-Language": "JavaScript",
195
195
  "X-Fern-SDK-Name": "polytomic",
196
- "X-Fern-SDK-Version": "0.2.0",
196
+ "X-Fern-SDK-Version": "1.2.0",
197
197
  "X-Fern-Runtime": core.RUNTIME.type,
198
198
  "X-Fern-Runtime-Version": core.RUNTIME.version,
199
199
  },
@@ -239,10 +239,7 @@ class Schemas {
239
239
  * @throws {@link Polytomic.InternalServerError}
240
240
  *
241
241
  * @example
242
- * await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {
243
- * enabled: true,
244
- * partition_key: "email"
245
- * })
242
+ * await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {})
246
243
  */
247
244
  update(id, schemaId, request = {}, requestOptions) {
248
245
  var _a;
@@ -255,7 +252,7 @@ class Schemas {
255
252
  "X-Polytomic-Version": "2024-02-08",
256
253
  "X-Fern-Language": "JavaScript",
257
254
  "X-Fern-SDK-Name": "polytomic",
258
- "X-Fern-SDK-Version": "0.2.0",
255
+ "X-Fern-SDK-Version": "1.2.0",
259
256
  "X-Fern-Runtime": core.RUNTIME.type,
260
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
261
258
  },
@@ -4,10 +4,7 @@
4
4
  import * as Polytomic from "../../../../../..";
5
5
  /**
6
6
  * @example
7
- * {
8
- * enabled: true,
9
- * partition_key: "email"
10
- * }
7
+ * {}
11
8
  */
12
9
  export interface UpdateBulkSchema {
13
10
  enabled?: boolean;
@@ -43,9 +43,7 @@ export declare class Connections {
43
43
  * @example
44
44
  * await polytomic.connections.create({
45
45
  * name: "My Postgres Connection",
46
- * redirect_url: "https://example.com/oauth_redirect",
47
- * type: "postgresql",
48
- * validate: true
46
+ * type: "postgresql"
49
47
  * })
50
48
  */
51
49
  create(request: Polytomic.CreateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
@@ -57,10 +55,8 @@ export declare class Connections {
57
55
  *
58
56
  * @example
59
57
  * await polytomic.connections.connect({
60
- * connection: "248df4b7-aa70-47b8-a036-33ac447e668d",
61
58
  * name: "Salesforce Connection",
62
- * redirect_url: "redirect_url",
63
- * type: "salesforce"
59
+ * redirect_url: "redirect_url"
64
60
  * })
65
61
  */
66
62
  connect(request: Polytomic.ConnectCardRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectCardResponseEnvelope>;
@@ -83,10 +79,7 @@ export declare class Connections {
83
79
  *
84
80
  * @example
85
81
  * await polytomic.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
86
- * name: "My Postgres Connection",
87
- * reconnect: false,
88
- * type: "postgresql",
89
- * validate: true
82
+ * name: "My Postgres Connection"
90
83
  * })
91
84
  */
92
85
  update(id: string, request: Polytomic.UpdateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
@@ -66,7 +66,7 @@ class Connections {
66
66
  "X-Polytomic-Version": "2024-02-08",
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "0.2.0",
69
+ "X-Fern-SDK-Version": "1.2.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -123,7 +123,7 @@ class Connections {
123
123
  "X-Polytomic-Version": "2024-02-08",
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "polytomic",
126
- "X-Fern-SDK-Version": "0.2.0",
126
+ "X-Fern-SDK-Version": "1.2.0",
127
127
  "X-Fern-Runtime": core.RUNTIME.type,
128
128
  "X-Fern-Runtime-Version": core.RUNTIME.version,
129
129
  },
@@ -172,9 +172,7 @@ class Connections {
172
172
  * @example
173
173
  * await polytomic.connections.create({
174
174
  * name: "My Postgres Connection",
175
- * redirect_url: "https://example.com/oauth_redirect",
176
- * type: "postgresql",
177
- * validate: true
175
+ * type: "postgresql"
178
176
  * })
179
177
  */
180
178
  create(request, requestOptions) {
@@ -188,7 +186,7 @@ class Connections {
188
186
  "X-Polytomic-Version": "2024-02-08",
189
187
  "X-Fern-Language": "JavaScript",
190
188
  "X-Fern-SDK-Name": "polytomic",
191
- "X-Fern-SDK-Version": "0.2.0",
189
+ "X-Fern-SDK-Version": "1.2.0",
192
190
  "X-Fern-Runtime": core.RUNTIME.type,
193
191
  "X-Fern-Runtime-Version": core.RUNTIME.version,
194
192
  },
@@ -242,24 +240,22 @@ class Connections {
242
240
  *
243
241
  * @example
244
242
  * await polytomic.connections.connect({
245
- * connection: "248df4b7-aa70-47b8-a036-33ac447e668d",
246
243
  * name: "Salesforce Connection",
247
- * redirect_url: "redirect_url",
248
- * type: "salesforce"
244
+ * redirect_url: "redirect_url"
249
245
  * })
250
246
  */
251
247
  connect(request, requestOptions) {
252
248
  var _a;
253
249
  return __awaiter(this, void 0, void 0, function* () {
254
250
  const _response = yield core.fetcher({
255
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/connections/connect"),
251
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/connections/connect/"),
256
252
  method: "POST",
257
253
  headers: {
258
254
  Authorization: yield this._getAuthorizationHeader(),
259
255
  "X-Polytomic-Version": "2024-02-08",
260
256
  "X-Fern-Language": "JavaScript",
261
257
  "X-Fern-SDK-Name": "polytomic",
262
- "X-Fern-SDK-Version": "0.2.0",
258
+ "X-Fern-SDK-Version": "1.2.0",
263
259
  "X-Fern-Runtime": core.RUNTIME.type,
264
260
  "X-Fern-Runtime-Version": core.RUNTIME.version,
265
261
  },
@@ -322,7 +318,7 @@ class Connections {
322
318
  "X-Polytomic-Version": "2024-02-08",
323
319
  "X-Fern-Language": "JavaScript",
324
320
  "X-Fern-SDK-Name": "polytomic",
325
- "X-Fern-SDK-Version": "0.2.0",
321
+ "X-Fern-SDK-Version": "1.2.0",
326
322
  "X-Fern-Runtime": core.RUNTIME.type,
327
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
328
324
  },
@@ -373,10 +369,7 @@ class Connections {
373
369
  *
374
370
  * @example
375
371
  * await polytomic.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
376
- * name: "My Postgres Connection",
377
- * reconnect: false,
378
- * type: "postgresql",
379
- * validate: true
372
+ * name: "My Postgres Connection"
380
373
  * })
381
374
  */
382
375
  update(id, request, requestOptions) {
@@ -390,7 +383,7 @@ class Connections {
390
383
  "X-Polytomic-Version": "2024-02-08",
391
384
  "X-Fern-Language": "JavaScript",
392
385
  "X-Fern-SDK-Name": "polytomic",
393
- "X-Fern-SDK-Version": "0.2.0",
386
+ "X-Fern-SDK-Version": "1.2.0",
394
387
  "X-Fern-Runtime": core.RUNTIME.type,
395
388
  "X-Fern-Runtime-Version": core.RUNTIME.version,
396
389
  },
@@ -466,7 +459,7 @@ class Connections {
466
459
  "X-Polytomic-Version": "2024-02-08",
467
460
  "X-Fern-Language": "JavaScript",
468
461
  "X-Fern-SDK-Name": "polytomic",
469
- "X-Fern-SDK-Version": "0.2.0",
462
+ "X-Fern-SDK-Version": "1.2.0",
470
463
  "X-Fern-Runtime": core.RUNTIME.type,
471
464
  "X-Fern-Runtime-Version": core.RUNTIME.version,
472
465
  },
@@ -531,7 +524,7 @@ class Connections {
531
524
  "X-Polytomic-Version": "2024-02-08",
532
525
  "X-Fern-Language": "JavaScript",
533
526
  "X-Fern-SDK-Name": "polytomic",
534
- "X-Fern-SDK-Version": "0.2.0",
527
+ "X-Fern-SDK-Version": "1.2.0",
535
528
  "X-Fern-Runtime": core.RUNTIME.type,
536
529
  "X-Fern-Runtime-Version": core.RUNTIME.version,
537
530
  },
@@ -4,10 +4,8 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * connection: "248df4b7-aa70-47b8-a036-33ac447e668d",
8
7
  * name: "Salesforce Connection",
9
- * redirect_url: "redirect_url",
10
- * type: "salesforce"
8
+ * redirect_url: "redirect_url"
11
9
  * }
12
10
  */
13
11
  export interface ConnectCardRequest {
@@ -5,9 +5,7 @@
5
5
  * @example
6
6
  * {
7
7
  * name: "My Postgres Connection",
8
- * redirect_url: "https://example.com/oauth_redirect",
9
- * type: "postgresql",
10
- * validate: true
8
+ * type: "postgresql"
11
9
  * }
12
10
  */
13
11
  export interface CreateConnectionRequestSchema {
@@ -4,10 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * name: "My Postgres Connection",
8
- * reconnect: false,
9
- * type: "postgresql",
10
- * validate: true
7
+ * name: "My Postgres Connection"
11
8
  * }
12
9
  */
13
10
  export interface UpdateConnectionRequestSchema {
@@ -88,7 +88,7 @@ class Events {
88
88
  "X-Polytomic-Version": "2024-02-08",
89
89
  "X-Fern-Language": "JavaScript",
90
90
  "X-Fern-SDK-Name": "polytomic",
91
- "X-Fern-SDK-Version": "0.2.0",
91
+ "X-Fern-SDK-Version": "1.2.0",
92
92
  "X-Fern-Runtime": core.RUNTIME.type,
93
93
  "X-Fern-Runtime-Version": core.RUNTIME.version,
94
94
  },
@@ -147,7 +147,7 @@ class Events {
147
147
  "X-Polytomic-Version": "2024-02-08",
148
148
  "X-Fern-Language": "JavaScript",
149
149
  "X-Fern-SDK-Name": "polytomic",
150
- "X-Fern-SDK-Version": "0.2.0",
150
+ "X-Fern-SDK-Version": "1.2.0",
151
151
  "X-Fern-Runtime": core.RUNTIME.type,
152
152
  "X-Fern-Runtime-Version": core.RUNTIME.version,
153
153
  },
@@ -66,7 +66,7 @@ class Identity {
66
66
  "X-Polytomic-Version": "2024-02-08",
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "polytomic",
69
- "X-Fern-SDK-Version": "0.2.0",
69
+ "X-Fern-SDK-Version": "1.2.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },