@mapcreator/api 5.0.0-alpha.101 → 5.0.0-alpha.102

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.
@@ -70,7 +70,6 @@ export async function createJobRevision(
70
70
  layers: number[],
71
71
  output: FileFormat,
72
72
  jobObject: Record<string, unknown>,
73
- skipValidation?: boolean
74
73
  ): Promise<JobRevision> {
75
74
  const pathname = `/v1/jobs/${jobId}/revisions`;
76
75
  const path = `${pathname}?${deletedNoneParam}`;
@@ -80,7 +79,6 @@ export async function createJobRevision(
80
79
  object: JSON.stringify(jobObject),
81
80
  output,
82
81
  layers,
83
- ...skipValidation && { skip_validation: skipValidation },
84
82
  };
85
83
  const options = { revivers: jobRevisionRevivers };
86
84
 
@@ -272,10 +270,9 @@ export async function getJobRevisionOutput(jobId: number): Promise<JobRevisionOu
272
270
  }
273
271
  }
274
272
 
275
- async function createJobRevisionBuild(jobId: number, skipValidation?: boolean): Promise<string> {
273
+ async function createJobRevisionBuild(jobId: number): Promise<string> {
276
274
  const pathname = `/v1/jobs/${jobId}/revisions/${lastJobRevision}/build`;
277
275
  const path = `${pathname}?${deletedNoneParam}`;
278
- const body = skipValidation ? { skip_validation: skipValidation } : null;
279
276
 
280
- return request<ApiCommon, string>(path, body, null, { method: 'POST' });
277
+ return request<ApiCommon, string>(path, null, null, { method: 'POST' });
281
278
  }
@@ -75,10 +75,11 @@ export async function getOrganisation(
75
75
  export async function listOrganisationJobs(
76
76
  organisationId: number | typeof myOrganisations,
77
77
  title: string,
78
+ shared: boolean,
78
79
  page: number,
79
80
  options?: Record<string, unknown>,
80
81
  ): Promise<JobSearchResult> {
81
- const search = { ...options };
82
+ const search = { ...options, ...{ hidePrivate: true, shared } };
82
83
 
83
84
  return listJobs(`/v1/organisations/${organisationId}/jobs`, title, page, search);
84
85
  }