@unified-api/typescript-sdk 1.0.0 → 1.0.2

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 (196) hide show
  1. package/README.md +54 -700
  2. package/dist/sdk/accounting.d.ts +0 -40
  3. package/dist/sdk/accounting.js +44 -696
  4. package/dist/sdk/link.d.ts +31 -0
  5. package/dist/sdk/link.js +503 -0
  6. package/dist/sdk/models/operations/{createaccountingpayment.d.ts → createpaymentlink.d.ts} +7 -7
  7. package/dist/sdk/models/operations/createpaymentlink.js +95 -0
  8. package/dist/sdk/models/operations/createpaymentpayment.d.ts +28 -0
  9. package/dist/sdk/models/operations/{createaccountingpayment.js → createpaymentpayment.js} +20 -20
  10. package/dist/sdk/models/operations/getpaymentlink.d.ts +35 -0
  11. package/dist/sdk/models/operations/getpaymentlink.js +99 -0
  12. package/dist/sdk/models/operations/{getaccountingpayment.d.ts → getpaymentpayment.d.ts} +6 -6
  13. package/dist/sdk/models/operations/{getaccountingpayment.js → getpaymentpayment.js} +20 -20
  14. package/dist/sdk/models/operations/{getaccountingpayout.d.ts → getpaymentpayout.d.ts} +6 -6
  15. package/dist/sdk/models/operations/{getaccountingpayout.js → getpaymentpayout.js} +20 -20
  16. package/dist/sdk/models/operations/{getaccountingrefund.d.ts → getpaymentrefund.d.ts} +6 -6
  17. package/dist/sdk/models/operations/{getaccountingrefund.js → getpaymentrefund.js} +20 -20
  18. package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -4
  19. package/dist/sdk/models/operations/getunifiedintegrationauth.js +6 -4
  20. package/dist/sdk/models/operations/index.d.ts +16 -10
  21. package/dist/sdk/models/operations/index.js +16 -10
  22. package/dist/sdk/models/operations/listpaymentlinks.d.ts +51 -0
  23. package/dist/sdk/models/operations/listpaymentlinks.js +127 -0
  24. package/dist/sdk/models/operations/{listaccountingpayments.d.ts → listpaymentpayments.d.ts} +6 -6
  25. package/dist/sdk/models/operations/{listaccountingpayments.js → listpaymentpayments.js} +28 -28
  26. package/dist/sdk/models/operations/{listaccountingpayouts.d.ts → listpaymentpayouts.d.ts} +6 -6
  27. package/dist/sdk/models/operations/{listaccountingpayouts.js → listpaymentpayouts.js} +26 -26
  28. package/dist/sdk/models/operations/{listaccountingrefunds.d.ts → listpaymentrefunds.d.ts} +6 -6
  29. package/dist/sdk/models/operations/{listaccountingrefunds.js → listpaymentrefunds.js} +27 -27
  30. package/dist/sdk/models/operations/listunifiedconnections.d.ts +2 -1
  31. package/dist/sdk/models/operations/listunifiedconnections.js +1 -0
  32. package/dist/sdk/models/operations/listunifiedintegrations.d.ts +2 -1
  33. package/dist/sdk/models/operations/listunifiedintegrations.js +1 -0
  34. package/dist/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +2 -1
  35. package/dist/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
  36. package/dist/sdk/models/operations/patchpaymentlink.d.ts +32 -0
  37. package/dist/sdk/models/operations/patchpaymentlink.js +99 -0
  38. package/dist/sdk/models/operations/{patchaccountingpayment.d.ts → patchpaymentpayment.d.ts} +7 -7
  39. package/dist/sdk/models/operations/{patchaccountingpayment.js → patchpaymentpayment.js} +21 -21
  40. package/dist/sdk/models/operations/removepaymentlink.d.ts +30 -0
  41. package/dist/sdk/models/operations/{removeaccountingpayment.js → removepaymentlink.js} +17 -17
  42. package/dist/sdk/models/operations/{removeaccountingpayment.d.ts → removepaymentpayment.d.ts} +2 -2
  43. package/dist/sdk/models/operations/removepaymentpayment.js +71 -0
  44. package/dist/sdk/models/operations/updatepaymentlink.d.ts +32 -0
  45. package/dist/sdk/models/operations/updatepaymentlink.js +99 -0
  46. package/dist/sdk/models/operations/{updateaccountingpayment.d.ts → updatepaymentpayment.d.ts} +7 -7
  47. package/dist/sdk/models/operations/{updateaccountingpayment.js → updatepaymentpayment.js} +21 -21
  48. package/dist/sdk/models/shared/accountinginvoice.d.ts +1 -0
  49. package/dist/sdk/models/shared/accountinginvoice.js +5 -0
  50. package/dist/sdk/models/shared/index.d.ts +5 -3
  51. package/dist/sdk/models/shared/index.js +5 -3
  52. package/dist/sdk/models/shared/paymenntlinklineitem.d.ts +20 -0
  53. package/dist/sdk/models/shared/paymenntlinklineitem.js +137 -0
  54. package/dist/sdk/models/shared/paymentlink.d.ts +15 -0
  55. package/dist/sdk/models/shared/paymentlink.js +105 -0
  56. package/dist/sdk/models/shared/{accountingpayment.d.ts → paymentpayment.d.ts} +1 -1
  57. package/dist/sdk/models/shared/{accountingpayment.js → paymentpayment.js} +18 -18
  58. package/dist/sdk/models/shared/{accountingpayout.d.ts → paymentpayout.d.ts} +3 -3
  59. package/dist/sdk/models/shared/{accountingpayout.js → paymentpayout.js} +21 -21
  60. package/dist/sdk/models/shared/{accountingrefund.d.ts → paymentrefund.d.ts} +3 -3
  61. package/dist/sdk/models/shared/{accountingrefund.js → paymentrefund.js} +23 -23
  62. package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +2 -1
  63. package/dist/sdk/models/shared/propertyconnectioncategories.js +1 -0
  64. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -4
  65. package/dist/sdk/models/shared/propertyconnectionpermissions.js +6 -4
  66. package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +2 -1
  67. package/dist/sdk/models/shared/propertyintegrationcategories.js +1 -0
  68. package/dist/sdk/models/shared/webhook.d.ts +4 -3
  69. package/dist/sdk/models/shared/webhook.js +4 -3
  70. package/dist/sdk/payment.d.ts +46 -6
  71. package/dist/sdk/payment.js +705 -53
  72. package/dist/sdk/payout.d.ts +2 -2
  73. package/dist/sdk/payout.js +11 -11
  74. package/dist/sdk/refund.d.ts +2 -2
  75. package/dist/sdk/refund.js +11 -11
  76. package/dist/sdk/sdk.d.ts +5 -3
  77. package/dist/sdk/sdk.js +7 -5
  78. package/docs/sdk/models/operations/categories.md +2 -1
  79. package/docs/sdk/models/operations/createpaymentlinkrequest.md +9 -0
  80. package/docs/sdk/models/operations/createpaymentlinkresponse.md +11 -0
  81. package/docs/sdk/models/operations/createpaymentpaymentrequest.md +9 -0
  82. package/docs/sdk/models/operations/createpaymentpaymentresponse.md +11 -0
  83. package/docs/sdk/models/operations/getpaymentlinkrequest.md +10 -0
  84. package/docs/sdk/models/operations/getpaymentlinkresponse.md +11 -0
  85. package/docs/sdk/models/operations/{getaccountingpaymentrequest.md → getpaymentpaymentrequest.md} +1 -1
  86. package/docs/sdk/models/operations/getpaymentpaymentresponse.md +11 -0
  87. package/docs/sdk/models/operations/{getaccountingpayoutrequest.md → getpaymentpayoutrequest.md} +1 -1
  88. package/docs/sdk/models/operations/getpaymentpayoutresponse.md +11 -0
  89. package/docs/sdk/models/operations/{getaccountingrefundrequest.md → getpaymentrefundrequest.md} +1 -1
  90. package/docs/sdk/models/operations/getpaymentrefundresponse.md +11 -0
  91. package/docs/sdk/models/operations/listpaymentlinksrequest.md +17 -0
  92. package/docs/sdk/models/operations/listpaymentlinksresponse.md +11 -0
  93. package/docs/sdk/models/operations/{listaccountingpaymentsrequest.md → listpaymentpaymentsrequest.md} +1 -1
  94. package/docs/sdk/models/operations/listpaymentpaymentsresponse.md +11 -0
  95. package/docs/sdk/models/operations/{listaccountingpayoutsrequest.md → listpaymentpayoutsrequest.md} +1 -1
  96. package/docs/sdk/models/operations/listpaymentpayoutsresponse.md +11 -0
  97. package/docs/sdk/models/operations/{listaccountingrefundsrequest.md → listpaymentrefundsrequest.md} +1 -1
  98. package/docs/sdk/models/operations/listpaymentrefundsresponse.md +11 -0
  99. package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +2 -1
  100. package/docs/sdk/models/operations/patchpaymentlinkrequest.md +10 -0
  101. package/docs/sdk/models/operations/patchpaymentlinkresponse.md +11 -0
  102. package/docs/sdk/models/operations/patchpaymentpaymentrequest.md +10 -0
  103. package/docs/sdk/models/operations/patchpaymentpaymentresponse.md +11 -0
  104. package/docs/sdk/models/operations/queryparamcategories.md +2 -1
  105. package/docs/sdk/models/operations/{removeaccountingpaymentrequest.md → removepaymentlinkrequest.md} +2 -2
  106. package/docs/sdk/models/operations/{removeaccountingpaymentresponse.md → removepaymentlinkresponse.md} +1 -1
  107. package/docs/sdk/models/operations/removepaymentpaymentrequest.md +9 -0
  108. package/docs/sdk/models/operations/removepaymentpaymentresponse.md +11 -0
  109. package/docs/sdk/models/operations/scopes.md +6 -4
  110. package/docs/sdk/models/operations/updatepaymentlinkrequest.md +10 -0
  111. package/docs/sdk/models/operations/updatepaymentlinkresponse.md +11 -0
  112. package/docs/sdk/models/operations/updatepaymentpaymentrequest.md +10 -0
  113. package/docs/sdk/models/operations/updatepaymentpaymentresponse.md +11 -0
  114. package/docs/sdk/models/shared/accountinginvoice.md +2 -1
  115. package/docs/sdk/models/shared/objecttype.md +4 -3
  116. package/docs/sdk/models/shared/paymenntlinklineitem.md +24 -0
  117. package/docs/sdk/models/shared/paymentlink.md +18 -0
  118. package/docs/sdk/models/shared/{accountingpayment.md → paymentpayment.md} +1 -1
  119. package/docs/sdk/models/shared/paymentpayout.md +15 -0
  120. package/docs/sdk/models/shared/{accountingpayoutstatus.md → paymentpayoutstatus.md} +1 -1
  121. package/docs/sdk/models/shared/paymentrefund.md +17 -0
  122. package/docs/sdk/models/shared/{accountingrefundstatus.md → paymentrefundstatus.md} +1 -1
  123. package/docs/sdk/models/shared/propertyconnectioncategories.md +2 -1
  124. package/docs/sdk/models/shared/propertyconnectionpermissions.md +6 -4
  125. package/docs/sdk/models/shared/propertyintegrationcategories.md +2 -1
  126. package/package.json +1 -1
  127. package/docs/sdk/models/operations/createaccountingpaymentrequest.md +0 -9
  128. package/docs/sdk/models/operations/createaccountingpaymentresponse.md +0 -11
  129. package/docs/sdk/models/operations/getaccountingpaymentresponse.md +0 -11
  130. package/docs/sdk/models/operations/getaccountingpayoutresponse.md +0 -11
  131. package/docs/sdk/models/operations/getaccountingrefundresponse.md +0 -11
  132. package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +0 -11
  133. package/docs/sdk/models/operations/listaccountingpayoutsresponse.md +0 -11
  134. package/docs/sdk/models/operations/listaccountingrefundsresponse.md +0 -11
  135. package/docs/sdk/models/operations/patchaccountingpaymentrequest.md +0 -10
  136. package/docs/sdk/models/operations/patchaccountingpaymentresponse.md +0 -11
  137. package/docs/sdk/models/operations/updateaccountingpaymentrequest.md +0 -10
  138. package/docs/sdk/models/operations/updateaccountingpaymentresponse.md +0 -11
  139. package/docs/sdk/models/shared/accountingpayout.md +0 -15
  140. package/docs/sdk/models/shared/accountingrefund.md +0 -17
  141. package/docs/sdks/account/README.md +0 -312
  142. package/docs/sdks/accounting/README.md +0 -2198
  143. package/docs/sdks/activity/README.md +0 -321
  144. package/docs/sdks/apicall/README.md +0 -95
  145. package/docs/sdks/application/README.md +0 -333
  146. package/docs/sdks/applicationstatus/README.md +0 -54
  147. package/docs/sdks/ats/README.md +0 -2488
  148. package/docs/sdks/auth/README.md +0 -103
  149. package/docs/sdks/call/README.md +0 -54
  150. package/docs/sdks/candidate/README.md +0 -369
  151. package/docs/sdks/collection/README.md +0 -348
  152. package/docs/sdks/commerce/README.md +0 -1371
  153. package/docs/sdks/company/README.md +0 -517
  154. package/docs/sdks/connection/README.md +0 -359
  155. package/docs/sdks/contact/README.md +0 -1028
  156. package/docs/sdks/crm/README.md +0 -2048
  157. package/docs/sdks/customer/README.md +0 -348
  158. package/docs/sdks/deal/README.md +0 -315
  159. package/docs/sdks/document/README.md +0 -309
  160. package/docs/sdks/employee/README.md +0 -363
  161. package/docs/sdks/enrich/README.md +0 -97
  162. package/docs/sdks/event/README.md +0 -390
  163. package/docs/sdks/file/README.md +0 -330
  164. package/docs/sdks/group/README.md +0 -327
  165. package/docs/sdks/hris/README.md +0 -685
  166. package/docs/sdks/integration/README.md +0 -155
  167. package/docs/sdks/interview/README.md +0 -318
  168. package/docs/sdks/inventory/README.md +0 -309
  169. package/docs/sdks/invoice/README.md +0 -324
  170. package/docs/sdks/issue/README.md +0 -49
  171. package/docs/sdks/item/README.md +0 -417
  172. package/docs/sdks/job/README.md +0 -396
  173. package/docs/sdks/lead/README.md +0 -336
  174. package/docs/sdks/list/README.md +0 -306
  175. package/docs/sdks/location/README.md +0 -312
  176. package/docs/sdks/login/README.md +0 -52
  177. package/docs/sdks/martech/README.md +0 -643
  178. package/docs/sdks/member/README.md +0 -342
  179. package/docs/sdks/note/README.md +0 -306
  180. package/docs/sdks/organization/README.md +0 -104
  181. package/docs/sdks/passthrough/README.md +0 -249
  182. package/docs/sdks/payment/README.md +0 -306
  183. package/docs/sdks/payout/README.md +0 -104
  184. package/docs/sdks/person/README.md +0 -51
  185. package/docs/sdks/pipeline/README.md +0 -306
  186. package/docs/sdks/refund/README.md +0 -104
  187. package/docs/sdks/scorecard/README.md +0 -324
  188. package/docs/sdks/storage/README.md +0 -330
  189. package/docs/sdks/taxrate/README.md +0 -312
  190. package/docs/sdks/ticket/README.md +0 -318
  191. package/docs/sdks/ticketing/README.md +0 -962
  192. package/docs/sdks/transaction/README.md +0 -327
  193. package/docs/sdks/uc/README.md +0 -388
  194. package/docs/sdks/unified/README.md +0 -929
  195. package/docs/sdks/unifiedto/README.md +0 -9
  196. package/docs/sdks/webhook/README.md +0 -291
@@ -1,324 +0,0 @@
1
- # Scorecard
2
- (*scorecard*)
3
-
4
- ### Available Operations
5
-
6
- * [createAtsScorecard](#createatsscorecard) - Create a scorecard
7
- * [getAtsScorecard](#getatsscorecard) - Retrieve a scorecard
8
- * [listAtsScorecards](#listatsscorecards) - List all scorecards
9
- * [patchAtsScorecard](#patchatsscorecard) - Update a scorecard
10
- * [removeAtsScorecard](#removeatsscorecard) - Remove a scorecard
11
- * [updateAtsScorecard](#updateatsscorecard) - Update a scorecard
12
-
13
- ## createAtsScorecard
14
-
15
- Create a scorecard
16
-
17
- ### Example Usage
18
-
19
- ```typescript
20
- import { UnifiedTo } from "@unified-api/typescript-sdk";
21
- import { Recommendation } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
22
-
23
- async function run() {
24
- const sdk = new UnifiedTo({
25
- security: {
26
- jwt: "<YOUR_API_KEY_HERE>",
27
- },
28
- });
29
-
30
- const res = await sdk.scorecard.createAtsScorecard({
31
- atsScorecard: {
32
- questions: [
33
- {
34
- text: "<value>",
35
- },
36
- ],
37
- raw: {
38
- "key": "<value>",
39
- },
40
- },
41
- connectionId: "<value>",
42
- });
43
-
44
- if (res.statusCode == 200) {
45
- // handle response
46
- }
47
- }
48
-
49
- run();
50
- ```
51
-
52
- ### Parameters
53
-
54
- | Parameter | Type | Required | Description |
55
- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
56
- | `request` | [operations.CreateAtsScorecardRequest](../../sdk/models/operations/createatsscorecardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
57
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
58
-
59
-
60
- ### Response
61
-
62
- **Promise<[operations.CreateAtsScorecardResponse](../../sdk/models/operations/createatsscorecardresponse.md)>**
63
- ### Errors
64
-
65
- | Error Object | Status Code | Content Type |
66
- | --------------- | --------------- | --------------- |
67
- | errors.SDKError | 4xx-5xx | */* |
68
-
69
- ## getAtsScorecard
70
-
71
- Retrieve a scorecard
72
-
73
- ### Example Usage
74
-
75
- ```typescript
76
- import { UnifiedTo } from "@unified-api/typescript-sdk";
77
-
78
- async function run() {
79
- const sdk = new UnifiedTo({
80
- security: {
81
- jwt: "<YOUR_API_KEY_HERE>",
82
- },
83
- });
84
-
85
- const res = await sdk.scorecard.getAtsScorecard({
86
- connectionId: "<value>",
87
- fields: [
88
- "<value>",
89
- ],
90
- id: "<id>",
91
- });
92
-
93
- if (res.statusCode == 200) {
94
- // handle response
95
- }
96
- }
97
-
98
- run();
99
- ```
100
-
101
- ### Parameters
102
-
103
- | Parameter | Type | Required | Description |
104
- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
105
- | `request` | [operations.GetAtsScorecardRequest](../../sdk/models/operations/getatsscorecardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
106
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
107
-
108
-
109
- ### Response
110
-
111
- **Promise<[operations.GetAtsScorecardResponse](../../sdk/models/operations/getatsscorecardresponse.md)>**
112
- ### Errors
113
-
114
- | Error Object | Status Code | Content Type |
115
- | --------------- | --------------- | --------------- |
116
- | errors.SDKError | 4xx-5xx | */* |
117
-
118
- ## listAtsScorecards
119
-
120
- List all scorecards
121
-
122
- ### Example Usage
123
-
124
- ```typescript
125
- import { UnifiedTo } from "@unified-api/typescript-sdk";
126
-
127
- async function run() {
128
- const sdk = new UnifiedTo({
129
- security: {
130
- jwt: "<YOUR_API_KEY_HERE>",
131
- },
132
- });
133
-
134
- const res = await sdk.scorecard.listAtsScorecards({
135
- connectionId: "<value>",
136
- fields: [
137
- "<value>",
138
- ],
139
- });
140
-
141
- if (res.statusCode == 200) {
142
- // handle response
143
- }
144
- }
145
-
146
- run();
147
- ```
148
-
149
- ### Parameters
150
-
151
- | Parameter | Type | Required | Description |
152
- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
153
- | `request` | [operations.ListAtsScorecardsRequest](../../sdk/models/operations/listatsscorecardsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
154
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
155
-
156
-
157
- ### Response
158
-
159
- **Promise<[operations.ListAtsScorecardsResponse](../../sdk/models/operations/listatsscorecardsresponse.md)>**
160
- ### Errors
161
-
162
- | Error Object | Status Code | Content Type |
163
- | --------------- | --------------- | --------------- |
164
- | errors.SDKError | 4xx-5xx | */* |
165
-
166
- ## patchAtsScorecard
167
-
168
- Update a scorecard
169
-
170
- ### Example Usage
171
-
172
- ```typescript
173
- import { UnifiedTo } from "@unified-api/typescript-sdk";
174
- import { Recommendation } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
175
-
176
- async function run() {
177
- const sdk = new UnifiedTo({
178
- security: {
179
- jwt: "<YOUR_API_KEY_HERE>",
180
- },
181
- });
182
-
183
- const res = await sdk.scorecard.patchAtsScorecard({
184
- atsScorecard: {
185
- questions: [
186
- {
187
- text: "<value>",
188
- },
189
- ],
190
- raw: {
191
- "key": "<value>",
192
- },
193
- },
194
- connectionId: "<value>",
195
- id: "<id>",
196
- });
197
-
198
- if (res.statusCode == 200) {
199
- // handle response
200
- }
201
- }
202
-
203
- run();
204
- ```
205
-
206
- ### Parameters
207
-
208
- | Parameter | Type | Required | Description |
209
- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
210
- | `request` | [operations.PatchAtsScorecardRequest](../../sdk/models/operations/patchatsscorecardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
211
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
212
-
213
-
214
- ### Response
215
-
216
- **Promise<[operations.PatchAtsScorecardResponse](../../sdk/models/operations/patchatsscorecardresponse.md)>**
217
- ### Errors
218
-
219
- | Error Object | Status Code | Content Type |
220
- | --------------- | --------------- | --------------- |
221
- | errors.SDKError | 4xx-5xx | */* |
222
-
223
- ## removeAtsScorecard
224
-
225
- Remove a scorecard
226
-
227
- ### Example Usage
228
-
229
- ```typescript
230
- import { UnifiedTo } from "@unified-api/typescript-sdk";
231
-
232
- async function run() {
233
- const sdk = new UnifiedTo({
234
- security: {
235
- jwt: "<YOUR_API_KEY_HERE>",
236
- },
237
- });
238
-
239
- const res = await sdk.scorecard.removeAtsScorecard({
240
- connectionId: "<value>",
241
- id: "<id>",
242
- });
243
-
244
- if (res.statusCode == 200) {
245
- // handle response
246
- }
247
- }
248
-
249
- run();
250
- ```
251
-
252
- ### Parameters
253
-
254
- | Parameter | Type | Required | Description |
255
- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
256
- | `request` | [operations.RemoveAtsScorecardRequest](../../sdk/models/operations/removeatsscorecardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
257
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
258
-
259
-
260
- ### Response
261
-
262
- **Promise<[operations.RemoveAtsScorecardResponse](../../sdk/models/operations/removeatsscorecardresponse.md)>**
263
- ### Errors
264
-
265
- | Error Object | Status Code | Content Type |
266
- | --------------- | --------------- | --------------- |
267
- | errors.SDKError | 4xx-5xx | */* |
268
-
269
- ## updateAtsScorecard
270
-
271
- Update a scorecard
272
-
273
- ### Example Usage
274
-
275
- ```typescript
276
- import { UnifiedTo } from "@unified-api/typescript-sdk";
277
- import { Recommendation } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
278
-
279
- async function run() {
280
- const sdk = new UnifiedTo({
281
- security: {
282
- jwt: "<YOUR_API_KEY_HERE>",
283
- },
284
- });
285
-
286
- const res = await sdk.scorecard.updateAtsScorecard({
287
- atsScorecard: {
288
- questions: [
289
- {
290
- text: "<value>",
291
- },
292
- ],
293
- raw: {
294
- "key": "<value>",
295
- },
296
- },
297
- connectionId: "<value>",
298
- id: "<id>",
299
- });
300
-
301
- if (res.statusCode == 200) {
302
- // handle response
303
- }
304
- }
305
-
306
- run();
307
- ```
308
-
309
- ### Parameters
310
-
311
- | Parameter | Type | Required | Description |
312
- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
313
- | `request` | [operations.UpdateAtsScorecardRequest](../../sdk/models/operations/updateatsscorecardrequest.md) | :heavy_check_mark: | The request object to use for the request. |
314
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
315
-
316
-
317
- ### Response
318
-
319
- **Promise<[operations.UpdateAtsScorecardResponse](../../sdk/models/operations/updateatsscorecardresponse.md)>**
320
- ### Errors
321
-
322
- | Error Object | Status Code | Content Type |
323
- | --------------- | --------------- | --------------- |
324
- | errors.SDKError | 4xx-5xx | */* |
@@ -1,330 +0,0 @@
1
- # Storage
2
- (*storage*)
3
-
4
- ### Available Operations
5
-
6
- * [createStorageFile](#createstoragefile) - Create a file
7
- * [getStorageFile](#getstoragefile) - Retrieve a file
8
- * [listStorageFiles](#liststoragefiles) - List all files
9
- * [patchStorageFile](#patchstoragefile) - Update a file
10
- * [removeStorageFile](#removestoragefile) - Remove a file
11
- * [updateStorageFile](#updatestoragefile) - Update a file
12
-
13
- ## createStorageFile
14
-
15
- Create a file
16
-
17
- ### Example Usage
18
-
19
- ```typescript
20
- import { UnifiedTo } from "@unified-api/typescript-sdk";
21
- import { PropertyStoragePermissionRoles, StorageFileType } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
22
-
23
- async function run() {
24
- const sdk = new UnifiedTo({
25
- security: {
26
- jwt: "<YOUR_API_KEY_HERE>",
27
- },
28
- });
29
-
30
- const res = await sdk.storage.createStorageFile({
31
- storageFile: {
32
- permissions: [
33
- {
34
- roles: [
35
- PropertyStoragePermissionRoles.Write,
36
- ],
37
- },
38
- ],
39
- raw: {
40
- "key": "<value>",
41
- },
42
- },
43
- connectionId: "<value>",
44
- });
45
-
46
- if (res.statusCode == 200) {
47
- // handle response
48
- }
49
- }
50
-
51
- run();
52
- ```
53
-
54
- ### Parameters
55
-
56
- | Parameter | Type | Required | Description |
57
- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
58
- | `request` | [operations.CreateStorageFileRequest](../../sdk/models/operations/createstoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. |
59
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
60
-
61
-
62
- ### Response
63
-
64
- **Promise<[operations.CreateStorageFileResponse](../../sdk/models/operations/createstoragefileresponse.md)>**
65
- ### Errors
66
-
67
- | Error Object | Status Code | Content Type |
68
- | --------------- | --------------- | --------------- |
69
- | errors.SDKError | 4xx-5xx | */* |
70
-
71
- ## getStorageFile
72
-
73
- Retrieve a file
74
-
75
- ### Example Usage
76
-
77
- ```typescript
78
- import { UnifiedTo } from "@unified-api/typescript-sdk";
79
-
80
- async function run() {
81
- const sdk = new UnifiedTo({
82
- security: {
83
- jwt: "<YOUR_API_KEY_HERE>",
84
- },
85
- });
86
-
87
- const res = await sdk.storage.getStorageFile({
88
- connectionId: "<value>",
89
- fields: [
90
- "<value>",
91
- ],
92
- id: "<id>",
93
- });
94
-
95
- if (res.statusCode == 200) {
96
- // handle response
97
- }
98
- }
99
-
100
- run();
101
- ```
102
-
103
- ### Parameters
104
-
105
- | Parameter | Type | Required | Description |
106
- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
107
- | `request` | [operations.GetStorageFileRequest](../../sdk/models/operations/getstoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. |
108
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
109
-
110
-
111
- ### Response
112
-
113
- **Promise<[operations.GetStorageFileResponse](../../sdk/models/operations/getstoragefileresponse.md)>**
114
- ### Errors
115
-
116
- | Error Object | Status Code | Content Type |
117
- | --------------- | --------------- | --------------- |
118
- | errors.SDKError | 4xx-5xx | */* |
119
-
120
- ## listStorageFiles
121
-
122
- List all files
123
-
124
- ### Example Usage
125
-
126
- ```typescript
127
- import { UnifiedTo } from "@unified-api/typescript-sdk";
128
-
129
- async function run() {
130
- const sdk = new UnifiedTo({
131
- security: {
132
- jwt: "<YOUR_API_KEY_HERE>",
133
- },
134
- });
135
-
136
- const res = await sdk.storage.listStorageFiles({
137
- connectionId: "<value>",
138
- fields: [
139
- "<value>",
140
- ],
141
- });
142
-
143
- if (res.statusCode == 200) {
144
- // handle response
145
- }
146
- }
147
-
148
- run();
149
- ```
150
-
151
- ### Parameters
152
-
153
- | Parameter | Type | Required | Description |
154
- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
155
- | `request` | [operations.ListStorageFilesRequest](../../sdk/models/operations/liststoragefilesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
156
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
157
-
158
-
159
- ### Response
160
-
161
- **Promise<[operations.ListStorageFilesResponse](../../sdk/models/operations/liststoragefilesresponse.md)>**
162
- ### Errors
163
-
164
- | Error Object | Status Code | Content Type |
165
- | --------------- | --------------- | --------------- |
166
- | errors.SDKError | 4xx-5xx | */* |
167
-
168
- ## patchStorageFile
169
-
170
- Update a file
171
-
172
- ### Example Usage
173
-
174
- ```typescript
175
- import { UnifiedTo } from "@unified-api/typescript-sdk";
176
- import { PropertyStoragePermissionRoles, StorageFileType } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
177
-
178
- async function run() {
179
- const sdk = new UnifiedTo({
180
- security: {
181
- jwt: "<YOUR_API_KEY_HERE>",
182
- },
183
- });
184
-
185
- const res = await sdk.storage.patchStorageFile({
186
- storageFile: {
187
- permissions: [
188
- {
189
- roles: [
190
- PropertyStoragePermissionRoles.Owner,
191
- ],
192
- },
193
- ],
194
- raw: {
195
- "key": "<value>",
196
- },
197
- },
198
- connectionId: "<value>",
199
- id: "<id>",
200
- });
201
-
202
- if (res.statusCode == 200) {
203
- // handle response
204
- }
205
- }
206
-
207
- run();
208
- ```
209
-
210
- ### Parameters
211
-
212
- | Parameter | Type | Required | Description |
213
- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
214
- | `request` | [operations.PatchStorageFileRequest](../../sdk/models/operations/patchstoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. |
215
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
216
-
217
-
218
- ### Response
219
-
220
- **Promise<[operations.PatchStorageFileResponse](../../sdk/models/operations/patchstoragefileresponse.md)>**
221
- ### Errors
222
-
223
- | Error Object | Status Code | Content Type |
224
- | --------------- | --------------- | --------------- |
225
- | errors.SDKError | 4xx-5xx | */* |
226
-
227
- ## removeStorageFile
228
-
229
- Remove a file
230
-
231
- ### Example Usage
232
-
233
- ```typescript
234
- import { UnifiedTo } from "@unified-api/typescript-sdk";
235
-
236
- async function run() {
237
- const sdk = new UnifiedTo({
238
- security: {
239
- jwt: "<YOUR_API_KEY_HERE>",
240
- },
241
- });
242
-
243
- const res = await sdk.storage.removeStorageFile({
244
- connectionId: "<value>",
245
- id: "<id>",
246
- });
247
-
248
- if (res.statusCode == 200) {
249
- // handle response
250
- }
251
- }
252
-
253
- run();
254
- ```
255
-
256
- ### Parameters
257
-
258
- | Parameter | Type | Required | Description |
259
- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
260
- | `request` | [operations.RemoveStorageFileRequest](../../sdk/models/operations/removestoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. |
261
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
262
-
263
-
264
- ### Response
265
-
266
- **Promise<[operations.RemoveStorageFileResponse](../../sdk/models/operations/removestoragefileresponse.md)>**
267
- ### Errors
268
-
269
- | Error Object | Status Code | Content Type |
270
- | --------------- | --------------- | --------------- |
271
- | errors.SDKError | 4xx-5xx | */* |
272
-
273
- ## updateStorageFile
274
-
275
- Update a file
276
-
277
- ### Example Usage
278
-
279
- ```typescript
280
- import { UnifiedTo } from "@unified-api/typescript-sdk";
281
- import { PropertyStoragePermissionRoles, StorageFileType } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
282
-
283
- async function run() {
284
- const sdk = new UnifiedTo({
285
- security: {
286
- jwt: "<YOUR_API_KEY_HERE>",
287
- },
288
- });
289
-
290
- const res = await sdk.storage.updateStorageFile({
291
- storageFile: {
292
- permissions: [
293
- {
294
- roles: [
295
- PropertyStoragePermissionRoles.Write,
296
- ],
297
- },
298
- ],
299
- raw: {
300
- "key": "<value>",
301
- },
302
- },
303
- connectionId: "<value>",
304
- id: "<id>",
305
- });
306
-
307
- if (res.statusCode == 200) {
308
- // handle response
309
- }
310
- }
311
-
312
- run();
313
- ```
314
-
315
- ### Parameters
316
-
317
- | Parameter | Type | Required | Description |
318
- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
319
- | `request` | [operations.UpdateStorageFileRequest](../../sdk/models/operations/updatestoragefilerequest.md) | :heavy_check_mark: | The request object to use for the request. |
320
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
321
-
322
-
323
- ### Response
324
-
325
- **Promise<[operations.UpdateStorageFileResponse](../../sdk/models/operations/updatestoragefileresponse.md)>**
326
- ### Errors
327
-
328
- | Error Object | Status Code | Content Type |
329
- | --------------- | --------------- | --------------- |
330
- | errors.SDKError | 4xx-5xx | */* |