polytomic 0.1.2 → 1.0.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 +62 -46
- package/api/resources/bulkSync/client/Client.js +174 -184
- package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -1
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.d.ts +1 -4
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- 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 +20 -9
- package/api/resources/bulkSync/resources/schemas/client/Client.js +90 -24
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +11 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -0
- package/api/resources/connections/client/Client.d.ts +40 -49
- package/api/resources/connections/client/Client.js +113 -298
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +18 -0
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +2 -4
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- 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 +87 -53
- package/api/resources/modelSync/client/Client.js +405 -100
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
- 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/StartModelSyncRequest.d.ts +1 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- 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 -13
- package/api/resources/models/client/Client.js +67 -47
- package/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
- package/api/resources/organization/client/Client.d.ts +23 -26
- package/api/resources/organization/client/Client.js +53 -53
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- 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 -19
- package/api/resources/permissions/resources/policies/client/Client.js +66 -46
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- 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 +27 -19
- package/api/resources/users/client/Client.js +63 -48
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/api/resources/webhooks/client/Client.d.ts +22 -15
- package/api/resources/webhooks/client/Client.js +56 -46
- 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 +62 -46
- package/dist/api/resources/bulkSync/client/Client.js +174 -184
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +0 -1
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/{resources/executions/client → client}/requests/StartBulkSyncRequest.d.ts +1 -4
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.js +5 -0
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- 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 +20 -9
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +90 -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/UpdateBulkSchema.d.ts +1 -4
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +1 -0
- package/dist/api/resources/connections/client/Client.d.ts +40 -49
- package/dist/api/resources/connections/client/Client.js +113 -298
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +18 -0
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +2 -4
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- 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 +87 -53
- package/dist/api/resources/modelSync/client/Client.js +405 -100
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
- 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/StartModelSyncRequest.d.ts +1 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- 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 -13
- package/dist/api/resources/models/client/Client.js +67 -47
- package/dist/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
- package/dist/api/resources/organization/client/Client.d.ts +23 -26
- package/dist/api/resources/organization/client/Client.js +53 -53
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- 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 -19
- package/dist/api/resources/permissions/resources/policies/client/Client.js +66 -46
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- 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 +27 -19
- package/dist/api/resources/users/client/Client.js +63 -48
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/webhooks/client/Client.d.ts +22 -15
- package/dist/api/resources/webhooks/client/Client.js +56 -46
- 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 +2 -2
- 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.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/requests → identity/client}/index.js +0 -0
|
@@ -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/dist/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,51 +18,25 @@ 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
|
-
* name: "
|
|
39
|
+
* name: "My Bulk Sync",
|
|
67
40
|
* schedule: {
|
|
68
41
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
69
42
|
* },
|
|
@@ -73,6 +46,7 @@ export declare class BulkSync {
|
|
|
73
46
|
create(request: Polytomic.CreateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
74
47
|
/**
|
|
75
48
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
49
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
76
50
|
*
|
|
77
51
|
* @example
|
|
78
52
|
* await polytomic.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -80,25 +54,20 @@ export declare class BulkSync {
|
|
|
80
54
|
* })
|
|
81
55
|
*/
|
|
82
56
|
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
57
|
/**
|
|
93
58
|
* > 📘 Updating schemas
|
|
94
59
|
* >
|
|
95
|
-
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://
|
|
60
|
+
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
|
|
61
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
96
62
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
63
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
64
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
65
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
97
66
|
*
|
|
98
67
|
* @example
|
|
99
68
|
* await polytomic.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
100
69
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
101
|
-
* name: "
|
|
70
|
+
* name: "My Bulk Sync",
|
|
102
71
|
* schedule: {
|
|
103
72
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
104
73
|
* },
|
|
@@ -108,6 +77,21 @@ export declare class BulkSync {
|
|
|
108
77
|
update(id: string, request: Polytomic.UpdateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
109
78
|
/**
|
|
110
79
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
80
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
81
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
82
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await polytomic.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
86
|
+
* refresh_schemas: true
|
|
87
|
+
* })
|
|
88
|
+
*/
|
|
89
|
+
remove(id: string, request?: Polytomic.BulkSyncRemoveRequest, requestOptions?: BulkSync.RequestOptions): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
92
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
93
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
94
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
111
95
|
*
|
|
112
96
|
* @example
|
|
113
97
|
* await polytomic.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -115,16 +99,48 @@ export declare class BulkSync {
|
|
|
115
99
|
* })
|
|
116
100
|
*/
|
|
117
101
|
activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
|
|
102
|
+
/**
|
|
103
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
104
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {})
|
|
108
|
+
*/
|
|
109
|
+
start(id: string, request?: Polytomic.StartBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
118
110
|
/**
|
|
119
111
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
112
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
113
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
120
114
|
*
|
|
121
115
|
* @example
|
|
122
116
|
* await polytomic.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
123
117
|
*/
|
|
124
118
|
getStatus(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncStatusEnvelope>;
|
|
119
|
+
/**
|
|
120
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
121
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
122
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
123
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* await polytomic.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
127
|
+
* include_fields: true
|
|
128
|
+
* })
|
|
129
|
+
*/
|
|
130
|
+
getSource(id: string, request?: Polytomic.BulkSyncGetSourceRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceEnvelope>;
|
|
131
|
+
/**
|
|
132
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
133
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
134
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
135
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* await polytomic.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
139
|
+
*/
|
|
140
|
+
getDestination(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncDestEnvelope>;
|
|
125
141
|
protected _executions: Executions | undefined;
|
|
126
142
|
get executions(): Executions;
|
|
127
143
|
protected _schemas: Schemas | undefined;
|
|
128
144
|
get schemas(): Schemas;
|
|
129
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
145
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
130
146
|
}
|