polytomic 1.8.4 → 1.9.1
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.
- package/Client.d.ts +3 -3
- package/Client.js +9 -9
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +6 -4
- package/api/resources/bulkSync/client/Client.js +24 -14
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
- package/api/resources/bulkSync/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
- package/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
- package/api/resources/connections/client/Client.js +8 -8
- package/api/resources/events/client/Client.js +2 -2
- package/api/resources/identity/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.d.ts +21 -2
- package/api/resources/modelSync/client/Client.js +106 -15
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
- package/api/resources/modelSync/client/requests/index.d.ts +1 -0
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
- package/api/resources/modelSync/resources/executions/client/Client.js +8 -8
- package/api/resources/models/client/Client.d.ts +15 -0
- package/api/resources/models/client/Client.js +87 -8
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
- package/api/resources/models/client/requests/index.d.ts +1 -0
- package/api/resources/organization/client/Client.js +5 -5
- package/api/resources/permissions/resources/policies/client/Client.js +5 -5
- package/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/api/resources/queryRunner/client/Client.js +2 -2
- package/api/resources/schemas/client/Client.js +4 -4
- package/api/resources/users/client/Client.js +6 -6
- package/api/resources/webhooks/client/Client.js +5 -5
- package/api/types/BulkSyncDest.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +4 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +1 -0
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
- package/api/types/SchemaField.d.ts +3 -1
- package/api/types/SupportedBulkMode.d.ts +12 -0
- package/api/types/SupportedBulkMode.js +5 -0
- package/api/types/SupportedMode.d.ts +6 -5
- package/api/types/SyncMode.d.ts +17 -0
- package/api/types/SyncMode.js +16 -0
- package/api/types/TargetObject.d.ts +10 -0
- package/api/types/TargetObject.js +5 -0
- package/api/types/TypesType.d.ts +4 -0
- package/api/types/TypesType.js +5 -0
- package/api/types/UtilFieldType.d.ts +13 -0
- package/api/types/UtilFieldType.js +15 -0
- package/api/types/V2ExecutionLogType.d.ts +12 -0
- package/api/types/V2ExecutionLogType.js +14 -0
- package/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
- package/api/types/V4BulkSyncExecutionLogs.js +5 -0
- package/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
- package/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
- package/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
- package/api/types/V4ExportSyncLogsEnvelope.js +5 -0
- package/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
- package/api/types/V4ExportSyncLogsResponse.js +5 -0
- package/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/api/types/index.d.ts +12 -1
- package/api/types/index.js +12 -1
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +9 -9
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/bulkSync/client/Client.d.ts +6 -4
- package/dist/api/resources/bulkSync/client/Client.js +24 -14
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
- package/dist/api/resources/connections/client/Client.js +8 -8
- package/dist/api/resources/events/client/Client.js +2 -2
- package/dist/api/resources/identity/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/jobs/client/Client.js +1 -1
- package/dist/api/resources/modelSync/client/Client.d.ts +21 -2
- package/dist/api/resources/modelSync/client/Client.js +106 -15
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
- package/dist/api/resources/modelSync/client/requests/index.d.ts +1 -0
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +8 -8
- package/dist/api/resources/models/client/Client.d.ts +15 -0
- package/dist/api/resources/models/client/Client.js +87 -8
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
- package/dist/api/resources/models/client/requests/index.d.ts +1 -0
- package/dist/api/resources/organization/client/Client.js +5 -5
- package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/dist/api/resources/queryRunner/client/Client.js +2 -2
- package/dist/api/resources/schemas/client/Client.js +4 -4
- package/dist/api/resources/users/client/Client.js +6 -6
- package/dist/api/resources/webhooks/client/Client.js +5 -5
- package/dist/api/types/BulkSyncDest.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +4 -0
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -0
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
- package/dist/api/types/SchemaField.d.ts +3 -1
- package/dist/api/types/SupportedBulkMode.d.ts +12 -0
- package/dist/api/types/SupportedBulkMode.js +5 -0
- package/dist/api/types/SupportedMode.d.ts +6 -5
- package/dist/api/types/SyncMode.d.ts +17 -0
- package/dist/api/types/SyncMode.js +16 -0
- package/dist/api/types/TargetObject.d.ts +10 -0
- package/dist/api/types/TargetObject.js +5 -0
- package/dist/api/types/TypesType.d.ts +4 -0
- package/dist/api/types/TypesType.js +5 -0
- package/dist/api/types/UtilFieldType.d.ts +13 -0
- package/dist/api/types/UtilFieldType.js +15 -0
- package/dist/api/types/V2ExecutionLogType.d.ts +12 -0
- package/dist/api/types/V2ExecutionLogType.js +14 -0
- package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
- package/dist/api/types/V4BulkSyncExecutionLogs.js +5 -0
- package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
- package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
- package/dist/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
- package/dist/api/types/V4ExportSyncLogsEnvelope.js +5 -0
- package/dist/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
- package/dist/api/types/V4ExportSyncLogsResponse.js +5 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/dist/api/types/index.d.ts +12 -1
- package/dist/api/types/index.js +12 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UtilFieldType = void 0;
|
|
7
|
+
exports.UtilFieldType = {
|
|
8
|
+
Unknown: "unknown",
|
|
9
|
+
String: "string",
|
|
10
|
+
Number: "number",
|
|
11
|
+
Boolean: "boolean",
|
|
12
|
+
Datetime: "datetime",
|
|
13
|
+
Array: "array",
|
|
14
|
+
Object: "object",
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type V2ExecutionLogType = "records" | "errors" | "warnings" | "inserts" | "updates" | "deletes";
|
|
5
|
+
export declare const V2ExecutionLogType: {
|
|
6
|
+
readonly Records: "records";
|
|
7
|
+
readonly Errors: "errors";
|
|
8
|
+
readonly Warnings: "warnings";
|
|
9
|
+
readonly Inserts: "inserts";
|
|
10
|
+
readonly Updates: "updates";
|
|
11
|
+
readonly Deletes: "deletes";
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.V2ExecutionLogType = void 0;
|
|
7
|
+
exports.V2ExecutionLogType = {
|
|
8
|
+
Records: "records",
|
|
9
|
+
Errors: "errors",
|
|
10
|
+
Warnings: "warnings",
|
|
11
|
+
Inserts: "inserts",
|
|
12
|
+
Updates: "updates",
|
|
13
|
+
Deletes: "deletes",
|
|
14
|
+
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -29,7 +29,10 @@ export * from "./ScheduleScheduleOption";
|
|
|
29
29
|
export * from "./SchemaAssociation";
|
|
30
30
|
export * from "./SchemaIdentityFunction";
|
|
31
31
|
export * from "./SyncDestinationProperties";
|
|
32
|
+
export * from "./TypesType";
|
|
32
33
|
export * from "./ExecutionStatus";
|
|
34
|
+
export * from "./UtilFieldType";
|
|
35
|
+
export * from "./SyncMode";
|
|
33
36
|
export * from "./ApiKeyResponse";
|
|
34
37
|
export * from "./ApiKeyResponseEnvelope";
|
|
35
38
|
export * from "./ActivateSyncEnvelope";
|
|
@@ -65,6 +68,7 @@ export * from "./EventTypesEnvelope";
|
|
|
65
68
|
export * from "./EventsEnvelope";
|
|
66
69
|
export * from "./ExecutionCounts";
|
|
67
70
|
export * from "./ExecutionLogResponse";
|
|
71
|
+
export * from "./V2ExecutionLogType";
|
|
68
72
|
export * from "./ExecutionLogsResponseEnvelope";
|
|
69
73
|
export * from "./FieldConfiguration";
|
|
70
74
|
export * from "./Filter";
|
|
@@ -112,7 +116,7 @@ export * from "./SchemaConfiguration";
|
|
|
112
116
|
export * from "./Source";
|
|
113
117
|
export * from "./StartModelSyncResponseEnvelope";
|
|
114
118
|
export * from "./StartModelSyncResponseSchema";
|
|
115
|
-
export * from "./
|
|
119
|
+
export * from "./SupportedBulkMode";
|
|
116
120
|
export * from "./ModelSyncField";
|
|
117
121
|
export * from "./ModelSyncResponse";
|
|
118
122
|
export * from "./ModelSyncResponseEnvelope";
|
|
@@ -148,8 +152,12 @@ export * from "./PickValue";
|
|
|
148
152
|
export * from "./Schema";
|
|
149
153
|
export * from "./SchemaField";
|
|
150
154
|
export * from "./SchemaRecordsResponseEnvelope";
|
|
155
|
+
export * from "./V4BulkSyncExecutionLogs";
|
|
156
|
+
export * from "./V4BulkSyncExecutionLogsEnvelope";
|
|
151
157
|
export * from "./BulkSyncExecutionStatus";
|
|
152
158
|
export * from "./BulkSyncSchemaExecutionStatus";
|
|
159
|
+
export * from "./V4ExportSyncLogsEnvelope";
|
|
160
|
+
export * from "./V4ExportSyncLogsResponse";
|
|
153
161
|
export * from "./GetModelSyncSourceMetaEnvelope";
|
|
154
162
|
export * from "./ListBulkSyncExecutionStatusEnvelope";
|
|
155
163
|
export * from "./V4QueryResultsEnvelope";
|
|
@@ -157,5 +165,8 @@ export * from "./V4RunQueryEnvelope";
|
|
|
157
165
|
export * from "./Pagination";
|
|
158
166
|
export * from "./V4RunQueryResult";
|
|
159
167
|
export * from "./SourceMeta";
|
|
168
|
+
export * from "./SupportedMode";
|
|
160
169
|
export * from "./ModelSyncSourceMetaResponse";
|
|
170
|
+
export * from "./TargetObject";
|
|
171
|
+
export * from "./V4TargetObjectsResponseEnvelope";
|
|
161
172
|
export * from "./WorkTaskStatus";
|
package/api/types/index.js
CHANGED
|
@@ -45,7 +45,10 @@ __exportStar(require("./ScheduleScheduleOption"), exports);
|
|
|
45
45
|
__exportStar(require("./SchemaAssociation"), exports);
|
|
46
46
|
__exportStar(require("./SchemaIdentityFunction"), exports);
|
|
47
47
|
__exportStar(require("./SyncDestinationProperties"), exports);
|
|
48
|
+
__exportStar(require("./TypesType"), exports);
|
|
48
49
|
__exportStar(require("./ExecutionStatus"), exports);
|
|
50
|
+
__exportStar(require("./UtilFieldType"), exports);
|
|
51
|
+
__exportStar(require("./SyncMode"), exports);
|
|
49
52
|
__exportStar(require("./ApiKeyResponse"), exports);
|
|
50
53
|
__exportStar(require("./ApiKeyResponseEnvelope"), exports);
|
|
51
54
|
__exportStar(require("./ActivateSyncEnvelope"), exports);
|
|
@@ -81,6 +84,7 @@ __exportStar(require("./EventTypesEnvelope"), exports);
|
|
|
81
84
|
__exportStar(require("./EventsEnvelope"), exports);
|
|
82
85
|
__exportStar(require("./ExecutionCounts"), exports);
|
|
83
86
|
__exportStar(require("./ExecutionLogResponse"), exports);
|
|
87
|
+
__exportStar(require("./V2ExecutionLogType"), exports);
|
|
84
88
|
__exportStar(require("./ExecutionLogsResponseEnvelope"), exports);
|
|
85
89
|
__exportStar(require("./FieldConfiguration"), exports);
|
|
86
90
|
__exportStar(require("./Filter"), exports);
|
|
@@ -128,7 +132,7 @@ __exportStar(require("./SchemaConfiguration"), exports);
|
|
|
128
132
|
__exportStar(require("./Source"), exports);
|
|
129
133
|
__exportStar(require("./StartModelSyncResponseEnvelope"), exports);
|
|
130
134
|
__exportStar(require("./StartModelSyncResponseSchema"), exports);
|
|
131
|
-
__exportStar(require("./
|
|
135
|
+
__exportStar(require("./SupportedBulkMode"), exports);
|
|
132
136
|
__exportStar(require("./ModelSyncField"), exports);
|
|
133
137
|
__exportStar(require("./ModelSyncResponse"), exports);
|
|
134
138
|
__exportStar(require("./ModelSyncResponseEnvelope"), exports);
|
|
@@ -164,8 +168,12 @@ __exportStar(require("./PickValue"), exports);
|
|
|
164
168
|
__exportStar(require("./Schema"), exports);
|
|
165
169
|
__exportStar(require("./SchemaField"), exports);
|
|
166
170
|
__exportStar(require("./SchemaRecordsResponseEnvelope"), exports);
|
|
171
|
+
__exportStar(require("./V4BulkSyncExecutionLogs"), exports);
|
|
172
|
+
__exportStar(require("./V4BulkSyncExecutionLogsEnvelope"), exports);
|
|
167
173
|
__exportStar(require("./BulkSyncExecutionStatus"), exports);
|
|
168
174
|
__exportStar(require("./BulkSyncSchemaExecutionStatus"), exports);
|
|
175
|
+
__exportStar(require("./V4ExportSyncLogsEnvelope"), exports);
|
|
176
|
+
__exportStar(require("./V4ExportSyncLogsResponse"), exports);
|
|
169
177
|
__exportStar(require("./GetModelSyncSourceMetaEnvelope"), exports);
|
|
170
178
|
__exportStar(require("./ListBulkSyncExecutionStatusEnvelope"), exports);
|
|
171
179
|
__exportStar(require("./V4QueryResultsEnvelope"), exports);
|
|
@@ -173,5 +181,8 @@ __exportStar(require("./V4RunQueryEnvelope"), exports);
|
|
|
173
181
|
__exportStar(require("./Pagination"), exports);
|
|
174
182
|
__exportStar(require("./V4RunQueryResult"), exports);
|
|
175
183
|
__exportStar(require("./SourceMeta"), exports);
|
|
184
|
+
__exportStar(require("./SupportedMode"), exports);
|
|
176
185
|
__exportStar(require("./ModelSyncSourceMetaResponse"), exports);
|
|
186
|
+
__exportStar(require("./TargetObject"), exports);
|
|
187
|
+
__exportStar(require("./V4TargetObjectsResponseEnvelope"), exports);
|
|
177
188
|
__exportStar(require("./WorkTaskStatus"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import * as core from "./core";
|
|
|
6
6
|
import { BulkSync } from "./api/resources/bulkSync/client/Client";
|
|
7
7
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
8
8
|
import { QueryRunner } from "./api/resources/queryRunner/client/Client";
|
|
9
|
+
import { Models } from "./api/resources/models/client/Client";
|
|
9
10
|
import { ModelSync } from "./api/resources/modelSync/client/Client";
|
|
10
11
|
import { Schemas } from "./api/resources/schemas/client/Client";
|
|
11
|
-
import { Models } from "./api/resources/models/client/Client";
|
|
12
12
|
import { Events } from "./api/resources/events/client/Client";
|
|
13
13
|
import { Jobs } from "./api/resources/jobs/client/Client";
|
|
14
14
|
import { Identity } from "./api/resources/identity/client/Client";
|
|
@@ -42,12 +42,12 @@ export declare class PolytomicClient {
|
|
|
42
42
|
get connections(): Connections;
|
|
43
43
|
protected _queryRunner: QueryRunner | undefined;
|
|
44
44
|
get queryRunner(): QueryRunner;
|
|
45
|
+
protected _models: Models | undefined;
|
|
46
|
+
get models(): Models;
|
|
45
47
|
protected _modelSync: ModelSync | undefined;
|
|
46
48
|
get modelSync(): ModelSync;
|
|
47
49
|
protected _schemas: Schemas | undefined;
|
|
48
50
|
get schemas(): Schemas;
|
|
49
|
-
protected _models: Models | undefined;
|
|
50
|
-
get models(): Models;
|
|
51
51
|
protected _events: Events | undefined;
|
|
52
52
|
get events(): Events;
|
|
53
53
|
protected _jobs: Jobs | undefined;
|
package/dist/Client.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.PolytomicClient = void 0;
|
|
|
7
7
|
const Client_1 = require("./api/resources/bulkSync/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/connections/client/Client");
|
|
9
9
|
const Client_3 = require("./api/resources/queryRunner/client/Client");
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
10
|
+
const Client_4 = require("./api/resources/models/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/modelSync/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/schemas/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/events/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/jobs/client/Client");
|
|
15
15
|
const Client_9 = require("./api/resources/identity/client/Client");
|
|
@@ -33,17 +33,17 @@ class PolytomicClient {
|
|
|
33
33
|
var _a;
|
|
34
34
|
return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_3.QueryRunner(this._options)));
|
|
35
35
|
}
|
|
36
|
-
get
|
|
36
|
+
get models() {
|
|
37
37
|
var _a;
|
|
38
|
-
return ((_a = this.
|
|
38
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_4.Models(this._options)));
|
|
39
39
|
}
|
|
40
|
-
get
|
|
40
|
+
get modelSync() {
|
|
41
41
|
var _a;
|
|
42
|
-
return ((_a = this.
|
|
42
|
+
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_5.ModelSync(this._options)));
|
|
43
43
|
}
|
|
44
|
-
get
|
|
44
|
+
get schemas() {
|
|
45
45
|
var _a;
|
|
46
|
-
return ((_a = this.
|
|
46
|
+
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_6.Schemas(this._options)));
|
|
47
47
|
}
|
|
48
48
|
get events() {
|
|
49
49
|
var _a;
|
package/dist/api/errors/index.js
CHANGED
|
@@ -18,5 +18,5 @@ __exportStar(require("./UnauthorizedError"), exports);
|
|
|
18
18
|
__exportStar(require("./InternalServerError"), exports);
|
|
19
19
|
__exportStar(require("./BadRequestError"), exports);
|
|
20
20
|
__exportStar(require("./ForbiddenError"), exports);
|
|
21
|
-
__exportStar(require("./NotFoundError"), exports);
|
|
22
21
|
__exportStar(require("./UnprocessableEntityError"), exports);
|
|
22
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
@@ -27,15 +27,18 @@ export declare class BulkSync {
|
|
|
27
27
|
protected readonly _options: BulkSync.Options;
|
|
28
28
|
constructor(_options: BulkSync.Options);
|
|
29
29
|
/**
|
|
30
|
+
* @param {Polytomic.BulkSyncListRequest} request
|
|
30
31
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
32
|
*
|
|
32
33
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
33
34
|
* @throws {@link Polytomic.InternalServerError}
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
36
|
-
* await client.bulkSync.list(
|
|
37
|
+
* await client.bulkSync.list({
|
|
38
|
+
* active: true
|
|
39
|
+
* })
|
|
37
40
|
*/
|
|
38
|
-
list(requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
41
|
+
list(request?: Polytomic.BulkSyncListRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
39
42
|
/**
|
|
40
43
|
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
41
44
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -43,12 +46,12 @@ export declare class BulkSync {
|
|
|
43
46
|
* @throws {@link Polytomic.BadRequestError}
|
|
44
47
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
45
48
|
* @throws {@link Polytomic.ForbiddenError}
|
|
49
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
46
50
|
* @throws {@link Polytomic.InternalServerError}
|
|
47
51
|
*
|
|
48
52
|
* @example
|
|
49
53
|
* await client.bulkSync.create({
|
|
50
54
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
51
|
-
* mode: "replicate",
|
|
52
55
|
* name: "My Bulk Sync",
|
|
53
56
|
* schedule: {
|
|
54
57
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -89,7 +92,6 @@ export declare class BulkSync {
|
|
|
89
92
|
* @example
|
|
90
93
|
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
91
94
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
92
|
-
* mode: "replicate",
|
|
93
95
|
* name: "My Bulk Sync",
|
|
94
96
|
* schedule: {
|
|
95
97
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -51,17 +51,25 @@ class BulkSync {
|
|
|
51
51
|
this._options = _options;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
+
* @param {Polytomic.BulkSyncListRequest} request
|
|
54
55
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
56
|
*
|
|
56
57
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
57
58
|
* @throws {@link Polytomic.InternalServerError}
|
|
58
59
|
*
|
|
59
60
|
* @example
|
|
60
|
-
* await client.bulkSync.list(
|
|
61
|
+
* await client.bulkSync.list({
|
|
62
|
+
* active: true
|
|
63
|
+
* })
|
|
61
64
|
*/
|
|
62
|
-
list(requestOptions) {
|
|
65
|
+
list(request = {}, requestOptions) {
|
|
63
66
|
var _a;
|
|
64
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const { active } = request;
|
|
69
|
+
const _queryParams = {};
|
|
70
|
+
if (active != null) {
|
|
71
|
+
_queryParams["active"] = active.toString();
|
|
72
|
+
}
|
|
65
73
|
const _response = yield core.fetcher({
|
|
66
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/bulk/syncs"),
|
|
67
75
|
method: "GET",
|
|
@@ -72,11 +80,12 @@ class BulkSync {
|
|
|
72
80
|
: undefined,
|
|
73
81
|
"X-Fern-Language": "JavaScript",
|
|
74
82
|
"X-Fern-SDK-Name": "polytomic",
|
|
75
|
-
"X-Fern-SDK-Version": "1.
|
|
83
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
76
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
86
|
},
|
|
79
87
|
contentType: "application/json",
|
|
88
|
+
queryParameters: _queryParams,
|
|
80
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
81
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -119,12 +128,12 @@ class BulkSync {
|
|
|
119
128
|
* @throws {@link Polytomic.BadRequestError}
|
|
120
129
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
121
130
|
* @throws {@link Polytomic.ForbiddenError}
|
|
131
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
122
132
|
* @throws {@link Polytomic.InternalServerError}
|
|
123
133
|
*
|
|
124
134
|
* @example
|
|
125
135
|
* await client.bulkSync.create({
|
|
126
136
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
127
|
-
* mode: "replicate",
|
|
128
137
|
* name: "My Bulk Sync",
|
|
129
138
|
* schedule: {
|
|
130
139
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -145,7 +154,7 @@ class BulkSync {
|
|
|
145
154
|
: undefined,
|
|
146
155
|
"X-Fern-Language": "JavaScript",
|
|
147
156
|
"X-Fern-SDK-Name": "polytomic",
|
|
148
|
-
"X-Fern-SDK-Version": "1.
|
|
157
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
149
158
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
159
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
160
|
},
|
|
@@ -166,6 +175,8 @@ class BulkSync {
|
|
|
166
175
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
167
176
|
case 403:
|
|
168
177
|
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
178
|
+
case 422:
|
|
179
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
169
180
|
case 500:
|
|
170
181
|
throw new Polytomic.InternalServerError(_response.error.body);
|
|
171
182
|
default:
|
|
@@ -221,7 +232,7 @@ class BulkSync {
|
|
|
221
232
|
: undefined,
|
|
222
233
|
"X-Fern-Language": "JavaScript",
|
|
223
234
|
"X-Fern-SDK-Name": "polytomic",
|
|
224
|
-
"X-Fern-SDK-Version": "1.
|
|
235
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
225
236
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
226
237
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
227
238
|
},
|
|
@@ -280,7 +291,6 @@ class BulkSync {
|
|
|
280
291
|
* @example
|
|
281
292
|
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
282
293
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
283
|
-
* mode: "replicate",
|
|
284
294
|
* name: "My Bulk Sync",
|
|
285
295
|
* schedule: {
|
|
286
296
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -301,7 +311,7 @@ class BulkSync {
|
|
|
301
311
|
: undefined,
|
|
302
312
|
"X-Fern-Language": "JavaScript",
|
|
303
313
|
"X-Fern-SDK-Name": "polytomic",
|
|
304
|
-
"X-Fern-SDK-Version": "1.
|
|
314
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
305
315
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
306
316
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
307
317
|
},
|
|
@@ -381,7 +391,7 @@ class BulkSync {
|
|
|
381
391
|
: undefined,
|
|
382
392
|
"X-Fern-Language": "JavaScript",
|
|
383
393
|
"X-Fern-SDK-Name": "polytomic",
|
|
384
|
-
"X-Fern-SDK-Version": "1.
|
|
394
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
385
395
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
386
396
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
387
397
|
},
|
|
@@ -454,7 +464,7 @@ class BulkSync {
|
|
|
454
464
|
: undefined,
|
|
455
465
|
"X-Fern-Language": "JavaScript",
|
|
456
466
|
"X-Fern-SDK-Name": "polytomic",
|
|
457
|
-
"X-Fern-SDK-Version": "1.
|
|
467
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
458
468
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
459
469
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
460
470
|
},
|
|
@@ -523,7 +533,7 @@ class BulkSync {
|
|
|
523
533
|
: undefined,
|
|
524
534
|
"X-Fern-Language": "JavaScript",
|
|
525
535
|
"X-Fern-SDK-Name": "polytomic",
|
|
526
|
-
"X-Fern-SDK-Version": "1.
|
|
536
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
527
537
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
528
538
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
529
539
|
},
|
|
@@ -588,7 +598,7 @@ class BulkSync {
|
|
|
588
598
|
: undefined,
|
|
589
599
|
"X-Fern-Language": "JavaScript",
|
|
590
600
|
"X-Fern-SDK-Name": "polytomic",
|
|
591
|
-
"X-Fern-SDK-Version": "1.
|
|
601
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
592
602
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
593
603
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
594
604
|
},
|
|
@@ -663,7 +673,7 @@ class BulkSync {
|
|
|
663
673
|
: undefined,
|
|
664
674
|
"X-Fern-Language": "JavaScript",
|
|
665
675
|
"X-Fern-SDK-Name": "polytomic",
|
|
666
|
-
"X-Fern-SDK-Version": "1.
|
|
676
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
667
677
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
668
678
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
669
679
|
},
|
|
@@ -733,7 +743,7 @@ class BulkSync {
|
|
|
733
743
|
: undefined,
|
|
734
744
|
"X-Fern-Language": "JavaScript",
|
|
735
745
|
"X-Fern-SDK-Name": "polytomic",
|
|
736
|
-
"X-Fern-SDK-Version": "1.
|
|
746
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
737
747
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
738
748
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
739
749
|
},
|
|
@@ -6,7 +6,6 @@ import * as Polytomic from "../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
9
|
-
* mode: "replicate",
|
|
10
9
|
* name: "My Bulk Sync",
|
|
11
10
|
* schedule: {
|
|
12
11
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -23,8 +22,7 @@ export interface CreateBulkSyncRequest {
|
|
|
23
22
|
disable_record_timestamps?: boolean;
|
|
24
23
|
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
|
|
25
24
|
discover?: boolean;
|
|
26
|
-
|
|
27
|
-
mode: string;
|
|
25
|
+
mode?: Polytomic.SyncMode;
|
|
28
26
|
name: string;
|
|
29
27
|
organization_id?: string;
|
|
30
28
|
policies?: string[];
|
|
@@ -6,7 +6,6 @@ import * as Polytomic from "../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
9
|
-
* mode: "replicate",
|
|
10
9
|
* name: "My Bulk Sync",
|
|
11
10
|
* schedule: {
|
|
12
11
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -23,8 +22,7 @@ export interface UpdateBulkSyncRequest {
|
|
|
23
22
|
disable_record_timestamps?: boolean;
|
|
24
23
|
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
|
|
25
24
|
discover?: boolean;
|
|
26
|
-
|
|
27
|
-
mode: string;
|
|
25
|
+
mode?: Polytomic.SyncMode;
|
|
28
26
|
name: string;
|
|
29
27
|
organization_id?: string;
|
|
30
28
|
policies?: string[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type BulkSyncListRequest } from "./BulkSyncListRequest";
|
|
1
2
|
export { type CreateBulkSyncRequest } from "./CreateBulkSyncRequest";
|
|
2
3
|
export { type BulkSyncGetRequest } from "./BulkSyncGetRequest";
|
|
3
4
|
export { type UpdateBulkSyncRequest } from "./UpdateBulkSyncRequest";
|
|
@@ -61,5 +61,32 @@ export declare class Executions {
|
|
|
61
61
|
* await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
62
62
|
*/
|
|
63
63
|
get(id: string, execId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
64
|
+
/**
|
|
65
|
+
* @param {string} syncId
|
|
66
|
+
* @param {string} executionId
|
|
67
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
70
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
74
|
+
*/
|
|
75
|
+
getLogs(syncId: string, executionId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.V4BulkSyncExecutionLogsEnvelope>;
|
|
76
|
+
/**
|
|
77
|
+
* @param {string} syncId
|
|
78
|
+
* @param {string} executionId
|
|
79
|
+
* @param {Polytomic.bulkSync.ExecutionsExportLogsRequest} request
|
|
80
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
83
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
84
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
85
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
89
|
+
*/
|
|
90
|
+
exportLogs(syncId: string, executionId: string, request?: Polytomic.bulkSync.ExecutionsExportLogsRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.V4ExportSyncLogsEnvelope>;
|
|
64
91
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
65
92
|
}
|