polytomic 1.2.0 → 1.4.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 (115) hide show
  1. package/api/resources/bulkSync/client/Client.d.ts +2 -0
  2. package/api/resources/bulkSync/client/Client.js +12 -10
  3. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +3 -2
  4. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
  5. package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  6. package/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  7. package/api/resources/connections/client/Client.d.ts +14 -0
  8. package/api/resources/connections/client/Client.js +22 -8
  9. package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +8 -1
  10. package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +8 -1
  11. package/api/resources/events/client/Client.js +2 -2
  12. package/api/resources/identity/client/Client.js +1 -1
  13. package/api/resources/jobs/client/Client.js +1 -1
  14. package/api/resources/modelSync/client/Client.d.ts +14 -0
  15. package/api/resources/modelSync/client/Client.js +27 -13
  16. package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +10 -1
  17. package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +10 -1
  18. package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  19. package/api/resources/models/client/Client.d.ts +24 -4
  20. package/api/resources/models/client/Client.js +102 -11
  21. package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +3 -0
  22. package/api/resources/models/client/requests/ModelsGetRequest.d.ts +10 -0
  23. package/api/resources/models/client/requests/ModelsGetRequest.js +5 -0
  24. package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +3 -0
  25. package/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +10 -0
  26. package/api/resources/models/client/requests/ModelsRemoveRequest.js +5 -0
  27. package/api/resources/models/client/requests/ModelsSampleRequest.d.ts +10 -0
  28. package/api/resources/models/client/requests/ModelsSampleRequest.js +5 -0
  29. package/api/resources/models/client/requests/UpdateModelRequest.d.ts +4 -1
  30. package/api/resources/models/client/requests/index.d.ts +3 -0
  31. package/api/resources/organization/client/Client.js +5 -5
  32. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  33. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  34. package/api/resources/schemas/client/Client.js +4 -4
  35. package/api/resources/users/client/Client.js +6 -6
  36. package/api/resources/webhooks/client/Client.js +5 -5
  37. package/api/types/CreateModelRequest.d.ts +1 -1
  38. package/api/types/ExecutionCounts.d.ts +1 -0
  39. package/api/types/Filter.d.ts +9 -3
  40. package/api/types/FilterFieldReferenceType.d.ts +8 -0
  41. package/api/types/FilterFieldReferenceType.js +10 -0
  42. package/api/types/FilterFunction.d.ts +31 -0
  43. package/api/types/FilterFunction.js +33 -0
  44. package/api/types/Identity.d.ts +1 -1
  45. package/api/types/ModelField.d.ts +1 -0
  46. package/api/types/ModelSample.d.ts +8 -0
  47. package/api/types/ModelSample.js +5 -0
  48. package/api/types/ModelSampleResponseEnvelope.d.ts +8 -0
  49. package/api/types/ModelSampleResponseEnvelope.js +5 -0
  50. package/api/types/Override.d.ts +7 -1
  51. package/api/types/Schedule.d.ts +1 -1
  52. package/api/types/SchemaIdentityFunction.d.ts +9 -0
  53. package/api/types/SchemaIdentityFunction.js +11 -0
  54. package/api/types/V2SampleRecord.d.ts +7 -0
  55. package/api/types/V2SampleRecord.js +5 -0
  56. package/api/types/index.d.ts +6 -0
  57. package/api/types/index.js +6 -0
  58. package/dist/api/resources/bulkSync/client/Client.d.ts +2 -0
  59. package/dist/api/resources/bulkSync/client/Client.js +12 -10
  60. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +3 -2
  61. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
  62. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
  63. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  64. package/dist/api/resources/connections/client/Client.d.ts +14 -0
  65. package/dist/api/resources/connections/client/Client.js +22 -8
  66. package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +8 -1
  67. package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +8 -1
  68. package/dist/api/resources/events/client/Client.js +2 -2
  69. package/dist/api/resources/identity/client/Client.js +1 -1
  70. package/dist/api/resources/jobs/client/Client.js +1 -1
  71. package/dist/api/resources/modelSync/client/Client.d.ts +14 -0
  72. package/dist/api/resources/modelSync/client/Client.js +27 -13
  73. package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +10 -1
  74. package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +10 -1
  75. package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  76. package/dist/api/resources/models/client/Client.d.ts +24 -4
  77. package/dist/api/resources/models/client/Client.js +102 -11
  78. package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +3 -0
  79. package/dist/api/resources/models/client/requests/ModelsGetRequest.d.ts +10 -0
  80. package/dist/api/resources/models/client/requests/ModelsGetRequest.js +5 -0
  81. package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +3 -0
  82. package/dist/api/resources/models/client/requests/ModelsRemoveRequest.d.ts +10 -0
  83. package/dist/api/resources/models/client/requests/ModelsRemoveRequest.js +5 -0
  84. package/dist/api/resources/models/client/requests/ModelsSampleRequest.d.ts +10 -0
  85. package/dist/api/resources/models/client/requests/ModelsSampleRequest.js +5 -0
  86. package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +4 -1
  87. package/dist/api/resources/models/client/requests/index.d.ts +3 -0
  88. package/dist/api/resources/organization/client/Client.js +5 -5
  89. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  90. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  91. package/dist/api/resources/schemas/client/Client.js +4 -4
  92. package/dist/api/resources/users/client/Client.js +6 -6
  93. package/dist/api/resources/webhooks/client/Client.js +5 -5
  94. package/dist/api/types/CreateModelRequest.d.ts +1 -1
  95. package/dist/api/types/ExecutionCounts.d.ts +1 -0
  96. package/dist/api/types/Filter.d.ts +9 -3
  97. package/dist/api/types/FilterFieldReferenceType.d.ts +8 -0
  98. package/dist/api/types/FilterFieldReferenceType.js +10 -0
  99. package/dist/api/types/FilterFunction.d.ts +31 -0
  100. package/dist/api/types/FilterFunction.js +33 -0
  101. package/dist/api/types/Identity.d.ts +1 -1
  102. package/dist/api/types/ModelField.d.ts +1 -0
  103. package/dist/api/types/ModelSample.d.ts +8 -0
  104. package/dist/api/types/ModelSample.js +5 -0
  105. package/dist/api/types/ModelSampleResponseEnvelope.d.ts +8 -0
  106. package/dist/api/types/ModelSampleResponseEnvelope.js +5 -0
  107. package/dist/api/types/Override.d.ts +7 -1
  108. package/dist/api/types/Schedule.d.ts +1 -1
  109. package/dist/api/types/SchemaIdentityFunction.d.ts +9 -0
  110. package/dist/api/types/SchemaIdentityFunction.js +11 -0
  111. package/dist/api/types/V2SampleRecord.d.ts +7 -0
  112. package/dist/api/types/V2SampleRecord.js +5 -0
  113. package/dist/api/types/index.d.ts +6 -0
  114. package/dist/api/types/index.js +6 -0
  115. package/package.json +1 -1
@@ -71,7 +71,7 @@ class Webhooks {
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.2.0",
74
+ "X-Fern-SDK-Version": "1.4.0",
75
75
  "X-Fern-Runtime": core.RUNTIME.type,
76
76
  "X-Fern-Runtime-Version": core.RUNTIME.version,
77
77
  },
@@ -137,7 +137,7 @@ class Webhooks {
137
137
  "X-Polytomic-Version": "2024-02-08",
138
138
  "X-Fern-Language": "JavaScript",
139
139
  "X-Fern-SDK-Name": "polytomic",
140
- "X-Fern-SDK-Version": "1.2.0",
140
+ "X-Fern-SDK-Version": "1.4.0",
141
141
  "X-Fern-Runtime": core.RUNTIME.type,
142
142
  "X-Fern-Runtime-Version": core.RUNTIME.version,
143
143
  },
@@ -202,7 +202,7 @@ class Webhooks {
202
202
  "X-Polytomic-Version": "2024-02-08",
203
203
  "X-Fern-Language": "JavaScript",
204
204
  "X-Fern-SDK-Name": "polytomic",
205
- "X-Fern-SDK-Version": "1.2.0",
205
+ "X-Fern-SDK-Version": "1.4.0",
206
206
  "X-Fern-Runtime": core.RUNTIME.type,
207
207
  "X-Fern-Runtime-Version": core.RUNTIME.version,
208
208
  },
@@ -268,7 +268,7 @@ class Webhooks {
268
268
  "X-Polytomic-Version": "2024-02-08",
269
269
  "X-Fern-Language": "JavaScript",
270
270
  "X-Fern-SDK-Name": "polytomic",
271
- "X-Fern-SDK-Version": "1.2.0",
271
+ "X-Fern-SDK-Version": "1.4.0",
272
272
  "X-Fern-Runtime": core.RUNTIME.type,
273
273
  "X-Fern-Runtime-Version": core.RUNTIME.version,
274
274
  },
@@ -329,7 +329,7 @@ class Webhooks {
329
329
  "X-Polytomic-Version": "2024-02-08",
330
330
  "X-Fern-Language": "JavaScript",
331
331
  "X-Fern-SDK-Name": "polytomic",
332
- "X-Fern-SDK-Version": "1.2.0",
332
+ "X-Fern-SDK-Version": "1.4.0",
333
333
  "X-Fern-Runtime": core.RUNTIME.type,
334
334
  "X-Fern-Runtime-Version": core.RUNTIME.version,
335
335
  },
@@ -4,7 +4,7 @@
4
4
  import * as Polytomic from "..";
5
5
  export interface CreateModelRequest {
6
6
  additional_fields?: Polytomic.ModelModelFieldRequest[];
7
- configuration?: Record<string, unknown>;
7
+ configuration: Record<string, unknown>;
8
8
  connection_id: string;
9
9
  enricher?: Polytomic.Enrichment;
10
10
  fields?: string[];
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated from our API Definition.
3
3
  */
4
4
  export interface ExecutionCounts {
5
+ delete?: number;
5
6
  error?: number;
6
7
  insert?: number;
7
8
  total?: number;
@@ -1,10 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated from our API Definition.
3
3
  */
4
+ import * as Polytomic from "..";
5
+ /**
6
+ * Either `field` or `field_id` must be provided. If `field` is provided, `field_id` is ignored.
7
+ */
4
8
  export interface Filter {
5
- field_id: string;
6
- field_type: string;
7
- function: string;
9
+ field?: Polytomic.Source;
10
+ /** Model or Target field name to filter on. */
11
+ field_id?: string;
12
+ field_type?: Polytomic.FilterFieldReferenceType;
13
+ function: Polytomic.FilterFunction;
8
14
  label?: string;
9
15
  value?: unknown;
10
16
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export declare type FilterFieldReferenceType = "Model" | "Target";
5
+ export declare const FilterFieldReferenceType: {
6
+ readonly Model: "Model";
7
+ readonly Target: "Target";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FilterFieldReferenceType = void 0;
7
+ exports.FilterFieldReferenceType = {
8
+ Model: "Model",
9
+ Target: "Target",
10
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export declare type FilterFunction = "Equality" | "Inequality" | "IsNull" | "IsNotNull" | "True" | "False" | "OnOrAfter" | "OnOrBefore" | "GreaterThan" | "GreaterThanEqual" | "LessThan" | "LessThanEqual" | "StringContains" | "StringEndsWith" | "StringDoesNotContain" | "StringDoesNotEndWith" | "StringOneOf" | "StringNotOneOf" | "Between" | "ArrayContains" | "ArrayDoesNotContain" | "InTheLast" | "StringLike" | "StringNotLike" | "StringMatchesTrimmed";
5
+ export declare const FilterFunction: {
6
+ readonly Equality: "Equality";
7
+ readonly Inequality: "Inequality";
8
+ readonly IsNull: "IsNull";
9
+ readonly IsNotNull: "IsNotNull";
10
+ readonly True: "True";
11
+ readonly False: "False";
12
+ readonly OnOrAfter: "OnOrAfter";
13
+ readonly OnOrBefore: "OnOrBefore";
14
+ readonly GreaterThan: "GreaterThan";
15
+ readonly GreaterThanEqual: "GreaterThanEqual";
16
+ readonly LessThan: "LessThan";
17
+ readonly LessThanEqual: "LessThanEqual";
18
+ readonly StringContains: "StringContains";
19
+ readonly StringEndsWith: "StringEndsWith";
20
+ readonly StringDoesNotContain: "StringDoesNotContain";
21
+ readonly StringDoesNotEndWith: "StringDoesNotEndWith";
22
+ readonly StringOneOf: "StringOneOf";
23
+ readonly StringNotOneOf: "StringNotOneOf";
24
+ readonly Between: "Between";
25
+ readonly ArrayContains: "ArrayContains";
26
+ readonly ArrayDoesNotContain: "ArrayDoesNotContain";
27
+ readonly InTheLast: "InTheLast";
28
+ readonly StringLike: "StringLike";
29
+ readonly StringNotLike: "StringNotLike";
30
+ readonly StringMatchesTrimmed: "StringMatchesTrimmed";
31
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FilterFunction = void 0;
7
+ exports.FilterFunction = {
8
+ Equality: "Equality",
9
+ Inequality: "Inequality",
10
+ IsNull: "IsNull",
11
+ IsNotNull: "IsNotNull",
12
+ True: "True",
13
+ False: "False",
14
+ OnOrAfter: "OnOrAfter",
15
+ OnOrBefore: "OnOrBefore",
16
+ GreaterThan: "GreaterThan",
17
+ GreaterThanEqual: "GreaterThanEqual",
18
+ LessThan: "LessThan",
19
+ LessThanEqual: "LessThanEqual",
20
+ StringContains: "StringContains",
21
+ StringEndsWith: "StringEndsWith",
22
+ StringDoesNotContain: "StringDoesNotContain",
23
+ StringDoesNotEndWith: "StringDoesNotEndWith",
24
+ StringOneOf: "StringOneOf",
25
+ StringNotOneOf: "StringNotOneOf",
26
+ Between: "Between",
27
+ ArrayContains: "ArrayContains",
28
+ ArrayDoesNotContain: "ArrayDoesNotContain",
29
+ InTheLast: "InTheLast",
30
+ StringLike: "StringLike",
31
+ StringNotLike: "StringNotLike",
32
+ StringMatchesTrimmed: "StringMatchesTrimmed",
33
+ };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Polytomic from "..";
5
5
  export interface Identity {
6
- function: string;
6
+ function: Polytomic.SchemaIdentityFunction;
7
7
  new_field?: boolean;
8
8
  remote_field_type_id?: string;
9
9
  source: Polytomic.Source;
@@ -4,6 +4,7 @@
4
4
  export interface ModelField {
5
5
  description?: string;
6
6
  example?: unknown;
7
+ id?: string;
7
8
  label?: string;
8
9
  name?: string;
9
10
  remote_type?: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "..";
5
+ export interface ModelSample {
6
+ records?: Polytomic.V2SampleRecord[];
7
+ warnings?: string[];
8
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "..";
5
+ export interface ModelSampleResponseEnvelope {
6
+ data?: Polytomic.ModelSample;
7
+ job?: Polytomic.JobResponse;
8
+ }
@@ -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 });
@@ -1,9 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated from our API Definition.
3
3
  */
4
+ import * as Polytomic from "..";
5
+ /**
6
+ * Either `field` or `field_id` must be provided. If `field_id` is provided, `field` is ignored.
7
+ */
4
8
  export interface Override {
9
+ field?: Polytomic.Source;
10
+ /** Field ID of the model field to override. */
5
11
  field_id?: string;
6
- function?: string;
12
+ function?: Polytomic.FilterFunction;
7
13
  override?: unknown;
8
14
  value?: unknown;
9
15
  }
@@ -6,7 +6,7 @@ export interface Schedule {
6
6
  connection_id?: string;
7
7
  day_of_month?: string;
8
8
  day_of_week?: string;
9
- frequency?: string;
9
+ frequency?: Polytomic.ScheduleFrequency;
10
10
  hour?: string;
11
11
  job_id?: number;
12
12
  minute?: string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export declare type SchemaIdentityFunction = "Equality" | "ISubstring" | "OneOf";
5
+ export declare const SchemaIdentityFunction: {
6
+ readonly Equality: "Equality";
7
+ readonly ISubstring: "ISubstring";
8
+ readonly OneOf: "OneOf";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SchemaIdentityFunction = void 0;
7
+ exports.SchemaIdentityFunction = {
8
+ Equality: "Equality",
9
+ ISubstring: "ISubstring",
10
+ OneOf: "OneOf",
11
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * A map of `fieldSource` -> `fieldName: fieldValue`. Because there may be field name conflicts between the base model and enrichments, the base model fields are placed in a map under the model ID. Fields from enrichments are placed under the enricher ID.
6
+ */
7
+ export declare type V2SampleRecord = Record<string, Record<string, unknown>>;
@@ -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 });
@@ -6,6 +6,8 @@ export * from "./BulkMultiScheduleConfiguration";
6
6
  export * from "./BulkSchedule";
7
7
  export * from "./BulkSchemaExecutionStatus";
8
8
  export * from "./BulkSelectiveMode";
9
+ export * from "./FilterFieldReferenceType";
10
+ export * from "./FilterFunction";
9
11
  export * from "./JsonschemaForm";
10
12
  export * from "./LabelLabel";
11
13
  export * from "./ModelModelFieldRequest";
@@ -15,6 +17,7 @@ export * from "./RestErrResponse";
15
17
  export * from "./ScheduleFrequency";
16
18
  export * from "./ScheduleScheduleOption";
17
19
  export * from "./SchemaAssociation";
20
+ export * from "./SchemaIdentityFunction";
18
21
  export * from "./SyncDestinationProperties";
19
22
  export * from "./ExecutionStatus";
20
23
  export * from "./ApiKeyResponse";
@@ -72,6 +75,8 @@ export * from "./ModelFieldResponse";
72
75
  export * from "./ModelListResponseEnvelope";
73
76
  export * from "./ModelResponse";
74
77
  export * from "./ModelResponseEnvelope";
78
+ export * from "./ModelSample";
79
+ export * from "./ModelSampleResponseEnvelope";
75
80
  export * from "./Organization";
76
81
  export * from "./OrganizationEnvelope";
77
82
  export * from "./OrganizationsEnvelope";
@@ -85,6 +90,7 @@ export * from "./RoleListResponseEnvelope";
85
90
  export * from "./RoleResponse";
86
91
  export * from "./RoleResponseEnvelope";
87
92
  export * from "./RunAfter";
93
+ export * from "./V2SampleRecord";
88
94
  export * from "./Schedule";
89
95
  export * from "./ScheduleOptionResponse";
90
96
  export * from "./ScheduleOptionResponseEnvelope";
@@ -22,6 +22,8 @@ __exportStar(require("./BulkMultiScheduleConfiguration"), exports);
22
22
  __exportStar(require("./BulkSchedule"), exports);
23
23
  __exportStar(require("./BulkSchemaExecutionStatus"), exports);
24
24
  __exportStar(require("./BulkSelectiveMode"), exports);
25
+ __exportStar(require("./FilterFieldReferenceType"), exports);
26
+ __exportStar(require("./FilterFunction"), exports);
25
27
  __exportStar(require("./JsonschemaForm"), exports);
26
28
  __exportStar(require("./LabelLabel"), exports);
27
29
  __exportStar(require("./ModelModelFieldRequest"), exports);
@@ -31,6 +33,7 @@ __exportStar(require("./RestErrResponse"), exports);
31
33
  __exportStar(require("./ScheduleFrequency"), exports);
32
34
  __exportStar(require("./ScheduleScheduleOption"), exports);
33
35
  __exportStar(require("./SchemaAssociation"), exports);
36
+ __exportStar(require("./SchemaIdentityFunction"), exports);
34
37
  __exportStar(require("./SyncDestinationProperties"), exports);
35
38
  __exportStar(require("./ExecutionStatus"), exports);
36
39
  __exportStar(require("./ApiKeyResponse"), exports);
@@ -88,6 +91,8 @@ __exportStar(require("./ModelFieldResponse"), exports);
88
91
  __exportStar(require("./ModelListResponseEnvelope"), exports);
89
92
  __exportStar(require("./ModelResponse"), exports);
90
93
  __exportStar(require("./ModelResponseEnvelope"), exports);
94
+ __exportStar(require("./ModelSample"), exports);
95
+ __exportStar(require("./ModelSampleResponseEnvelope"), exports);
91
96
  __exportStar(require("./Organization"), exports);
92
97
  __exportStar(require("./OrganizationEnvelope"), exports);
93
98
  __exportStar(require("./OrganizationsEnvelope"), exports);
@@ -101,6 +106,7 @@ __exportStar(require("./RoleListResponseEnvelope"), exports);
101
106
  __exportStar(require("./RoleResponse"), exports);
102
107
  __exportStar(require("./RoleResponseEnvelope"), exports);
103
108
  __exportStar(require("./RunAfter"), exports);
109
+ __exportStar(require("./V2SampleRecord"), exports);
104
110
  __exportStar(require("./Schedule"), exports);
105
111
  __exportStar(require("./ScheduleOptionResponse"), exports);
106
112
  __exportStar(require("./ScheduleOptionResponseEnvelope"), 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.2.0",
71
+ "X-Fern-SDK-Version": "1.4.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.2.0",
138
+ "X-Fern-SDK-Version": "1.4.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.2.0",
207
+ "X-Fern-SDK-Version": "1.4.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.2.0",
279
+ "X-Fern-SDK-Version": "1.4.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.2.0",
352
+ "X-Fern-SDK-Version": "1.4.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.2.0",
418
+ "X-Fern-SDK-Version": "1.4.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.2.0",
480
+ "X-Fern-SDK-Version": "1.4.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.2.0",
539
+ "X-Fern-SDK-Version": "1.4.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.2.0",
607
+ "X-Fern-SDK-Version": "1.4.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.2.0",
671
+ "X-Fern-SDK-Version": "1.4.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,8 +23,8 @@ 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[];
@@ -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,8 +23,8 @@ 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[];
@@ -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.2.0",
69
+ "X-Fern-SDK-Version": "1.4.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.2.0",
126
+ "X-Fern-SDK-Version": "1.4.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.2.0",
74
+ "X-Fern-SDK-Version": "1.4.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.2.0",
134
+ "X-Fern-SDK-Version": "1.4.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.2.0",
196
+ "X-Fern-SDK-Version": "1.4.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.2.0",
255
+ "X-Fern-SDK-Version": "1.4.0",
256
256
  "X-Fern-Runtime": core.RUNTIME.type,
257
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
258
258
  },
@@ -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
  */