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
@@ -2,10 +2,10 @@ export * as bulkSync from "./bulkSync";
2
2
  export * as connections from "./connections";
3
3
  export * as modelSync from "./modelSync";
4
4
  export * as schemas from "./schemas";
5
+ export * as models from "./models";
5
6
  export * as events from "./events";
6
7
  export * as jobs from "./jobs";
7
8
  export * as identity from "./identity";
8
- export * as models from "./models";
9
9
  export * as organization from "./organization";
10
10
  export * as users from "./users";
11
11
  export * as permissions from "./permissions";
@@ -13,8 +13,8 @@ export * as webhooks from "./webhooks";
13
13
  export * from "./bulkSync/client/requests";
14
14
  export * from "./connections/client/requests";
15
15
  export * from "./modelSync/client/requests";
16
- export * from "./events/client/requests";
17
16
  export * from "./models/client/requests";
17
+ export * from "./events/client/requests";
18
18
  export * from "./organization/client/requests";
19
19
  export * from "./users/client/requests";
20
20
  export * from "./webhooks/client/requests";
@@ -26,15 +26,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.webhooks = exports.permissions = exports.users = exports.organization = exports.models = exports.identity = exports.jobs = exports.events = exports.schemas = exports.modelSync = exports.connections = exports.bulkSync = void 0;
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
31
  exports.connections = __importStar(require("./connections"));
32
32
  exports.modelSync = __importStar(require("./modelSync"));
33
33
  exports.schemas = __importStar(require("./schemas"));
34
+ exports.models = __importStar(require("./models"));
34
35
  exports.events = __importStar(require("./events"));
35
36
  exports.jobs = __importStar(require("./jobs"));
36
37
  exports.identity = __importStar(require("./identity"));
37
- exports.models = __importStar(require("./models"));
38
38
  exports.organization = __importStar(require("./organization"));
39
39
  exports.users = __importStar(require("./users"));
40
40
  exports.permissions = __importStar(require("./permissions"));
@@ -42,8 +42,8 @@ exports.webhooks = __importStar(require("./webhooks"));
42
42
  __exportStar(require("./bulkSync/client/requests"), exports);
43
43
  __exportStar(require("./connections/client/requests"), exports);
44
44
  __exportStar(require("./modelSync/client/requests"), exports);
45
- __exportStar(require("./events/client/requests"), exports);
46
45
  __exportStar(require("./models/client/requests"), exports);
46
+ __exportStar(require("./events/client/requests"), exports);
47
47
  __exportStar(require("./organization/client/requests"), exports);
48
48
  __exportStar(require("./users/client/requests"), exports);
49
49
  __exportStar(require("./webhooks/client/requests"), exports);
@@ -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": "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
  },
@@ -82,29 +82,9 @@ export declare class ModelSync {
82
82
  *
83
83
  * @example
84
84
  * await polytomic.modelSync.create({
85
- * fields: [{
86
- * source: {
87
- * field: "id",
88
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
89
- * },
90
- * target: "name"
91
- * }],
92
- * filter_logic: "A and B or C",
93
- * identity: {
94
- * function: "Equality",
95
- * source: {
96
- * field: "id",
97
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
98
- * },
99
- * target: "name"
100
- * },
101
85
  * mode: "create",
102
86
  * name: "Users Sync",
103
- * schedule: {
104
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
105
- * frequency: "daily"
106
- * },
107
- * sync_all_records: false,
87
+ * schedule: {},
108
88
  * target: {
109
89
  * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
110
90
  * object: "Users"
@@ -139,29 +119,9 @@ export declare class ModelSync {
139
119
  *
140
120
  * @example
141
121
  * await polytomic.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
142
- * fields: [{
143
- * source: {
144
- * field: "id",
145
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
146
- * },
147
- * target: "name"
148
- * }],
149
- * filter_logic: "A and B or C",
150
- * identity: {
151
- * function: "Equality",
152
- * source: {
153
- * field: "id",
154
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
155
- * },
156
- * target: "name"
157
- * },
158
122
  * mode: "create",
159
123
  * name: "Users Sync",
160
- * schedule: {
161
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
162
- * frequency: "daily"
163
- * },
164
- * sync_all_records: false,
124
+ * schedule: {},
165
125
  * target: {
166
126
  * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
167
127
  * object: "Users"
@@ -192,6 +152,9 @@ export declare class ModelSync {
192
152
  */
193
153
  activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
194
154
  /**
155
+ * > 🚧 Force full resync
156
+ * >
157
+ * > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
195
158
  * @throws {@link Polytomic.BadRequestError}
196
159
  * @throws {@link Polytomic.UnauthorizedError}
197
160
  * @throws {@link Polytomic.ForbiddenError}
@@ -75,7 +75,7 @@ class ModelSync {
75
75
  "X-Polytomic-Version": "2024-02-08",
76
76
  "X-Fern-Language": "JavaScript",
77
77
  "X-Fern-SDK-Name": "polytomic",
78
- "X-Fern-SDK-Version": "0.2.0",
78
+ "X-Fern-SDK-Version": "1.2.0",
79
79
  "X-Fern-Runtime": core.RUNTIME.type,
80
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
81
  },
@@ -142,7 +142,7 @@ class ModelSync {
142
142
  "X-Polytomic-Version": "2024-02-08",
143
143
  "X-Fern-Language": "JavaScript",
144
144
  "X-Fern-SDK-Name": "polytomic",
145
- "X-Fern-SDK-Version": "0.2.0",
145
+ "X-Fern-SDK-Version": "1.2.0",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -216,7 +216,7 @@ class ModelSync {
216
216
  "X-Polytomic-Version": "2024-02-08",
217
217
  "X-Fern-Language": "JavaScript",
218
218
  "X-Fern-SDK-Name": "polytomic",
219
- "X-Fern-SDK-Version": "0.2.0",
219
+ "X-Fern-SDK-Version": "1.2.0",
220
220
  "X-Fern-Runtime": core.RUNTIME.type,
221
221
  "X-Fern-Runtime-Version": core.RUNTIME.version,
222
222
  },
@@ -291,7 +291,7 @@ class ModelSync {
291
291
  "X-Polytomic-Version": "2024-02-08",
292
292
  "X-Fern-Language": "JavaScript",
293
293
  "X-Fern-SDK-Name": "polytomic",
294
- "X-Fern-SDK-Version": "0.2.0",
294
+ "X-Fern-SDK-Version": "1.2.0",
295
295
  "X-Fern-Runtime": core.RUNTIME.type,
296
296
  "X-Fern-Runtime-Version": core.RUNTIME.version,
297
297
  },
@@ -354,7 +354,7 @@ class ModelSync {
354
354
  "X-Polytomic-Version": "2024-02-08",
355
355
  "X-Fern-Language": "JavaScript",
356
356
  "X-Fern-SDK-Name": "polytomic",
357
- "X-Fern-SDK-Version": "0.2.0",
357
+ "X-Fern-SDK-Version": "1.2.0",
358
358
  "X-Fern-Runtime": core.RUNTIME.type,
359
359
  "X-Fern-Runtime-Version": core.RUNTIME.version,
360
360
  },
@@ -404,29 +404,9 @@ class ModelSync {
404
404
  *
405
405
  * @example
406
406
  * await polytomic.modelSync.create({
407
- * fields: [{
408
- * source: {
409
- * field: "id",
410
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
411
- * },
412
- * target: "name"
413
- * }],
414
- * filter_logic: "A and B or C",
415
- * identity: {
416
- * function: "Equality",
417
- * source: {
418
- * field: "id",
419
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
420
- * },
421
- * target: "name"
422
- * },
423
407
  * mode: "create",
424
408
  * name: "Users Sync",
425
- * schedule: {
426
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
427
- * frequency: "daily"
428
- * },
429
- * sync_all_records: false,
409
+ * schedule: {},
430
410
  * target: {
431
411
  * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
432
412
  * object: "Users"
@@ -444,7 +424,7 @@ class ModelSync {
444
424
  "X-Polytomic-Version": "2024-02-08",
445
425
  "X-Fern-Language": "JavaScript",
446
426
  "X-Fern-SDK-Name": "polytomic",
447
- "X-Fern-SDK-Version": "0.2.0",
427
+ "X-Fern-SDK-Version": "1.2.0",
448
428
  "X-Fern-Runtime": core.RUNTIME.type,
449
429
  "X-Fern-Runtime-Version": core.RUNTIME.version,
450
430
  },
@@ -508,7 +488,7 @@ class ModelSync {
508
488
  "X-Polytomic-Version": "2024-02-08",
509
489
  "X-Fern-Language": "JavaScript",
510
490
  "X-Fern-SDK-Name": "polytomic",
511
- "X-Fern-SDK-Version": "0.2.0",
491
+ "X-Fern-SDK-Version": "1.2.0",
512
492
  "X-Fern-Runtime": core.RUNTIME.type,
513
493
  "X-Fern-Runtime-Version": core.RUNTIME.version,
514
494
  },
@@ -566,7 +546,7 @@ class ModelSync {
566
546
  "X-Polytomic-Version": "2024-02-08",
567
547
  "X-Fern-Language": "JavaScript",
568
548
  "X-Fern-SDK-Name": "polytomic",
569
- "X-Fern-SDK-Version": "0.2.0",
549
+ "X-Fern-SDK-Version": "1.2.0",
570
550
  "X-Fern-Runtime": core.RUNTIME.type,
571
551
  "X-Fern-Runtime-Version": core.RUNTIME.version,
572
552
  },
@@ -617,29 +597,9 @@ class ModelSync {
617
597
  *
618
598
  * @example
619
599
  * await polytomic.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
620
- * fields: [{
621
- * source: {
622
- * field: "id",
623
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
624
- * },
625
- * target: "name"
626
- * }],
627
- * filter_logic: "A and B or C",
628
- * identity: {
629
- * function: "Equality",
630
- * source: {
631
- * field: "id",
632
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
633
- * },
634
- * target: "name"
635
- * },
636
600
  * mode: "create",
637
601
  * name: "Users Sync",
638
- * schedule: {
639
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
640
- * frequency: "daily"
641
- * },
642
- * sync_all_records: false,
602
+ * schedule: {},
643
603
  * target: {
644
604
  * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
645
605
  * object: "Users"
@@ -657,7 +617,7 @@ class ModelSync {
657
617
  "X-Polytomic-Version": "2024-02-08",
658
618
  "X-Fern-Language": "JavaScript",
659
619
  "X-Fern-SDK-Name": "polytomic",
660
- "X-Fern-SDK-Version": "0.2.0",
620
+ "X-Fern-SDK-Version": "1.2.0",
661
621
  "X-Fern-Runtime": core.RUNTIME.type,
662
622
  "X-Fern-Runtime-Version": core.RUNTIME.version,
663
623
  },
@@ -725,7 +685,7 @@ class ModelSync {
725
685
  "X-Polytomic-Version": "2024-02-08",
726
686
  "X-Fern-Language": "JavaScript",
727
687
  "X-Fern-SDK-Name": "polytomic",
728
- "X-Fern-SDK-Version": "0.2.0",
688
+ "X-Fern-SDK-Version": "1.2.0",
729
689
  "X-Fern-Runtime": core.RUNTIME.type,
730
690
  "X-Fern-Runtime-Version": core.RUNTIME.version,
731
691
  },
@@ -790,7 +750,7 @@ class ModelSync {
790
750
  "X-Polytomic-Version": "2024-02-08",
791
751
  "X-Fern-Language": "JavaScript",
792
752
  "X-Fern-SDK-Name": "polytomic",
793
- "X-Fern-SDK-Version": "0.2.0",
753
+ "X-Fern-SDK-Version": "1.2.0",
794
754
  "X-Fern-Runtime": core.RUNTIME.type,
795
755
  "X-Fern-Runtime-Version": core.RUNTIME.version,
796
756
  },
@@ -835,6 +795,9 @@ class ModelSync {
835
795
  });
836
796
  }
837
797
  /**
798
+ * > 🚧 Force full resync
799
+ * >
800
+ * > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
838
801
  * @throws {@link Polytomic.BadRequestError}
839
802
  * @throws {@link Polytomic.UnauthorizedError}
840
803
  * @throws {@link Polytomic.ForbiddenError}
@@ -855,7 +818,7 @@ class ModelSync {
855
818
  "X-Polytomic-Version": "2024-02-08",
856
819
  "X-Fern-Language": "JavaScript",
857
820
  "X-Fern-SDK-Name": "polytomic",
858
- "X-Fern-SDK-Version": "0.2.0",
821
+ "X-Fern-SDK-Version": "1.2.0",
859
822
  "X-Fern-Runtime": core.RUNTIME.type,
860
823
  "X-Fern-Runtime-Version": core.RUNTIME.version,
861
824
  },
@@ -920,7 +883,7 @@ class ModelSync {
920
883
  "X-Polytomic-Version": "2024-02-08",
921
884
  "X-Fern-Language": "JavaScript",
922
885
  "X-Fern-SDK-Name": "polytomic",
923
- "X-Fern-SDK-Version": "0.2.0",
886
+ "X-Fern-SDK-Version": "1.2.0",
924
887
  "X-Fern-Runtime": core.RUNTIME.type,
925
888
  "X-Fern-Runtime-Version": core.RUNTIME.version,
926
889
  },
@@ -5,29 +5,9 @@ import * as Polytomic from "../../../..";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * fields: [{
9
- * source: {
10
- * field: "id",
11
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
12
- * },
13
- * target: "name"
14
- * }],
15
- * filter_logic: "A and B or C",
16
- * identity: {
17
- * function: "Equality",
18
- * source: {
19
- * field: "id",
20
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
21
- * },
22
- * target: "name"
23
- * },
24
8
  * mode: "create",
25
9
  * name: "Users Sync",
26
- * schedule: {
27
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
28
- * frequency: "daily"
29
- * },
30
- * sync_all_records: false,
10
+ * schedule: {},
31
11
  * target: {
32
12
  * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
33
13
  * object: "Users"
@@ -36,6 +16,7 @@ import * as Polytomic from "../../../..";
36
16
  */
37
17
  export interface CreateModelSyncRequest {
38
18
  active?: boolean;
19
+ enricher?: Polytomic.Enrichment;
39
20
  fields?: Polytomic.ModelSyncField[];
40
21
  filter_logic?: string;
41
22
  filters?: Polytomic.Filter[];
@@ -7,4 +7,5 @@
7
7
  */
8
8
  export interface StartModelSyncRequest {
9
9
  identities?: string[];
10
+ resync?: boolean;
10
11
  }
@@ -5,29 +5,9 @@ import * as Polytomic from "../../../..";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * fields: [{
9
- * source: {
10
- * field: "id",
11
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
12
- * },
13
- * target: "name"
14
- * }],
15
- * filter_logic: "A and B or C",
16
- * identity: {
17
- * function: "Equality",
18
- * source: {
19
- * field: "id",
20
- * model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
21
- * },
22
- * target: "name"
23
- * },
24
8
  * mode: "create",
25
9
  * name: "Users Sync",
26
- * schedule: {
27
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
28
- * frequency: "daily"
29
- * },
30
- * sync_all_records: false,
10
+ * schedule: {},
31
11
  * target: {
32
12
  * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
33
13
  * object: "Users"
@@ -36,6 +16,7 @@ import * as Polytomic from "../../../..";
36
16
  */
37
17
  export interface UpdateModelSyncRequest {
38
18
  active?: boolean;
19
+ enricher?: Polytomic.Enrichment;
39
20
  fields?: Polytomic.ModelSyncField[];
40
21
  filter_logic?: string;
41
22
  filters?: Polytomic.Filter[];
@@ -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
  },
@@ -124,7 +124,7 @@ class Executions {
124
124
  "X-Polytomic-Version": "2024-02-08",
125
125
  "X-Fern-Language": "JavaScript",
126
126
  "X-Fern-SDK-Name": "polytomic",
127
- "X-Fern-SDK-Version": "0.2.0",
127
+ "X-Fern-SDK-Version": "1.2.0",
128
128
  "X-Fern-Runtime": core.RUNTIME.type,
129
129
  "X-Fern-Runtime-Version": core.RUNTIME.version,
130
130
  },
@@ -185,7 +185,7 @@ class Executions {
185
185
  "X-Polytomic-Version": "2024-02-08",
186
186
  "X-Fern-Language": "JavaScript",
187
187
  "X-Fern-SDK-Name": "polytomic",
188
- "X-Fern-SDK-Version": "0.2.0",
188
+ "X-Fern-SDK-Version": "1.2.0",
189
189
  "X-Fern-Runtime": core.RUNTIME.type,
190
190
  "X-Fern-Runtime-Version": core.RUNTIME.version,
191
191
  },
@@ -248,7 +248,7 @@ class Executions {
248
248
  "X-Polytomic-Version": "2024-02-08",
249
249
  "X-Fern-Language": "JavaScript",
250
250
  "X-Fern-SDK-Name": "polytomic",
251
- "X-Fern-SDK-Version": "0.2.0",
251
+ "X-Fern-SDK-Version": "1.2.0",
252
252
  "X-Fern-Runtime": core.RUNTIME.type,
253
253
  "X-Fern-Runtime-Version": core.RUNTIME.version,
254
254
  },
@@ -17,6 +17,32 @@ export declare namespace Models {
17
17
  export declare class Models {
18
18
  protected readonly _options: Models.Options;
19
19
  constructor(_options: Models.Options);
20
+ /**
21
+ * For a given connection and enrichment configuration, provides the valid sets of input fields.
22
+ * @throws {@link Polytomic.UnauthorizedError}
23
+ * @throws {@link Polytomic.ForbiddenError}
24
+ * @throws {@link Polytomic.NotFoundError}
25
+ * @throws {@link Polytomic.InternalServerError}
26
+ *
27
+ * @example
28
+ * await polytomic.models.post("248df4b7-aa70-47b8-a036-33ac447e668d", {})
29
+ */
30
+ post(connectionId: string, request?: Polytomic.GetEnrichmentInputFieldsRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.V2GetEnrichmentInputFieldsResponseEnvelope>;
31
+ /**
32
+ * @throws {@link Polytomic.BadRequestError}
33
+ * @throws {@link Polytomic.UnauthorizedError}
34
+ * @throws {@link Polytomic.NotFoundError}
35
+ * @throws {@link Polytomic.InternalServerError}
36
+ *
37
+ * @example
38
+ * await polytomic.models.preview({
39
+ * body: {
40
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
41
+ * name: "Users"
42
+ * }
43
+ * })
44
+ */
45
+ preview(request: Polytomic.ModelsPreviewRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
20
46
  /**
21
47
  * @throws {@link Polytomic.UnauthorizedError}
22
48
  * @throws {@link Polytomic.NotFoundError}
@@ -33,12 +59,13 @@ export declare class Models {
33
59
  *
34
60
  * @example
35
61
  * await polytomic.models.create({
36
- * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
37
- * identifier: "id",
38
- * name: "Users"
62
+ * body: {
63
+ * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
64
+ * name: "Users"
65
+ * }
39
66
  * })
40
67
  */
41
- create(request: Polytomic.CreateModelRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
68
+ create(request: Polytomic.ModelsCreateRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
42
69
  /**
43
70
  * @throws {@link Polytomic.UnauthorizedError}
44
71
  * @throws {@link Polytomic.NotFoundError}
@@ -58,7 +85,6 @@ export declare class Models {
58
85
  * await polytomic.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
59
86
  * async: false,
60
87
  * connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
61
- * identifier: "id",
62
88
  * name: "Users"
63
89
  * })
64
90
  */