polytomic 25.9.6 → 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/bulkSync/client/Client.d.ts +4 -2
- package/api/resources/bulkSync/client/Client.js +4 -2
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +3 -0
- package/api/resources/harbors/client/Client.d.ts +424 -0
- package/api/resources/harbors/client/Client.js +946 -0
- package/api/resources/harbors/client/requests/CreateHarborSavedQueryDraftRequest.d.ts +24 -0
- package/api/resources/harbors/client/requests/ExecuteHarborSavedQueryRequest.d.ts +10 -0
- package/api/resources/harbors/client/requests/ExecuteHarborSavedQueryRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetSavedQueryRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetSavedQueryRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListSavedQueriesRequest.d.ts +15 -0
- package/api/resources/harbors/client/requests/HarborsListSavedQueriesRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListSavedQueryDraftsRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListSavedQueryDraftsRequest.js +3 -0
- package/api/resources/harbors/client/requests/SaveHarborSavedQueryDraftRequest.d.ts +24 -0
- package/api/resources/harbors/client/requests/SaveHarborSavedQueryDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/index.d.ts +6 -0
- 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/CreateModelSyncV5Request.d.ts +3 -0
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +13 -0
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.js +3 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncV5Request.d.ts +3 -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/DeletedHarborSavedQueryDraftEnvelope.d.ts +9 -0
- package/api/types/DeletedHarborSavedQueryDraftEnvelope.js +3 -0
- package/api/types/DeletedHarborSavedQueryEnvelope.d.ts +9 -0
- package/api/types/DeletedHarborSavedQueryEnvelope.js +3 -0
- package/api/types/ExecuteHarborSavedQueryEnvelope.d.ts +27 -0
- package/api/types/ExecuteHarborSavedQueryEnvelope.js +3 -0
- package/api/types/HarborResponse.d.ts +2 -0
- package/api/types/HarborSavedQueryDraftEnvelope.d.ts +4 -0
- package/api/types/HarborSavedQueryDraftEnvelope.js +3 -0
- package/api/types/HarborSavedQueryDraftListEnvelope.d.ts +5 -0
- package/api/types/HarborSavedQueryDraftListEnvelope.js +3 -0
- package/api/types/HarborSavedQueryDraftResponse.d.ts +33 -0
- package/api/types/HarborSavedQueryDraftResponse.js +3 -0
- package/api/types/HarborSavedQueryEnvelope.d.ts +4 -0
- package/api/types/HarborSavedQueryEnvelope.js +3 -0
- package/api/types/HarborSavedQueryListEnvelope.d.ts +5 -0
- package/api/types/HarborSavedQueryListEnvelope.js +3 -0
- package/api/types/HarborSavedQueryMetadataResponse.d.ts +20 -0
- package/api/types/HarborSavedQueryMetadataResponse.js +3 -0
- package/api/types/HarborSavedQueryParameter.d.ts +22 -0
- package/api/types/HarborSavedQueryParameter.js +16 -0
- package/api/types/HarborSavedQueryPreviewResponse.d.ts +8 -0
- package/api/types/HarborSavedQueryPreviewResponse.js +3 -0
- package/api/types/HarborSavedQueryResponse.d.ts +31 -0
- package/api/types/HarborSavedQueryResponse.js +3 -0
- package/api/types/HarborSavedQueryValidationEnvelope.d.ts +4 -0
- package/api/types/HarborSavedQueryValidationEnvelope.js +3 -0
- package/api/types/HarboractivityapiHarborActivityEvent.d.ts +1 -0
- package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +3 -0
- package/api/types/HarboractivityapiHarborActivityQuerySource.d.ts +7 -0
- package/api/types/HarboractivityapiHarborActivityQuerySource.js +3 -0
- package/api/types/HarboractivityapiHarborActivitySavedQuerySource.d.ts +7 -0
- package/api/types/HarboractivityapiHarborActivitySavedQuerySource.js +3 -0
- package/api/types/HarboractivityapiHarborActivityTarget.d.ts +2 -0
- package/api/types/ModelSyncIdentities.d.ts +18 -0
- package/api/types/ModelSyncIdentities.js +12 -0
- package/api/types/ModelSyncProblem.d.ts +10 -0
- package/api/types/ModelSyncProblem.js +3 -0
- package/api/types/ModelSyncSourceIdentity.d.ts +6 -0
- package/api/types/ModelSyncSourceIdentity.js +3 -0
- package/api/types/ModelSyncV5Response.d.ts +5 -0
- package/api/types/RecordLoggingSettingsResponse.d.ts +2 -0
- package/api/types/SyncDestinationProperties.d.ts +2 -0
- package/api/types/index.d.ts +18 -0
- package/api/types/index.js +18 -0
- package/package.json +1 -1
- package/reference.md +958 -4
- 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 → harbors/client/requests/CreateHarborSavedQueryDraftRequest.js} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Polytomic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* name: "Monthly revenue",
|
|
6
|
+
* sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface CreateHarborSavedQueryDraftRequest {
|
|
10
|
+
/** Optional note copied to the immutable published version. */
|
|
11
|
+
change_note?: string;
|
|
12
|
+
/** Business definition and usage notes. Maximum 2,000 characters. */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Human-readable saved-query name. Maximum 200 characters. */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Human-readable owner label. Maximum 200 characters. */
|
|
17
|
+
owner?: string;
|
|
18
|
+
/** Typed scalar parameter declarations. */
|
|
19
|
+
parameters?: Polytomic.HarborSavedQueryParameter[];
|
|
20
|
+
/** DuckDB SQL template using {{name}} references for bound parameters. */
|
|
21
|
+
sql_template: string;
|
|
22
|
+
/** Author-supplied JSON scalar values used only to validate this draft. */
|
|
23
|
+
validation_values?: Record<string, unknown>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ExecuteHarborSavedQueryRequest {
|
|
6
|
+
"X-Polytomic-Harbor-Session"?: string;
|
|
7
|
+
"X-Polytomic-Activity-Request-ID"?: string;
|
|
8
|
+
/** Named JSON scalar overrides for declared parameters. Omission uses published default_value, or SQL NULL for optional parameters without a default. Required parameters reject explicit null even with a default; without a default they also reject omission. Unknown names and invalid types are rejected. */
|
|
9
|
+
parameters?: Record<string, unknown>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* limit: 1,
|
|
5
|
+
* page_token: "page_token"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface HarborsListSavedQueriesRequest {
|
|
9
|
+
/** Maximum number of saved queries to return. */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Opaque pagination cursor returned by the previous request. */
|
|
12
|
+
page_token?: string;
|
|
13
|
+
"X-Polytomic-Harbor-Session"?: string;
|
|
14
|
+
"X-Polytomic-Activity-Request-ID"?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* limit: 1,
|
|
5
|
+
* page_token: "page_token"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface HarborsListSavedQueryDraftsRequest {
|
|
9
|
+
/** Maximum number of saved-query drafts to return. */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Opaque pagination cursor returned by the previous request. */
|
|
12
|
+
page_token?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Polytomic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* name: "Monthly revenue",
|
|
6
|
+
* sql_template: "SELECT account_id, sum(amount) AS revenue FROM orders WHERE created_at >= {{start_date}} GROUP BY account_id"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface SaveHarborSavedQueryDraftRequest {
|
|
10
|
+
/** Optional note copied to the immutable published version. */
|
|
11
|
+
change_note?: string;
|
|
12
|
+
/** Business definition and usage notes. Maximum 2,000 characters. */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Human-readable saved-query name. Maximum 200 characters. */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Human-readable owner label. Maximum 200 characters. */
|
|
17
|
+
owner?: string;
|
|
18
|
+
/** Typed scalar parameter declarations. */
|
|
19
|
+
parameters?: Polytomic.HarborSavedQueryParameter[];
|
|
20
|
+
/** DuckDB SQL template using {{name}} references for bound parameters. */
|
|
21
|
+
sql_template: string;
|
|
22
|
+
/** Author-supplied JSON scalar values used only to validate this draft. */
|
|
23
|
+
validation_values?: Record<string, unknown>;
|
|
24
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type { CreateHarborContextDraftRequest } from "./CreateHarborContextDraftRequest";
|
|
2
2
|
export type { CreateHarborContextRequest } from "./CreateHarborContextRequest";
|
|
3
3
|
export type { CreateHarborRequest } from "./CreateHarborRequest";
|
|
4
|
+
export type { CreateHarborSavedQueryDraftRequest } from "./CreateHarborSavedQueryDraftRequest";
|
|
5
|
+
export type { ExecuteHarborSavedQueryRequest } from "./ExecuteHarborSavedQueryRequest";
|
|
4
6
|
export type { HarborsCloseSessionRequest } from "./HarborsCloseSessionRequest";
|
|
5
7
|
export type { HarborsDeleteContextDraftRequest } from "./HarborsDeleteContextDraftRequest";
|
|
6
8
|
export type { HarborsDeleteContextRequest } from "./HarborsDeleteContextRequest";
|
|
@@ -8,6 +10,7 @@ export type { HarborsGetAuthorizedSchemaRequest } from "./HarborsGetAuthorizedSc
|
|
|
8
10
|
export type { HarborsGetContextDraftRequest } from "./HarborsGetContextDraftRequest";
|
|
9
11
|
export type { HarborsGetContextRequest } from "./HarborsGetContextRequest";
|
|
10
12
|
export type { HarborsGetContextVersionRequest } from "./HarborsGetContextVersionRequest";
|
|
13
|
+
export type { HarborsGetSavedQueryRequest } from "./HarborsGetSavedQueryRequest";
|
|
11
14
|
export type { HarborsListAuthorizedConnectionsRequest } from "./HarborsListAuthorizedConnectionsRequest";
|
|
12
15
|
export type { HarborsListAuthorizedSchemasRequest } from "./HarborsListAuthorizedSchemasRequest";
|
|
13
16
|
export type { HarborsListContextDraftsRequest } from "./HarborsListContextDraftsRequest";
|
|
@@ -15,6 +18,8 @@ export type { HarborsListContextsRequest } from "./HarborsListContextsRequest";
|
|
|
15
18
|
export type { HarborsListContextVersionsRequest } from "./HarborsListContextVersionsRequest";
|
|
16
19
|
export type { HarborsListKeysRequest } from "./HarborsListKeysRequest";
|
|
17
20
|
export type { HarborsListRequest } from "./HarborsListRequest";
|
|
21
|
+
export type { HarborsListSavedQueriesRequest } from "./HarborsListSavedQueriesRequest";
|
|
22
|
+
export type { HarborsListSavedQueryDraftsRequest } from "./HarborsListSavedQueryDraftsRequest";
|
|
18
23
|
export type { HarborsListUsersRequest } from "./HarborsListUsersRequest";
|
|
19
24
|
export type { HarborsPromoteContextDraftRequest } from "./HarborsPromoteContextDraftRequest";
|
|
20
25
|
export type { InviteHarborUserRequest } from "./InviteHarborUserRequest";
|
|
@@ -22,4 +27,5 @@ export type { RegisterHarborSessionRequest } from "./RegisterHarborSessionReques
|
|
|
22
27
|
export type { ResolveHarborSourceMappingsRequest } from "./ResolveHarborSourceMappingsRequest";
|
|
23
28
|
export type { SaveHarborContextDraftRequest } from "./SaveHarborContextDraftRequest";
|
|
24
29
|
export type { SaveHarborContextRequest } from "./SaveHarborContextRequest";
|
|
30
|
+
export type { SaveHarborSavedQueryDraftRequest } from "./SaveHarborSavedQueryDraftRequest";
|
|
25
31
|
export type { UpdateHarborRequest } from "./UpdateHarborRequest";
|
|
@@ -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}
|
|
@@ -24,6 +24,9 @@ export interface CreateModelSyncV5Request {
|
|
|
24
24
|
filter_logic?: string;
|
|
25
25
|
/** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
|
|
26
26
|
filters?: Polytomic.Filter[];
|
|
27
|
+
/** Identity mappings for the sync and the strategy combining them, replacing any the sync has. When this is omitted, 'identity' is used instead; updating a sync with more than one mapping requires this property. */
|
|
28
|
+
identities?: Polytomic.ModelSyncIdentities;
|
|
29
|
+
/** Deprecated. Use 'identities'. Reports and accepts the first identity mapping only. */
|
|
27
30
|
identity?: Polytomic.Identity;
|
|
28
31
|
mode: Polytomic.ModelsyncSyncTargetMode;
|
|
29
32
|
model_filters?: Polytomic.ModelFilters;
|
|
@@ -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
|
+
}
|
|
@@ -24,6 +24,9 @@ export interface UpdateModelSyncV5Request {
|
|
|
24
24
|
filter_logic?: string;
|
|
25
25
|
/** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
|
|
26
26
|
filters?: Polytomic.Filter[];
|
|
27
|
+
/** Identity mappings for the sync and the strategy combining them, replacing any the sync has. When this is omitted, 'identity' is used instead; updating a sync with more than one mapping requires this property. */
|
|
28
|
+
identities?: Polytomic.ModelSyncIdentities;
|
|
29
|
+
/** Deprecated. Use 'identities'. Reports and accepts the first identity mapping only. */
|
|
27
30
|
identity?: Polytomic.Identity;
|
|
28
31
|
mode: Polytomic.ModelsyncSyncTargetMode;
|
|
29
32
|
model_filters?: Polytomic.ModelFilters;
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DeletedHarborSavedQueryDraftEnvelope {
|
|
2
|
+
data?: DeletedHarborSavedQueryDraftEnvelope.Data | undefined;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace DeletedHarborSavedQueryDraftEnvelope {
|
|
5
|
+
interface Data {
|
|
6
|
+
/** Identifier of the discarded draft. */
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DeletedHarborSavedQueryEnvelope {
|
|
2
|
+
data?: DeletedHarborSavedQueryEnvelope.Data | undefined;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace DeletedHarborSavedQueryEnvelope {
|
|
5
|
+
interface Data {
|
|
6
|
+
/** Stable identifier of the archived saved query. */
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as Polytomic from "../index";
|
|
2
|
+
export interface ExecuteHarborSavedQueryEnvelope {
|
|
3
|
+
data?: ExecuteHarborSavedQueryEnvelope.Data | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace ExecuteHarborSavedQueryEnvelope {
|
|
6
|
+
interface Data {
|
|
7
|
+
/** The number of rows returned by the query. This will not be returned until the query completes. */
|
|
8
|
+
count?: number | undefined;
|
|
9
|
+
/** Error message if the query failed. */
|
|
10
|
+
error?: string | undefined;
|
|
11
|
+
/** The time at which the query will expire and be deleted. This will not be returned until the query completes. */
|
|
12
|
+
expires?: string | undefined;
|
|
13
|
+
/** The names of the fields returned by the query. This will not be returned until the query completes. */
|
|
14
|
+
fields?: string[] | undefined;
|
|
15
|
+
/** The ID of the query task. Poll GET /api/queries/{id} until the task reaches the terminal status done, failed, or unknown. */
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
/** The query results, returned as an array of objects. */
|
|
18
|
+
results?: Record<string, unknown>[] | undefined;
|
|
19
|
+
/** Immutable published revision selected while processing this request, before execution acceptance. */
|
|
20
|
+
revision_id?: string | undefined;
|
|
21
|
+
/** Stable identifier of the executed saved query. */
|
|
22
|
+
saved_query_id?: string | undefined;
|
|
23
|
+
status?: Polytomic.QueryStatus | undefined;
|
|
24
|
+
/** Published version of the selected immutable revision. */
|
|
25
|
+
version?: number | undefined;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -15,6 +15,8 @@ export interface HarborResponse {
|
|
|
15
15
|
name?: string | undefined;
|
|
16
16
|
/** Organization that owns the Harbor. */
|
|
17
17
|
organization_id?: string | undefined;
|
|
18
|
+
/** Storage lifecycle status. Wait for ready before using the Harbor; failed provisioning is retried automatically. */
|
|
19
|
+
status?: string | undefined;
|
|
18
20
|
/** When the Harbor was last updated. */
|
|
19
21
|
updated_at?: string | undefined;
|
|
20
22
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as Polytomic from "../index";
|
|
2
|
+
export interface HarborSavedQueryDraftResponse {
|
|
3
|
+
/** Optional draft change note. */
|
|
4
|
+
change_note?: string | undefined;
|
|
5
|
+
/** When the draft was created. */
|
|
6
|
+
created_at?: string | undefined;
|
|
7
|
+
/** Actor that created the draft. Null for the system actor. */
|
|
8
|
+
created_by?: string | undefined;
|
|
9
|
+
/** Type of actor that created the draft. */
|
|
10
|
+
created_by_type?: string | undefined;
|
|
11
|
+
/** Draft business definition. */
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
/** Unique identifier of this mutable draft candidate. */
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
/** Draft name. */
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
/** Draft owner label. */
|
|
18
|
+
owner?: string | undefined;
|
|
19
|
+
/** Draft typed parameter declarations. */
|
|
20
|
+
parameters?: Polytomic.HarborSavedQueryParameter[] | undefined;
|
|
21
|
+
/** Stable saved-query identifier. */
|
|
22
|
+
saved_query_id?: string | undefined;
|
|
23
|
+
/** Draft SQL template. */
|
|
24
|
+
sql_template?: string | undefined;
|
|
25
|
+
/** When the draft was last replaced. */
|
|
26
|
+
updated_at?: string | undefined;
|
|
27
|
+
/** Actor that last replaced the draft. Null for the system actor. */
|
|
28
|
+
updated_by?: string | undefined;
|
|
29
|
+
/** Type of actor that last replaced the draft. */
|
|
30
|
+
updated_by_type?: string | undefined;
|
|
31
|
+
/** Author-supplied validation inputs. */
|
|
32
|
+
validation_values?: Record<string, unknown> | undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface HarborSavedQueryMetadataResponse {
|
|
2
|
+
/** Business definition and usage notes. */
|
|
3
|
+
description?: string | undefined;
|
|
4
|
+
/** Expected ordered result-column names. */
|
|
5
|
+
expected_columns?: string[] | undefined;
|
|
6
|
+
/** Stable saved-query identifier. */
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
/** Human-readable saved-query name. */
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
/** Human-readable owner label. */
|
|
11
|
+
owner?: string | undefined;
|
|
12
|
+
/** When this version was published. */
|
|
13
|
+
published_at?: string | undefined;
|
|
14
|
+
/** Immutable identifier of this exact published definition. */
|
|
15
|
+
revision_id?: string | undefined;
|
|
16
|
+
/** When this version's draft was last updated before publication. */
|
|
17
|
+
updated_at?: string | undefined;
|
|
18
|
+
/** Current published version number. */
|
|
19
|
+
version?: number | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface HarborSavedQueryParameter {
|
|
2
|
+
/** JSON scalar used when the parameter is omitted, matching the declared type. Use default_value, not default. Optional parameters without a default bind SQL NULL. */
|
|
3
|
+
default_value?: unknown | undefined;
|
|
4
|
+
/** Template parameter name referenced as {{start_date}}. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** When true, rejects explicit null during validation and execution and allows omission only when default_value is present. */
|
|
7
|
+
required?: boolean | undefined;
|
|
8
|
+
/** Scalar parameter type. */
|
|
9
|
+
type: HarborSavedQueryParameter.Type;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace HarborSavedQueryParameter {
|
|
12
|
+
/** Scalar parameter type. */
|
|
13
|
+
const Type: {
|
|
14
|
+
readonly String: "string";
|
|
15
|
+
readonly Number: "number";
|
|
16
|
+
readonly Boolean: "boolean";
|
|
17
|
+
readonly Date: "date";
|
|
18
|
+
readonly Timestamp: "timestamp";
|
|
19
|
+
readonly Uuid: "uuid";
|
|
20
|
+
};
|
|
21
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.HarborSavedQueryParameter = void 0;
|
|
5
|
+
var HarborSavedQueryParameter;
|
|
6
|
+
(function (HarborSavedQueryParameter) {
|
|
7
|
+
/** Scalar parameter type. */
|
|
8
|
+
HarborSavedQueryParameter.Type = {
|
|
9
|
+
String: "string",
|
|
10
|
+
Number: "number",
|
|
11
|
+
Boolean: "boolean",
|
|
12
|
+
Date: "date",
|
|
13
|
+
Timestamp: "timestamp",
|
|
14
|
+
Uuid: "uuid",
|
|
15
|
+
};
|
|
16
|
+
})(HarborSavedQueryParameter || (exports.HarborSavedQueryParameter = HarborSavedQueryParameter = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface HarborSavedQueryPreviewResponse {
|
|
2
|
+
/** Ordered preview column names. */
|
|
3
|
+
columns?: string[] | undefined;
|
|
4
|
+
/** Ephemeral bounded preview rows. These rows are never persisted. */
|
|
5
|
+
rows?: Record<string, unknown>[] | undefined;
|
|
6
|
+
/** Whether validation stopped at the row or serialized-size bound. */
|
|
7
|
+
truncated?: boolean | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as Polytomic from "../index";
|
|
2
|
+
export interface HarborSavedQueryResponse {
|
|
3
|
+
/** Note supplied when this version was published. */
|
|
4
|
+
change_note?: string | undefined;
|
|
5
|
+
/** Business definition and usage notes. */
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
/** Expected ordered result-column names. */
|
|
8
|
+
expected_columns?: string[] | undefined;
|
|
9
|
+
/** Stable saved-query identifier. */
|
|
10
|
+
id?: string | undefined;
|
|
11
|
+
/** Human-readable saved-query name. */
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
/** Human-readable owner label. */
|
|
14
|
+
owner?: string | undefined;
|
|
15
|
+
/** Published typed scalar parameter declarations. */
|
|
16
|
+
parameters?: Polytomic.HarborSavedQueryParameter[] | undefined;
|
|
17
|
+
/** When this version was published. */
|
|
18
|
+
published_at?: string | undefined;
|
|
19
|
+
/** Actor that published this version. Null for the system actor. */
|
|
20
|
+
published_by?: string | undefined;
|
|
21
|
+
/** Type of actor that published this version. */
|
|
22
|
+
published_by_type?: string | undefined;
|
|
23
|
+
/** Immutable identifier of this exact published definition. */
|
|
24
|
+
revision_id?: string | undefined;
|
|
25
|
+
/** Published SQL template. */
|
|
26
|
+
sql_template?: string | undefined;
|
|
27
|
+
/** When this version's draft was last updated before publication. */
|
|
28
|
+
updated_at?: string | undefined;
|
|
29
|
+
/** Current published version number. */
|
|
30
|
+
version?: number | undefined;
|
|
31
|
+
}
|
|
@@ -18,6 +18,7 @@ export interface HarboractivityapiHarborActivityEvent {
|
|
|
18
18
|
outcome?: string | undefined;
|
|
19
19
|
profile?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
|
|
20
20
|
provenance?: string | undefined;
|
|
21
|
+
query_source?: Polytomic.HarboractivityapiHarborActivityQuerySource | undefined;
|
|
21
22
|
recorded_at?: string | undefined;
|
|
22
23
|
session_id?: string | undefined;
|
|
23
24
|
targets?: Polytomic.HarboractivityapiHarborActivityTarget[] | undefined;
|
|
@@ -24,6 +24,9 @@ export interface HarboractivityapiHarborActivityMetadata {
|
|
|
24
24
|
reason?: string | undefined;
|
|
25
25
|
record_id?: string | undefined;
|
|
26
26
|
row_count?: number | undefined;
|
|
27
|
+
saved_query_id?: string | undefined;
|
|
28
|
+
saved_query_revision_id?: string | undefined;
|
|
29
|
+
saved_query_version?: number | undefined;
|
|
27
30
|
schema_id?: string | undefined;
|
|
28
31
|
statement_category?: string | undefined;
|
|
29
32
|
supported?: boolean | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Polytomic from "../index";
|
|
2
|
+
export interface HarboractivityapiHarborActivityQuerySource {
|
|
3
|
+
kind?: string | undefined;
|
|
4
|
+
saved_query?: Polytomic.HarboractivityapiHarborActivitySavedQuerySource | undefined;
|
|
5
|
+
submission_event_id?: string | undefined;
|
|
6
|
+
submitted_at?: string | undefined;
|
|
7
|
+
}
|