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
|
@@ -8,8 +8,7 @@ import { Executions } from "../resources/executions/client/Client";
|
|
|
8
8
|
export declare namespace ModelSync {
|
|
9
9
|
interface Options {
|
|
10
10
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
11
|
-
token
|
|
12
|
-
xPolytomicVersion?: core.Supplier<"2023-04-25" | undefined>;
|
|
11
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
12
|
}
|
|
14
13
|
interface RequestOptions {
|
|
15
14
|
timeoutInSeconds?: number;
|
|
@@ -18,42 +17,74 @@ export declare namespace ModelSync {
|
|
|
18
17
|
}
|
|
19
18
|
export declare class ModelSync {
|
|
20
19
|
protected readonly _options: ModelSync.Options;
|
|
21
|
-
constructor(_options
|
|
20
|
+
constructor(_options: ModelSync.Options);
|
|
22
21
|
/**
|
|
22
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
23
23
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
24
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
25
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
26
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await polytomic.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {})
|
|
30
|
+
*/
|
|
31
|
+
getSource(id: string, request?: Polytomic.ModelSyncGetSourceRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.GetModelSyncSourceMetaEnvelope>;
|
|
32
|
+
/**
|
|
33
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
34
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
35
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
36
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
37
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await polytomic.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
41
|
+
*/
|
|
42
|
+
getSourceFields(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelFieldResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
45
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
46
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
47
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
48
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await polytomic.modelSync.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d", {})
|
|
52
|
+
*/
|
|
53
|
+
getTarget(id: string, request?: Polytomic.ModelSyncGetTargetRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.GetConnectionMetaEnvelope>;
|
|
54
|
+
/**
|
|
55
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
56
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
57
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
58
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await polytomic.modelSync.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
62
|
+
* target: "database.table",
|
|
63
|
+
* refresh: false
|
|
64
|
+
* })
|
|
65
|
+
*/
|
|
66
|
+
getTargetFields(id: string, request: Polytomic.ModelSyncGetTargetFieldsRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
|
|
67
|
+
/**
|
|
68
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
69
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
70
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
24
71
|
*
|
|
25
72
|
* @example
|
|
26
73
|
* await polytomic.modelSync.list()
|
|
27
74
|
*/
|
|
28
75
|
list(requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ListModelSyncResponseEnvelope>;
|
|
29
76
|
/**
|
|
77
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
30
78
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
79
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
80
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
81
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
31
82
|
*
|
|
32
83
|
* @example
|
|
33
84
|
* await polytomic.modelSync.create({
|
|
34
|
-
* fields: [{
|
|
35
|
-
* source: {
|
|
36
|
-
* field: "id",
|
|
37
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
38
|
-
* },
|
|
39
|
-
* target: "name"
|
|
40
|
-
* }],
|
|
41
|
-
* filter_logic: "A and B or C",
|
|
42
|
-
* identity: {
|
|
43
|
-
* function: "Equality",
|
|
44
|
-
* source: {
|
|
45
|
-
* field: "id",
|
|
46
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
47
|
-
* },
|
|
48
|
-
* target: "name"
|
|
49
|
-
* },
|
|
50
85
|
* mode: "create",
|
|
51
86
|
* name: "Users Sync",
|
|
52
|
-
* schedule: {
|
|
53
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
54
|
-
* frequency: "daily"
|
|
55
|
-
* },
|
|
56
|
-
* sync_all_records: false,
|
|
87
|
+
* schedule: {},
|
|
57
88
|
* target: {
|
|
58
89
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
59
90
|
* object: "Users"
|
|
@@ -63,6 +94,7 @@ export declare class ModelSync {
|
|
|
63
94
|
create(request: Polytomic.CreateModelSyncRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelSyncResponseEnvelope>;
|
|
64
95
|
/**
|
|
65
96
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
97
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
66
98
|
*
|
|
67
99
|
* @example
|
|
68
100
|
* await polytomic.modelSync.getScheduleOptions()
|
|
@@ -70,46 +102,26 @@ export declare class ModelSync {
|
|
|
70
102
|
getScheduleOptions(requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ScheduleOptionResponseEnvelope>;
|
|
71
103
|
/**
|
|
72
104
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
105
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
106
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
73
107
|
*
|
|
74
108
|
* @example
|
|
75
109
|
* await polytomic.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
76
110
|
*/
|
|
77
111
|
get(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelSyncResponseEnvelope>;
|
|
78
112
|
/**
|
|
113
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
79
114
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
80
|
-
*
|
|
81
|
-
* @
|
|
82
|
-
*
|
|
83
|
-
|
|
84
|
-
remove(id: string, requestOptions?: ModelSync.RequestOptions): Promise<void>;
|
|
85
|
-
/**
|
|
86
|
-
* @throws {@link Polytomic.UnauthorizedError}
|
|
115
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
116
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
117
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
118
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
87
119
|
*
|
|
88
120
|
* @example
|
|
89
121
|
* await polytomic.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
90
|
-
* fields: [{
|
|
91
|
-
* source: {
|
|
92
|
-
* field: "id",
|
|
93
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
94
|
-
* },
|
|
95
|
-
* target: "name"
|
|
96
|
-
* }],
|
|
97
|
-
* filter_logic: "A and B or C",
|
|
98
|
-
* identity: {
|
|
99
|
-
* function: "Equality",
|
|
100
|
-
* source: {
|
|
101
|
-
* field: "id",
|
|
102
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
103
|
-
* },
|
|
104
|
-
* target: "name"
|
|
105
|
-
* },
|
|
106
122
|
* mode: "create",
|
|
107
123
|
* name: "Users Sync",
|
|
108
|
-
* schedule: {
|
|
109
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
110
|
-
* frequency: "daily"
|
|
111
|
-
* },
|
|
112
|
-
* sync_all_records: false,
|
|
124
|
+
* schedule: {},
|
|
113
125
|
* target: {
|
|
114
126
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
115
127
|
* object: "Users"
|
|
@@ -119,6 +131,19 @@ export declare class ModelSync {
|
|
|
119
131
|
update(id: string, request: Polytomic.UpdateModelSyncRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelSyncResponseEnvelope>;
|
|
120
132
|
/**
|
|
121
133
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
134
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
135
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
136
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await polytomic.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
140
|
+
*/
|
|
141
|
+
remove(id: string, requestOptions?: ModelSync.RequestOptions): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
144
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
145
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
146
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
122
147
|
*
|
|
123
148
|
* @example
|
|
124
149
|
* await polytomic.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -127,7 +152,14 @@ export declare class ModelSync {
|
|
|
127
152
|
*/
|
|
128
153
|
activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
|
|
129
154
|
/**
|
|
155
|
+
* > 🚧 Force full resync
|
|
156
|
+
* >
|
|
157
|
+
* > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
|
|
158
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
130
159
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
160
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
161
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
162
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
131
163
|
*
|
|
132
164
|
* @example
|
|
133
165
|
* await polytomic.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {})
|
|
@@ -135,6 +167,8 @@ export declare class ModelSync {
|
|
|
135
167
|
start(id: string, request?: Polytomic.StartModelSyncRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.StartModelSyncResponseEnvelope>;
|
|
136
168
|
/**
|
|
137
169
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
170
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
171
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
138
172
|
*
|
|
139
173
|
* @example
|
|
140
174
|
* await polytomic.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -142,5 +176,5 @@ export declare class ModelSync {
|
|
|
142
176
|
getStatus(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.SyncStatusEnvelope>;
|
|
143
177
|
protected _executions: Executions | undefined;
|
|
144
178
|
get executions(): Executions;
|
|
145
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
179
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
146
180
|
}
|