polytomic 1.3.0 → 1.5.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 (104) hide show
  1. package/README.md +0 -8
  2. package/api/index.d.ts +1 -1
  3. package/api/index.js +1 -1
  4. package/api/resources/bulkSync/client/Client.d.ts +2 -0
  5. package/api/resources/bulkSync/client/Client.js +12 -10
  6. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +5 -3
  7. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +5 -3
  8. package/api/resources/bulkSync/index.d.ts +1 -0
  9. package/api/resources/bulkSync/index.js +1 -0
  10. package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  11. package/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  12. package/api/resources/bulkSync/types/FieldConfiguration.d.ts +10 -0
  13. package/api/resources/bulkSync/types/FieldConfiguration.js +5 -0
  14. package/api/resources/bulkSync/types/SchemaConfiguration.d.ts +12 -0
  15. package/api/resources/bulkSync/types/SchemaConfiguration.js +5 -0
  16. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +5 -0
  17. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
  18. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +5 -0
  19. package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js +5 -0
  20. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
  21. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
  22. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +5 -0
  23. package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js +5 -0
  24. package/api/resources/bulkSync/types/index.d.ts +6 -0
  25. package/api/resources/bulkSync/types/index.js +22 -0
  26. package/api/resources/connections/client/Client.d.ts +14 -0
  27. package/api/resources/connections/client/Client.js +22 -8
  28. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +8 -1
  29. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +8 -1
  30. package/api/resources/events/client/Client.js +2 -2
  31. package/api/resources/identity/client/Client.js +1 -1
  32. package/api/resources/index.d.ts +1 -0
  33. package/api/resources/index.js +1 -0
  34. package/api/resources/jobs/client/Client.js +1 -1
  35. package/api/resources/modelSync/client/Client.d.ts +14 -0
  36. package/api/resources/modelSync/client/Client.js +27 -13
  37. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +8 -1
  38. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +8 -1
  39. package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  40. package/api/resources/models/client/Client.d.ts +9 -0
  41. package/api/resources/models/client/Client.js +17 -8
  42. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +3 -0
  43. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +3 -0
  44. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +4 -1
  45. package/api/resources/organization/client/Client.js +5 -5
  46. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  47. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  48. package/api/resources/schemas/client/Client.js +4 -4
  49. package/api/resources/users/client/Client.js +6 -6
  50. package/api/resources/webhooks/client/Client.js +5 -5
  51. package/api/types/CreateModelRequest.d.ts +1 -1
  52. package/api/types/ExecutionCounts.d.ts +1 -0
  53. package/dist/api/index.d.ts +1 -1
  54. package/dist/api/index.js +1 -1
  55. package/dist/api/resources/bulkSync/client/Client.d.ts +2 -0
  56. package/dist/api/resources/bulkSync/client/Client.js +12 -10
  57. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +5 -3
  58. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +5 -3
  59. package/dist/api/resources/bulkSync/index.d.ts +1 -0
  60. package/dist/api/resources/bulkSync/index.js +1 -0
  61. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  62. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  63. package/dist/api/resources/bulkSync/types/FieldConfiguration.d.ts +10 -0
  64. package/dist/api/resources/bulkSync/types/FieldConfiguration.js +5 -0
  65. package/dist/api/resources/bulkSync/types/SchemaConfiguration.d.ts +12 -0
  66. package/dist/api/resources/bulkSync/types/SchemaConfiguration.js +5 -0
  67. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +5 -0
  68. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
  69. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +5 -0
  70. package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js +5 -0
  71. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
  72. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
  73. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +5 -0
  74. package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js +5 -0
  75. package/dist/api/resources/bulkSync/types/index.d.ts +6 -0
  76. package/dist/api/resources/bulkSync/types/index.js +22 -0
  77. package/dist/api/resources/connections/client/Client.d.ts +14 -0
  78. package/dist/api/resources/connections/client/Client.js +22 -8
  79. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +8 -1
  80. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +8 -1
  81. package/dist/api/resources/events/client/Client.js +2 -2
  82. package/dist/api/resources/identity/client/Client.js +1 -1
  83. package/dist/api/resources/index.d.ts +1 -0
  84. package/dist/api/resources/index.js +1 -0
  85. package/dist/api/resources/jobs/client/Client.js +1 -1
  86. package/dist/api/resources/modelSync/client/Client.d.ts +14 -0
  87. package/dist/api/resources/modelSync/client/Client.js +27 -13
  88. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +8 -1
  89. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +8 -1
  90. package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  91. package/dist/api/resources/models/client/Client.d.ts +9 -0
  92. package/dist/api/resources/models/client/Client.js +17 -8
  93. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +3 -0
  94. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +3 -0
  95. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +4 -1
  96. package/dist/api/resources/organization/client/Client.js +5 -5
  97. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  98. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  99. package/dist/api/resources/schemas/client/Client.js +4 -4
  100. package/dist/api/resources/users/client/Client.js +6 -6
  101. package/dist/api/resources/webhooks/client/Client.js +5 -5
  102. package/dist/api/types/CreateModelRequest.d.ts +1 -1
  103. package/dist/api/types/ExecutionCounts.d.ts +1 -0
  104. package/package.json +1 -1
package/README.md CHANGED
@@ -92,18 +92,10 @@ const response = polytomic.bulkSync.get("e7525084....fd94153226fb781", {
92
92
  });
93
93
  ```
94
94
 
95
- ## Beta status
96
-
97
- This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package
98
- version to a specific version in your package.json file. This way, you can install the same version each time without breaking changes
99
- unless you are intentionally looking for the latest version.
100
-
101
95
  ## Contributing
102
96
 
103
97
  While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library
104
98
  would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a
105
99
  PR as a proof of concept, but know that we will not be able to merge it as-is.
106
100
 
107
- We suggest [opening an issue](https://github.com/FlatFilers/flatfile-node/issues) first to discuss with us!
108
-
109
101
  On the other hand, contributions to the README are always very welcome!
package/api/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
+ export * from "./resources";
1
2
  export * from "./types";
2
3
  export * from "./errors";
3
- export * from "./resources";
package/api/index.js CHANGED
@@ -14,6 +14,6 @@ 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("./resources"), exports);
17
18
  __exportStar(require("./types"), exports);
18
19
  __exportStar(require("./errors"), exports);
19
- __exportStar(require("./resources"), exports);
@@ -36,6 +36,7 @@ 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",
39
40
  * name: "My Bulk Sync",
40
41
  * schedule: {
41
42
  * frequency: Polytomic.ScheduleFrequency.Manual
@@ -67,6 +68,7 @@ export declare class BulkSync {
67
68
  * @example
68
69
  * await polytomic.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
69
70
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
71
+ * mode: "replicate",
70
72
  * name: "My Bulk Sync",
71
73
  * schedule: {
72
74
  * frequency: Polytomic.ScheduleFrequency.Manual
@@ -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": "1.3.0",
71
+ "X-Fern-SDK-Version": "1.5.0",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -116,6 +116,7 @@ class BulkSync {
116
116
  * @example
117
117
  * await polytomic.bulkSync.create({
118
118
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
119
+ * mode: "replicate",
119
120
  * name: "My Bulk Sync",
120
121
  * schedule: {
121
122
  * frequency: Polytomic.ScheduleFrequency.Manual
@@ -134,7 +135,7 @@ class BulkSync {
134
135
  "X-Polytomic-Version": "2024-02-08",
135
136
  "X-Fern-Language": "JavaScript",
136
137
  "X-Fern-SDK-Name": "polytomic",
137
- "X-Fern-SDK-Version": "1.3.0",
138
+ "X-Fern-SDK-Version": "1.5.0",
138
139
  "X-Fern-Runtime": core.RUNTIME.type,
139
140
  "X-Fern-Runtime-Version": core.RUNTIME.version,
140
141
  },
@@ -203,7 +204,7 @@ class BulkSync {
203
204
  "X-Polytomic-Version": "2024-02-08",
204
205
  "X-Fern-Language": "JavaScript",
205
206
  "X-Fern-SDK-Name": "polytomic",
206
- "X-Fern-SDK-Version": "1.3.0",
207
+ "X-Fern-SDK-Version": "1.5.0",
207
208
  "X-Fern-Runtime": core.RUNTIME.type,
208
209
  "X-Fern-Runtime-Version": core.RUNTIME.version,
209
210
  },
@@ -256,6 +257,7 @@ class BulkSync {
256
257
  * @example
257
258
  * await polytomic.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
258
259
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
260
+ * mode: "replicate",
259
261
  * name: "My Bulk Sync",
260
262
  * schedule: {
261
263
  * frequency: Polytomic.ScheduleFrequency.Manual
@@ -274,7 +276,7 @@ class BulkSync {
274
276
  "X-Polytomic-Version": "2024-02-08",
275
277
  "X-Fern-Language": "JavaScript",
276
278
  "X-Fern-SDK-Name": "polytomic",
277
- "X-Fern-SDK-Version": "1.3.0",
279
+ "X-Fern-SDK-Version": "1.5.0",
278
280
  "X-Fern-Runtime": core.RUNTIME.type,
279
281
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
282
  },
@@ -347,7 +349,7 @@ class BulkSync {
347
349
  "X-Polytomic-Version": "2024-02-08",
348
350
  "X-Fern-Language": "JavaScript",
349
351
  "X-Fern-SDK-Name": "polytomic",
350
- "X-Fern-SDK-Version": "1.3.0",
352
+ "X-Fern-SDK-Version": "1.5.0",
351
353
  "X-Fern-Runtime": core.RUNTIME.type,
352
354
  "X-Fern-Runtime-Version": core.RUNTIME.version,
353
355
  },
@@ -413,7 +415,7 @@ class BulkSync {
413
415
  "X-Polytomic-Version": "2024-02-08",
414
416
  "X-Fern-Language": "JavaScript",
415
417
  "X-Fern-SDK-Name": "polytomic",
416
- "X-Fern-SDK-Version": "1.3.0",
418
+ "X-Fern-SDK-Version": "1.5.0",
417
419
  "X-Fern-Runtime": core.RUNTIME.type,
418
420
  "X-Fern-Runtime-Version": core.RUNTIME.version,
419
421
  },
@@ -475,7 +477,7 @@ class BulkSync {
475
477
  "X-Polytomic-Version": "2024-02-08",
476
478
  "X-Fern-Language": "JavaScript",
477
479
  "X-Fern-SDK-Name": "polytomic",
478
- "X-Fern-SDK-Version": "1.3.0",
480
+ "X-Fern-SDK-Version": "1.5.0",
479
481
  "X-Fern-Runtime": core.RUNTIME.type,
480
482
  "X-Fern-Runtime-Version": core.RUNTIME.version,
481
483
  },
@@ -534,7 +536,7 @@ class BulkSync {
534
536
  "X-Polytomic-Version": "2024-02-08",
535
537
  "X-Fern-Language": "JavaScript",
536
538
  "X-Fern-SDK-Name": "polytomic",
537
- "X-Fern-SDK-Version": "1.3.0",
539
+ "X-Fern-SDK-Version": "1.5.0",
538
540
  "X-Fern-Runtime": core.RUNTIME.type,
539
541
  "X-Fern-Runtime-Version": core.RUNTIME.version,
540
542
  },
@@ -602,7 +604,7 @@ class BulkSync {
602
604
  "X-Polytomic-Version": "2024-02-08",
603
605
  "X-Fern-Language": "JavaScript",
604
606
  "X-Fern-SDK-Name": "polytomic",
605
- "X-Fern-SDK-Version": "1.3.0",
607
+ "X-Fern-SDK-Version": "1.5.0",
606
608
  "X-Fern-Runtime": core.RUNTIME.type,
607
609
  "X-Fern-Runtime-Version": core.RUNTIME.version,
608
610
  },
@@ -666,7 +668,7 @@ class BulkSync {
666
668
  "X-Polytomic-Version": "2024-02-08",
667
669
  "X-Fern-Language": "JavaScript",
668
670
  "X-Fern-SDK-Name": "polytomic",
669
- "X-Fern-SDK-Version": "1.3.0",
671
+ "X-Fern-SDK-Version": "1.5.0",
670
672
  "X-Fern-Runtime": core.RUNTIME.type,
671
673
  "X-Fern-Runtime-Version": core.RUNTIME.version,
672
674
  },
@@ -6,6 +6,7 @@ import * as Polytomic from "../../../..";
6
6
  * @example
7
7
  * {
8
8
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
9
+ * mode: "replicate",
9
10
  * name: "My Bulk Sync",
10
11
  * schedule: {
11
12
  * frequency: Polytomic.ScheduleFrequency.Manual
@@ -22,13 +23,14 @@ export interface CreateBulkSyncRequest {
22
23
  disable_record_timestamps?: boolean;
23
24
  /** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
24
25
  discover?: boolean;
25
- /** */
26
- mode?: string;
26
+ /** Either 'replicate' or 'snapshot'. */
27
+ mode: string;
27
28
  name: string;
28
29
  organization_id?: string;
29
30
  policies?: string[];
30
31
  schedule: Polytomic.BulkSchedule;
31
- schemas?: string[];
32
+ /** List of schemas to sync; if omitted, all schemas will be selected for syncing. */
33
+ schemas?: Polytomic.V2CreateBulkSyncRequestSchemasItem[];
32
34
  source_configuration?: Record<string, unknown>;
33
35
  source_connection_id: string;
34
36
  }
@@ -6,6 +6,7 @@ import * as Polytomic from "../../../..";
6
6
  * @example
7
7
  * {
8
8
  * destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
9
+ * mode: "replicate",
9
10
  * name: "My Bulk Sync",
10
11
  * schedule: {
11
12
  * frequency: Polytomic.ScheduleFrequency.Manual
@@ -22,13 +23,14 @@ export interface UpdateBulkSyncRequest {
22
23
  disable_record_timestamps?: boolean;
23
24
  /** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
24
25
  discover?: boolean;
25
- /** */
26
- mode?: string;
26
+ /** Either 'replicate' or 'snapshot'. */
27
+ mode: string;
27
28
  name: string;
28
29
  organization_id?: string;
29
30
  policies?: string[];
30
31
  schedule: Polytomic.BulkSchedule;
31
- schemas?: string[];
32
+ /** List of schemas to sync; if omitted, all schemas will be selected for syncing. */
33
+ schemas?: Polytomic.V2UpdateBulkSyncRequestSchemasItem[];
32
34
  source_configuration?: Record<string, unknown>;
33
35
  source_connection_id: string;
34
36
  }
@@ -1,2 +1,3 @@
1
+ export * from "./types";
1
2
  export * from "./client";
2
3
  export * from "./resources";
@@ -14,5 +14,6 @@ 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("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
18
19
  __exportStar(require("./resources"), exports);
@@ -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": "1.3.0",
69
+ "X-Fern-SDK-Version": "1.5.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": "1.3.0",
126
+ "X-Fern-SDK-Version": "1.5.0",
127
127
  "X-Fern-Runtime": core.RUNTIME.type,
128
128
  "X-Fern-Runtime-Version": core.RUNTIME.version,
129
129
  },
@@ -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": "1.3.0",
74
+ "X-Fern-SDK-Version": "1.5.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": "1.3.0",
134
+ "X-Fern-SDK-Version": "1.5.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": "1.3.0",
196
+ "X-Fern-SDK-Version": "1.5.0",
197
197
  "X-Fern-Runtime": core.RUNTIME.type,
198
198
  "X-Fern-Runtime-Version": core.RUNTIME.version,
199
199
  },
@@ -252,7 +252,7 @@ class Schemas {
252
252
  "X-Polytomic-Version": "2024-02-08",
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "polytomic",
255
- "X-Fern-SDK-Version": "1.3.0",
255
+ "X-Fern-SDK-Version": "1.5.0",
256
256
  "X-Fern-Runtime": core.RUNTIME.type,
257
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
258
258
  },
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export interface FieldConfiguration {
5
+ /** Whether the field is enabled for syncing. */
6
+ enabled?: boolean;
7
+ id?: string;
8
+ /** Whether the field should be obfuscated. */
9
+ obfuscate?: boolean;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "../../..";
5
+ export interface SchemaConfiguration {
6
+ /** Whether the schema is enabled for syncing. */
7
+ enabled?: boolean;
8
+ fields?: Polytomic.V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem[];
9
+ id?: string;
10
+ partitionKey?: string;
11
+ trackingField?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "../../..";
5
+ export declare type V2CreateBulkSyncRequestSchemasItem = string | Polytomic.SchemaConfiguration;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "../../..";
5
+ export declare type V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem = string | Polytomic.FieldConfiguration;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "../../..";
5
+ export declare type V2UpdateBulkSyncRequestSchemasItem = string | Polytomic.SchemaConfiguration;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "../../..";
5
+ export declare type V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem = string | Polytomic.FieldConfiguration;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export * from "./FieldConfiguration";
2
+ export * from "./V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem";
3
+ export * from "./SchemaConfiguration";
4
+ export * from "./V2CreateBulkSyncRequestSchemasItem";
5
+ export * from "./V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem";
6
+ export * from "./V2UpdateBulkSyncRequestSchemasItem";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./FieldConfiguration"), exports);
18
+ __exportStar(require("./V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem"), exports);
19
+ __exportStar(require("./SchemaConfiguration"), exports);
20
+ __exportStar(require("./V2CreateBulkSyncRequestSchemasItem"), exports);
21
+ __exportStar(require("./V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem"), exports);
22
+ __exportStar(require("./V2UpdateBulkSyncRequestSchemasItem"), exports);
@@ -42,6 +42,13 @@ export declare class Connections {
42
42
  *
43
43
  * @example
44
44
  * await polytomic.connections.create({
45
+ * configuration: {
46
+ * "database": "example",
47
+ * "hostname": "postgres.example.com",
48
+ * "password": "password",
49
+ * "port": 5432,
50
+ * "username": "user"
51
+ * },
45
52
  * name: "My Postgres Connection",
46
53
  * type: "postgresql"
47
54
  * })
@@ -79,6 +86,13 @@ export declare class Connections {
79
86
  *
80
87
  * @example
81
88
  * await polytomic.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
89
+ * configuration: {
90
+ * "database": "example",
91
+ * "hostname": "postgres.example.com",
92
+ * "password": "password",
93
+ * "port": 5432,
94
+ * "username": "user"
95
+ * },
82
96
  * name: "My Postgres Connection"
83
97
  * })
84
98
  */
@@ -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": "1.3.0",
69
+ "X-Fern-SDK-Version": "1.5.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": "1.3.0",
126
+ "X-Fern-SDK-Version": "1.5.0",
127
127
  "X-Fern-Runtime": core.RUNTIME.type,
128
128
  "X-Fern-Runtime-Version": core.RUNTIME.version,
129
129
  },
@@ -171,6 +171,13 @@ class Connections {
171
171
  *
172
172
  * @example
173
173
  * await polytomic.connections.create({
174
+ * configuration: {
175
+ * "database": "example",
176
+ * "hostname": "postgres.example.com",
177
+ * "password": "password",
178
+ * "port": 5432,
179
+ * "username": "user"
180
+ * },
174
181
  * name: "My Postgres Connection",
175
182
  * type: "postgresql"
176
183
  * })
@@ -186,7 +193,7 @@ class Connections {
186
193
  "X-Polytomic-Version": "2024-02-08",
187
194
  "X-Fern-Language": "JavaScript",
188
195
  "X-Fern-SDK-Name": "polytomic",
189
- "X-Fern-SDK-Version": "1.3.0",
196
+ "X-Fern-SDK-Version": "1.5.0",
190
197
  "X-Fern-Runtime": core.RUNTIME.type,
191
198
  "X-Fern-Runtime-Version": core.RUNTIME.version,
192
199
  },
@@ -255,7 +262,7 @@ class Connections {
255
262
  "X-Polytomic-Version": "2024-02-08",
256
263
  "X-Fern-Language": "JavaScript",
257
264
  "X-Fern-SDK-Name": "polytomic",
258
- "X-Fern-SDK-Version": "1.3.0",
265
+ "X-Fern-SDK-Version": "1.5.0",
259
266
  "X-Fern-Runtime": core.RUNTIME.type,
260
267
  "X-Fern-Runtime-Version": core.RUNTIME.version,
261
268
  },
@@ -318,7 +325,7 @@ class Connections {
318
325
  "X-Polytomic-Version": "2024-02-08",
319
326
  "X-Fern-Language": "JavaScript",
320
327
  "X-Fern-SDK-Name": "polytomic",
321
- "X-Fern-SDK-Version": "1.3.0",
328
+ "X-Fern-SDK-Version": "1.5.0",
322
329
  "X-Fern-Runtime": core.RUNTIME.type,
323
330
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
331
  },
@@ -369,6 +376,13 @@ class Connections {
369
376
  *
370
377
  * @example
371
378
  * await polytomic.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
379
+ * configuration: {
380
+ * "database": "example",
381
+ * "hostname": "postgres.example.com",
382
+ * "password": "password",
383
+ * "port": 5432,
384
+ * "username": "user"
385
+ * },
372
386
  * name: "My Postgres Connection"
373
387
  * })
374
388
  */
@@ -383,7 +397,7 @@ class Connections {
383
397
  "X-Polytomic-Version": "2024-02-08",
384
398
  "X-Fern-Language": "JavaScript",
385
399
  "X-Fern-SDK-Name": "polytomic",
386
- "X-Fern-SDK-Version": "1.3.0",
400
+ "X-Fern-SDK-Version": "1.5.0",
387
401
  "X-Fern-Runtime": core.RUNTIME.type,
388
402
  "X-Fern-Runtime-Version": core.RUNTIME.version,
389
403
  },
@@ -459,7 +473,7 @@ class Connections {
459
473
  "X-Polytomic-Version": "2024-02-08",
460
474
  "X-Fern-Language": "JavaScript",
461
475
  "X-Fern-SDK-Name": "polytomic",
462
- "X-Fern-SDK-Version": "1.3.0",
476
+ "X-Fern-SDK-Version": "1.5.0",
463
477
  "X-Fern-Runtime": core.RUNTIME.type,
464
478
  "X-Fern-Runtime-Version": core.RUNTIME.version,
465
479
  },
@@ -524,7 +538,7 @@ class Connections {
524
538
  "X-Polytomic-Version": "2024-02-08",
525
539
  "X-Fern-Language": "JavaScript",
526
540
  "X-Fern-SDK-Name": "polytomic",
527
- "X-Fern-SDK-Version": "1.3.0",
541
+ "X-Fern-SDK-Version": "1.5.0",
528
542
  "X-Fern-Runtime": core.RUNTIME.type,
529
543
  "X-Fern-Runtime-Version": core.RUNTIME.version,
530
544
  },
@@ -4,12 +4,19 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
+ * configuration: {
8
+ * "database": "example",
9
+ * "hostname": "postgres.example.com",
10
+ * "password": "password",
11
+ * "port": 5432,
12
+ * "username": "user"
13
+ * },
7
14
  * name: "My Postgres Connection",
8
15
  * type: "postgresql"
9
16
  * }
10
17
  */
11
18
  export interface CreateConnectionRequestSchema {
12
- configuration?: Record<string, unknown>;
19
+ configuration: Record<string, unknown>;
13
20
  name: string;
14
21
  organization_id?: string;
15
22
  policies?: string[];
@@ -4,11 +4,18 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
+ * configuration: {
8
+ * "database": "example",
9
+ * "hostname": "postgres.example.com",
10
+ * "password": "password",
11
+ * "port": 5432,
12
+ * "username": "user"
13
+ * },
7
14
  * name: "My Postgres Connection"
8
15
  * }
9
16
  */
10
17
  export interface UpdateConnectionRequestSchema {
11
- configuration?: Record<string, unknown>;
18
+ configuration: Record<string, unknown>;
12
19
  name: string;
13
20
  organization_id?: string;
14
21
  policies?: string[];
@@ -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": "1.3.0",
91
+ "X-Fern-SDK-Version": "1.5.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": "1.3.0",
150
+ "X-Fern-SDK-Version": "1.5.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": "1.3.0",
69
+ "X-Fern-SDK-Version": "1.5.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -1,4 +1,5 @@
1
1
  export * as bulkSync from "./bulkSync";
2
+ export * from "./bulkSync/types";
2
3
  export * as connections from "./connections";
3
4
  export * as modelSync from "./modelSync";
4
5
  export * as schemas from "./schemas";
@@ -28,6 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.webhooks = exports.permissions = exports.users = exports.organization = exports.identity = exports.jobs = exports.events = exports.models = exports.schemas = exports.modelSync = exports.connections = exports.bulkSync = void 0;
30
30
  exports.bulkSync = __importStar(require("./bulkSync"));
31
+ __exportStar(require("./bulkSync/types"), exports);
31
32
  exports.connections = __importStar(require("./connections"));
32
33
  exports.modelSync = __importStar(require("./modelSync"));
33
34
  exports.schemas = __importStar(require("./schemas"));
@@ -68,7 +68,7 @@ class Jobs {
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": "1.3.0",
71
+ "X-Fern-SDK-Version": "1.5.0",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },