@kanda-libs/ks-schema 1.0.92 → 1.0.94

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 (142) hide show
  1. package/dist/components/schemas/Company.d.ts +6 -0
  2. package/dist/components/schemas/Company.d.ts.map +1 -1
  3. package/dist/components/schemas/Company.js +12 -0
  4. package/dist/components/schemas/CompanyInfo.d.ts +1 -0
  5. package/dist/components/schemas/CompanyInfo.d.ts.map +1 -1
  6. package/dist/components/schemas/Credit.d.ts +3 -0
  7. package/dist/components/schemas/Credit.d.ts.map +1 -1
  8. package/dist/components/schemas/Credit.js +1 -0
  9. package/dist/components/schemas/Document.d.ts +2 -0
  10. package/dist/components/schemas/Document.d.ts.map +1 -1
  11. package/dist/components/schemas/Document.js +1 -0
  12. package/dist/components/schemas/Event.d.ts +39 -0
  13. package/dist/components/schemas/Event.d.ts.map +1 -0
  14. package/dist/components/schemas/Event.js +50 -0
  15. package/dist/components/schemas/Job.d.ts +5 -0
  16. package/dist/components/schemas/Job.d.ts.map +1 -1
  17. package/dist/components/schemas/Job.js +1 -0
  18. package/dist/components/schemas/JobCompanyInfo.d.ts +1 -0
  19. package/dist/components/schemas/JobCompanyInfo.d.ts.map +1 -1
  20. package/dist/components/schemas/JobItem.d.ts +1 -0
  21. package/dist/components/schemas/JobItem.d.ts.map +1 -1
  22. package/dist/components/schemas/Payment.d.ts +2 -0
  23. package/dist/components/schemas/Payment.d.ts.map +1 -1
  24. package/dist/components/schemas/Payment.js +1 -0
  25. package/dist/components/schemas/SatNote.d.ts +1 -0
  26. package/dist/components/schemas/SatNote.d.ts.map +1 -1
  27. package/dist/components/schemas/SignDocument.d.ts +1 -0
  28. package/dist/components/schemas/SignDocument.d.ts.map +1 -1
  29. package/dist/components/schemas/Subscription.d.ts +70 -0
  30. package/dist/components/schemas/Subscription.d.ts.map +1 -0
  31. package/dist/components/schemas/Subscription.js +48 -0
  32. package/dist/components/schemas/index.d.ts +2 -0
  33. package/dist/components/schemas/index.d.ts.map +1 -1
  34. package/dist/components/schemas/index.js +2 -0
  35. package/dist/operations/applyCredit.d.ts +2 -0
  36. package/dist/operations/applyCredit.d.ts.map +1 -1
  37. package/dist/operations/applyJob.d.ts +4 -0
  38. package/dist/operations/applyJob.d.ts.map +1 -1
  39. package/dist/operations/approveCompany.d.ts +4 -0
  40. package/dist/operations/approveCompany.d.ts.map +1 -1
  41. package/dist/operations/approveJobSatNote.d.ts +4 -0
  42. package/dist/operations/approveJobSatNote.d.ts.map +1 -1
  43. package/dist/operations/archiveJob.d.ts +4 -0
  44. package/dist/operations/archiveJob.d.ts.map +1 -1
  45. package/dist/operations/checkCredit.d.ts +2 -0
  46. package/dist/operations/checkCredit.d.ts.map +1 -1
  47. package/dist/operations/completeJob.d.ts +4 -0
  48. package/dist/operations/completeJob.d.ts.map +1 -1
  49. package/dist/operations/deleteCompany.d.ts +4 -0
  50. package/dist/operations/deleteCompany.d.ts.map +1 -1
  51. package/dist/operations/deleteCredit.d.ts +2 -0
  52. package/dist/operations/deleteCredit.d.ts.map +1 -1
  53. package/dist/operations/deleteDocument.d.ts +1 -0
  54. package/dist/operations/deleteDocument.d.ts.map +1 -1
  55. package/dist/operations/deleteJob.d.ts +4 -0
  56. package/dist/operations/deleteJob.d.ts.map +1 -1
  57. package/dist/operations/deletePayment.d.ts +1 -0
  58. package/dist/operations/deletePayment.d.ts.map +1 -1
  59. package/dist/operations/deleteSubscription.d.ts +82 -0
  60. package/dist/operations/deleteSubscription.d.ts.map +1 -0
  61. package/dist/operations/deleteSubscription.js +44 -0
  62. package/dist/operations/getCompanies.d.ts +4 -0
  63. package/dist/operations/getCompanies.d.ts.map +1 -1
  64. package/dist/operations/getCompany.d.ts +4 -0
  65. package/dist/operations/getCompany.d.ts.map +1 -1
  66. package/dist/operations/getCredit.d.ts +2 -0
  67. package/dist/operations/getCredit.d.ts.map +1 -1
  68. package/dist/operations/getCredits.d.ts +2 -0
  69. package/dist/operations/getCredits.d.ts.map +1 -1
  70. package/dist/operations/getDocument.d.ts +1 -0
  71. package/dist/operations/getDocument.d.ts.map +1 -1
  72. package/dist/operations/getDocuments.d.ts +1 -0
  73. package/dist/operations/getDocuments.d.ts.map +1 -1
  74. package/dist/operations/getJob.d.ts +4 -0
  75. package/dist/operations/getJob.d.ts.map +1 -1
  76. package/dist/operations/getJobs.d.ts +4 -0
  77. package/dist/operations/getJobs.d.ts.map +1 -1
  78. package/dist/operations/getPayment.d.ts +1 -0
  79. package/dist/operations/getPayment.d.ts.map +1 -1
  80. package/dist/operations/getPayments.d.ts +1 -0
  81. package/dist/operations/getPayments.d.ts.map +1 -1
  82. package/dist/operations/getSubscription.d.ts +82 -0
  83. package/dist/operations/getSubscription.d.ts.map +1 -0
  84. package/dist/operations/getSubscription.js +44 -0
  85. package/dist/operations/getSubscriptions.d.ts +73 -0
  86. package/dist/operations/getSubscriptions.d.ts.map +1 -0
  87. package/dist/operations/getSubscriptions.js +38 -0
  88. package/dist/operations/index.d.ts +490 -0
  89. package/dist/operations/index.d.ts.map +1 -1
  90. package/dist/operations/index.js +24 -1
  91. package/dist/operations/jobCompanyInfo.d.ts +1 -0
  92. package/dist/operations/jobCompanyInfo.d.ts.map +1 -1
  93. package/dist/operations/markPayment.d.ts +1 -0
  94. package/dist/operations/markPayment.d.ts.map +1 -1
  95. package/dist/operations/payJob.d.ts +4 -0
  96. package/dist/operations/payJob.d.ts.map +1 -1
  97. package/dist/operations/payoutJob.d.ts +4 -0
  98. package/dist/operations/payoutJob.d.ts.map +1 -1
  99. package/dist/operations/postCompany.d.ts +4 -0
  100. package/dist/operations/postCompany.d.ts.map +1 -1
  101. package/dist/operations/postCredit.d.ts +2 -0
  102. package/dist/operations/postCredit.d.ts.map +1 -1
  103. package/dist/operations/postDocument.d.ts +1 -0
  104. package/dist/operations/postDocument.d.ts.map +1 -1
  105. package/dist/operations/postJob.d.ts +4 -0
  106. package/dist/operations/postJob.d.ts.map +1 -1
  107. package/dist/operations/postPayment.d.ts +1 -0
  108. package/dist/operations/postPayment.d.ts.map +1 -1
  109. package/dist/operations/postSubscription.d.ts +78 -0
  110. package/dist/operations/postSubscription.d.ts.map +1 -0
  111. package/dist/operations/postSubscription.js +43 -0
  112. package/dist/operations/providerWebhook.d.ts +1 -1
  113. package/dist/operations/providerWebhook.d.ts.map +1 -1
  114. package/dist/operations/putCompany.d.ts +4 -0
  115. package/dist/operations/putCompany.d.ts.map +1 -1
  116. package/dist/operations/putCredit.d.ts +2 -0
  117. package/dist/operations/putCredit.d.ts.map +1 -1
  118. package/dist/operations/putDocument.d.ts +1 -0
  119. package/dist/operations/putDocument.d.ts.map +1 -1
  120. package/dist/operations/putJob.d.ts +4 -0
  121. package/dist/operations/putJob.d.ts.map +1 -1
  122. package/dist/operations/putPayment.d.ts +1 -0
  123. package/dist/operations/putPayment.d.ts.map +1 -1
  124. package/dist/operations/putSubscription.d.ts +87 -0
  125. package/dist/operations/putSubscription.d.ts.map +1 -0
  126. package/dist/operations/putSubscription.js +50 -0
  127. package/dist/operations/quoteCredit.d.ts +2 -0
  128. package/dist/operations/quoteCredit.d.ts.map +1 -1
  129. package/dist/operations/sendJob.d.ts +4 -0
  130. package/dist/operations/sendJob.d.ts.map +1 -1
  131. package/dist/operations/signCredit.d.ts +2 -0
  132. package/dist/operations/signCredit.d.ts.map +1 -1
  133. package/dist/operations/signJobSateNote.d.ts +4 -0
  134. package/dist/operations/signJobSateNote.d.ts.map +1 -1
  135. package/dist/operations/viewJobSatNote.d.ts +4 -0
  136. package/dist/operations/viewJobSatNote.d.ts.map +1 -1
  137. package/dist/schema.json +1 -1
  138. package/dist/widget/index.d.ts +2832 -2280
  139. package/dist/widget/index.d.ts.map +1 -1
  140. package/dist/widget/index.js +5285 -4691
  141. package/package.json +1 -1
  142. package/schema.yaml +313 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-schema",
3
- "version": "1.0.92",
3
+ "version": "1.0.94",
4
4
  "description": "Kanda Service OpenAPI Schema",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.yaml CHANGED
@@ -1426,10 +1426,10 @@ paths:
1426
1426
  schema:
1427
1427
  type: string
1428
1428
  enum:
1429
+ - gocardless
1430
+ - omni
1429
1431
  - stripe
1430
1432
  - veriff
1431
- - omni
1432
- - duologi
1433
1433
  responses:
1434
1434
  200:
1435
1435
  description: provider webhook accepted
@@ -1479,6 +1479,143 @@ paths:
1479
1479
  schema:
1480
1480
  $ref: "#/components/schemas/Error"
1481
1481
 
1482
+ /api/subscription:
1483
+ get:
1484
+ operationId: getSubscriptions
1485
+ summary: get all subscriptions
1486
+ tags:
1487
+ - Subscription
1488
+ responses:
1489
+ 200:
1490
+ description: got all subscriptions
1491
+ content:
1492
+ application/json:
1493
+ schema:
1494
+ type: array
1495
+ items:
1496
+ $ref: "#/components/schemas/Subscription"
1497
+ default:
1498
+ description: unexpected error
1499
+ content:
1500
+ application/json:
1501
+ schema:
1502
+ $ref: "#/components/schemas/Error"
1503
+
1504
+ post:
1505
+ operationId: postSubscription
1506
+ summary: post new subscription
1507
+ tags:
1508
+ - Subscription
1509
+ requestBody:
1510
+ description: post new subscription
1511
+ required: true
1512
+ content:
1513
+ application/json:
1514
+ schema:
1515
+ $ref: "#/components/schemas/Subscription"
1516
+ responses:
1517
+ 200:
1518
+ description: posted new subscription
1519
+ content:
1520
+ application/json:
1521
+ schema:
1522
+ $ref: "#/components/schemas/Subscription"
1523
+ default:
1524
+ description: unexpected error
1525
+ content:
1526
+ application/json:
1527
+ schema:
1528
+ $ref: "#/components/schemas/Error"
1529
+
1530
+ /api/subscription/{id}:
1531
+ get:
1532
+ operationId: getSubscription
1533
+ summary: get existing subscription
1534
+ tags:
1535
+ - Subscription
1536
+ parameters:
1537
+ - name: id
1538
+ in: path
1539
+ description: subscription id
1540
+ required: true
1541
+ schema:
1542
+ type: string
1543
+ minLength: 1
1544
+ responses:
1545
+ 200:
1546
+ description: got existing subscription
1547
+ content:
1548
+ application/json:
1549
+ schema:
1550
+ $ref: "#/components/schemas/Subscription"
1551
+ default:
1552
+ description: unexpected error
1553
+ content:
1554
+ application/json:
1555
+ schema:
1556
+ $ref: "#/components/schemas/Error"
1557
+
1558
+ put:
1559
+ operationId: putSubscription
1560
+ summary: put existing subscription
1561
+ tags:
1562
+ - Subscription
1563
+ parameters:
1564
+ - name: id
1565
+ in: path
1566
+ description: subscription id
1567
+ required: true
1568
+ schema:
1569
+ type: string
1570
+ minLength: 1
1571
+ requestBody:
1572
+ description: put existing subscription
1573
+ required: true
1574
+ content:
1575
+ application/json:
1576
+ schema:
1577
+ $ref: "#/components/schemas/Subscription"
1578
+ responses:
1579
+ 200:
1580
+ description: put existing subscription
1581
+ content:
1582
+ application/json:
1583
+ schema:
1584
+ $ref: "#/components/schemas/Subscription"
1585
+ default:
1586
+ description: unexpected error
1587
+ content:
1588
+ application/json:
1589
+ schema:
1590
+ $ref: "#/components/schemas/Error"
1591
+
1592
+ delete:
1593
+ operationId: deleteSubscription
1594
+ summary: delete existing subscription
1595
+ tags:
1596
+ - Subscription
1597
+ parameters:
1598
+ - name: id
1599
+ in: path
1600
+ description: subscription id
1601
+ required: true
1602
+ schema:
1603
+ type: string
1604
+ minLength: 1
1605
+ responses:
1606
+ 200:
1607
+ description: deleted existing subscription
1608
+ content:
1609
+ application/json:
1610
+ schema:
1611
+ $ref: "#/components/schemas/Subscription"
1612
+ default:
1613
+ description: unexpected error
1614
+ content:
1615
+ application/json:
1616
+ schema:
1617
+ $ref: "#/components/schemas/Error"
1618
+
1482
1619
  security:
1483
1620
  - BearerAuth: []
1484
1621
 
@@ -1728,6 +1865,10 @@ components:
1728
1865
  type: string
1729
1866
  title: owner id
1730
1867
  readOnly: true
1868
+ aid:
1869
+ type: string
1870
+ title: author id
1871
+ readOnly: true
1731
1872
  emails:
1732
1873
  type: array
1733
1874
  items:
@@ -1789,6 +1930,21 @@ components:
1789
1930
  - verified
1790
1931
  default: registered
1791
1932
  readOnly: true
1933
+ billing:
1934
+ type: string
1935
+ title: company billing
1936
+ enum:
1937
+ - legacy
1938
+ - trial
1939
+ - pending
1940
+ - subscribed
1941
+ - recurring_payment_failed_1
1942
+ - recurring_payment_failed_2
1943
+ - recurring_payment_failed_3
1944
+ - suspended
1945
+ - cancelled
1946
+ default: legacy
1947
+ readOnly: true
1792
1948
  company_logo:
1793
1949
  type: object
1794
1950
  title: company logo document
@@ -1914,6 +2070,10 @@ components:
1914
2070
  type: string
1915
2071
  title: owner id
1916
2072
  readOnly: true
2073
+ aid:
2074
+ type: string
2075
+ title: author id
2076
+ readOnly: true
1917
2077
  name:
1918
2078
  type: string
1919
2079
  title: document name
@@ -2132,6 +2292,10 @@ components:
2132
2292
  type: string
2133
2293
  title: owner id
2134
2294
  readOnly: true
2295
+ aid:
2296
+ type: string
2297
+ title: author id
2298
+ readOnly: true
2135
2299
  title:
2136
2300
  type: string
2137
2301
  title: job title
@@ -2445,6 +2609,10 @@ components:
2445
2609
  type: string
2446
2610
  title: owner id
2447
2611
  readOnly: true
2612
+ aid:
2613
+ type: string
2614
+ title: author id
2615
+ readOnly: true
2448
2616
  kid:
2449
2617
  type: string
2450
2618
  title: internal kind id
@@ -2526,6 +2694,10 @@ components:
2526
2694
  type: string
2527
2695
  title: owner id
2528
2696
  readOnly: true
2697
+ aid:
2698
+ type: string
2699
+ title: author id
2700
+ readOnly: true
2529
2701
  kid:
2530
2702
  type: string
2531
2703
  title: internal kind id
@@ -2862,6 +3034,145 @@ components:
2862
3034
  type: string
2863
3035
  title: fingerprint reference such as IP
2864
3036
 
3037
+ Subscription:
3038
+ type: object
3039
+ properties:
3040
+ id:
3041
+ type: string
3042
+ title: subscription id
3043
+ readOnly: true
3044
+ cid:
3045
+ type: string
3046
+ title: company id
3047
+ readOnly: true
3048
+ oid:
3049
+ type: string
3050
+ title: owner id
3051
+ readOnly: true
3052
+ aid:
3053
+ type: string
3054
+ title: author id
3055
+ readOnly: true
3056
+ billing:
3057
+ type: string
3058
+ title: billing reference
3059
+ readOnly: true
3060
+ billing_status:
3061
+ type: string
3062
+ title: billing status
3063
+ readOnly: true
3064
+ mandate:
3065
+ type: string
3066
+ title: mandate reference
3067
+ readOnly: true
3068
+ mandate_status:
3069
+ type: string
3070
+ title: mandate status
3071
+ readOnly: true
3072
+ authorisation_url:
3073
+ type: string
3074
+ title: authorisation url to submit a mandate agreement
3075
+ readOnly: true
3076
+ interval:
3077
+ type: string
3078
+ title: subscription interval
3079
+ enum:
3080
+ - monthly
3081
+ - yearly
3082
+ default: monthly
3083
+ day_of_month:
3084
+ type: integer
3085
+ title: day of month for collection
3086
+ format: int32
3087
+ minimum: -1
3088
+ maximum: 28
3089
+ amount:
3090
+ type: object
3091
+ title: subscription amount
3092
+ $ref: "#/components/schemas/Money"
3093
+ readOnly: true
3094
+ events:
3095
+ type: array
3096
+ title: subscription events
3097
+ items:
3098
+ $ref: "#/components/schemas/Event"
3099
+ readOnly: true
3100
+ xid:
3101
+ type: string
3102
+ title: external reference id
3103
+ readOnly: true
3104
+ xref:
3105
+ type: string
3106
+ title: external reference
3107
+ readOnly: true
3108
+ metadata:
3109
+ type: object
3110
+ $ref: "#/components/schemas/Metadata"
3111
+ title: metadata
3112
+ readOnly: true
3113
+
3114
+ Event:
3115
+ type: object
3116
+ title: event
3117
+ required:
3118
+ - id
3119
+ - cid
3120
+ - oid
3121
+ - resource
3122
+ - action
3123
+ - source
3124
+ - result
3125
+ properties:
3126
+ id:
3127
+ type: string
3128
+ title: event id
3129
+ readOnly: true
3130
+ cid:
3131
+ type: string
3132
+ title: company id
3133
+ readOnly: true
3134
+ oid:
3135
+ type: string
3136
+ title: owner id
3137
+ readOnly: true
3138
+ aid:
3139
+ type: string
3140
+ title: author id
3141
+ readOnly: true
3142
+ resource:
3143
+ type: string
3144
+ title: event resource
3145
+ readOnly: true
3146
+ resource_id:
3147
+ type: string
3148
+ title: event resource id
3149
+ readOnly: true
3150
+ action:
3151
+ type: string
3152
+ title: event action
3153
+ readOnly: true
3154
+ source:
3155
+ type: string
3156
+ title: event source
3157
+ enum:
3158
+ - api
3159
+ - kanda
3160
+ - webhook
3161
+ readOnly: true
3162
+ result:
3163
+ type: string
3164
+ title: event result
3165
+ readOnly: true
3166
+ error:
3167
+ type: object
3168
+ title: event error
3169
+ $ref: "#/components/schemas/Error"
3170
+ metadata:
3171
+ type: object
3172
+ $ref: "#/components/schemas/Metadata"
3173
+ title: metadata
3174
+ readOnly: true
3175
+
2865
3176
  Error:
2866
3177
  type: object
2867
3178
  required: