@punks/backend-entity-manager 0.0.311 → 0.0.312

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.
@@ -4,6 +4,7 @@ export interface JobDispatchCommandInput {
4
4
  schedule?: JobSchedule<unknown>;
5
5
  runType: JobRunType;
6
6
  payload?: unknown;
7
+ commandPlaceholders?: Record<string, string>;
7
8
  }
8
9
  export declare class JobDispatchCommand {
9
10
  readonly input: JobDispatchCommandInput;
@@ -2,4 +2,5 @@ export type JobTriggerInput = {
2
2
  jobUid: string;
3
3
  scheduleUid?: string;
4
4
  payload?: any;
5
+ commandPlaceholders?: Record<string, string>;
5
6
  };
package/dist/esm/index.js CHANGED
@@ -33863,6 +33863,7 @@ let JobsService = class JobsService {
33863
33863
  schedule,
33864
33864
  runType: JobRunType.OnDemand,
33865
33865
  payload: input.payload,
33866
+ commandPlaceholders: input.commandPlaceholders,
33866
33867
  }));
33867
33868
  };
33868
33869
  this.updateJob = async (input) => {
@@ -33963,7 +33964,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
33963
33964
  return result.result;
33964
33965
  }
33965
33966
  async dispatchJob(command) {
33966
- const { input: { job, schedule, runType, payload }, } = command;
33967
+ const { input: { job, schedule, runType, payload, commandPlaceholders }, } = command;
33967
33968
  const instanceId = newUuid$1();
33968
33969
  try {
33969
33970
  this.logger.info(`JOB DISPATCH -> dispatching started job ${job.uid} -> ${instanceId}`);
@@ -33978,6 +33979,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
33978
33979
  schedule,
33979
33980
  instanceId,
33980
33981
  payload,
33982
+ commandPlaceholders,
33981
33983
  });
33982
33984
  await this.instances.updateInstance(instanceId, {
33983
33985
  status: JobStatus.Ready,