polytomic 25.9.7 → 25.9.8
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/BaseClient.js +2 -2
- package/api/resources/modelSync/client/Client.d.ts +2 -2
- package/api/resources/modelSync/client/Client.js +1 -1
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +13 -0
- package/api/resources/modelSync/client/requests/index.d.ts +1 -1
- package/api/resources/organization/client/Client.d.ts +1 -1
- package/api/resources/organization/client/Client.js +1 -1
- package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +2 -0
- package/api/types/ModelSyncSourceIdentity.d.ts +6 -0
- package/api/types/ModelSyncSourceIdentity.js +3 -0
- package/api/types/RecordLoggingSettingsResponse.d.ts +2 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/modelSync/client/requests/StartSyncRequest.d.ts +0 -9
- /package/api/resources/modelSync/client/requests/{StartSyncRequest.js → StartModelSyncRequest.js} +0 -0
package/BaseClient.js
CHANGED
|
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
|
|
|
44
44
|
const headers = (0, headers_1.mergeHeaders)({
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "polytomic",
|
|
47
|
-
"X-Fern-SDK-Version": "25.9.
|
|
48
|
-
"User-Agent": "polytomic/25.9.
|
|
47
|
+
"X-Fern-SDK-Version": "25.9.8",
|
|
48
|
+
"User-Agent": "polytomic/25.9.8",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
"X-Polytomic-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-09-18",
|
|
@@ -362,7 +362,7 @@ export declare class ModelSyncClient {
|
|
|
362
362
|
* > 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.
|
|
363
363
|
*
|
|
364
364
|
* @param {string} id
|
|
365
|
-
* @param {Polytomic.
|
|
365
|
+
* @param {Polytomic.StartModelSyncRequest} request
|
|
366
366
|
* @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
367
367
|
*
|
|
368
368
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -376,7 +376,7 @@ export declare class ModelSyncClient {
|
|
|
376
376
|
* @example
|
|
377
377
|
* await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
378
378
|
*/
|
|
379
|
-
start(id: string, request?: Polytomic.
|
|
379
|
+
start(id: string, request?: Polytomic.StartModelSyncRequest, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.StartSyncResponseEnvelope>;
|
|
380
380
|
private __start;
|
|
381
381
|
/**
|
|
382
382
|
* Returns the current status of a model sync.
|
|
@@ -891,7 +891,7 @@ class ModelSyncClient {
|
|
|
891
891
|
* > 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.
|
|
892
892
|
*
|
|
893
893
|
* @param {string} id
|
|
894
|
-
* @param {Polytomic.
|
|
894
|
+
* @param {Polytomic.StartModelSyncRequest} request
|
|
895
895
|
* @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
896
896
|
*
|
|
897
897
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Polytomic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface StartModelSyncRequest {
|
|
7
|
+
/** Values of the sync's identity source field naming the records to sync. A sync with more than one identity mapping requires 'source_identities' instead. */
|
|
8
|
+
identities?: string[];
|
|
9
|
+
resync?: boolean;
|
|
10
|
+
/** Records to sync, each identified by every source and value its entry lists. The sources of an entry are identity mapping sources of one model, and an entry for a sync whose identities strategy is 'and' lists all of them. Cannot be combined with 'identities'; at most 1000 entries. */
|
|
11
|
+
source_identities?: Polytomic.ModelSyncSourceIdentity[][];
|
|
12
|
+
test?: boolean;
|
|
13
|
+
}
|
|
@@ -2,5 +2,5 @@ export type { CreateModelSyncV5Request } from "./CreateModelSyncV5Request";
|
|
|
2
2
|
export type { ModelSyncGetSourceFieldsRequest } from "./ModelSyncGetSourceFieldsRequest";
|
|
3
3
|
export type { ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
|
|
4
4
|
export type { ModelSyncListRequest } from "./ModelSyncListRequest";
|
|
5
|
-
export type {
|
|
5
|
+
export type { StartModelSyncRequest } from "./StartModelSyncRequest";
|
|
6
6
|
export type { UpdateModelSyncV5Request } from "./UpdateModelSyncV5Request";
|
|
@@ -54,7 +54,7 @@ export declare class OrganizationClient {
|
|
|
54
54
|
getRecordLogging(requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<Polytomic.RecordLoggingSettingsEnvelope>;
|
|
55
55
|
private __getRecordLogging;
|
|
56
56
|
/**
|
|
57
|
-
* Replaces the organization's record logging settings. `deliveryConnectionId`
|
|
57
|
+
* Replaces the organization's record logging settings. `deliveryConnectionId` and `deliveryPrefix` are replaced, not merged: omitting either, or sending null, removes what was previously configured.
|
|
58
58
|
*
|
|
59
59
|
* @param {Polytomic.UpdateRecordLoggingSettingsRequest} request
|
|
60
60
|
* @param {OrganizationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -183,7 +183,7 @@ class OrganizationClient {
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
/**
|
|
186
|
-
* Replaces the organization's record logging settings. `deliveryConnectionId`
|
|
186
|
+
* Replaces the organization's record logging settings. `deliveryConnectionId` and `deliveryPrefix` are replaced, not merged: omitting either, or sending null, removes what was previously configured.
|
|
187
187
|
*
|
|
188
188
|
* @param {Polytomic.UpdateRecordLoggingSettingsRequest} request
|
|
189
189
|
* @param {OrganizationClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
export interface UpdateRecordLoggingSettingsRequest {
|
|
8
8
|
/** Blobstorage connection that receives record logs after each model sync execution. Omit or send null to deliver nowhere; this field is replaced, not merged. */
|
|
9
9
|
deliveryConnectionId?: string;
|
|
10
|
+
/** Path record logs are delivered under, ahead of the organization ID. Omit or send null for none; this field is replaced, not merged. */
|
|
11
|
+
deliveryPrefix?: string;
|
|
10
12
|
/** Whether record logging is enabled for the organization. */
|
|
11
13
|
enabled: boolean;
|
|
12
14
|
}
|
|
@@ -3,6 +3,8 @@ export interface RecordLoggingSettingsResponse {
|
|
|
3
3
|
deliveryConnectionId?: string | undefined;
|
|
4
4
|
/** Name of the destination connection, for display. Omitted when no destination is configured or the connection has been deleted. */
|
|
5
5
|
deliveryConnectionName?: string | undefined;
|
|
6
|
+
/** Path record logs are delivered under, ahead of the organization ID, if one is set. */
|
|
7
|
+
deliveryPrefix?: string | undefined;
|
|
6
8
|
/** True when record logging is enabled for the organization. */
|
|
7
9
|
enabled?: boolean | undefined;
|
|
8
10
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export * from "./ModelSample";
|
|
|
245
245
|
export * from "./ModelSampleResponseEnvelope";
|
|
246
246
|
export * from "./ModelSyncIdentities";
|
|
247
247
|
export * from "./ModelSyncProblem";
|
|
248
|
+
export * from "./ModelSyncSourceIdentity";
|
|
248
249
|
export * from "./ModelSyncV5Response";
|
|
249
250
|
export * from "./ModelSyncV5ResponseEnvelope";
|
|
250
251
|
export * from "./ModelSyncV5Target";
|
package/api/types/index.js
CHANGED
|
@@ -261,6 +261,7 @@ __exportStar(require("./ModelSample"), exports);
|
|
|
261
261
|
__exportStar(require("./ModelSampleResponseEnvelope"), exports);
|
|
262
262
|
__exportStar(require("./ModelSyncIdentities"), exports);
|
|
263
263
|
__exportStar(require("./ModelSyncProblem"), exports);
|
|
264
|
+
__exportStar(require("./ModelSyncSourceIdentity"), exports);
|
|
264
265
|
__exportStar(require("./ModelSyncV5Response"), exports);
|
|
265
266
|
__exportStar(require("./ModelSyncV5ResponseEnvelope"), exports);
|
|
266
267
|
__exportStar(require("./ModelSyncV5Target"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4399,7 +4399,7 @@ await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d");
|
|
|
4399
4399
|
<dl>
|
|
4400
4400
|
<dd>
|
|
4401
4401
|
|
|
4402
|
-
**request:** `Polytomic.
|
|
4402
|
+
**request:** `Polytomic.StartModelSyncRequest`
|
|
4403
4403
|
|
|
4404
4404
|
</dd>
|
|
4405
4405
|
</dl>
|
|
@@ -8689,7 +8689,7 @@ await client.organization.getRecordLogging();
|
|
|
8689
8689
|
<dl>
|
|
8690
8690
|
<dd>
|
|
8691
8691
|
|
|
8692
|
-
Replaces the organization's record logging settings. `deliveryConnectionId`
|
|
8692
|
+
Replaces the organization's record logging settings. `deliveryConnectionId` and `deliveryPrefix` are replaced, not merged: omitting either, or sending null, removes what was previously configured.
|
|
8693
8693
|
</dd>
|
|
8694
8694
|
</dl>
|
|
8695
8695
|
</dd>
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "25.9.
|
|
1
|
+
export declare const SDK_VERSION = "25.9.8";
|
package/version.js
CHANGED
/package/api/resources/modelSync/client/requests/{StartSyncRequest.js → StartModelSyncRequest.js}
RENAMED
|
File without changes
|