@kanda-libs/ks-schema 1.0.151 → 1.0.152

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-schema",
3
- "version": "1.0.151",
3
+ "version": "1.0.152",
4
4
  "description": "Kanda Service OpenAPI Schema",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.yaml CHANGED
@@ -1141,6 +1141,42 @@ paths:
1141
1141
  schema:
1142
1142
  $ref: "#/components/schemas/Error"
1143
1143
 
1144
+ /api/job/{id}/override:
1145
+ post:
1146
+ operationId: overrideJob
1147
+ summary: >
1148
+ kanda staff to override a job status and trigger comms to be sent (if applicable),
1149
+ only allowed when job is applied for finance or financed.
1150
+ tags:
1151
+ - Job
1152
+ parameters:
1153
+ - name: id
1154
+ in: path
1155
+ description: job id
1156
+ required: true
1157
+ schema:
1158
+ type: string
1159
+ minLength: 1
1160
+ requestBody:
1161
+ description: job override to be applied to job
1162
+ content:
1163
+ application/json:
1164
+ schema:
1165
+ $ref: "#/components/schemas/JobOverride"
1166
+ responses:
1167
+ 200:
1168
+ description: got existing job with finance status set to paid
1169
+ content:
1170
+ application/json:
1171
+ schema:
1172
+ $ref: "#/components/schemas/Job"
1173
+ default:
1174
+ description: unexpected error
1175
+ content:
1176
+ application/json:
1177
+ schema:
1178
+ $ref: "#/components/schemas/Error"
1179
+
1144
1180
  /api/job/{id}/companyInfo:
1145
1181
  post:
1146
1182
  operationId: jobCompanyInfo
@@ -3943,6 +3979,21 @@ components:
3943
3979
  title: source
3944
3980
  readOnly: true
3945
3981
 
3982
+ JobOverride:
3983
+ type: object
3984
+ title: job override
3985
+ required:
3986
+ - action
3987
+ properties:
3988
+ action:
3989
+ type: string
3990
+ title: action
3991
+ enum:
3992
+ - "mark_job_as_pending"
3993
+ - "mark_job_as_accepted"
3994
+ - "mark_job_as_declined"
3995
+ - "mark_job_as_cancelled"
3996
+
3946
3997
  Error:
3947
3998
  type: object
3948
3999
  required: