@kanda-libs/ks-schema 1.0.151 → 1.0.153

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.
Files changed (38) hide show
  1. package/dist/components/schemas/Entity.d.ts +1 -1
  2. package/dist/components/schemas/Event.d.ts +1 -1
  3. package/dist/components/schemas/Job.d.ts +1 -1
  4. package/dist/components/schemas/JobOverride.d.ts +8 -0
  5. package/dist/components/schemas/JobOverride.d.ts.map +1 -0
  6. package/dist/components/schemas/JobOverride.js +35 -0
  7. package/dist/components/schemas/SatNote.d.ts +2 -2
  8. package/dist/components/schemas/SatNote.d.ts.map +1 -1
  9. package/dist/components/schemas/SatNote.js +1 -1
  10. package/dist/components/schemas/index.d.ts +1 -0
  11. package/dist/components/schemas/index.d.ts.map +1 -1
  12. package/dist/components/schemas/index.js +1 -0
  13. package/dist/operations/applyJob.d.ts +1 -1
  14. package/dist/operations/approveJobSatNote.d.ts +1 -1
  15. package/dist/operations/archiveJob.d.ts +1 -1
  16. package/dist/operations/completeJob.d.ts +1 -1
  17. package/dist/operations/deleteJob.d.ts +1 -1
  18. package/dist/operations/getJob.d.ts +1 -1
  19. package/dist/operations/getJobs.d.ts +1 -1
  20. package/dist/operations/index.d.ts +226 -14
  21. package/dist/operations/index.d.ts.map +1 -1
  22. package/dist/operations/index.js +4 -0
  23. package/dist/operations/overrideJob.d.ts +219 -0
  24. package/dist/operations/overrideJob.d.ts.map +1 -0
  25. package/dist/operations/overrideJob.js +50 -0
  26. package/dist/operations/payJob.d.ts +1 -1
  27. package/dist/operations/payoutJob.d.ts +1 -1
  28. package/dist/operations/postJob.d.ts +1 -1
  29. package/dist/operations/putJob.d.ts +1 -1
  30. package/dist/operations/sendJob.d.ts +1 -1
  31. package/dist/operations/signJobSateNote.d.ts +1 -1
  32. package/dist/operations/viewJobSatNote.d.ts +1 -1
  33. package/dist/schema.json +1 -1
  34. package/dist/widget/index.d.ts +6976 -6968
  35. package/dist/widget/index.d.ts.map +1 -1
  36. package/dist/widget/index.js +11204 -11187
  37. package/package.json +1 -1
  38. package/schema.yaml +52 -1
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.153",
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
@@ -3050,7 +3086,7 @@ components:
3050
3086
  title: Were you told about any potential feed in tariffs, savings, returns or Renewable Heat incentive and do you understand that the actual amounts you receive, and your estimated returns/savings were based on varying factors including you own energy consumption and any returns/savings/payback periods are not linked to your repayments on this agreement.
3051
3087
  enum:
3052
3088
  - "Yes I understand"
3053
- - "No I don't understand"
3089
+ - "No I do not understand"
3054
3090
  signature:
3055
3091
  type: object
3056
3092
  title: sat note customer signature
@@ -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: