@cristian-israel/giganet_lib_conecta 1.0.41 → 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 +34 -24
- package/dist/index.d.ts +34 -24
- package/dist/index.js +11 -2
- package/dist/index.mjs +11 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36551,17 +36551,17 @@ declare const schemas: {
|
|
|
36551
36551
|
status: "success" | "error" | "info" | "warning";
|
|
36552
36552
|
description: string;
|
|
36553
36553
|
action: string;
|
|
36554
|
-
task: mongoose.Types.ObjectId;
|
|
36555
36554
|
executionTimeMs?: number | null | undefined;
|
|
36556
36555
|
metadata?: any;
|
|
36556
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36557
36557
|
triggered_by?: string | null | undefined;
|
|
36558
36558
|
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
36559
36559
|
status: "success" | "error" | "info" | "warning";
|
|
36560
36560
|
description: string;
|
|
36561
36561
|
action: string;
|
|
36562
|
-
task: mongoose.Types.ObjectId;
|
|
36563
36562
|
executionTimeMs?: number | null | undefined;
|
|
36564
36563
|
metadata?: any;
|
|
36564
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36565
36565
|
triggered_by?: string | null | undefined;
|
|
36566
36566
|
} & mongoose.DefaultTimestampProps, {
|
|
36567
36567
|
id: string;
|
|
@@ -36571,9 +36571,9 @@ declare const schemas: {
|
|
|
36571
36571
|
status: "success" | "error" | "info" | "warning";
|
|
36572
36572
|
description: string;
|
|
36573
36573
|
action: string;
|
|
36574
|
-
task: mongoose.Types.ObjectId;
|
|
36575
36574
|
executionTimeMs?: number | null | undefined;
|
|
36576
36575
|
metadata?: any;
|
|
36576
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36577
36577
|
triggered_by?: string | null | undefined;
|
|
36578
36578
|
} & mongoose.DefaultTimestampProps & {
|
|
36579
36579
|
_id: mongoose.Types.ObjectId;
|
|
@@ -36585,9 +36585,9 @@ declare const schemas: {
|
|
|
36585
36585
|
status: "success" | "error" | "info" | "warning";
|
|
36586
36586
|
description: string;
|
|
36587
36587
|
action: string;
|
|
36588
|
-
task: mongoose.Types.ObjectId;
|
|
36589
36588
|
executionTimeMs?: number | null | undefined;
|
|
36590
36589
|
metadata?: any;
|
|
36590
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36591
36591
|
triggered_by?: string | null | undefined;
|
|
36592
36592
|
createdAt: NativeDate;
|
|
36593
36593
|
updatedAt: NativeDate;
|
|
@@ -36895,54 +36895,54 @@ declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any
|
|
|
36895
36895
|
__v: number;
|
|
36896
36896
|
}>;
|
|
36897
36897
|
|
|
36898
|
-
declare const
|
|
36898
|
+
declare const RoutinesLogerSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
36899
36899
|
timestamps: true;
|
|
36900
36900
|
}, {
|
|
36901
|
-
user: string;
|
|
36902
36901
|
status: "success" | "error" | "info" | "warning";
|
|
36903
|
-
ip: string;
|
|
36904
36902
|
description: string;
|
|
36905
36903
|
action: string;
|
|
36906
|
-
executionTimeMs
|
|
36904
|
+
executionTimeMs?: number | null | undefined;
|
|
36907
36905
|
metadata?: any;
|
|
36906
|
+
task?: Types.ObjectId | null | undefined;
|
|
36907
|
+
triggered_by?: string | null | undefined;
|
|
36908
36908
|
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
36909
|
-
user: string;
|
|
36910
36909
|
status: "success" | "error" | "info" | "warning";
|
|
36911
|
-
ip: string;
|
|
36912
36910
|
description: string;
|
|
36913
36911
|
action: string;
|
|
36914
|
-
executionTimeMs
|
|
36912
|
+
executionTimeMs?: number | null | undefined;
|
|
36915
36913
|
metadata?: any;
|
|
36914
|
+
task?: Types.ObjectId | null | undefined;
|
|
36915
|
+
triggered_by?: string | null | undefined;
|
|
36916
36916
|
} & mongoose.DefaultTimestampProps, {
|
|
36917
36917
|
id: string;
|
|
36918
36918
|
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
36919
36919
|
timestamps: true;
|
|
36920
36920
|
}> & Omit<{
|
|
36921
|
-
user: string;
|
|
36922
36921
|
status: "success" | "error" | "info" | "warning";
|
|
36923
|
-
ip: string;
|
|
36924
36922
|
description: string;
|
|
36925
36923
|
action: string;
|
|
36926
|
-
executionTimeMs
|
|
36924
|
+
executionTimeMs?: number | null | undefined;
|
|
36927
36925
|
metadata?: any;
|
|
36926
|
+
task?: Types.ObjectId | null | undefined;
|
|
36927
|
+
triggered_by?: string | null | undefined;
|
|
36928
36928
|
} & mongoose.DefaultTimestampProps & {
|
|
36929
|
-
_id:
|
|
36929
|
+
_id: Types.ObjectId;
|
|
36930
36930
|
} & {
|
|
36931
36931
|
__v: number;
|
|
36932
36932
|
}, "id"> & {
|
|
36933
36933
|
id: string;
|
|
36934
36934
|
}, unknown, {
|
|
36935
|
-
user: string;
|
|
36936
36935
|
status: "success" | "error" | "info" | "warning";
|
|
36937
|
-
ip: string;
|
|
36938
36936
|
description: string;
|
|
36939
36937
|
action: string;
|
|
36940
|
-
executionTimeMs
|
|
36938
|
+
executionTimeMs?: number | null | undefined;
|
|
36941
36939
|
metadata?: any;
|
|
36940
|
+
task?: Types.ObjectId | null | undefined;
|
|
36941
|
+
triggered_by?: string | null | undefined;
|
|
36942
36942
|
createdAt: NativeDate;
|
|
36943
36943
|
updatedAt: NativeDate;
|
|
36944
36944
|
} & {
|
|
36945
|
-
_id:
|
|
36945
|
+
_id: Types.ObjectId;
|
|
36946
36946
|
} & {
|
|
36947
36947
|
__v: number;
|
|
36948
36948
|
}>;
|
|
@@ -36964,12 +36964,16 @@ interface RoutinesTasksToggleActiveInput {
|
|
|
36964
36964
|
triggered_by: string;
|
|
36965
36965
|
is_active: boolean;
|
|
36966
36966
|
}
|
|
36967
|
-
interface
|
|
36967
|
+
interface RoutinesTasksInput {
|
|
36968
36968
|
triggered_by: string;
|
|
36969
36969
|
}
|
|
36970
|
+
interface RoutinesTasksSyncJobsResponse {
|
|
36971
|
+
tasksWithoutJob: string[];
|
|
36972
|
+
orphanJobsRemoved: string[];
|
|
36973
|
+
}
|
|
36970
36974
|
interface RoutinesTasksResponse extends HydratedDocument<InferSchemaType<typeof RoutinesTasksSchema>> {
|
|
36971
36975
|
}
|
|
36972
|
-
interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof
|
|
36976
|
+
interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof RoutinesLogerSchema>> {
|
|
36973
36977
|
}
|
|
36974
36978
|
|
|
36975
36979
|
declare class RoutinesTasksResource {
|
|
@@ -37010,7 +37014,12 @@ declare class RoutinesTasksResource {
|
|
|
37010
37014
|
* POST /v1/tasks/:_id/execute
|
|
37011
37015
|
* Dispara a execução manual de uma task.
|
|
37012
37016
|
*/
|
|
37013
|
-
execute(_id: Types.ObjectId, data:
|
|
37017
|
+
execute(_id: Types.ObjectId, data: RoutinesTasksInput): Promise<RoutinesTasksResponse>;
|
|
37018
|
+
/**
|
|
37019
|
+
* POST /v1/tasks/sync-jobs
|
|
37020
|
+
* Sincroniza tasks do banco com os jobs registrados em memória.
|
|
37021
|
+
*/
|
|
37022
|
+
syncJobs(data: RoutinesTasksInput): Promise<RoutinesTasksSyncJobsResponse>;
|
|
37014
37023
|
}
|
|
37015
37024
|
|
|
37016
37025
|
declare class RoutinesAPIClient extends APIClient {
|
|
@@ -37019,13 +37028,14 @@ declare class RoutinesAPIClient extends APIClient {
|
|
|
37019
37028
|
}
|
|
37020
37029
|
|
|
37021
37030
|
type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
|
|
37022
|
-
type
|
|
37031
|
+
type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
|
|
37023
37032
|
type routinesApi_types_RoutinesTasksLogResponse = RoutinesTasksLogResponse;
|
|
37024
37033
|
type routinesApi_types_RoutinesTasksResponse = RoutinesTasksResponse;
|
|
37034
|
+
type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
|
|
37025
37035
|
type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
|
|
37026
37036
|
type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
|
|
37027
37037
|
declare namespace routinesApi_types {
|
|
37028
|
-
export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput,
|
|
37038
|
+
export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksLogResponse as RoutinesTasksLogResponse, routinesApi_types_RoutinesTasksResponse as RoutinesTasksResponse, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
|
|
37029
37039
|
}
|
|
37030
37040
|
|
|
37031
37041
|
export { IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, logger, printSignature };
|
package/dist/index.d.ts
CHANGED
|
@@ -36551,17 +36551,17 @@ declare const schemas: {
|
|
|
36551
36551
|
status: "success" | "error" | "info" | "warning";
|
|
36552
36552
|
description: string;
|
|
36553
36553
|
action: string;
|
|
36554
|
-
task: mongoose.Types.ObjectId;
|
|
36555
36554
|
executionTimeMs?: number | null | undefined;
|
|
36556
36555
|
metadata?: any;
|
|
36556
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36557
36557
|
triggered_by?: string | null | undefined;
|
|
36558
36558
|
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
36559
36559
|
status: "success" | "error" | "info" | "warning";
|
|
36560
36560
|
description: string;
|
|
36561
36561
|
action: string;
|
|
36562
|
-
task: mongoose.Types.ObjectId;
|
|
36563
36562
|
executionTimeMs?: number | null | undefined;
|
|
36564
36563
|
metadata?: any;
|
|
36564
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36565
36565
|
triggered_by?: string | null | undefined;
|
|
36566
36566
|
} & mongoose.DefaultTimestampProps, {
|
|
36567
36567
|
id: string;
|
|
@@ -36571,9 +36571,9 @@ declare const schemas: {
|
|
|
36571
36571
|
status: "success" | "error" | "info" | "warning";
|
|
36572
36572
|
description: string;
|
|
36573
36573
|
action: string;
|
|
36574
|
-
task: mongoose.Types.ObjectId;
|
|
36575
36574
|
executionTimeMs?: number | null | undefined;
|
|
36576
36575
|
metadata?: any;
|
|
36576
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36577
36577
|
triggered_by?: string | null | undefined;
|
|
36578
36578
|
} & mongoose.DefaultTimestampProps & {
|
|
36579
36579
|
_id: mongoose.Types.ObjectId;
|
|
@@ -36585,9 +36585,9 @@ declare const schemas: {
|
|
|
36585
36585
|
status: "success" | "error" | "info" | "warning";
|
|
36586
36586
|
description: string;
|
|
36587
36587
|
action: string;
|
|
36588
|
-
task: mongoose.Types.ObjectId;
|
|
36589
36588
|
executionTimeMs?: number | null | undefined;
|
|
36590
36589
|
metadata?: any;
|
|
36590
|
+
task?: mongoose.Types.ObjectId | null | undefined;
|
|
36591
36591
|
triggered_by?: string | null | undefined;
|
|
36592
36592
|
createdAt: NativeDate;
|
|
36593
36593
|
updatedAt: NativeDate;
|
|
@@ -36895,54 +36895,54 @@ declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any
|
|
|
36895
36895
|
__v: number;
|
|
36896
36896
|
}>;
|
|
36897
36897
|
|
|
36898
|
-
declare const
|
|
36898
|
+
declare const RoutinesLogerSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
36899
36899
|
timestamps: true;
|
|
36900
36900
|
}, {
|
|
36901
|
-
user: string;
|
|
36902
36901
|
status: "success" | "error" | "info" | "warning";
|
|
36903
|
-
ip: string;
|
|
36904
36902
|
description: string;
|
|
36905
36903
|
action: string;
|
|
36906
|
-
executionTimeMs
|
|
36904
|
+
executionTimeMs?: number | null | undefined;
|
|
36907
36905
|
metadata?: any;
|
|
36906
|
+
task?: Types.ObjectId | null | undefined;
|
|
36907
|
+
triggered_by?: string | null | undefined;
|
|
36908
36908
|
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
36909
|
-
user: string;
|
|
36910
36909
|
status: "success" | "error" | "info" | "warning";
|
|
36911
|
-
ip: string;
|
|
36912
36910
|
description: string;
|
|
36913
36911
|
action: string;
|
|
36914
|
-
executionTimeMs
|
|
36912
|
+
executionTimeMs?: number | null | undefined;
|
|
36915
36913
|
metadata?: any;
|
|
36914
|
+
task?: Types.ObjectId | null | undefined;
|
|
36915
|
+
triggered_by?: string | null | undefined;
|
|
36916
36916
|
} & mongoose.DefaultTimestampProps, {
|
|
36917
36917
|
id: string;
|
|
36918
36918
|
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
36919
36919
|
timestamps: true;
|
|
36920
36920
|
}> & Omit<{
|
|
36921
|
-
user: string;
|
|
36922
36921
|
status: "success" | "error" | "info" | "warning";
|
|
36923
|
-
ip: string;
|
|
36924
36922
|
description: string;
|
|
36925
36923
|
action: string;
|
|
36926
|
-
executionTimeMs
|
|
36924
|
+
executionTimeMs?: number | null | undefined;
|
|
36927
36925
|
metadata?: any;
|
|
36926
|
+
task?: Types.ObjectId | null | undefined;
|
|
36927
|
+
triggered_by?: string | null | undefined;
|
|
36928
36928
|
} & mongoose.DefaultTimestampProps & {
|
|
36929
|
-
_id:
|
|
36929
|
+
_id: Types.ObjectId;
|
|
36930
36930
|
} & {
|
|
36931
36931
|
__v: number;
|
|
36932
36932
|
}, "id"> & {
|
|
36933
36933
|
id: string;
|
|
36934
36934
|
}, unknown, {
|
|
36935
|
-
user: string;
|
|
36936
36935
|
status: "success" | "error" | "info" | "warning";
|
|
36937
|
-
ip: string;
|
|
36938
36936
|
description: string;
|
|
36939
36937
|
action: string;
|
|
36940
|
-
executionTimeMs
|
|
36938
|
+
executionTimeMs?: number | null | undefined;
|
|
36941
36939
|
metadata?: any;
|
|
36940
|
+
task?: Types.ObjectId | null | undefined;
|
|
36941
|
+
triggered_by?: string | null | undefined;
|
|
36942
36942
|
createdAt: NativeDate;
|
|
36943
36943
|
updatedAt: NativeDate;
|
|
36944
36944
|
} & {
|
|
36945
|
-
_id:
|
|
36945
|
+
_id: Types.ObjectId;
|
|
36946
36946
|
} & {
|
|
36947
36947
|
__v: number;
|
|
36948
36948
|
}>;
|
|
@@ -36964,12 +36964,16 @@ interface RoutinesTasksToggleActiveInput {
|
|
|
36964
36964
|
triggered_by: string;
|
|
36965
36965
|
is_active: boolean;
|
|
36966
36966
|
}
|
|
36967
|
-
interface
|
|
36967
|
+
interface RoutinesTasksInput {
|
|
36968
36968
|
triggered_by: string;
|
|
36969
36969
|
}
|
|
36970
|
+
interface RoutinesTasksSyncJobsResponse {
|
|
36971
|
+
tasksWithoutJob: string[];
|
|
36972
|
+
orphanJobsRemoved: string[];
|
|
36973
|
+
}
|
|
36970
36974
|
interface RoutinesTasksResponse extends HydratedDocument<InferSchemaType<typeof RoutinesTasksSchema>> {
|
|
36971
36975
|
}
|
|
36972
|
-
interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof
|
|
36976
|
+
interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof RoutinesLogerSchema>> {
|
|
36973
36977
|
}
|
|
36974
36978
|
|
|
36975
36979
|
declare class RoutinesTasksResource {
|
|
@@ -37010,7 +37014,12 @@ declare class RoutinesTasksResource {
|
|
|
37010
37014
|
* POST /v1/tasks/:_id/execute
|
|
37011
37015
|
* Dispara a execução manual de uma task.
|
|
37012
37016
|
*/
|
|
37013
|
-
execute(_id: Types.ObjectId, data:
|
|
37017
|
+
execute(_id: Types.ObjectId, data: RoutinesTasksInput): Promise<RoutinesTasksResponse>;
|
|
37018
|
+
/**
|
|
37019
|
+
* POST /v1/tasks/sync-jobs
|
|
37020
|
+
* Sincroniza tasks do banco com os jobs registrados em memória.
|
|
37021
|
+
*/
|
|
37022
|
+
syncJobs(data: RoutinesTasksInput): Promise<RoutinesTasksSyncJobsResponse>;
|
|
37014
37023
|
}
|
|
37015
37024
|
|
|
37016
37025
|
declare class RoutinesAPIClient extends APIClient {
|
|
@@ -37019,13 +37028,14 @@ declare class RoutinesAPIClient extends APIClient {
|
|
|
37019
37028
|
}
|
|
37020
37029
|
|
|
37021
37030
|
type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
|
|
37022
|
-
type
|
|
37031
|
+
type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
|
|
37023
37032
|
type routinesApi_types_RoutinesTasksLogResponse = RoutinesTasksLogResponse;
|
|
37024
37033
|
type routinesApi_types_RoutinesTasksResponse = RoutinesTasksResponse;
|
|
37034
|
+
type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
|
|
37025
37035
|
type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
|
|
37026
37036
|
type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
|
|
37027
37037
|
declare namespace routinesApi_types {
|
|
37028
|
-
export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput,
|
|
37038
|
+
export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksLogResponse as RoutinesTasksLogResponse, routinesApi_types_RoutinesTasksResponse as RoutinesTasksResponse, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
|
|
37029
37039
|
}
|
|
37030
37040
|
|
|
37031
37041
|
export { IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, logger, printSignature };
|
package/dist/index.js
CHANGED
|
@@ -91008,8 +91008,7 @@ var RoutinesLogerSchema = new import_mongoose10.Schema(
|
|
|
91008
91008
|
{
|
|
91009
91009
|
task: {
|
|
91010
91010
|
type: import_mongoose10.Types.ObjectId,
|
|
91011
|
-
ref: "Task"
|
|
91012
|
-
required: true
|
|
91011
|
+
ref: "Task"
|
|
91013
91012
|
},
|
|
91014
91013
|
action: { type: String, required: true },
|
|
91015
91014
|
status: {
|
|
@@ -91365,6 +91364,16 @@ var RoutinesTasksResource = class {
|
|
|
91365
91364
|
data
|
|
91366
91365
|
);
|
|
91367
91366
|
}
|
|
91367
|
+
/**
|
|
91368
|
+
* POST /v1/tasks/sync-jobs
|
|
91369
|
+
* Sincroniza tasks do banco com os jobs registrados em memória.
|
|
91370
|
+
*/
|
|
91371
|
+
async syncJobs(data) {
|
|
91372
|
+
return this.client.post(
|
|
91373
|
+
`${this.endpoint}/sync-jobs`,
|
|
91374
|
+
data
|
|
91375
|
+
);
|
|
91376
|
+
}
|
|
91368
91377
|
};
|
|
91369
91378
|
|
|
91370
91379
|
// src/apis/clients/routines/routines-api.client.ts
|
package/dist/index.mjs
CHANGED
|
@@ -90963,8 +90963,7 @@ var RoutinesLogerSchema = new Schema9(
|
|
|
90963
90963
|
{
|
|
90964
90964
|
task: {
|
|
90965
90965
|
type: Types2.ObjectId,
|
|
90966
|
-
ref: "Task"
|
|
90967
|
-
required: true
|
|
90966
|
+
ref: "Task"
|
|
90968
90967
|
},
|
|
90969
90968
|
action: { type: String, required: true },
|
|
90970
90969
|
status: {
|
|
@@ -91320,6 +91319,16 @@ var RoutinesTasksResource = class {
|
|
|
91320
91319
|
data
|
|
91321
91320
|
);
|
|
91322
91321
|
}
|
|
91322
|
+
/**
|
|
91323
|
+
* POST /v1/tasks/sync-jobs
|
|
91324
|
+
* Sincroniza tasks do banco com os jobs registrados em memória.
|
|
91325
|
+
*/
|
|
91326
|
+
async syncJobs(data) {
|
|
91327
|
+
return this.client.post(
|
|
91328
|
+
`${this.endpoint}/sync-jobs`,
|
|
91329
|
+
data
|
|
91330
|
+
);
|
|
91331
|
+
}
|
|
91323
91332
|
};
|
|
91324
91333
|
|
|
91325
91334
|
// src/apis/clients/routines/routines-api.client.ts
|