mitra-interactions-sdk 1.0.42 → 1.0.43
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 +1 -22
- package/dist/index.d.ts +1 -22
- package/dist/index.js +0 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -65,21 +65,6 @@ interface EmailResendCodeOptions {
|
|
|
65
65
|
/** Email do usuário */
|
|
66
66
|
email: string;
|
|
67
67
|
}
|
|
68
|
-
interface RunQueryOptions {
|
|
69
|
-
/** ID do projeto (opcional se já configurado via configureSdkMitra) */
|
|
70
|
-
projectId?: number;
|
|
71
|
-
/** Query SQL (apenas SELECT) */
|
|
72
|
-
sql: string;
|
|
73
|
-
/** ID da conexão JDBC (opcional, usa autoConnect se não informado) */
|
|
74
|
-
jdbcId?: number;
|
|
75
|
-
}
|
|
76
|
-
interface RunQueryResponse {
|
|
77
|
-
status: string;
|
|
78
|
-
result: {
|
|
79
|
-
rows: Record<string, any>[];
|
|
80
|
-
rowCount: number;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
68
|
interface ExecuteDbActionOptions {
|
|
84
69
|
/** ID do projeto (opcional se já configurado via configureSdkMitra) */
|
|
85
70
|
projectId?: number;
|
|
@@ -463,7 +448,6 @@ interface SetProfilePermissionResponse {
|
|
|
463
448
|
|
|
464
449
|
interface MitraInstance {
|
|
465
450
|
readonly config: MitraConfig;
|
|
466
|
-
runQuery(options: RunQueryOptions): Promise<RunQueryResponse>;
|
|
467
451
|
executeDbAction(options: ExecuteDbActionOptions): Promise<ExecuteDbActionResponse>;
|
|
468
452
|
setFileStatus(options: SetFileStatusOptions): Promise<SetFileStatusResponse>;
|
|
469
453
|
setVariable(options: SetVariableOptions): Promise<SetVariableResponse>;
|
|
@@ -586,11 +570,6 @@ declare function emailLoginMitra(options: EmailLoginOptions): Promise<LoginRespo
|
|
|
586
570
|
* Mitra Interactions SDK - Services
|
|
587
571
|
*/
|
|
588
572
|
|
|
589
|
-
/**
|
|
590
|
-
* POST /interactions/runQuery
|
|
591
|
-
* Executa query SELECT em um projeto
|
|
592
|
-
*/
|
|
593
|
-
declare function runQueryMitra(options: RunQueryOptions): Promise<RunQueryResponse>;
|
|
594
573
|
/**
|
|
595
574
|
* POST /interactions/executeDbAction
|
|
596
575
|
* Executa uma DBAction (DML) cadastrada
|
|
@@ -720,4 +699,4 @@ declare function setProfileScreensMitra(options: SetProfileScreensOptions): Prom
|
|
|
720
699
|
*/
|
|
721
700
|
declare function setProfileServerFunctionsMitra(options: SetProfileServerFunctionsOptions): Promise<SetProfilePermissionResponse>;
|
|
722
701
|
|
|
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
|
|
702
|
+
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 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, 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,21 +65,6 @@ interface EmailResendCodeOptions {
|
|
|
65
65
|
/** Email do usuário */
|
|
66
66
|
email: string;
|
|
67
67
|
}
|
|
68
|
-
interface RunQueryOptions {
|
|
69
|
-
/** ID do projeto (opcional se já configurado via configureSdkMitra) */
|
|
70
|
-
projectId?: number;
|
|
71
|
-
/** Query SQL (apenas SELECT) */
|
|
72
|
-
sql: string;
|
|
73
|
-
/** ID da conexão JDBC (opcional, usa autoConnect se não informado) */
|
|
74
|
-
jdbcId?: number;
|
|
75
|
-
}
|
|
76
|
-
interface RunQueryResponse {
|
|
77
|
-
status: string;
|
|
78
|
-
result: {
|
|
79
|
-
rows: Record<string, any>[];
|
|
80
|
-
rowCount: number;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
68
|
interface ExecuteDbActionOptions {
|
|
84
69
|
/** ID do projeto (opcional se já configurado via configureSdkMitra) */
|
|
85
70
|
projectId?: number;
|
|
@@ -463,7 +448,6 @@ interface SetProfilePermissionResponse {
|
|
|
463
448
|
|
|
464
449
|
interface MitraInstance {
|
|
465
450
|
readonly config: MitraConfig;
|
|
466
|
-
runQuery(options: RunQueryOptions): Promise<RunQueryResponse>;
|
|
467
451
|
executeDbAction(options: ExecuteDbActionOptions): Promise<ExecuteDbActionResponse>;
|
|
468
452
|
setFileStatus(options: SetFileStatusOptions): Promise<SetFileStatusResponse>;
|
|
469
453
|
setVariable(options: SetVariableOptions): Promise<SetVariableResponse>;
|
|
@@ -586,11 +570,6 @@ declare function emailLoginMitra(options: EmailLoginOptions): Promise<LoginRespo
|
|
|
586
570
|
* Mitra Interactions SDK - Services
|
|
587
571
|
*/
|
|
588
572
|
|
|
589
|
-
/**
|
|
590
|
-
* POST /interactions/runQuery
|
|
591
|
-
* Executa query SELECT em um projeto
|
|
592
|
-
*/
|
|
593
|
-
declare function runQueryMitra(options: RunQueryOptions): Promise<RunQueryResponse>;
|
|
594
573
|
/**
|
|
595
574
|
* POST /interactions/executeDbAction
|
|
596
575
|
* Executa uma DBAction (DML) cadastrada
|
|
@@ -720,4 +699,4 @@ declare function setProfileScreensMitra(options: SetProfileScreensOptions): Prom
|
|
|
720
699
|
*/
|
|
721
700
|
declare function setProfileServerFunctionsMitra(options: SetProfileServerFunctionsOptions): Promise<SetProfilePermissionResponse>;
|
|
722
701
|
|
|
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
|
|
702
|
+
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 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, 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,11 +385,6 @@ function createMitraInstance(initialConfig) {
|
|
|
385
385
|
_config = { ..._config, token };
|
|
386
386
|
},
|
|
387
387
|
// Services
|
|
388
|
-
async runQuery(options) {
|
|
389
|
-
const body = { projectId: resolveProjectId2(options.projectId), sql: options.sql };
|
|
390
|
-
if (options.jdbcId !== void 0) body.jdbcId = options.jdbcId;
|
|
391
|
-
return request("POST", "/interactions/runQuery", { body });
|
|
392
|
-
},
|
|
393
388
|
async executeDbAction(options) {
|
|
394
389
|
const body = { projectId: resolveProjectId2(options.projectId), dbActionId: options.dbActionId };
|
|
395
390
|
if (options.input !== void 0) body.input = options.input;
|
|
@@ -837,16 +832,6 @@ var httpTenant = {
|
|
|
837
832
|
};
|
|
838
833
|
|
|
839
834
|
// src/services.ts
|
|
840
|
-
async function runQueryMitra(options) {
|
|
841
|
-
const body = {
|
|
842
|
-
projectId: resolveProjectId(options.projectId),
|
|
843
|
-
sql: options.sql
|
|
844
|
-
};
|
|
845
|
-
if (options.jdbcId !== void 0) {
|
|
846
|
-
body.jdbcId = options.jdbcId;
|
|
847
|
-
}
|
|
848
|
-
return http.post("/interactions/runQuery", body);
|
|
849
|
-
}
|
|
850
835
|
async function executeDbActionMitra(options) {
|
|
851
836
|
const body = {
|
|
852
837
|
projectId: resolveProjectId(options.projectId),
|
|
@@ -1101,7 +1086,6 @@ exports.patchRecordMitra = patchRecordMitra;
|
|
|
1101
1086
|
exports.refreshTokenSilently = refreshTokenSilently;
|
|
1102
1087
|
exports.resolveProjectId = resolveProjectId;
|
|
1103
1088
|
exports.runActionMitra = runActionMitra;
|
|
1104
|
-
exports.runQueryMitra = runQueryMitra;
|
|
1105
1089
|
exports.setFileStatusMitra = setFileStatusMitra;
|
|
1106
1090
|
exports.setProfileActionsMitra = setProfileActionsMitra;
|
|
1107
1091
|
exports.setProfileDmlTablesMitra = setProfileDmlTablesMitra;
|