@keboola/api-client 3.0.1 → 4.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/dist/{chunk-T66CY2YX.js → chunk-7NX56CKZ.js} +34 -2
- package/dist/chunk-7NX56CKZ.js.map +1 -0
- package/dist/{chunk-ROBQ2CV7.cjs → chunk-HCH4WXK2.cjs} +34 -2
- package/dist/chunk-HCH4WXK2.cjs.map +1 -0
- package/dist/{chunk-SDA2UO4X.cjs → chunk-WMJUK4P4.cjs} +3 -2
- package/dist/chunk-WMJUK4P4.cjs.map +1 -0
- package/dist/{chunk-M4PFR3OS.js → chunk-X73I4PLK.js} +3 -2
- package/dist/chunk-X73I4PLK.js.map +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +3 -3
- package/dist/sdk/storage/index.d.cts +2 -2
- package/dist/sdk/storage/index.d.ts +2 -2
- package/dist/storage/index.cjs +3 -3
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/types.d.cts +30 -1
- package/dist/storage/types.d.ts +30 -1
- package/dist/{storageClient-C5R3H96R.d.cts → storageClient-DTTDHnLM.d.cts} +3 -1
- package/dist/{storageClient-DBiS4voo.d.ts → storageClient-xm0yUrNc.d.ts} +3 -1
- package/dist/{storageSdk-B7Iq38Vh.d.cts → storageSdk-CxNyfe5Z.d.cts} +1 -1
- package/dist/{storageSdk-BnIemr2s.d.ts → storageSdk-bwKHEMB4.d.ts} +1 -1
- package/dist/syncActions/index.cjs +2 -2
- package/dist/syncActions/index.d.cts +1 -0
- package/dist/syncActions/index.d.ts +1 -0
- package/dist/syncActions/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-M4PFR3OS.js.map +0 -1
- package/dist/chunk-ROBQ2CV7.cjs.map +0 -1
- package/dist/chunk-SDA2UO4X.cjs.map +0 -1
- package/dist/chunk-T66CY2YX.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -14,9 +14,9 @@ var chunk5DVEQBCD_cjs = require('./chunk-5DVEQBCD.cjs');
|
|
|
14
14
|
var chunkECQZAWH3_cjs = require('./chunk-ECQZAWH3.cjs');
|
|
15
15
|
var chunkBA2JMZP6_cjs = require('./chunk-BA2JMZP6.cjs');
|
|
16
16
|
require('./chunk-XPDEQND7.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkHCH4WXK2_cjs = require('./chunk-HCH4WXK2.cjs');
|
|
18
18
|
var chunkCVV4HROS_cjs = require('./chunk-CVV4HROS.cjs');
|
|
19
|
-
var
|
|
19
|
+
var chunkWMJUK4P4_cjs = require('./chunk-WMJUK4P4.cjs');
|
|
20
20
|
var chunkIL2PAEG3_cjs = require('./chunk-IL2PAEG3.cjs');
|
|
21
21
|
var chunkAYXQJONA_cjs = require('./chunk-AYXQJONA.cjs');
|
|
22
22
|
var chunk5YN6FED2_cjs = require('./chunk-5YN6FED2.cjs');
|
|
@@ -444,10 +444,10 @@ var createClients = async ({
|
|
|
444
444
|
clientServiceUrls,
|
|
445
445
|
middlewares
|
|
446
446
|
}) => {
|
|
447
|
-
const storageTokenMiddleware =
|
|
447
|
+
const storageTokenMiddleware = chunkHCH4WXK2_cjs.createStorageTokenMiddleware(token.storageApi);
|
|
448
448
|
const commonMiddlewares = [storageTokenMiddleware];
|
|
449
449
|
const middlewareFor = createMiddlewareFor(middlewares);
|
|
450
|
-
const storage =
|
|
450
|
+
const storage = chunkHCH4WXK2_cjs.createStorageClient({
|
|
451
451
|
baseUrl,
|
|
452
452
|
middlewares: middlewareFor("storage", commonMiddlewares)
|
|
453
453
|
});
|
|
@@ -500,7 +500,7 @@ var createClients = async ({
|
|
|
500
500
|
}).add({
|
|
501
501
|
serviceId: "sync-actions",
|
|
502
502
|
clientName: "syncActions",
|
|
503
|
-
clientFn: (serviceBaseUrl) =>
|
|
503
|
+
clientFn: (serviceBaseUrl) => chunkWMJUK4P4_cjs.createSyncActionsClient({
|
|
504
504
|
baseUrl: serviceBaseUrl,
|
|
505
505
|
middlewares: middlewareFor("syncActions", commonMiddlewares)
|
|
506
506
|
})
|
|
@@ -838,7 +838,7 @@ Object.defineProperty(exports, "isManagementClientAuthError", {
|
|
|
838
838
|
});
|
|
839
839
|
Object.defineProperty(exports, "series", {
|
|
840
840
|
enumerable: true,
|
|
841
|
-
get: function () { return
|
|
841
|
+
get: function () { return chunkHCH4WXK2_cjs.series; }
|
|
842
842
|
});
|
|
843
843
|
Object.defineProperty(exports, "concurrent", {
|
|
844
844
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -12,17 +12,17 @@ import { G as GetHistoryQuery$1, c as components$3, a as GetChatPath$1, C as Cha
|
|
|
12
12
|
import { G as GetQueueJobPath, c as components$2, S as SearchJobsQuery } from './types-CRSKcua9.cjs';
|
|
13
13
|
import { P as PostQueryPath, a as PostQueryBody, b as PostCancelQueryJobPath, G as GetQueryJobPath, c as components$1, d as GetQueryResultsPath, e as GetQueryResutsQuery, f as GetQueriesPath, g as GetQueriesHistoryQuery, h as GetExportResultsQuery, E as ExportResultsResponse } from './types-DJkU9gvB.cjs';
|
|
14
14
|
import { CreateCredentialsBody, WorkspaceData } from './telemetry/types.cjs';
|
|
15
|
-
import { EnrollMFAInput, GetDataAppPublicGitRepositoryInput, GetDataAppPasswordPrivateGitRepositoryInput, GetDataAppSSHKeyPrivateGitRepositoryInput, GetPublicGitRepositoryInput, GetGitPrivateRepositoryInput } from './syncActions/types.cjs';
|
|
15
|
+
import { PostActionsBody, EnrollMFAInput, GetDataAppPublicGitRepositoryInput, GetDataAppPasswordPrivateGitRepositoryInput, GetDataAppSSHKeyPrivateGitRepositoryInput, GetPublicGitRepositoryInput, GetGitPrivateRepositoryInput } from './syncActions/types.cjs';
|
|
16
16
|
import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from './types-DBVQGCI1.cjs';
|
|
17
17
|
import { EncryptQuery } from './encryption/types.cjs';
|
|
18
18
|
import { G as GetDataAppRunsPath, a as GetDataAppRunsQuery, b as GetDataAppRunPath, c as GetDataAppLogsDownloadPath, d as GetDataAppLogsTailPath, e as GetDataAppLogsTailQuery, L as LogEntry, f as GetAppsQuery, g as GetDataAppPath, C as CreateDataAppBody, P as PatchDataAppPath, h as PatchDataAppBody, D as DeleteDataAppPath, i as GetDataAppPasswordPath, R as ResetDataAppPasswordPath, j as GetSandboxPath } from './utils-DE09pDTi.cjs';
|
|
19
19
|
export { p as parseLogLines } from './utils-DE09pDTi.cjs';
|
|
20
20
|
import { CreateVariableBody, VariableWithHash, DeleteVariablePath, GetVariablesQuery, GetVariablesByBranchId } from './vault/types.cjs';
|
|
21
21
|
import { a as EncryptionCtx } from './types-Brx8PoEB.cjs';
|
|
22
|
-
import { ServiceId, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, Job, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType,
|
|
22
|
+
import { ServiceId, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, Job, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, UpdateConfigurationInput, ComponentConfig, ConfigurationPath, ConfigurationDiffPath, ConfigurationDiff, ConfigurationRowDiffPath, ConfigurationRowDiff, RebaseConfigurationInput, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.cjs';
|
|
23
23
|
import { M as MetaObject } from './types-C-bd4ArM.cjs';
|
|
24
|
-
import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './storageClient-
|
|
25
|
-
export { a as concurrent } from './storageClient-
|
|
24
|
+
import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './storageClient-DTTDHnLM.cjs';
|
|
25
|
+
export { a as concurrent } from './storageClient-DTTDHnLM.cjs';
|
|
26
26
|
import { K as KeboolaObjectId } from './keboolaUID-D1DGSbge.cjs';
|
|
27
27
|
export { k as keboolaUID } from './keboolaUID-D1DGSbge.cjs';
|
|
28
28
|
import { TagWithBindings, TagData, CreateMetaObjectMetaDataInput, UpdateMetaObjectMetaDataInput } from './sdk/tag/types.cjs';
|
|
@@ -30,7 +30,7 @@ import { B as Backend, S as StorageToken } from './types-DYMMsuU0.cjs';
|
|
|
30
30
|
export { c as createGenericFetchClient } from './createGenericFetchClient-DuW7iSRy.cjs';
|
|
31
31
|
export { M as ManagementClientAuthError, i as isManagementClientAuthError } from './authMiddleware-CeIxAJQ5.cjs';
|
|
32
32
|
import { ManagementToken } from './verify/types.cjs';
|
|
33
|
-
export { c as createStorageSdk } from './storageSdk-
|
|
33
|
+
export { c as createStorageSdk } from './storageSdk-CxNyfe5Z.cjs';
|
|
34
34
|
import 'qs';
|
|
35
35
|
import './encryption/index.cjs';
|
|
36
36
|
import './vault/index.cjs';
|
|
@@ -4220,6 +4220,7 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
|
|
|
4220
4220
|
}>;
|
|
4221
4221
|
};
|
|
4222
4222
|
syncActions: {
|
|
4223
|
+
sendSyncAction: (body: PostActionsBody, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
4223
4224
|
enrollMFA: ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
4224
4225
|
gitRepository: {
|
|
4225
4226
|
getDataAppPublicGitRepository: ({ repositoryUrl, ...other }: GetDataAppPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
|
|
@@ -5253,9 +5254,11 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
|
|
|
5253
5254
|
getComponents: ({ branchId, ...query }?: GetComponentsPath & GetComponentsQuery, signal?: AbortSignal) => Promise<Component[]>;
|
|
5254
5255
|
searchComponentConfigurations: ({ branchId }?: GetSearchComponentConfigurationsPath, query?: SearchComponentConfigurationsQuery, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
|
|
5255
5256
|
createConfiguration: ({ branchId, componentId, ...body }: PartialKey<CreateConfigurationInput, "branchId">) => Promise<BaseComponentConfig>;
|
|
5257
|
+
updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, ...rest }: PartialKey<UpdateConfigurationInput, "branchId">, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
5256
5258
|
getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
5257
5259
|
getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
|
|
5258
5260
|
getConfigurationRowDiff: ({ componentId, configId, rowId, branchId }: ConfigurationRowDiffPath, signal?: AbortSignal) => Promise<ConfigurationRowDiff>;
|
|
5261
|
+
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig>;
|
|
5259
5262
|
deleteConfiguration: (path: Required<ConfigurationPath>) => Promise<void>;
|
|
5260
5263
|
deleteConfigurations: ({ configIds, ...rest }: Required<Omit<ConfigurationPath, "configId">> & {
|
|
5261
5264
|
configIds: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -12,17 +12,17 @@ import { G as GetHistoryQuery$1, c as components$3, a as GetChatPath$1, C as Cha
|
|
|
12
12
|
import { G as GetQueueJobPath, c as components$2, S as SearchJobsQuery } from './types-cH0_hkCW.js';
|
|
13
13
|
import { P as PostQueryPath, a as PostQueryBody, b as PostCancelQueryJobPath, G as GetQueryJobPath, c as components$1, d as GetQueryResultsPath, e as GetQueryResutsQuery, f as GetQueriesPath, g as GetQueriesHistoryQuery, h as GetExportResultsQuery, E as ExportResultsResponse } from './types-CGMJT3JL.js';
|
|
14
14
|
import { CreateCredentialsBody, WorkspaceData } from './telemetry/types.js';
|
|
15
|
-
import { EnrollMFAInput, GetDataAppPublicGitRepositoryInput, GetDataAppPasswordPrivateGitRepositoryInput, GetDataAppSSHKeyPrivateGitRepositoryInput, GetPublicGitRepositoryInput, GetGitPrivateRepositoryInput } from './syncActions/types.js';
|
|
15
|
+
import { PostActionsBody, EnrollMFAInput, GetDataAppPublicGitRepositoryInput, GetDataAppPasswordPrivateGitRepositoryInput, GetDataAppSSHKeyPrivateGitRepositoryInput, GetPublicGitRepositoryInput, GetGitPrivateRepositoryInput } from './syncActions/types.js';
|
|
16
16
|
import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from './types-CqWXdTMg.js';
|
|
17
17
|
import { EncryptQuery } from './encryption/types.js';
|
|
18
18
|
import { G as GetDataAppRunsPath, a as GetDataAppRunsQuery, b as GetDataAppRunPath, c as GetDataAppLogsDownloadPath, d as GetDataAppLogsTailPath, e as GetDataAppLogsTailQuery, L as LogEntry, f as GetAppsQuery, g as GetDataAppPath, C as CreateDataAppBody, P as PatchDataAppPath, h as PatchDataAppBody, D as DeleteDataAppPath, i as GetDataAppPasswordPath, R as ResetDataAppPasswordPath, j as GetSandboxPath } from './utils-BNQZiNOu.js';
|
|
19
19
|
export { p as parseLogLines } from './utils-BNQZiNOu.js';
|
|
20
20
|
import { CreateVariableBody, VariableWithHash, DeleteVariablePath, GetVariablesQuery, GetVariablesByBranchId } from './vault/types.js';
|
|
21
21
|
import { a as EncryptionCtx } from './types-D4CDCW-Y.js';
|
|
22
|
-
import { ServiceId, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, Job, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType,
|
|
22
|
+
import { ServiceId, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, Job, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, UpdateConfigurationInput, ComponentConfig, ConfigurationPath, ConfigurationDiffPath, ConfigurationDiff, ConfigurationRowDiffPath, ConfigurationRowDiff, RebaseConfigurationInput, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.js';
|
|
23
23
|
import { M as MetaObject } from './types-BY0tjg2Q.js';
|
|
24
|
-
import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './storageClient-
|
|
25
|
-
export { a as concurrent } from './storageClient-
|
|
24
|
+
import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './storageClient-xm0yUrNc.js';
|
|
25
|
+
export { a as concurrent } from './storageClient-xm0yUrNc.js';
|
|
26
26
|
import { K as KeboolaObjectId } from './keboolaUID-D1DGSbge.js';
|
|
27
27
|
export { k as keboolaUID } from './keboolaUID-D1DGSbge.js';
|
|
28
28
|
import { TagWithBindings, TagData, CreateMetaObjectMetaDataInput, UpdateMetaObjectMetaDataInput } from './sdk/tag/types.js';
|
|
@@ -30,7 +30,7 @@ import { B as Backend, S as StorageToken } from './types-DYMMsuU0.js';
|
|
|
30
30
|
export { c as createGenericFetchClient } from './createGenericFetchClient-Cp2By_KQ.js';
|
|
31
31
|
export { M as ManagementClientAuthError, i as isManagementClientAuthError } from './authMiddleware-Dcy9gRT9.js';
|
|
32
32
|
import { ManagementToken } from './verify/types.js';
|
|
33
|
-
export { c as createStorageSdk } from './storageSdk-
|
|
33
|
+
export { c as createStorageSdk } from './storageSdk-bwKHEMB4.js';
|
|
34
34
|
import 'qs';
|
|
35
35
|
import './encryption/index.js';
|
|
36
36
|
import './vault/index.js';
|
|
@@ -4220,6 +4220,7 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
|
|
|
4220
4220
|
}>;
|
|
4221
4221
|
};
|
|
4222
4222
|
syncActions: {
|
|
4223
|
+
sendSyncAction: (body: PostActionsBody, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
4223
4224
|
enrollMFA: ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
4224
4225
|
gitRepository: {
|
|
4225
4226
|
getDataAppPublicGitRepository: ({ repositoryUrl, ...other }: GetDataAppPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
|
|
@@ -5253,9 +5254,11 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
|
|
|
5253
5254
|
getComponents: ({ branchId, ...query }?: GetComponentsPath & GetComponentsQuery, signal?: AbortSignal) => Promise<Component[]>;
|
|
5254
5255
|
searchComponentConfigurations: ({ branchId }?: GetSearchComponentConfigurationsPath, query?: SearchComponentConfigurationsQuery, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
|
|
5255
5256
|
createConfiguration: ({ branchId, componentId, ...body }: PartialKey<CreateConfigurationInput, "branchId">) => Promise<BaseComponentConfig>;
|
|
5257
|
+
updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, ...rest }: PartialKey<UpdateConfigurationInput, "branchId">, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
5256
5258
|
getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
5257
5259
|
getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
|
|
5258
5260
|
getConfigurationRowDiff: ({ componentId, configId, rowId, branchId }: ConfigurationRowDiffPath, signal?: AbortSignal) => Promise<ConfigurationRowDiff>;
|
|
5261
|
+
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig>;
|
|
5259
5262
|
deleteConfiguration: (path: Required<ConfigurationPath>) => Promise<void>;
|
|
5260
5263
|
deleteConfigurations: ({ configIds, ...rest }: Required<Omit<ConfigurationPath, "configId">> & {
|
|
5261
5264
|
configIds: string[];
|
package/dist/index.js
CHANGED
|
@@ -16,10 +16,10 @@ import { createQueryServiceClient } from './chunk-PM2FAMWT.js';
|
|
|
16
16
|
import { createQueueClient } from './chunk-5PUNJJAR.js';
|
|
17
17
|
import { createStatusClient } from './chunk-LBVYZLWL.js';
|
|
18
18
|
import './chunk-7J2R6XHB.js';
|
|
19
|
-
import { createStorageTokenMiddleware, createStorageClient } from './chunk-
|
|
20
|
-
export { series } from './chunk-
|
|
19
|
+
import { createStorageTokenMiddleware, createStorageClient } from './chunk-7NX56CKZ.js';
|
|
20
|
+
export { series } from './chunk-7NX56CKZ.js';
|
|
21
21
|
export { concurrent } from './chunk-EBCZUGUX.js';
|
|
22
|
-
import { createSyncActionsClient } from './chunk-
|
|
22
|
+
import { createSyncActionsClient } from './chunk-X73I4PLK.js';
|
|
23
23
|
import { createAiClient } from './chunk-3DW7RIEB.js';
|
|
24
24
|
import { createAssetsClient } from './chunk-6TUGEXVX.js';
|
|
25
25
|
import { createChatClient } from './chunk-Q6T6GRDR.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createStorageSdk } from '../../storageSdk-
|
|
1
|
+
export { c as createStorageSdk } from '../../storageSdk-CxNyfe5Z.cjs';
|
|
2
2
|
import '../../storage/types.cjs';
|
|
3
3
|
import '../../types-C7mpAfq-.cjs';
|
|
4
4
|
import '../../types-DYMMsuU0.cjs';
|
|
5
|
-
import '../../storageClient-
|
|
5
|
+
import '../../storageClient-DTTDHnLM.cjs';
|
|
6
6
|
import '../../types-Bom8wyth.cjs';
|
|
7
7
|
import 'qs';
|
|
8
8
|
import '../../createGenericFetchClient-DuW7iSRy.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createStorageSdk } from '../../storageSdk-
|
|
1
|
+
export { c as createStorageSdk } from '../../storageSdk-bwKHEMB4.js';
|
|
2
2
|
import '../../storage/types.js';
|
|
3
3
|
import '../../types-C7mpAfq-.js';
|
|
4
4
|
import '../../types-DYMMsuU0.js';
|
|
5
|
-
import '../../storageClient-
|
|
5
|
+
import '../../storageClient-xm0yUrNc.js';
|
|
6
6
|
import '../../types-Bom8wyth.js';
|
|
7
7
|
import 'qs';
|
|
8
8
|
import '../../createGenericFetchClient-Cp2By_KQ.js';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHCH4WXK2_cjs = require('../chunk-HCH4WXK2.cjs');
|
|
4
4
|
require('../chunk-CVV4HROS.cjs');
|
|
5
5
|
require('../chunk-MTFRH3R5.cjs');
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ require('../chunk-MTFRH3R5.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createStorageClient", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkHCH4WXK2_cjs.createStorageClient; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "createStorageTokenMiddleware", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkHCH4WXK2_cjs.createStorageTokenMiddleware; }
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=index.cjs.map
|
|
18
18
|
//# sourceMappingURL=index.cjs.map
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as GenericFetchClient, S as StorageOpenApiFetchClient, c as createStorageClient } from '../storageClient-
|
|
1
|
+
export { G as GenericFetchClient, S as StorageOpenApiFetchClient, c as createStorageClient } from '../storageClient-DTTDHnLM.cjs';
|
|
2
2
|
import { M as MiddlewareFn } from '../types-Bom8wyth.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import '../types-C7mpAfq-.cjs';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as GenericFetchClient, S as StorageOpenApiFetchClient, c as createStorageClient } from '../storageClient-
|
|
1
|
+
export { G as GenericFetchClient, S as StorageOpenApiFetchClient, c as createStorageClient } from '../storageClient-xm0yUrNc.js';
|
|
2
2
|
import { M as MiddlewareFn } from '../types-Bom8wyth.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import '../types-C7mpAfq-.js';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createStorageClient, createStorageTokenMiddleware } from '../chunk-
|
|
1
|
+
export { createStorageClient, createStorageTokenMiddleware } from '../chunk-7NX56CKZ.js';
|
|
2
2
|
import '../chunk-EBCZUGUX.js';
|
|
3
3
|
import '../chunk-QXWPUKK2.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/storage/types.d.cts
CHANGED
|
@@ -12217,6 +12217,19 @@ type CreateConfigurationBody = {
|
|
|
12217
12217
|
configuration?: Record<string, unknown>;
|
|
12218
12218
|
};
|
|
12219
12219
|
type CreateConfigurationInput = Required<GetConfigurationsPath> & CreateConfigurationBody;
|
|
12220
|
+
type UpdateConfigurationBody = {
|
|
12221
|
+
name?: string;
|
|
12222
|
+
description?: string;
|
|
12223
|
+
changeDescription?: string;
|
|
12224
|
+
isDisabled?: boolean;
|
|
12225
|
+
configuration?: Record<string, unknown>;
|
|
12226
|
+
state?: Record<string, unknown>;
|
|
12227
|
+
rowsSortOrder?: string[];
|
|
12228
|
+
};
|
|
12229
|
+
type UpdateConfigurationInput = Required<ConfigurationPath> & UpdateConfigurationBody;
|
|
12230
|
+
type UpdateConfigurationRequestBody = Omit<UpdateConfigurationBody, 'configuration'> & {
|
|
12231
|
+
configuration?: string;
|
|
12232
|
+
};
|
|
12220
12233
|
type CreateConfigurationWorkspaceQuery = {
|
|
12221
12234
|
async: boolean;
|
|
12222
12235
|
};
|
|
@@ -12378,6 +12391,22 @@ type ConfigurationRowDiff = {
|
|
|
12378
12391
|
ours: ConfigurationRowDiffSide | null;
|
|
12379
12392
|
theirs: ConfigurationRowDiffSide | null;
|
|
12380
12393
|
};
|
|
12394
|
+
type RebaseConfigurationPath = ConfigurationDiffPath;
|
|
12395
|
+
type RebaseConfigurationBody = {
|
|
12396
|
+
/** Default-branch version to rebase the dev branch onto. */
|
|
12397
|
+
version: number;
|
|
12398
|
+
/**
|
|
12399
|
+
* Resolved field values from the head (branch) side. Any field that is
|
|
12400
|
+
* omitted is kept at the rebased base value, per the backend contract — so
|
|
12401
|
+
* only send fields the caller has an authoritative resolved value for.
|
|
12402
|
+
*/
|
|
12403
|
+
name?: string;
|
|
12404
|
+
description?: string;
|
|
12405
|
+
configuration?: Record<string, unknown>;
|
|
12406
|
+
isDisabled?: boolean;
|
|
12407
|
+
rowsSortOrder?: string[];
|
|
12408
|
+
};
|
|
12409
|
+
type RebaseConfigurationInput = RebaseConfigurationPath & RebaseConfigurationBody;
|
|
12381
12410
|
type ConfigType = 'data-app' | 'wr-db' | 'unknown';
|
|
12382
12411
|
type ComponentConfig<T extends ConfigType = 'unknown'> = T extends 'data-app' ? DataAppConfig : T extends 'wr-db' ? WrDbConfig : BaseComponentConfig;
|
|
12383
12412
|
type ComponentDefinition = {
|
|
@@ -12705,4 +12734,4 @@ type StackInfo = {
|
|
|
12705
12734
|
};
|
|
12706
12735
|
type PartialKey<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
12707
12736
|
|
|
12708
|
-
export type { AddFileTagBody, BackendType, BaseComponentConfig, BranchId$2 as BranchId, BranchMetadata, BranchMetadataEntry, BranchMetadataRaw, Bucket, BucketBackend, BucketDetail, BucketListing, BucketShared, BucketStage, Component, ComponentConfig, ComponentData, ComponentDataTypesConfiguration, ComponentDefinition, ComponentLogging, ComponentProcessorConfiguration, ComponentStagingStorage, ComponentVendor, ConfigType, ConfigurationDiff, ConfigurationDiffPath, ConfigurationDiffSide, ConfigurationPath, ConfigurationRowDiff, ConfigurationRowDiffPath, ConfigurationRowDiffSide, ConfigurationUseCaseType, ConfigurationVersion, ConfigurationVersionDetail, ConfigurationVersionDetailPath, ConfigurationVersionPath, CreateBucketBody, CreateBucketListingInput, CreateConfigurationBody, CreateConfigurationInput, CreateConfigurationRowBody, CreateConfigurationRowInput, CreateConfigurationRowPath, CreateConfigurationRowsInput, CreateConfigurationWorkspaceBody, CreateConfigurationWorkspaceQuery, CreateDevBranchJobBody, CreateEventBody, CreateMergeRequestParams, CreateScheduledRefreshBody, CreateScheduledRefreshPath, CreateTableAsyncBody, DeleteConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowPath, DeleteConfigurationRowsInput, DeleteFileTagPath, DeleteTableRows, DeleteWorkspaceObjectBody, DeleteWorkspaceObjectInput, DeleteWorkspaceQuery, DevBranch, DevBranchPath, EventPath, EventType, File, FilePath, FilterOperator, GetBucketsQuery, GetComponentPath, GetComponentsPath, GetComponentsQuery, GetConfigurationsPath, GetDataPreview, GetEventsQuery, GetFilesQuery, GetJobPath, GetJobsQuery, GetSearchComponentConfigurationsPath, GetStackInfoQuery, GetTableEventsQuery, GetTablesQuery, GetWorkspaceSaml2LoginPath, Job, JobOperation, JobUnion, LoginType, MergeRequest, MergeRequestActivityEventType, MergeRequestActivityLogEntry, MergeRequestChangeLog, MergeRequestChangeLogEntry, MergeRequestConflict, MergeRequestDetail, MergeRequestDetailWithActivityLog, MergeRequestReviewer, MergeRequestReviewerStatus, Metadata, PartialKey, PrepareFileBody, PreparedFile, PrevieData, RawBucketListingResponse, RawBucketListingRow, ResetWorkspacePassword, Row, ScheduledTask, SearchComponentConfiguration, SearchComponentConfigurationsQuery, Service, ServiceId, SetWorkspacePublicInput, SetWorkspacePublicKeyBody, SetWorkspacePublicKeyPath, StackComponent, StackInfo, StorageEvent, Subscriber, Table, TableCreateJob, TableDetail, TableEvent, TableEventPath, TableExportAsyncBody, TableExportJob, TableImportAsyncBody, TableImportJob, UnloadWorkspaceInput, UnloadWorkspacePath, UnloadWorkspaceQuery, UpdateBucketBody, UpdateBucketListingInput, UpdateMergeRequestParams, WhereFilters, Workspace, WorkspaceConnection, WorkspaceLoginType, WorkspaceObject, WorkspacePath, WorkspaceSaml2Login, WorkspacesPath, WrDbRow };
|
|
12737
|
+
export type { AddFileTagBody, BackendType, BaseComponentConfig, BranchId$2 as BranchId, BranchMetadata, BranchMetadataEntry, BranchMetadataRaw, Bucket, BucketBackend, BucketDetail, BucketListing, BucketShared, BucketStage, Component, ComponentConfig, ComponentData, ComponentDataTypesConfiguration, ComponentDefinition, ComponentLogging, ComponentProcessorConfiguration, ComponentStagingStorage, ComponentVendor, ConfigType, ConfigurationDiff, ConfigurationDiffPath, ConfigurationDiffSide, ConfigurationPath, ConfigurationRowDiff, ConfigurationRowDiffPath, ConfigurationRowDiffSide, ConfigurationUseCaseType, ConfigurationVersion, ConfigurationVersionDetail, ConfigurationVersionDetailPath, ConfigurationVersionPath, CreateBucketBody, CreateBucketListingInput, CreateConfigurationBody, CreateConfigurationInput, CreateConfigurationRowBody, CreateConfigurationRowInput, CreateConfigurationRowPath, CreateConfigurationRowsInput, CreateConfigurationWorkspaceBody, CreateConfigurationWorkspaceQuery, CreateDevBranchJobBody, CreateEventBody, CreateMergeRequestParams, CreateScheduledRefreshBody, CreateScheduledRefreshPath, CreateTableAsyncBody, DeleteConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowPath, DeleteConfigurationRowsInput, DeleteFileTagPath, DeleteTableRows, DeleteWorkspaceObjectBody, DeleteWorkspaceObjectInput, DeleteWorkspaceQuery, DevBranch, DevBranchPath, EventPath, EventType, File, FilePath, FilterOperator, GetBucketsQuery, GetComponentPath, GetComponentsPath, GetComponentsQuery, GetConfigurationsPath, GetDataPreview, GetEventsQuery, GetFilesQuery, GetJobPath, GetJobsQuery, GetSearchComponentConfigurationsPath, GetStackInfoQuery, GetTableEventsQuery, GetTablesQuery, GetWorkspaceSaml2LoginPath, Job, JobOperation, JobUnion, LoginType, MergeRequest, MergeRequestActivityEventType, MergeRequestActivityLogEntry, MergeRequestChangeLog, MergeRequestChangeLogEntry, MergeRequestConflict, MergeRequestDetail, MergeRequestDetailWithActivityLog, MergeRequestReviewer, MergeRequestReviewerStatus, Metadata, PartialKey, PrepareFileBody, PreparedFile, PrevieData, RawBucketListingResponse, RawBucketListingRow, RebaseConfigurationBody, RebaseConfigurationInput, RebaseConfigurationPath, ResetWorkspacePassword, Row, ScheduledTask, SearchComponentConfiguration, SearchComponentConfigurationsQuery, Service, ServiceId, SetWorkspacePublicInput, SetWorkspacePublicKeyBody, SetWorkspacePublicKeyPath, StackComponent, StackInfo, StorageEvent, Subscriber, Table, TableCreateJob, TableDetail, TableEvent, TableEventPath, TableExportAsyncBody, TableExportJob, TableImportAsyncBody, TableImportJob, UnloadWorkspaceInput, UnloadWorkspacePath, UnloadWorkspaceQuery, UpdateBucketBody, UpdateBucketListingInput, UpdateConfigurationBody, UpdateConfigurationInput, UpdateConfigurationRequestBody, UpdateMergeRequestParams, WhereFilters, Workspace, WorkspaceConnection, WorkspaceLoginType, WorkspaceObject, WorkspacePath, WorkspaceSaml2Login, WorkspacesPath, WrDbRow };
|
package/dist/storage/types.d.ts
CHANGED
|
@@ -12217,6 +12217,19 @@ type CreateConfigurationBody = {
|
|
|
12217
12217
|
configuration?: Record<string, unknown>;
|
|
12218
12218
|
};
|
|
12219
12219
|
type CreateConfigurationInput = Required<GetConfigurationsPath> & CreateConfigurationBody;
|
|
12220
|
+
type UpdateConfigurationBody = {
|
|
12221
|
+
name?: string;
|
|
12222
|
+
description?: string;
|
|
12223
|
+
changeDescription?: string;
|
|
12224
|
+
isDisabled?: boolean;
|
|
12225
|
+
configuration?: Record<string, unknown>;
|
|
12226
|
+
state?: Record<string, unknown>;
|
|
12227
|
+
rowsSortOrder?: string[];
|
|
12228
|
+
};
|
|
12229
|
+
type UpdateConfigurationInput = Required<ConfigurationPath> & UpdateConfigurationBody;
|
|
12230
|
+
type UpdateConfigurationRequestBody = Omit<UpdateConfigurationBody, 'configuration'> & {
|
|
12231
|
+
configuration?: string;
|
|
12232
|
+
};
|
|
12220
12233
|
type CreateConfigurationWorkspaceQuery = {
|
|
12221
12234
|
async: boolean;
|
|
12222
12235
|
};
|
|
@@ -12378,6 +12391,22 @@ type ConfigurationRowDiff = {
|
|
|
12378
12391
|
ours: ConfigurationRowDiffSide | null;
|
|
12379
12392
|
theirs: ConfigurationRowDiffSide | null;
|
|
12380
12393
|
};
|
|
12394
|
+
type RebaseConfigurationPath = ConfigurationDiffPath;
|
|
12395
|
+
type RebaseConfigurationBody = {
|
|
12396
|
+
/** Default-branch version to rebase the dev branch onto. */
|
|
12397
|
+
version: number;
|
|
12398
|
+
/**
|
|
12399
|
+
* Resolved field values from the head (branch) side. Any field that is
|
|
12400
|
+
* omitted is kept at the rebased base value, per the backend contract — so
|
|
12401
|
+
* only send fields the caller has an authoritative resolved value for.
|
|
12402
|
+
*/
|
|
12403
|
+
name?: string;
|
|
12404
|
+
description?: string;
|
|
12405
|
+
configuration?: Record<string, unknown>;
|
|
12406
|
+
isDisabled?: boolean;
|
|
12407
|
+
rowsSortOrder?: string[];
|
|
12408
|
+
};
|
|
12409
|
+
type RebaseConfigurationInput = RebaseConfigurationPath & RebaseConfigurationBody;
|
|
12381
12410
|
type ConfigType = 'data-app' | 'wr-db' | 'unknown';
|
|
12382
12411
|
type ComponentConfig<T extends ConfigType = 'unknown'> = T extends 'data-app' ? DataAppConfig : T extends 'wr-db' ? WrDbConfig : BaseComponentConfig;
|
|
12383
12412
|
type ComponentDefinition = {
|
|
@@ -12705,4 +12734,4 @@ type StackInfo = {
|
|
|
12705
12734
|
};
|
|
12706
12735
|
type PartialKey<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
12707
12736
|
|
|
12708
|
-
export type { AddFileTagBody, BackendType, BaseComponentConfig, BranchId$2 as BranchId, BranchMetadata, BranchMetadataEntry, BranchMetadataRaw, Bucket, BucketBackend, BucketDetail, BucketListing, BucketShared, BucketStage, Component, ComponentConfig, ComponentData, ComponentDataTypesConfiguration, ComponentDefinition, ComponentLogging, ComponentProcessorConfiguration, ComponentStagingStorage, ComponentVendor, ConfigType, ConfigurationDiff, ConfigurationDiffPath, ConfigurationDiffSide, ConfigurationPath, ConfigurationRowDiff, ConfigurationRowDiffPath, ConfigurationRowDiffSide, ConfigurationUseCaseType, ConfigurationVersion, ConfigurationVersionDetail, ConfigurationVersionDetailPath, ConfigurationVersionPath, CreateBucketBody, CreateBucketListingInput, CreateConfigurationBody, CreateConfigurationInput, CreateConfigurationRowBody, CreateConfigurationRowInput, CreateConfigurationRowPath, CreateConfigurationRowsInput, CreateConfigurationWorkspaceBody, CreateConfigurationWorkspaceQuery, CreateDevBranchJobBody, CreateEventBody, CreateMergeRequestParams, CreateScheduledRefreshBody, CreateScheduledRefreshPath, CreateTableAsyncBody, DeleteConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowPath, DeleteConfigurationRowsInput, DeleteFileTagPath, DeleteTableRows, DeleteWorkspaceObjectBody, DeleteWorkspaceObjectInput, DeleteWorkspaceQuery, DevBranch, DevBranchPath, EventPath, EventType, File, FilePath, FilterOperator, GetBucketsQuery, GetComponentPath, GetComponentsPath, GetComponentsQuery, GetConfigurationsPath, GetDataPreview, GetEventsQuery, GetFilesQuery, GetJobPath, GetJobsQuery, GetSearchComponentConfigurationsPath, GetStackInfoQuery, GetTableEventsQuery, GetTablesQuery, GetWorkspaceSaml2LoginPath, Job, JobOperation, JobUnion, LoginType, MergeRequest, MergeRequestActivityEventType, MergeRequestActivityLogEntry, MergeRequestChangeLog, MergeRequestChangeLogEntry, MergeRequestConflict, MergeRequestDetail, MergeRequestDetailWithActivityLog, MergeRequestReviewer, MergeRequestReviewerStatus, Metadata, PartialKey, PrepareFileBody, PreparedFile, PrevieData, RawBucketListingResponse, RawBucketListingRow, ResetWorkspacePassword, Row, ScheduledTask, SearchComponentConfiguration, SearchComponentConfigurationsQuery, Service, ServiceId, SetWorkspacePublicInput, SetWorkspacePublicKeyBody, SetWorkspacePublicKeyPath, StackComponent, StackInfo, StorageEvent, Subscriber, Table, TableCreateJob, TableDetail, TableEvent, TableEventPath, TableExportAsyncBody, TableExportJob, TableImportAsyncBody, TableImportJob, UnloadWorkspaceInput, UnloadWorkspacePath, UnloadWorkspaceQuery, UpdateBucketBody, UpdateBucketListingInput, UpdateMergeRequestParams, WhereFilters, Workspace, WorkspaceConnection, WorkspaceLoginType, WorkspaceObject, WorkspacePath, WorkspaceSaml2Login, WorkspacesPath, WrDbRow };
|
|
12737
|
+
export type { AddFileTagBody, BackendType, BaseComponentConfig, BranchId$2 as BranchId, BranchMetadata, BranchMetadataEntry, BranchMetadataRaw, Bucket, BucketBackend, BucketDetail, BucketListing, BucketShared, BucketStage, Component, ComponentConfig, ComponentData, ComponentDataTypesConfiguration, ComponentDefinition, ComponentLogging, ComponentProcessorConfiguration, ComponentStagingStorage, ComponentVendor, ConfigType, ConfigurationDiff, ConfigurationDiffPath, ConfigurationDiffSide, ConfigurationPath, ConfigurationRowDiff, ConfigurationRowDiffPath, ConfigurationRowDiffSide, ConfigurationUseCaseType, ConfigurationVersion, ConfigurationVersionDetail, ConfigurationVersionDetailPath, ConfigurationVersionPath, CreateBucketBody, CreateBucketListingInput, CreateConfigurationBody, CreateConfigurationInput, CreateConfigurationRowBody, CreateConfigurationRowInput, CreateConfigurationRowPath, CreateConfigurationRowsInput, CreateConfigurationWorkspaceBody, CreateConfigurationWorkspaceQuery, CreateDevBranchJobBody, CreateEventBody, CreateMergeRequestParams, CreateScheduledRefreshBody, CreateScheduledRefreshPath, CreateTableAsyncBody, DeleteConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowPath, DeleteConfigurationRowsInput, DeleteFileTagPath, DeleteTableRows, DeleteWorkspaceObjectBody, DeleteWorkspaceObjectInput, DeleteWorkspaceQuery, DevBranch, DevBranchPath, EventPath, EventType, File, FilePath, FilterOperator, GetBucketsQuery, GetComponentPath, GetComponentsPath, GetComponentsQuery, GetConfigurationsPath, GetDataPreview, GetEventsQuery, GetFilesQuery, GetJobPath, GetJobsQuery, GetSearchComponentConfigurationsPath, GetStackInfoQuery, GetTableEventsQuery, GetTablesQuery, GetWorkspaceSaml2LoginPath, Job, JobOperation, JobUnion, LoginType, MergeRequest, MergeRequestActivityEventType, MergeRequestActivityLogEntry, MergeRequestChangeLog, MergeRequestChangeLogEntry, MergeRequestConflict, MergeRequestDetail, MergeRequestDetailWithActivityLog, MergeRequestReviewer, MergeRequestReviewerStatus, Metadata, PartialKey, PrepareFileBody, PreparedFile, PrevieData, RawBucketListingResponse, RawBucketListingRow, RebaseConfigurationBody, RebaseConfigurationInput, RebaseConfigurationPath, ResetWorkspacePassword, Row, ScheduledTask, SearchComponentConfiguration, SearchComponentConfigurationsQuery, Service, ServiceId, SetWorkspacePublicInput, SetWorkspacePublicKeyBody, SetWorkspacePublicKeyPath, StackComponent, StackInfo, StorageEvent, Subscriber, Table, TableCreateJob, TableDetail, TableEvent, TableEventPath, TableExportAsyncBody, TableExportJob, TableImportAsyncBody, TableImportJob, UnloadWorkspaceInput, UnloadWorkspacePath, UnloadWorkspaceQuery, UpdateBucketBody, UpdateBucketListingInput, UpdateConfigurationBody, UpdateConfigurationInput, UpdateConfigurationRequestBody, UpdateMergeRequestParams, WhereFilters, Workspace, WorkspaceConnection, WorkspaceLoginType, WorkspaceObject, WorkspacePath, WorkspaceSaml2Login, WorkspacesPath, WrDbRow };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType,
|
|
1
|
+
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, UpdateConfigurationInput, ComponentConfig, ConfigurationPath, ConfigurationDiffPath, ConfigurationDiff, ConfigurationRowDiffPath, ConfigurationRowDiff, RebaseConfigurationInput, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.cjs';
|
|
2
2
|
import { C as ClientInitOptions, M as MiddlewareFn$1 } from './types-Bom8wyth.cjs';
|
|
3
3
|
import { c as createGenericFetchClient } from './createGenericFetchClient-DuW7iSRy.cjs';
|
|
4
4
|
import { c as createOpenapiFetchClient } from './createOpenapiFetchClient-BuKDZcLD.cjs';
|
|
@@ -547,9 +547,11 @@ declare const createStorageClient: ({ baseUrl, middlewares }: StorageClientInitO
|
|
|
547
547
|
getComponents: ({ branchId, ...query }?: GetComponentsPath & GetComponentsQuery, signal?: AbortSignal) => Promise<Component[]>;
|
|
548
548
|
searchComponentConfigurations: ({ branchId }?: GetSearchComponentConfigurationsPath, query?: SearchComponentConfigurationsQuery, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
|
|
549
549
|
createConfiguration: ({ branchId, componentId, ...body }: PartialKey<CreateConfigurationInput, "branchId">) => Promise<BaseComponentConfig>;
|
|
550
|
+
updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, ...rest }: PartialKey<UpdateConfigurationInput, "branchId">, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
550
551
|
getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
551
552
|
getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
|
|
552
553
|
getConfigurationRowDiff: ({ componentId, configId, rowId, branchId }: ConfigurationRowDiffPath, signal?: AbortSignal) => Promise<ConfigurationRowDiff>;
|
|
554
|
+
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig>;
|
|
553
555
|
deleteConfiguration: (path: Required<ConfigurationPath>) => Promise<void>;
|
|
554
556
|
deleteConfigurations: ({ configIds, ...rest }: Required<Omit<ConfigurationPath, "configId">> & {
|
|
555
557
|
configIds: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType,
|
|
1
|
+
import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, UpdateConfigurationInput, ComponentConfig, ConfigurationPath, ConfigurationDiffPath, ConfigurationDiff, ConfigurationRowDiffPath, ConfigurationRowDiff, RebaseConfigurationInput, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, GetStackInfoQuery, StackInfo } from './storage/types.js';
|
|
2
2
|
import { C as ClientInitOptions, M as MiddlewareFn$1 } from './types-Bom8wyth.js';
|
|
3
3
|
import { c as createGenericFetchClient } from './createGenericFetchClient-Cp2By_KQ.js';
|
|
4
4
|
import { c as createOpenapiFetchClient } from './createOpenapiFetchClient-DhL2gQvd.js';
|
|
@@ -547,9 +547,11 @@ declare const createStorageClient: ({ baseUrl, middlewares }: StorageClientInitO
|
|
|
547
547
|
getComponents: ({ branchId, ...query }?: GetComponentsPath & GetComponentsQuery, signal?: AbortSignal) => Promise<Component[]>;
|
|
548
548
|
searchComponentConfigurations: ({ branchId }?: GetSearchComponentConfigurationsPath, query?: SearchComponentConfigurationsQuery, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
|
|
549
549
|
createConfiguration: ({ branchId, componentId, ...body }: PartialKey<CreateConfigurationInput, "branchId">) => Promise<BaseComponentConfig>;
|
|
550
|
+
updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, ...rest }: PartialKey<UpdateConfigurationInput, "branchId">, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
550
551
|
getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
|
|
551
552
|
getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
|
|
552
553
|
getConfigurationRowDiff: ({ componentId, configId, rowId, branchId }: ConfigurationRowDiffPath, signal?: AbortSignal) => Promise<ConfigurationRowDiff>;
|
|
554
|
+
rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig>;
|
|
553
555
|
deleteConfiguration: (path: Required<ConfigurationPath>) => Promise<void>;
|
|
554
556
|
deleteConfigurations: ({ configIds, ...rest }: Required<Omit<ConfigurationPath, "configId">> & {
|
|
555
557
|
configIds: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput } from './storage/types.cjs';
|
|
2
|
-
import { c as createStorageClient } from './storageClient-
|
|
2
|
+
import { c as createStorageClient } from './storageClient-DTTDHnLM.cjs';
|
|
3
3
|
|
|
4
4
|
type Options = {
|
|
5
5
|
interval?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput } from './storage/types.js';
|
|
2
|
-
import { c as createStorageClient } from './storageClient-
|
|
2
|
+
import { c as createStorageClient } from './storageClient-xm0yUrNc.js';
|
|
3
3
|
|
|
4
4
|
type Options = {
|
|
5
5
|
interval?: number;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWMJUK4P4_cjs = require('../chunk-WMJUK4P4.cjs');
|
|
4
4
|
require('../chunk-MTFRH3R5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "createSyncActionsClient", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkWMJUK4P4_cjs.createSyncActionsClient; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -11,6 +11,7 @@ declare const createSendSyncAction: (client: SyncActionClient) => (body: PostAct
|
|
|
11
11
|
type SendSyncAction = ReturnType<typeof createSendSyncAction>;
|
|
12
12
|
type SyncActionClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
|
|
13
13
|
declare const createSyncActionsClient: ({ baseUrl, middlewares }: ClientInitOptions) => {
|
|
14
|
+
sendSyncAction: (body: PostActionsBody, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
14
15
|
enrollMFA: ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
15
16
|
gitRepository: {
|
|
16
17
|
getDataAppPublicGitRepository: ({ repositoryUrl, ...other }: GetDataAppPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
|
|
@@ -11,6 +11,7 @@ declare const createSendSyncAction: (client: SyncActionClient) => (body: PostAct
|
|
|
11
11
|
type SendSyncAction = ReturnType<typeof createSendSyncAction>;
|
|
12
12
|
type SyncActionClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
|
|
13
13
|
declare const createSyncActionsClient: ({ baseUrl, middlewares }: ClientInitOptions) => {
|
|
14
|
+
sendSyncAction: (body: PostActionsBody, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
14
15
|
enrollMFA: ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => Promise<Record<string, never>>;
|
|
15
16
|
gitRepository: {
|
|
16
17
|
getDataAppPublicGitRepository: ({ repositoryUrl, ...other }: GetDataAppPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keboola/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "TypeScript SDK for Keboola APIs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
"@keboola/tsconfig": "workspace:^",
|
|
650
650
|
"@types/node": "24.12.0",
|
|
651
651
|
"@types/qs": "^6",
|
|
652
|
-
"esbuild": "^0.28.
|
|
652
|
+
"esbuild": "^0.28.1",
|
|
653
653
|
"openapi-typescript": "7.10.1",
|
|
654
654
|
"oxfmt": "^0.44.0",
|
|
655
655
|
"oxlint": "^1.56.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/clients/syncActions/constants.ts","../src/clients/syncActions/gitRepository/schemas.ts","../src/clients/syncActions/gitRepository/utils.ts","../src/clients/syncActions/gitRepository/gitRepository.ts","../src/clients/syncActions/syncActionsClient.ts"],"names":["email"],"mappings":"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","file":"chunk-M4PFR3OS.js","sourcesContent":["export const SyncAction = {\n DATA_APP_GIT_REPOSITORY: 'git-repository',\n GIT_REPOSITORY: 'gitRepository',\n ENROLL_MFA: 'enrollMFA',\n};\n\nexport const Component = {\n DATA_APP: 'keboola.data-apps',\n};\n","import * as z from 'zod';\n\nconst Author = z.object({\n name: z.string(),\n email: z.email(),\n});\n\nconst RepositoryBranch = z.object({\n sha: z.string(),\n date: z.string(),\n comment: z.string(),\n branch: z.string(),\n author: Author,\n});\n\nexport const Repository = z.object({\n repository: z.object({\n url: z.string(),\n }),\n branches: z.array(RepositoryBranch),\n});\n","type GitRepoConfig = {\n username?: string;\n '#password'?: string;\n '#sshKey'?: string;\n};\n\nclass GitRepoConfigDataBuilder {\n private readonly repositoryUrl: string;\n private config: GitRepoConfig = {};\n\n constructor(repositoryUrl: string) {\n this.repositoryUrl = repositoryUrl;\n }\n\n withCredentials(username: string, password: string) {\n this.config.username = username;\n\n delete this.config['#sshKey'];\n this.config['#password'] = password;\n return this;\n }\n\n withSshKey(username: string, sshKey: string) {\n this.config.username = username;\n\n delete this.config['#password'];\n this.config['#sshKey'] = sshKey;\n return this;\n }\n\n build() {\n return {\n parameters: {\n git: {\n repo: this.repositoryUrl,\n ...this.config,\n },\n },\n };\n }\n\n buildForDataApp() {\n return {\n parameters: {\n dataApp: {\n git: {\n repository: this.repositoryUrl,\n ...this.config,\n },\n },\n },\n };\n }\n}\n\nexport const createGitRepoConfigDataBuilder = (repositoryUrl: string) =>\n new GitRepoConfigDataBuilder(repositoryUrl);\n","import { Component, SyncAction } from '../constants';\nimport type { SendSyncAction } from '../syncActionsClient';\n\nimport { Repository } from './schemas';\nimport type {\n GetDataAppPasswordPrivateGitRepositoryInput,\n GetDataAppPublicGitRepositoryInput,\n GetDataAppSSHKeyPrivateGitRepositoryInput,\n GetGitPrivateRepositoryInput,\n GetPublicGitRepositoryInput,\n} from './types';\nimport { createGitRepoConfigDataBuilder } from './utils';\n\nexport const createGitRepository = (sendSyncAction: SendSyncAction) => {\n const getDataAppPublicGitRepository = async (\n { repositoryUrl, ...other }: GetDataAppPublicGitRepositoryInput,\n signal?: AbortSignal,\n ) => {\n const data = await sendSyncAction(\n {\n ...other,\n action: SyncAction.DATA_APP_GIT_REPOSITORY,\n componentId: Component.DATA_APP,\n configData: createGitRepoConfigDataBuilder(repositoryUrl).buildForDataApp(),\n },\n signal,\n );\n\n return Repository.parse(data);\n };\n\n const getDataAppPasswordPrivateGitRepository = async (\n { repositoryUrl, username, password, ...other }: GetDataAppPasswordPrivateGitRepositoryInput,\n signal?: AbortSignal,\n ) => {\n const data = await sendSyncAction(\n {\n ...other,\n action: SyncAction.DATA_APP_GIT_REPOSITORY,\n componentId: Component.DATA_APP,\n configData: createGitRepoConfigDataBuilder(repositoryUrl)\n .withCredentials(username, password)\n .buildForDataApp(),\n },\n signal,\n );\n\n return Repository.parse(data);\n };\n\n const getDataAppSSHKeyPrivateGitRepository = async (\n { repositoryUrl, username, sshKey, ...other }: GetDataAppSSHKeyPrivateGitRepositoryInput,\n signal?: AbortSignal,\n ) => {\n const data = await sendSyncAction(\n {\n ...other,\n action: SyncAction.DATA_APP_GIT_REPOSITORY,\n componentId: Component.DATA_APP,\n configData: createGitRepoConfigDataBuilder(repositoryUrl)\n .withSshKey(username, sshKey)\n .buildForDataApp(),\n },\n signal,\n );\n\n return Repository.parse(data);\n };\n\n const getPublicGitRepository = async (\n { repositoryUrl, componentId, ...other }: GetPublicGitRepositoryInput,\n signal?: AbortSignal,\n ) => {\n const data = await sendSyncAction(\n {\n ...other,\n action: SyncAction.GIT_REPOSITORY,\n componentId,\n configData: createGitRepoConfigDataBuilder(repositoryUrl).build(),\n },\n signal,\n );\n\n return Repository.parse(data);\n };\n\n const getPrivateGitRepository = async (\n { repositoryUrl, username, password, componentId, ...other }: GetGitPrivateRepositoryInput,\n signal?: AbortSignal,\n ) => {\n const data = await sendSyncAction(\n {\n ...other,\n action: SyncAction.GIT_REPOSITORY,\n componentId,\n configData: createGitRepoConfigDataBuilder(repositoryUrl)\n .withCredentials(username, password)\n .build(),\n },\n signal,\n );\n\n return Repository.parse(data);\n };\n\n return {\n getDataAppPublicGitRepository,\n getDataAppPasswordPrivateGitRepository,\n getDataAppSSHKeyPrivateGitRepository,\n getPublicGitRepository,\n getPrivateGitRepository,\n };\n};\n","import { createOpenapiFetchClient } from '../../fetchClient';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { SyncAction } from './constants';\nimport { createGitRepository } from './gitRepository';\nimport type { EnrollMFAInput, PostActionsBody, PostActionsBodyRaw } from './types';\n\n/**\n * Creates a call private action endpoint.\n */\nconst createSendSyncAction = (client: SyncActionClient) => {\n return async (body: PostActionsBody, signal?: AbortSignal) => {\n const { data } = await client.post(\n '/actions',\n {\n body: body as unknown as PostActionsBodyRaw,\n },\n { signal },\n );\n\n return data;\n };\n};\n\nexport type SendSyncAction = ReturnType<typeof createSendSyncAction>;\ntype SyncActionClient = ReturnType<typeof createOpenapiFetchClient<paths>>;\n\nexport const createSyncActionsClient = ({ baseUrl, middlewares }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n });\n\n const sendSyncAction = createSendSyncAction(client);\n\n const enrollMFA = ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => {\n return sendSyncAction(\n {\n ...rest,\n action: SyncAction.ENROLL_MFA,\n configData: {\n parameters: {\n user: {\n email,\n },\n },\n },\n },\n signal,\n );\n };\n\n return {\n enrollMFA,\n gitRepository: createGitRepository(sendSyncAction),\n };\n};\n"]}
|