polytomic 0.1.2 → 0.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.
- package/Client.d.ts +8 -6
- package/Client.js +27 -22
- package/api/errors/BadRequestError.d.ts +8 -0
- package/api/errors/BadRequestError.js +41 -0
- package/api/errors/ForbiddenError.d.ts +8 -0
- package/api/errors/ForbiddenError.js +41 -0
- package/api/errors/InternalServerError.d.ts +8 -0
- package/api/errors/InternalServerError.js +41 -0
- package/api/errors/NotFoundError.d.ts +8 -0
- package/api/errors/NotFoundError.js +41 -0
- package/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/errors/UnprocessableEntityError.js +41 -0
- package/api/errors/index.d.ts +5 -0
- package/api/errors/index.js +5 -0
- package/api/resources/bulkSync/client/Client.d.ts +78 -47
- package/api/resources/bulkSync/client/Client.js +188 -183
- package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -1
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +8 -2
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +8 -2
- package/api/resources/bulkSync/client/requests/index.d.ts +3 -2
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +5 -14
- package/api/resources/bulkSync/resources/executions/client/Client.js +12 -74
- package/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/api/resources/bulkSync/resources/executions/client/index.js +0 -15
- package/api/resources/bulkSync/resources/index.d.ts +0 -1
- package/api/resources/bulkSync/resources/index.js +0 -1
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +23 -9
- package/api/resources/bulkSync/resources/schemas/client/Client.js +93 -24
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +11 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -0
- package/api/resources/connections/client/Client.d.ts +43 -45
- package/api/resources/connections/client/Client.js +116 -294
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +20 -0
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +2 -2
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +2 -2
- package/api/resources/connections/client/requests/index.d.ts +2 -4
- package/api/resources/events/client/Client.d.ts +9 -8
- package/api/resources/events/client/Client.js +16 -18
- package/{dist/api/resources/events/client/requests/EventsApiV2GetEventsRequest.d.ts → api/resources/events/client/requests/EventsListRequest.d.ts} +1 -1
- package/api/resources/events/client/requests/index.d.ts +1 -1
- package/api/resources/identity/client/Client.d.ts +29 -0
- package/api/resources/identity/client/Client.js +114 -0
- package/api/resources/identity/client/index.d.ts +1 -0
- package/api/resources/identity/index.d.ts +1 -0
- package/api/resources/identity/index.js +17 -0
- package/api/resources/index.d.ts +3 -2
- package/api/resources/index.js +4 -3
- package/api/resources/jobs/client/Client.d.ts +6 -4
- package/api/resources/jobs/client/Client.js +13 -10
- package/api/resources/modelSync/client/Client.d.ts +82 -11
- package/api/resources/modelSync/client/Client.js +421 -79
- package/api/resources/{connections/client/requests/ModelFieldsRequest.d.ts → modelSync/client/requests/ModelSyncGetSourceRequest.d.ts} +2 -2
- package/{dist/api/resources/connections/client/requests/TargetRequest.d.ts → api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.d.ts} +4 -4
- package/{dist/api/resources/connections/client/requests/ConnectionsGetTargetRequest.d.ts → api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts} +2 -5
- package/api/resources/modelSync/client/requests/index.d.ts +3 -0
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +16 -64
- package/api/resources/modelSync/resources/executions/client/Client.js +43 -476
- package/api/resources/models/client/Client.d.ts +22 -11
- package/api/resources/models/client/Client.js +68 -46
- package/api/resources/organization/client/Client.d.ts +21 -14
- package/api/resources/organization/client/Client.js +52 -42
- package/api/resources/permissions/client/Client.d.ts +2 -3
- package/api/resources/permissions/client/Client.js +1 -1
- package/api/resources/permissions/resources/policies/client/Client.d.ts +24 -11
- package/api/resources/permissions/resources/policies/client/Client.js +69 -41
- package/api/resources/permissions/resources/roles/client/Client.d.ts +22 -10
- package/api/resources/permissions/resources/roles/client/Client.js +62 -37
- package/api/resources/schemas/client/Client.d.ts +39 -6
- package/api/resources/schemas/client/Client.js +208 -13
- package/api/resources/users/client/Client.d.ts +21 -11
- package/api/resources/users/client/Client.js +57 -40
- package/api/resources/webhooks/client/Client.d.ts +18 -11
- package/api/resources/webhooks/client/Client.js +53 -43
- package/api/types/ApiError.d.ts +8 -0
- package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +7 -0
- package/api/types/ModelSyncSourceMetaResponse.d.ts +9 -0
- package/api/types/SourceMeta.d.ts +8 -0
- package/api/types/SourceMeta.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +8 -6
- package/dist/Client.js +27 -22
- package/dist/api/errors/BadRequestError.d.ts +8 -0
- package/dist/api/errors/BadRequestError.js +41 -0
- package/dist/api/errors/ForbiddenError.d.ts +8 -0
- package/dist/api/errors/ForbiddenError.js +41 -0
- package/dist/api/errors/InternalServerError.d.ts +8 -0
- package/dist/api/errors/InternalServerError.js +41 -0
- package/dist/api/errors/NotFoundError.d.ts +8 -0
- package/dist/api/errors/NotFoundError.js +41 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/errors/UnprocessableEntityError.js +41 -0
- package/dist/api/errors/index.d.ts +5 -0
- package/dist/api/errors/index.js +5 -0
- package/dist/api/resources/bulkSync/client/Client.d.ts +78 -47
- package/dist/api/resources/bulkSync/client/Client.js +188 -183
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -1
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +8 -2
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.js +5 -0
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +8 -2
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +3 -2
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +5 -14
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +12 -74
- package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/executions/client/index.js +0 -15
- package/dist/api/resources/bulkSync/resources/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/resources/index.js +0 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +23 -9
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +93 -24
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +11 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -0
- package/dist/api/resources/connections/client/Client.d.ts +43 -45
- package/dist/api/resources/connections/client/Client.js +116 -294
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +20 -0
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +2 -2
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +2 -2
- package/dist/api/resources/connections/client/requests/index.d.ts +2 -4
- package/dist/api/resources/events/client/Client.d.ts +9 -8
- package/dist/api/resources/events/client/Client.js +16 -18
- package/{api/resources/events/client/requests/EventsApiV2GetEventsRequest.d.ts → dist/api/resources/events/client/requests/EventsListRequest.d.ts} +1 -1
- package/dist/api/resources/events/client/requests/EventsListRequest.js +5 -0
- package/dist/api/resources/events/client/requests/index.d.ts +1 -1
- package/dist/api/resources/identity/client/Client.d.ts +29 -0
- package/dist/api/resources/identity/client/Client.js +114 -0
- package/dist/api/resources/identity/client/index.d.ts +1 -0
- package/dist/api/resources/identity/index.d.ts +1 -0
- package/dist/api/resources/identity/index.js +17 -0
- package/dist/api/resources/index.d.ts +3 -2
- package/dist/api/resources/index.js +4 -3
- package/dist/api/resources/jobs/client/Client.d.ts +6 -4
- package/dist/api/resources/jobs/client/Client.js +13 -10
- package/dist/api/resources/modelSync/client/Client.d.ts +82 -11
- package/dist/api/resources/modelSync/client/Client.js +421 -79
- package/dist/api/resources/{connections/client/requests/ModelFieldsRequest.d.ts → modelSync/client/requests/ModelSyncGetSourceRequest.d.ts} +2 -2
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.js +5 -0
- package/{api/resources/connections/client/requests/TargetRequest.d.ts → dist/api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.d.ts} +4 -4
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js +5 -0
- package/{api/resources/connections/client/requests/ConnectionsGetTargetRequest.d.ts → dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts} +2 -5
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.js +5 -0
- package/dist/api/resources/modelSync/client/requests/index.d.ts +3 -0
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +16 -64
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +43 -476
- package/dist/api/resources/models/client/Client.d.ts +22 -11
- package/dist/api/resources/models/client/Client.js +68 -46
- package/dist/api/resources/organization/client/Client.d.ts +21 -14
- package/dist/api/resources/organization/client/Client.js +52 -42
- package/dist/api/resources/permissions/client/Client.d.ts +2 -3
- package/dist/api/resources/permissions/client/Client.js +1 -1
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +24 -11
- package/dist/api/resources/permissions/resources/policies/client/Client.js +69 -41
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +22 -10
- package/dist/api/resources/permissions/resources/roles/client/Client.js +62 -37
- package/dist/api/resources/schemas/client/Client.d.ts +39 -6
- package/dist/api/resources/schemas/client/Client.js +208 -13
- package/dist/api/resources/users/client/Client.d.ts +21 -11
- package/dist/api/resources/users/client/Client.js +57 -40
- package/dist/api/resources/webhooks/client/Client.d.ts +18 -11
- package/dist/api/resources/webhooks/client/Client.js +53 -43
- package/dist/api/types/ApiError.d.ts +8 -0
- package/dist/api/types/ApiError.js +5 -0
- package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +7 -0
- package/dist/api/types/GetModelSyncSourceMetaEnvelope.js +5 -0
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +9 -0
- package/dist/api/types/ModelSyncSourceMetaResponse.js +5 -0
- package/dist/api/types/SourceMeta.d.ts +8 -0
- package/dist/api/types/SourceMeta.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/package.json +1 -1
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +0 -1
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +0 -1
- /package/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.d.ts +0 -0
- /package/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.js +0 -0
- /package/api/resources/{connections/client/requests/ConnectionsGetTargetRequest.js → bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.js} +0 -0
- /package/api/resources/connections/client/requests/{ModelFieldsRequest.js → ConnectCardRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/TargetRequest.js → events/client/requests/EventsListRequest.js} +0 -0
- /package/api/resources/{bulkSync/resources/executions/client/requests → identity/client}/index.js +0 -0
- /package/api/resources/{events/client/requests/EventsApiV2GetEventsRequest.js → modelSync/client/requests/ModelSyncGetSourceRequest.js} +0 -0
- /package/{dist/api/resources/bulkSync/resources/executions/client/requests/StartBulkSyncRequest.js → api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js} +0 -0
- /package/{dist/api/resources/connections/client/requests/ConnectionsGetTargetRequest.js → api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.js} +0 -0
- /package/{dist/api/resources/connections/client/requests/ModelFieldsRequest.js → api/types/ApiError.js} +0 -0
- /package/{dist/api/resources/connections/client/requests/TargetRequest.js → api/types/GetModelSyncSourceMetaEnvelope.js} +0 -0
- /package/{dist/api/resources/events/client/requests/EventsApiV2GetEventsRequest.js → api/types/ModelSyncSourceMetaResponse.js} +0 -0
- /package/dist/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.d.ts +0 -0
- /package/dist/api/resources/{bulkSync/resources/executions/client/requests → identity/client}/index.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -5,20 +5,20 @@ import * as environments from "./environments";
|
|
|
5
5
|
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
|
+
import { ModelSync } from "./api/resources/modelSync/client/Client";
|
|
8
9
|
import { Schemas } from "./api/resources/schemas/client/Client";
|
|
9
10
|
import { Events } from "./api/resources/events/client/Client";
|
|
10
11
|
import { Jobs } from "./api/resources/jobs/client/Client";
|
|
12
|
+
import { Identity } from "./api/resources/identity/client/Client";
|
|
11
13
|
import { Models } from "./api/resources/models/client/Client";
|
|
12
14
|
import { Organization } from "./api/resources/organization/client/Client";
|
|
13
15
|
import { Users } from "./api/resources/users/client/Client";
|
|
14
16
|
import { Permissions } from "./api/resources/permissions/client/Client";
|
|
15
|
-
import { ModelSync } from "./api/resources/modelSync/client/Client";
|
|
16
17
|
import { Webhooks } from "./api/resources/webhooks/client/Client";
|
|
17
18
|
export declare namespace PolytomicClient {
|
|
18
19
|
interface Options {
|
|
19
20
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
20
|
-
token
|
|
21
|
-
xPolytomicVersion?: core.Supplier<"2023-04-25" | undefined>;
|
|
21
|
+
token: core.Supplier<core.BearerToken>;
|
|
22
22
|
}
|
|
23
23
|
interface RequestOptions {
|
|
24
24
|
timeoutInSeconds?: number;
|
|
@@ -27,17 +27,21 @@ export declare namespace PolytomicClient {
|
|
|
27
27
|
}
|
|
28
28
|
export declare class PolytomicClient {
|
|
29
29
|
protected readonly _options: PolytomicClient.Options;
|
|
30
|
-
constructor(_options
|
|
30
|
+
constructor(_options: PolytomicClient.Options);
|
|
31
31
|
protected _bulkSync: BulkSync | undefined;
|
|
32
32
|
get bulkSync(): BulkSync;
|
|
33
33
|
protected _connections: Connections | undefined;
|
|
34
34
|
get connections(): Connections;
|
|
35
|
+
protected _modelSync: ModelSync | undefined;
|
|
36
|
+
get modelSync(): ModelSync;
|
|
35
37
|
protected _schemas: Schemas | undefined;
|
|
36
38
|
get schemas(): Schemas;
|
|
37
39
|
protected _events: Events | undefined;
|
|
38
40
|
get events(): Events;
|
|
39
41
|
protected _jobs: Jobs | undefined;
|
|
40
42
|
get jobs(): Jobs;
|
|
43
|
+
protected _identity: Identity | undefined;
|
|
44
|
+
get identity(): Identity;
|
|
41
45
|
protected _models: Models | undefined;
|
|
42
46
|
get models(): Models;
|
|
43
47
|
protected _organization: Organization | undefined;
|
|
@@ -46,8 +50,6 @@ export declare class PolytomicClient {
|
|
|
46
50
|
get users(): Users;
|
|
47
51
|
protected _permissions: Permissions | undefined;
|
|
48
52
|
get permissions(): Permissions;
|
|
49
|
-
protected _modelSync: ModelSync | undefined;
|
|
50
|
-
get modelSync(): ModelSync;
|
|
51
53
|
protected _webhooks: Webhooks | undefined;
|
|
52
54
|
get webhooks(): Webhooks;
|
|
53
55
|
}
|
package/Client.js
CHANGED
|
@@ -6,17 +6,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
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
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
9
|
+
const Client_3 = require("./api/resources/modelSync/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/schemas/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/events/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/jobs/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/identity/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/models/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/organization/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/users/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/permissions/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/webhooks/client/Client");
|
|
18
19
|
class PolytomicClient {
|
|
19
|
-
constructor(_options
|
|
20
|
+
constructor(_options) {
|
|
20
21
|
this._options = _options;
|
|
21
22
|
}
|
|
22
23
|
get bulkSync() {
|
|
@@ -27,41 +28,45 @@ class PolytomicClient {
|
|
|
27
28
|
var _a;
|
|
28
29
|
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_2.Connections(this._options)));
|
|
29
30
|
}
|
|
31
|
+
get modelSync() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_3.ModelSync(this._options)));
|
|
34
|
+
}
|
|
30
35
|
get schemas() {
|
|
31
36
|
var _a;
|
|
32
|
-
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new
|
|
37
|
+
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_4.Schemas(this._options)));
|
|
33
38
|
}
|
|
34
39
|
get events() {
|
|
35
40
|
var _a;
|
|
36
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
41
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_5.Events(this._options)));
|
|
37
42
|
}
|
|
38
43
|
get jobs() {
|
|
39
44
|
var _a;
|
|
40
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
45
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_6.Jobs(this._options)));
|
|
46
|
+
}
|
|
47
|
+
get identity() {
|
|
48
|
+
var _a;
|
|
49
|
+
return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_7.Identity(this._options)));
|
|
41
50
|
}
|
|
42
51
|
get models() {
|
|
43
52
|
var _a;
|
|
44
|
-
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new
|
|
53
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_8.Models(this._options)));
|
|
45
54
|
}
|
|
46
55
|
get organization() {
|
|
47
56
|
var _a;
|
|
48
|
-
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new
|
|
57
|
+
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_9.Organization(this._options)));
|
|
49
58
|
}
|
|
50
59
|
get users() {
|
|
51
60
|
var _a;
|
|
52
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
61
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_10.Users(this._options)));
|
|
53
62
|
}
|
|
54
63
|
get permissions() {
|
|
55
64
|
var _a;
|
|
56
|
-
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new
|
|
57
|
-
}
|
|
58
|
-
get modelSync() {
|
|
59
|
-
var _a;
|
|
60
|
-
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_10.ModelSync(this._options)));
|
|
65
|
+
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_11.Permissions(this._options)));
|
|
61
66
|
}
|
|
62
67
|
get webhooks() {
|
|
63
68
|
var _a;
|
|
64
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
69
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_12.Webhooks(this._options)));
|
|
65
70
|
}
|
|
66
71
|
}
|
|
67
72
|
exports.PolytomicClient = PolytomicClient;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BadRequestError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class BadRequestError extends errors.PolytomicError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "BadRequestError",
|
|
35
|
+
statusCode: 400,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, BadRequestError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.BadRequestError = BadRequestError;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ForbiddenError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class ForbiddenError extends errors.PolytomicError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "ForbiddenError",
|
|
35
|
+
statusCode: 403,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.InternalServerError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class InternalServerError extends errors.PolytomicError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "InternalServerError",
|
|
35
|
+
statusCode: 500,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.InternalServerError = InternalServerError;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.NotFoundError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class NotFoundError extends errors.PolytomicError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "NotFoundError",
|
|
35
|
+
statusCode: 404,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors";
|
|
5
|
+
import * as Polytomic from "..";
|
|
6
|
+
export declare class UnprocessableEntityError extends errors.PolytomicError {
|
|
7
|
+
constructor(body: Polytomic.ApiError);
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UnprocessableEntityError = void 0;
|
|
30
|
+
const errors = __importStar(require("../../errors"));
|
|
31
|
+
class UnprocessableEntityError extends errors.PolytomicError {
|
|
32
|
+
constructor(body) {
|
|
33
|
+
super({
|
|
34
|
+
message: "UnprocessableEntityError",
|
|
35
|
+
statusCode: 422,
|
|
36
|
+
body: body,
|
|
37
|
+
});
|
|
38
|
+
Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -14,4 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BadRequestError"), exports);
|
|
17
18
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
|
+
__exportStar(require("./ForbiddenError"), exports);
|
|
20
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
21
|
+
__exportStar(require("./UnprocessableEntityError"), exports);
|
|
22
|
+
__exportStar(require("./InternalServerError"), exports);
|
|
@@ -9,8 +9,7 @@ import { Schemas } from "../resources/schemas/client/Client";
|
|
|
9
9
|
export declare namespace BulkSync {
|
|
10
10
|
interface Options {
|
|
11
11
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
12
|
-
token
|
|
13
|
-
xPolytomicVersion?: core.Supplier<"2023-04-25" | undefined>;
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
14
13
|
}
|
|
15
14
|
interface RequestOptions {
|
|
16
15
|
timeoutInSeconds?: number;
|
|
@@ -19,53 +18,33 @@ export declare namespace BulkSync {
|
|
|
19
18
|
}
|
|
20
19
|
export declare class BulkSync {
|
|
21
20
|
protected readonly _options: BulkSync.Options;
|
|
22
|
-
constructor(_options
|
|
23
|
-
/**
|
|
24
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* await polytomic.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
28
|
-
*/
|
|
29
|
-
getDestination(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncDestEnvelope>;
|
|
30
|
-
/**
|
|
31
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* await polytomic.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
35
|
-
* include_fields: true
|
|
36
|
-
* })
|
|
37
|
-
*/
|
|
38
|
-
getSource(connectionId: string, request?: Polytomic.BulkSyncGetSourceRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceEnvelope>;
|
|
39
|
-
/**
|
|
40
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* await polytomic.bulkSync.getSourceSchema("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
|
|
44
|
-
*/
|
|
45
|
-
getSourceSchema(connectionId: string, schemaId: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceSchemaEnvelope>;
|
|
46
|
-
/**
|
|
47
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* await polytomic.bulkSync.getSourceStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
51
|
-
*/
|
|
52
|
-
getSourceStatus(connectionId: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceStatusEnvelope>;
|
|
21
|
+
constructor(_options: BulkSync.Options);
|
|
53
22
|
/**
|
|
54
23
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
24
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
55
25
|
*
|
|
56
26
|
* @example
|
|
57
27
|
* await polytomic.bulkSync.list()
|
|
58
28
|
*/
|
|
59
29
|
list(requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
60
30
|
/**
|
|
31
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
61
32
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
33
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
34
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
62
35
|
*
|
|
63
36
|
* @example
|
|
64
37
|
* await polytomic.bulkSync.create({
|
|
65
38
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
66
|
-
*
|
|
39
|
+
* mode: "replicate",
|
|
40
|
+
* name: "My Bulk Sync",
|
|
67
41
|
* schedule: {
|
|
68
|
-
*
|
|
42
|
+
* day_of_month: "1",
|
|
43
|
+
* day_of_week: "monday",
|
|
44
|
+
* frequency: Polytomic.ScheduleFrequency.Manual,
|
|
45
|
+
* hour: "0",
|
|
46
|
+
* minute: "0",
|
|
47
|
+
* month: "1"
|
|
69
48
|
* },
|
|
70
49
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
71
50
|
* })
|
|
@@ -73,6 +52,7 @@ export declare class BulkSync {
|
|
|
73
52
|
create(request: Polytomic.CreateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
74
53
|
/**
|
|
75
54
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
55
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
76
56
|
*
|
|
77
57
|
* @example
|
|
78
58
|
* await polytomic.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -80,27 +60,28 @@ export declare class BulkSync {
|
|
|
80
60
|
* })
|
|
81
61
|
*/
|
|
82
62
|
get(id: string, request?: Polytomic.BulkSyncGetRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
83
|
-
/**
|
|
84
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* await polytomic.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
88
|
-
* refresh_schemas: true
|
|
89
|
-
* })
|
|
90
|
-
*/
|
|
91
|
-
remove(id: string, request?: Polytomic.BulkSyncRemoveRequest, requestOptions?: BulkSync.RequestOptions): Promise<void>;
|
|
92
63
|
/**
|
|
93
64
|
* > 📘 Updating schemas
|
|
94
65
|
* >
|
|
95
66
|
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://docs.polytomic.com/reference/apiv3updatebulksyncschemas) endpoint.
|
|
67
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
96
68
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
69
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
70
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
71
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
97
72
|
*
|
|
98
73
|
* @example
|
|
99
74
|
* await polytomic.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
100
75
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
101
|
-
*
|
|
76
|
+
* mode: "replicate",
|
|
77
|
+
* name: "My Bulk Sync",
|
|
102
78
|
* schedule: {
|
|
103
|
-
*
|
|
79
|
+
* day_of_month: "1",
|
|
80
|
+
* day_of_week: "monday",
|
|
81
|
+
* frequency: Polytomic.ScheduleFrequency.Manual,
|
|
82
|
+
* hour: "0",
|
|
83
|
+
* minute: "0",
|
|
84
|
+
* month: "1"
|
|
104
85
|
* },
|
|
105
86
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
106
87
|
* })
|
|
@@ -108,6 +89,21 @@ export declare class BulkSync {
|
|
|
108
89
|
update(id: string, request: Polytomic.UpdateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
109
90
|
/**
|
|
110
91
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
92
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
93
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
94
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* await polytomic.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
98
|
+
* refresh_schemas: true
|
|
99
|
+
* })
|
|
100
|
+
*/
|
|
101
|
+
remove(id: string, request?: Polytomic.BulkSyncRemoveRequest, requestOptions?: BulkSync.RequestOptions): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
104
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
105
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
106
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
111
107
|
*
|
|
112
108
|
* @example
|
|
113
109
|
* await polytomic.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -115,16 +111,51 @@ export declare class BulkSync {
|
|
|
115
111
|
* })
|
|
116
112
|
*/
|
|
117
113
|
activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
|
|
114
|
+
/**
|
|
115
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
116
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
120
|
+
* resync: false,
|
|
121
|
+
* test: false
|
|
122
|
+
* })
|
|
123
|
+
*/
|
|
124
|
+
start(id: string, request?: Polytomic.StartBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
118
125
|
/**
|
|
119
126
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
127
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
128
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
120
129
|
*
|
|
121
130
|
* @example
|
|
122
131
|
* await polytomic.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
123
132
|
*/
|
|
124
133
|
getStatus(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncStatusEnvelope>;
|
|
134
|
+
/**
|
|
135
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
136
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
137
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
138
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* await polytomic.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
142
|
+
* include_fields: true
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
getSource(id: string, request?: Polytomic.BulkSyncGetSourceRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceEnvelope>;
|
|
146
|
+
/**
|
|
147
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
148
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
149
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
150
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await polytomic.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
154
|
+
*/
|
|
155
|
+
getDestination(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncDestEnvelope>;
|
|
125
156
|
protected _executions: Executions | undefined;
|
|
126
157
|
get executions(): Executions;
|
|
127
158
|
protected _schemas: Schemas | undefined;
|
|
128
159
|
get schemas(): Schemas;
|
|
129
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
160
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
130
161
|
}
|