@kanda-libs/ks-schema 1.0.813 → 1.0.815

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 (91) hide show
  1. package/dist/components/schemas/CheckoutStep.d.ts +4 -0
  2. package/dist/components/schemas/CheckoutStep.d.ts.map +1 -0
  3. package/dist/components/schemas/CheckoutStep.js +38 -0
  4. package/dist/components/schemas/CustomerOptions.d.ts +2 -0
  5. package/dist/components/schemas/CustomerOptions.d.ts.map +1 -1
  6. package/dist/components/schemas/CustomerOptions.js +1 -0
  7. package/dist/components/schemas/InfoEntity.d.ts +13 -0
  8. package/dist/components/schemas/InfoEntity.d.ts.map +1 -1
  9. package/dist/components/schemas/InfoSearch.d.ts +13 -0
  10. package/dist/components/schemas/InfoSearch.d.ts.map +1 -1
  11. package/dist/components/schemas/Job.d.ts +16 -0
  12. package/dist/components/schemas/Job.d.ts.map +1 -1
  13. package/dist/components/schemas/Job.js +3 -0
  14. package/dist/components/schemas/JobOverride.d.ts +1 -0
  15. package/dist/components/schemas/JobOverride.d.ts.map +1 -1
  16. package/dist/components/schemas/JobStep.d.ts +14 -0
  17. package/dist/components/schemas/JobStep.d.ts.map +1 -0
  18. package/dist/components/schemas/JobStep.js +38 -0
  19. package/dist/components/schemas/SearchHits.d.ts +13 -0
  20. package/dist/components/schemas/SearchHits.d.ts.map +1 -1
  21. package/dist/components/schemas/index.d.ts +2 -0
  22. package/dist/components/schemas/index.d.ts.map +1 -1
  23. package/dist/components/schemas/index.js +2 -0
  24. package/dist/operations/applyJob.d.ts +13 -0
  25. package/dist/operations/applyJob.d.ts.map +1 -1
  26. package/dist/operations/approveJobSatNote.d.ts +13 -0
  27. package/dist/operations/approveJobSatNote.d.ts.map +1 -1
  28. package/dist/operations/archiveJob.d.ts +13 -0
  29. package/dist/operations/archiveJob.d.ts.map +1 -1
  30. package/dist/operations/completeJob.d.ts +13 -0
  31. package/dist/operations/completeJob.d.ts.map +1 -1
  32. package/dist/operations/delayJobSatNote.d.ts +13 -0
  33. package/dist/operations/delayJobSatNote.d.ts.map +1 -1
  34. package/dist/operations/deleteJob.d.ts +13 -0
  35. package/dist/operations/deleteJob.d.ts.map +1 -1
  36. package/dist/operations/getInfoEntity.d.ts +13 -0
  37. package/dist/operations/getInfoEntity.d.ts.map +1 -1
  38. package/dist/operations/getJob.d.ts +13 -0
  39. package/dist/operations/getJob.d.ts.map +1 -1
  40. package/dist/operations/getJobs.d.ts +13 -0
  41. package/dist/operations/getJobs.d.ts.map +1 -1
  42. package/dist/operations/index.d.ts +12 -0
  43. package/dist/operations/index.d.ts.map +1 -1
  44. package/dist/operations/index.js +12 -0
  45. package/dist/operations/infoExampleJob.d.ts +13 -0
  46. package/dist/operations/infoExampleJob.d.ts.map +1 -1
  47. package/dist/operations/infoSearch.d.ts +13 -0
  48. package/dist/operations/infoSearch.d.ts.map +1 -1
  49. package/dist/operations/jobSwitchDeposit.d.ts +13 -0
  50. package/dist/operations/jobSwitchDeposit.d.ts.map +1 -1
  51. package/dist/operations/lenderReviewJobSatNote.d.ts +13 -0
  52. package/dist/operations/lenderReviewJobSatNote.d.ts.map +1 -1
  53. package/dist/operations/overrideJob.d.ts +13 -0
  54. package/dist/operations/overrideJob.d.ts.map +1 -1
  55. package/dist/operations/payJob.d.ts +13 -0
  56. package/dist/operations/payJob.d.ts.map +1 -1
  57. package/dist/operations/payoutJob.d.ts +13 -0
  58. package/dist/operations/payoutJob.d.ts.map +1 -1
  59. package/dist/operations/postJob.d.ts +13 -0
  60. package/dist/operations/postJob.d.ts.map +1 -1
  61. package/dist/operations/putJob.d.ts +13 -0
  62. package/dist/operations/putJob.d.ts.map +1 -1
  63. package/dist/operations/quoteJob.d.ts +13 -0
  64. package/dist/operations/quoteJob.d.ts.map +1 -1
  65. package/dist/operations/reactivateCompany.d.ts +320 -0
  66. package/dist/operations/reactivateCompany.d.ts.map +1 -0
  67. package/dist/operations/reactivateCompany.js +44 -0
  68. package/dist/operations/reapplyJob.d.ts +13 -0
  69. package/dist/operations/reapplyJob.d.ts.map +1 -1
  70. package/dist/operations/sendJob.d.ts +13 -0
  71. package/dist/operations/sendJob.d.ts.map +1 -1
  72. package/dist/operations/signJobSatNote.d.ts +13 -0
  73. package/dist/operations/signJobSatNote.d.ts.map +1 -1
  74. package/dist/operations/stepJob.d.ts +318 -0
  75. package/dist/operations/stepJob.d.ts.map +1 -0
  76. package/dist/operations/stepJob.js +50 -0
  77. package/dist/operations/suspendCompany.d.ts +320 -0
  78. package/dist/operations/suspendCompany.d.ts.map +1 -0
  79. package/dist/operations/suspendCompany.js +44 -0
  80. package/dist/operations/tradeQuoteApprovalLead.d.ts +13 -0
  81. package/dist/operations/tradeQuoteApprovalLead.d.ts.map +1 -1
  82. package/dist/operations/unarchiveJob.d.ts +13 -0
  83. package/dist/operations/unarchiveJob.d.ts.map +1 -1
  84. package/dist/operations/viewJobSatNote.d.ts +13 -0
  85. package/dist/operations/viewJobSatNote.d.ts.map +1 -1
  86. package/dist/schema.json +1 -1
  87. package/dist/widget/index.d.ts +14991 -14919
  88. package/dist/widget/index.d.ts.map +1 -1
  89. package/dist/widget/index.js +36202 -36001
  90. package/package.json +1 -1
  91. package/schema.yaml +140 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-schema",
3
- "version": "1.0.813",
3
+ "version": "1.0.815",
4
4
  "description": "Kanda Service OpenAPI Schema",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.yaml CHANGED
@@ -2861,6 +2861,64 @@ paths:
2861
2861
  schema:
2862
2862
  $ref: "#/components/schemas/Error"
2863
2863
 
2864
+ /api/company/{id}/suspend:
2865
+ post:
2866
+ operationId: suspendCompany
2867
+ summary: >
2868
+ kanda staff to suspend the company and all its users
2869
+ tags:
2870
+ - Company
2871
+ parameters:
2872
+ - name: id
2873
+ in: path
2874
+ description: company id
2875
+ required: true
2876
+ schema:
2877
+ type: string
2878
+ minLength: 1
2879
+ responses:
2880
+ 200:
2881
+ description: got suspendd company
2882
+ content:
2883
+ application/json:
2884
+ schema:
2885
+ $ref: "#/components/schemas/Company"
2886
+ default:
2887
+ description: unexpected error
2888
+ content:
2889
+ application/json:
2890
+ schema:
2891
+ $ref: "#/components/schemas/Error"
2892
+
2893
+ /api/company/{id}/reactivate:
2894
+ post:
2895
+ operationId: reactivateCompany
2896
+ summary: >
2897
+ kanda staff to reactivate the company and all its users
2898
+ tags:
2899
+ - Company
2900
+ parameters:
2901
+ - name: id
2902
+ in: path
2903
+ description: company id
2904
+ required: true
2905
+ schema:
2906
+ type: string
2907
+ minLength: 1
2908
+ responses:
2909
+ 200:
2910
+ description: got reactivated company
2911
+ content:
2912
+ application/json:
2913
+ schema:
2914
+ $ref: "#/components/schemas/Company"
2915
+ default:
2916
+ description: unexpected error
2917
+ content:
2918
+ application/json:
2919
+ schema:
2920
+ $ref: "#/components/schemas/Error"
2921
+
2864
2922
  /api/company/{id}/approve:
2865
2923
  post:
2866
2924
  operationId: approveCompany
@@ -3310,6 +3368,42 @@ paths:
3310
3368
  schema:
3311
3369
  $ref: "#/components/schemas/Error"
3312
3370
 
3371
+ /api/job/{id}/step:
3372
+ post:
3373
+ operationId: stepJob
3374
+ summary: >
3375
+ step job in checkout journey, only allowed when job status is sent and finance not applied
3376
+ tags:
3377
+ - Job
3378
+ parameters:
3379
+ - name: id
3380
+ in: path
3381
+ description: job id
3382
+ required: true
3383
+ schema:
3384
+ type: string
3385
+ minLength: 1
3386
+ requestBody:
3387
+ description: job step with optional details
3388
+ required: true
3389
+ content:
3390
+ application/json:
3391
+ schema:
3392
+ $ref: "#/components/schemas/JobStep"
3393
+ responses:
3394
+ 200:
3395
+ description: got existing job with step advanced
3396
+ content:
3397
+ application/json:
3398
+ schema:
3399
+ $ref: "#/components/schemas/Job"
3400
+ default:
3401
+ description: unexpected error
3402
+ content:
3403
+ application/json:
3404
+ schema:
3405
+ $ref: "#/components/schemas/Error"
3406
+
3313
3407
  /api/job/{id}/quote:
3314
3408
  post:
3315
3409
  operationId: quoteJob
@@ -9826,6 +9920,15 @@ components:
9826
9920
  title: job documents
9827
9921
  items:
9828
9922
  $ref: "#/components/schemas/Document"
9923
+ current_step:
9924
+ type: string
9925
+ title: current job step
9926
+ $ref: "#/components/schemas/JobStep"
9927
+ steps:
9928
+ type: array
9929
+ title: job steps
9930
+ items:
9931
+ $ref: "#/components/schemas/JobStep"
9829
9932
  xid:
9830
9933
  type: string
9831
9934
  title: external reference id
@@ -9846,6 +9949,40 @@ components:
9846
9949
  title: metadata
9847
9950
  readOnly: true
9848
9951
 
9952
+ JobStep:
9953
+ type: object
9954
+ title: job step
9955
+ required:
9956
+ - name
9957
+ - appended_at
9958
+ properties:
9959
+ name:
9960
+ type: string
9961
+ title: checkout step
9962
+ $ref: "#/components/schemas/CheckoutStep"
9963
+ text:
9964
+ type: string
9965
+ title: text
9966
+ appended_at:
9967
+ type: string
9968
+ format: date-time
9969
+ title: visited at
9970
+ readOnly: true
9971
+
9972
+ CheckoutStep:
9973
+ type: string
9974
+ title: checkout step
9975
+ enum:
9976
+ - "checkout_quote_viewed"
9977
+ - "checkout_quote_accepted"
9978
+ - "checkout_quote_changes_requested"
9979
+ - "checkout_quote_changes_amended"
9980
+ - "checkout_quote_changes_rejected"
9981
+ - "checkout_quote_declined"
9982
+ - "checkout_quote_payment_selected"
9983
+ - "checkout_quote_finalised"
9984
+ - "checkout_quote_completed"
9985
+
9849
9986
  FlowType:
9850
9987
  type: string
9851
9988
  title: flow type
@@ -9877,6 +10014,9 @@ components:
9877
10014
  type: object
9878
10015
  title: agree to our commission terms and conditions
9879
10016
  $ref: "#/components/schemas/Signature"
10017
+ declined_reason:
10018
+ type: string
10019
+ title: declined reason
9880
10020
 
9881
10021
  SatNoteTimeline:
9882
10022
  type: object