mitra-interactions-sdk 1.0.42 → 1.0.44
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/index.d.mts +13 -14
- package/dist/index.d.ts +13 -14
- package/dist/index.js +9 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -65,19 +65,18 @@ interface EmailResendCodeOptions {
|
|
|
65
65
|
/** Email do usuário */
|
|
66
66
|
email: string;
|
|
67
67
|
}
|
|
68
|
-
interface
|
|
69
|
-
/** ID do projeto (opcional se já configurado via configureSdkMitra) */
|
|
68
|
+
interface ExecuteDataLoaderOptions {
|
|
70
69
|
projectId?: number;
|
|
71
|
-
|
|
72
|
-
sql: string;
|
|
73
|
-
/** ID da conexão JDBC (opcional, usa autoConnect se não informado) */
|
|
74
|
-
jdbcId?: number;
|
|
70
|
+
dataLoaderId: number;
|
|
75
71
|
}
|
|
76
|
-
interface
|
|
77
|
-
status: string;
|
|
72
|
+
interface ExecuteDataLoaderResponse {
|
|
78
73
|
result: {
|
|
79
|
-
|
|
74
|
+
timestamp: string;
|
|
80
75
|
rowCount: number;
|
|
76
|
+
query: string;
|
|
77
|
+
status: string;
|
|
78
|
+
fileSize: number;
|
|
79
|
+
duration: string;
|
|
81
80
|
};
|
|
82
81
|
}
|
|
83
82
|
interface ExecuteDbActionOptions {
|
|
@@ -463,7 +462,7 @@ interface SetProfilePermissionResponse {
|
|
|
463
462
|
|
|
464
463
|
interface MitraInstance {
|
|
465
464
|
readonly config: MitraConfig;
|
|
466
|
-
|
|
465
|
+
executeDataLoader(options: ExecuteDataLoaderOptions): Promise<ExecuteDataLoaderResponse>;
|
|
467
466
|
executeDbAction(options: ExecuteDbActionOptions): Promise<ExecuteDbActionResponse>;
|
|
468
467
|
setFileStatus(options: SetFileStatusOptions): Promise<SetFileStatusResponse>;
|
|
469
468
|
setVariable(options: SetVariableOptions): Promise<SetVariableResponse>;
|
|
@@ -587,10 +586,10 @@ declare function emailLoginMitra(options: EmailLoginOptions): Promise<LoginRespo
|
|
|
587
586
|
*/
|
|
588
587
|
|
|
589
588
|
/**
|
|
590
|
-
* POST /interactions/
|
|
591
|
-
* Executa
|
|
589
|
+
* POST /interactions/executeDataLoader
|
|
590
|
+
* Executa um Data Loader
|
|
592
591
|
*/
|
|
593
|
-
declare function
|
|
592
|
+
declare function executeDataLoaderMitra(options: ExecuteDataLoaderOptions): Promise<ExecuteDataLoaderResponse>;
|
|
594
593
|
/**
|
|
595
594
|
* POST /interactions/executeDbAction
|
|
596
595
|
* Executa uma DBAction (DML) cadastrada
|
|
@@ -720,4 +719,4 @@ declare function setProfileScreensMitra(options: SetProfileScreensOptions): Prom
|
|
|
720
719
|
*/
|
|
721
720
|
declare function setProfileServerFunctionsMitra(options: SetProfileServerFunctionsOptions): Promise<SetProfilePermissionResponse>;
|
|
722
721
|
|
|
723
|
-
export { type CallIntegrationOptions, type CallIntegrationResponse, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type RunActionOptions, type RunActionResponse, type
|
|
722
|
+
export { type CallIntegrationOptions, type CallIntegrationResponse, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDataLoaderOptions, type ExecuteDataLoaderResponse, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type RunActionOptions, type RunActionResponse, type SetFileStatusOptions, type SetFileStatusResponse, type SetProfileActionsOptions, type SetProfileDmlTablesOptions, type SetProfilePermissionResponse, type SetProfileScreensOptions, type SetProfileSelectTablesOptions, type SetProfileServerFunctionsOptions, type SetProfileUsersOptions, type SetVariableOptions, type SetVariableResponse, type StopServerFunctionExecutionOptions, type StopServerFunctionExecutionResponse, type UpdateProfileOptions, type UpdateProfileResponse, type UpdateRecordOptions, type UploadFileOptions, type UploadFileResponse, callIntegrationMitra, configureSdkMitra, createMitraInstance, createProfileMitra, createRecordMitra, createRecordsBatchMitra, deleteProfileMitra, deleteRecordMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getConfig, getProfileDetailsMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, patchRecordMitra, refreshTokenSilently, resolveProjectId, runActionMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, stopTracking, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePublicMitra };
|
package/dist/index.d.ts
CHANGED
|
@@ -65,19 +65,18 @@ interface EmailResendCodeOptions {
|
|
|
65
65
|
/** Email do usuário */
|
|
66
66
|
email: string;
|
|
67
67
|
}
|
|
68
|
-
interface
|
|
69
|
-
/** ID do projeto (opcional se já configurado via configureSdkMitra) */
|
|
68
|
+
interface ExecuteDataLoaderOptions {
|
|
70
69
|
projectId?: number;
|
|
71
|
-
|
|
72
|
-
sql: string;
|
|
73
|
-
/** ID da conexão JDBC (opcional, usa autoConnect se não informado) */
|
|
74
|
-
jdbcId?: number;
|
|
70
|
+
dataLoaderId: number;
|
|
75
71
|
}
|
|
76
|
-
interface
|
|
77
|
-
status: string;
|
|
72
|
+
interface ExecuteDataLoaderResponse {
|
|
78
73
|
result: {
|
|
79
|
-
|
|
74
|
+
timestamp: string;
|
|
80
75
|
rowCount: number;
|
|
76
|
+
query: string;
|
|
77
|
+
status: string;
|
|
78
|
+
fileSize: number;
|
|
79
|
+
duration: string;
|
|
81
80
|
};
|
|
82
81
|
}
|
|
83
82
|
interface ExecuteDbActionOptions {
|
|
@@ -463,7 +462,7 @@ interface SetProfilePermissionResponse {
|
|
|
463
462
|
|
|
464
463
|
interface MitraInstance {
|
|
465
464
|
readonly config: MitraConfig;
|
|
466
|
-
|
|
465
|
+
executeDataLoader(options: ExecuteDataLoaderOptions): Promise<ExecuteDataLoaderResponse>;
|
|
467
466
|
executeDbAction(options: ExecuteDbActionOptions): Promise<ExecuteDbActionResponse>;
|
|
468
467
|
setFileStatus(options: SetFileStatusOptions): Promise<SetFileStatusResponse>;
|
|
469
468
|
setVariable(options: SetVariableOptions): Promise<SetVariableResponse>;
|
|
@@ -587,10 +586,10 @@ declare function emailLoginMitra(options: EmailLoginOptions): Promise<LoginRespo
|
|
|
587
586
|
*/
|
|
588
587
|
|
|
589
588
|
/**
|
|
590
|
-
* POST /interactions/
|
|
591
|
-
* Executa
|
|
589
|
+
* POST /interactions/executeDataLoader
|
|
590
|
+
* Executa um Data Loader
|
|
592
591
|
*/
|
|
593
|
-
declare function
|
|
592
|
+
declare function executeDataLoaderMitra(options: ExecuteDataLoaderOptions): Promise<ExecuteDataLoaderResponse>;
|
|
594
593
|
/**
|
|
595
594
|
* POST /interactions/executeDbAction
|
|
596
595
|
* Executa uma DBAction (DML) cadastrada
|
|
@@ -720,4 +719,4 @@ declare function setProfileScreensMitra(options: SetProfileScreensOptions): Prom
|
|
|
720
719
|
*/
|
|
721
720
|
declare function setProfileServerFunctionsMitra(options: SetProfileServerFunctionsOptions): Promise<SetProfilePermissionResponse>;
|
|
722
721
|
|
|
723
|
-
export { type CallIntegrationOptions, type CallIntegrationResponse, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type RunActionOptions, type RunActionResponse, type
|
|
722
|
+
export { type CallIntegrationOptions, type CallIntegrationResponse, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDataLoaderOptions, type ExecuteDataLoaderResponse, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type RunActionOptions, type RunActionResponse, type SetFileStatusOptions, type SetFileStatusResponse, type SetProfileActionsOptions, type SetProfileDmlTablesOptions, type SetProfilePermissionResponse, type SetProfileScreensOptions, type SetProfileSelectTablesOptions, type SetProfileServerFunctionsOptions, type SetProfileUsersOptions, type SetVariableOptions, type SetVariableResponse, type StopServerFunctionExecutionOptions, type StopServerFunctionExecutionResponse, type UpdateProfileOptions, type UpdateProfileResponse, type UpdateRecordOptions, type UploadFileOptions, type UploadFileResponse, callIntegrationMitra, configureSdkMitra, createMitraInstance, createProfileMitra, createRecordMitra, createRecordsBatchMitra, deleteProfileMitra, deleteRecordMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getConfig, getProfileDetailsMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, patchRecordMitra, refreshTokenSilently, resolveProjectId, runActionMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, stopTracking, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePublicMitra };
|
package/dist/index.js
CHANGED
|
@@ -385,10 +385,10 @@ function createMitraInstance(initialConfig) {
|
|
|
385
385
|
_config = { ..._config, token };
|
|
386
386
|
},
|
|
387
387
|
// Services
|
|
388
|
-
async
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
388
|
+
async executeDataLoader(options) {
|
|
389
|
+
return request("POST", "/interactions/executeDataLoader", {
|
|
390
|
+
body: { projectId: resolveProjectId2(options.projectId), dataLoaderId: options.dataLoaderId }
|
|
391
|
+
});
|
|
392
392
|
},
|
|
393
393
|
async executeDbAction(options) {
|
|
394
394
|
const body = { projectId: resolveProjectId2(options.projectId), dbActionId: options.dbActionId };
|
|
@@ -837,15 +837,11 @@ var httpTenant = {
|
|
|
837
837
|
};
|
|
838
838
|
|
|
839
839
|
// src/services.ts
|
|
840
|
-
async function
|
|
841
|
-
|
|
840
|
+
async function executeDataLoaderMitra(options) {
|
|
841
|
+
return http.post("/interactions/executeDataLoader", {
|
|
842
842
|
projectId: resolveProjectId(options.projectId),
|
|
843
|
-
|
|
844
|
-
};
|
|
845
|
-
if (options.jdbcId !== void 0) {
|
|
846
|
-
body.jdbcId = options.jdbcId;
|
|
847
|
-
}
|
|
848
|
-
return http.post("/interactions/runQuery", body);
|
|
843
|
+
dataLoaderId: options.dataLoaderId
|
|
844
|
+
});
|
|
849
845
|
}
|
|
850
846
|
async function executeDbActionMitra(options) {
|
|
851
847
|
const body = {
|
|
@@ -1082,6 +1078,7 @@ exports.emailLoginMitra = emailLoginMitra;
|
|
|
1082
1078
|
exports.emailResendCodeMitra = emailResendCodeMitra;
|
|
1083
1079
|
exports.emailSignupMitra = emailSignupMitra;
|
|
1084
1080
|
exports.emailVerifyCodeMitra = emailVerifyCodeMitra;
|
|
1081
|
+
exports.executeDataLoaderMitra = executeDataLoaderMitra;
|
|
1085
1082
|
exports.executeDbActionMitra = executeDbActionMitra;
|
|
1086
1083
|
exports.executeServerFunctionAsyncMitra = executeServerFunctionAsyncMitra;
|
|
1087
1084
|
exports.executeServerFunctionMitra = executeServerFunctionMitra;
|
|
@@ -1101,7 +1098,6 @@ exports.patchRecordMitra = patchRecordMitra;
|
|
|
1101
1098
|
exports.refreshTokenSilently = refreshTokenSilently;
|
|
1102
1099
|
exports.resolveProjectId = resolveProjectId;
|
|
1103
1100
|
exports.runActionMitra = runActionMitra;
|
|
1104
|
-
exports.runQueryMitra = runQueryMitra;
|
|
1105
1101
|
exports.setFileStatusMitra = setFileStatusMitra;
|
|
1106
1102
|
exports.setProfileActionsMitra = setProfileActionsMitra;
|
|
1107
1103
|
exports.setProfileDmlTablesMitra = setProfileDmlTablesMitra;
|