@unified-api/typescript-sdk 1.0.0 → 1.0.1

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 (193) 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/index.d.ts +5 -3
  49. package/dist/sdk/models/shared/index.js +5 -3
  50. package/dist/sdk/models/shared/paymenntlinklineitem.d.ts +20 -0
  51. package/dist/sdk/models/shared/paymenntlinklineitem.js +137 -0
  52. package/dist/sdk/models/shared/paymentlink.d.ts +15 -0
  53. package/dist/sdk/models/shared/paymentlink.js +105 -0
  54. package/dist/sdk/models/shared/{accountingpayment.d.ts → paymentpayment.d.ts} +1 -1
  55. package/dist/sdk/models/shared/{accountingpayment.js → paymentpayment.js} +18 -18
  56. package/dist/sdk/models/shared/{accountingpayout.d.ts → paymentpayout.d.ts} +3 -3
  57. package/dist/sdk/models/shared/{accountingpayout.js → paymentpayout.js} +21 -21
  58. package/dist/sdk/models/shared/{accountingrefund.d.ts → paymentrefund.d.ts} +3 -3
  59. package/dist/sdk/models/shared/{accountingrefund.js → paymentrefund.js} +23 -23
  60. package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +2 -1
  61. package/dist/sdk/models/shared/propertyconnectioncategories.js +1 -0
  62. package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -4
  63. package/dist/sdk/models/shared/propertyconnectionpermissions.js +6 -4
  64. package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +2 -1
  65. package/dist/sdk/models/shared/propertyintegrationcategories.js +1 -0
  66. package/dist/sdk/models/shared/webhook.d.ts +4 -3
  67. package/dist/sdk/models/shared/webhook.js +4 -3
  68. package/dist/sdk/payment.d.ts +46 -6
  69. package/dist/sdk/payment.js +705 -53
  70. package/dist/sdk/payout.d.ts +2 -2
  71. package/dist/sdk/payout.js +11 -11
  72. package/dist/sdk/refund.d.ts +2 -2
  73. package/dist/sdk/refund.js +11 -11
  74. package/dist/sdk/sdk.d.ts +5 -3
  75. package/dist/sdk/sdk.js +7 -5
  76. package/docs/sdk/models/operations/categories.md +2 -1
  77. package/docs/sdk/models/operations/createpaymentlinkrequest.md +9 -0
  78. package/docs/sdk/models/operations/createpaymentlinkresponse.md +11 -0
  79. package/docs/sdk/models/operations/createpaymentpaymentrequest.md +9 -0
  80. package/docs/sdk/models/operations/createpaymentpaymentresponse.md +11 -0
  81. package/docs/sdk/models/operations/getpaymentlinkrequest.md +10 -0
  82. package/docs/sdk/models/operations/getpaymentlinkresponse.md +11 -0
  83. package/docs/sdk/models/operations/{getaccountingpaymentrequest.md → getpaymentpaymentrequest.md} +1 -1
  84. package/docs/sdk/models/operations/getpaymentpaymentresponse.md +11 -0
  85. package/docs/sdk/models/operations/{getaccountingpayoutrequest.md → getpaymentpayoutrequest.md} +1 -1
  86. package/docs/sdk/models/operations/getpaymentpayoutresponse.md +11 -0
  87. package/docs/sdk/models/operations/{getaccountingrefundrequest.md → getpaymentrefundrequest.md} +1 -1
  88. package/docs/sdk/models/operations/getpaymentrefundresponse.md +11 -0
  89. package/docs/sdk/models/operations/listpaymentlinksrequest.md +17 -0
  90. package/docs/sdk/models/operations/listpaymentlinksresponse.md +11 -0
  91. package/docs/sdk/models/operations/{listaccountingpaymentsrequest.md → listpaymentpaymentsrequest.md} +1 -1
  92. package/docs/sdk/models/operations/listpaymentpaymentsresponse.md +11 -0
  93. package/docs/sdk/models/operations/{listaccountingpayoutsrequest.md → listpaymentpayoutsrequest.md} +1 -1
  94. package/docs/sdk/models/operations/listpaymentpayoutsresponse.md +11 -0
  95. package/docs/sdk/models/operations/{listaccountingrefundsrequest.md → listpaymentrefundsrequest.md} +1 -1
  96. package/docs/sdk/models/operations/listpaymentrefundsresponse.md +11 -0
  97. package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +2 -1
  98. package/docs/sdk/models/operations/patchpaymentlinkrequest.md +10 -0
  99. package/docs/sdk/models/operations/patchpaymentlinkresponse.md +11 -0
  100. package/docs/sdk/models/operations/patchpaymentpaymentrequest.md +10 -0
  101. package/docs/sdk/models/operations/patchpaymentpaymentresponse.md +11 -0
  102. package/docs/sdk/models/operations/queryparamcategories.md +2 -1
  103. package/docs/sdk/models/operations/{removeaccountingpaymentrequest.md → removepaymentlinkrequest.md} +2 -2
  104. package/docs/sdk/models/operations/{removeaccountingpaymentresponse.md → removepaymentlinkresponse.md} +1 -1
  105. package/docs/sdk/models/operations/removepaymentpaymentrequest.md +9 -0
  106. package/docs/sdk/models/operations/removepaymentpaymentresponse.md +11 -0
  107. package/docs/sdk/models/operations/scopes.md +6 -4
  108. package/docs/sdk/models/operations/updatepaymentlinkrequest.md +10 -0
  109. package/docs/sdk/models/operations/updatepaymentlinkresponse.md +11 -0
  110. package/docs/sdk/models/operations/updatepaymentpaymentrequest.md +10 -0
  111. package/docs/sdk/models/operations/updatepaymentpaymentresponse.md +11 -0
  112. package/docs/sdk/models/shared/objecttype.md +4 -3
  113. package/docs/sdk/models/shared/paymenntlinklineitem.md +24 -0
  114. package/docs/sdk/models/shared/paymentlink.md +18 -0
  115. package/docs/sdk/models/shared/{accountingpayment.md → paymentpayment.md} +1 -1
  116. package/docs/sdk/models/shared/paymentpayout.md +15 -0
  117. package/docs/sdk/models/shared/{accountingpayoutstatus.md → paymentpayoutstatus.md} +1 -1
  118. package/docs/sdk/models/shared/paymentrefund.md +17 -0
  119. package/docs/sdk/models/shared/{accountingrefundstatus.md → paymentrefundstatus.md} +1 -1
  120. package/docs/sdk/models/shared/propertyconnectioncategories.md +2 -1
  121. package/docs/sdk/models/shared/propertyconnectionpermissions.md +6 -4
  122. package/docs/sdk/models/shared/propertyintegrationcategories.md +2 -1
  123. package/package.json +1 -1
  124. package/docs/sdk/models/operations/createaccountingpaymentrequest.md +0 -9
  125. package/docs/sdk/models/operations/createaccountingpaymentresponse.md +0 -11
  126. package/docs/sdk/models/operations/getaccountingpaymentresponse.md +0 -11
  127. package/docs/sdk/models/operations/getaccountingpayoutresponse.md +0 -11
  128. package/docs/sdk/models/operations/getaccountingrefundresponse.md +0 -11
  129. package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +0 -11
  130. package/docs/sdk/models/operations/listaccountingpayoutsresponse.md +0 -11
  131. package/docs/sdk/models/operations/listaccountingrefundsresponse.md +0 -11
  132. package/docs/sdk/models/operations/patchaccountingpaymentrequest.md +0 -10
  133. package/docs/sdk/models/operations/patchaccountingpaymentresponse.md +0 -11
  134. package/docs/sdk/models/operations/updateaccountingpaymentrequest.md +0 -10
  135. package/docs/sdk/models/operations/updateaccountingpaymentresponse.md +0 -11
  136. package/docs/sdk/models/shared/accountingpayout.md +0 -15
  137. package/docs/sdk/models/shared/accountingrefund.md +0 -17
  138. package/docs/sdks/account/README.md +0 -312
  139. package/docs/sdks/accounting/README.md +0 -2198
  140. package/docs/sdks/activity/README.md +0 -321
  141. package/docs/sdks/apicall/README.md +0 -95
  142. package/docs/sdks/application/README.md +0 -333
  143. package/docs/sdks/applicationstatus/README.md +0 -54
  144. package/docs/sdks/ats/README.md +0 -2488
  145. package/docs/sdks/auth/README.md +0 -103
  146. package/docs/sdks/call/README.md +0 -54
  147. package/docs/sdks/candidate/README.md +0 -369
  148. package/docs/sdks/collection/README.md +0 -348
  149. package/docs/sdks/commerce/README.md +0 -1371
  150. package/docs/sdks/company/README.md +0 -517
  151. package/docs/sdks/connection/README.md +0 -359
  152. package/docs/sdks/contact/README.md +0 -1028
  153. package/docs/sdks/crm/README.md +0 -2048
  154. package/docs/sdks/customer/README.md +0 -348
  155. package/docs/sdks/deal/README.md +0 -315
  156. package/docs/sdks/document/README.md +0 -309
  157. package/docs/sdks/employee/README.md +0 -363
  158. package/docs/sdks/enrich/README.md +0 -97
  159. package/docs/sdks/event/README.md +0 -390
  160. package/docs/sdks/file/README.md +0 -330
  161. package/docs/sdks/group/README.md +0 -327
  162. package/docs/sdks/hris/README.md +0 -685
  163. package/docs/sdks/integration/README.md +0 -155
  164. package/docs/sdks/interview/README.md +0 -318
  165. package/docs/sdks/inventory/README.md +0 -309
  166. package/docs/sdks/invoice/README.md +0 -324
  167. package/docs/sdks/issue/README.md +0 -49
  168. package/docs/sdks/item/README.md +0 -417
  169. package/docs/sdks/job/README.md +0 -396
  170. package/docs/sdks/lead/README.md +0 -336
  171. package/docs/sdks/list/README.md +0 -306
  172. package/docs/sdks/location/README.md +0 -312
  173. package/docs/sdks/login/README.md +0 -52
  174. package/docs/sdks/martech/README.md +0 -643
  175. package/docs/sdks/member/README.md +0 -342
  176. package/docs/sdks/note/README.md +0 -306
  177. package/docs/sdks/organization/README.md +0 -104
  178. package/docs/sdks/passthrough/README.md +0 -249
  179. package/docs/sdks/payment/README.md +0 -306
  180. package/docs/sdks/payout/README.md +0 -104
  181. package/docs/sdks/person/README.md +0 -51
  182. package/docs/sdks/pipeline/README.md +0 -306
  183. package/docs/sdks/refund/README.md +0 -104
  184. package/docs/sdks/scorecard/README.md +0 -324
  185. package/docs/sdks/storage/README.md +0 -330
  186. package/docs/sdks/taxrate/README.md +0 -312
  187. package/docs/sdks/ticket/README.md +0 -318
  188. package/docs/sdks/ticketing/README.md +0 -962
  189. package/docs/sdks/transaction/README.md +0 -327
  190. package/docs/sdks/uc/README.md +0 -388
  191. package/docs/sdks/unified/README.md +0 -929
  192. package/docs/sdks/unifiedto/README.md +0 -9
  193. package/docs/sdks/webhook/README.md +0 -291
@@ -1,103 +0,0 @@
1
- # Auth
2
- (*auth*)
3
-
4
- ### Available Operations
5
-
6
- * [getUnifiedIntegrationAuth](#getunifiedintegrationauth) - Create connection indirectly
7
- * [getUnifiedIntegrationLogin](#getunifiedintegrationlogin) - Sign in a user
8
-
9
- ## getUnifiedIntegrationAuth
10
-
11
- Returns an authorization URL for the specified integration. Once a successful authorization occurs, a new connection is created.
12
-
13
- ### Example Usage
14
-
15
- ```typescript
16
- import { UnifiedTo } from "@unified-api/typescript-sdk";
17
- import { Scopes } from "@unified-api/typescript-sdk/dist/sdk/models/operations";
18
-
19
- async function run() {
20
- const sdk = new UnifiedTo({
21
- security: {
22
- jwt: "<YOUR_API_KEY_HERE>",
23
- },
24
- });
25
-
26
- const res = await sdk.auth.getUnifiedIntegrationAuth({
27
- integrationType: "<value>",
28
- scopes: [
29
- Scopes.HrisEmployeeWrite,
30
- ],
31
- workspaceId: "<value>",
32
- });
33
-
34
- if (res.statusCode == 200) {
35
- // handle response
36
- }
37
- }
38
-
39
- run();
40
- ```
41
-
42
- ### Parameters
43
-
44
- | Parameter | Type | Required | Description |
45
- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
46
- | `request` | [operations.GetUnifiedIntegrationAuthRequest](../../sdk/models/operations/getunifiedintegrationauthrequest.md) | :heavy_check_mark: | The request object to use for the request. |
47
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
48
-
49
-
50
- ### Response
51
-
52
- **Promise<[operations.GetUnifiedIntegrationAuthResponse](../../sdk/models/operations/getunifiedintegrationauthresponse.md)>**
53
- ### Errors
54
-
55
- | Error Object | Status Code | Content Type |
56
- | --------------- | --------------- | --------------- |
57
- | errors.SDKError | 4xx-5xx | */* |
58
-
59
- ## getUnifiedIntegrationLogin
60
-
61
- Returns an authentication URL for the specified integration. Once a successful authentication occurs, the name and email are returned inside a jwt parameter, which is a JSON web token that is base-64 encoded.
62
-
63
- ### Example Usage
64
-
65
- ```typescript
66
- import { UnifiedTo } from "@unified-api/typescript-sdk";
67
-
68
- async function run() {
69
- const sdk = new UnifiedTo({
70
- security: {
71
- jwt: "<YOUR_API_KEY_HERE>",
72
- },
73
- });
74
-
75
- const res = await sdk.auth.getUnifiedIntegrationLogin({
76
- integrationType: "<value>",
77
- workspaceId: "<value>",
78
- });
79
-
80
- if (res.statusCode == 200) {
81
- // handle response
82
- }
83
- }
84
-
85
- run();
86
- ```
87
-
88
- ### Parameters
89
-
90
- | Parameter | Type | Required | Description |
91
- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
92
- | `request` | [operations.GetUnifiedIntegrationLoginRequest](../../sdk/models/operations/getunifiedintegrationloginrequest.md) | :heavy_check_mark: | The request object to use for the request. |
93
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
94
-
95
-
96
- ### Response
97
-
98
- **Promise<[operations.GetUnifiedIntegrationLoginResponse](../../sdk/models/operations/getunifiedintegrationloginresponse.md)>**
99
- ### Errors
100
-
101
- | Error Object | Status Code | Content Type |
102
- | --------------- | --------------- | --------------- |
103
- | errors.SDKError | 4xx-5xx | */* |
@@ -1,54 +0,0 @@
1
- # Call
2
- (*call*)
3
-
4
- ### Available Operations
5
-
6
- * [listUcCalls](#listuccalls) - List all calls
7
-
8
- ## listUcCalls
9
-
10
- List all calls
11
-
12
- ### Example Usage
13
-
14
- ```typescript
15
- import { UnifiedTo } from "@unified-api/typescript-sdk";
16
-
17
- async function run() {
18
- const sdk = new UnifiedTo({
19
- security: {
20
- jwt: "<YOUR_API_KEY_HERE>",
21
- },
22
- });
23
-
24
- const res = await sdk.call.listUcCalls({
25
- connectionId: "<value>",
26
- fields: [
27
- "<value>",
28
- ],
29
- });
30
-
31
- if (res.statusCode == 200) {
32
- // handle response
33
- }
34
- }
35
-
36
- run();
37
- ```
38
-
39
- ### Parameters
40
-
41
- | Parameter | Type | Required | Description |
42
- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
43
- | `request` | [operations.ListUcCallsRequest](../../sdk/models/operations/listuccallsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
44
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
45
-
46
-
47
- ### Response
48
-
49
- **Promise<[operations.ListUcCallsResponse](../../sdk/models/operations/listuccallsresponse.md)>**
50
- ### Errors
51
-
52
- | Error Object | Status Code | Content Type |
53
- | --------------- | --------------- | --------------- |
54
- | errors.SDKError | 4xx-5xx | */* |
@@ -1,369 +0,0 @@
1
- # Candidate
2
- (*candidate*)
3
-
4
- ### Available Operations
5
-
6
- * [createAtsCandidate](#createatscandidate) - Create a candidate
7
- * [getAtsCandidate](#getatscandidate) - Retrieve a candidate
8
- * [listAtsCandidates](#listatscandidates) - List all candidates
9
- * [patchAtsCandidate](#patchatscandidate) - Update a candidate
10
- * [removeAtsCandidate](#removeatscandidate) - Remove a candidate
11
- * [updateAtsCandidate](#updateatscandidate) - Update a candidate
12
-
13
- ## createAtsCandidate
14
-
15
- Create a candidate
16
-
17
- ### Example Usage
18
-
19
- ```typescript
20
- import { UnifiedTo } from "@unified-api/typescript-sdk";
21
- import { AtsEmailType, AtsTelephoneType, Origin } 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.candidate.createAtsCandidate({
31
- atsCandidate: {
32
- address: {},
33
- emails: [
34
- {
35
- email: "Robin_Feeney@hotmail.com",
36
- },
37
- ],
38
- linkUrls: [
39
- "<value>",
40
- ],
41
- raw: {
42
- "key": "<value>",
43
- },
44
- sources: [
45
- "<value>",
46
- ],
47
- tags: [
48
- "<value>",
49
- ],
50
- telephones: [
51
- {
52
- telephone: "<value>",
53
- },
54
- ],
55
- },
56
- connectionId: "<value>",
57
- });
58
-
59
- if (res.statusCode == 200) {
60
- // handle response
61
- }
62
- }
63
-
64
- run();
65
- ```
66
-
67
- ### Parameters
68
-
69
- | Parameter | Type | Required | Description |
70
- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
71
- | `request` | [operations.CreateAtsCandidateRequest](../../sdk/models/operations/createatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
72
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
73
-
74
-
75
- ### Response
76
-
77
- **Promise<[operations.CreateAtsCandidateResponse](../../sdk/models/operations/createatscandidateresponse.md)>**
78
- ### Errors
79
-
80
- | Error Object | Status Code | Content Type |
81
- | --------------- | --------------- | --------------- |
82
- | errors.SDKError | 4xx-5xx | */* |
83
-
84
- ## getAtsCandidate
85
-
86
- Retrieve a candidate
87
-
88
- ### Example Usage
89
-
90
- ```typescript
91
- import { UnifiedTo } from "@unified-api/typescript-sdk";
92
-
93
- async function run() {
94
- const sdk = new UnifiedTo({
95
- security: {
96
- jwt: "<YOUR_API_KEY_HERE>",
97
- },
98
- });
99
-
100
- const res = await sdk.candidate.getAtsCandidate({
101
- connectionId: "<value>",
102
- fields: [
103
- "<value>",
104
- ],
105
- id: "<id>",
106
- });
107
-
108
- if (res.statusCode == 200) {
109
- // handle response
110
- }
111
- }
112
-
113
- run();
114
- ```
115
-
116
- ### Parameters
117
-
118
- | Parameter | Type | Required | Description |
119
- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
120
- | `request` | [operations.GetAtsCandidateRequest](../../sdk/models/operations/getatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
121
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
122
-
123
-
124
- ### Response
125
-
126
- **Promise<[operations.GetAtsCandidateResponse](../../sdk/models/operations/getatscandidateresponse.md)>**
127
- ### Errors
128
-
129
- | Error Object | Status Code | Content Type |
130
- | --------------- | --------------- | --------------- |
131
- | errors.SDKError | 4xx-5xx | */* |
132
-
133
- ## listAtsCandidates
134
-
135
- List all candidates
136
-
137
- ### Example Usage
138
-
139
- ```typescript
140
- import { UnifiedTo } from "@unified-api/typescript-sdk";
141
-
142
- async function run() {
143
- const sdk = new UnifiedTo({
144
- security: {
145
- jwt: "<YOUR_API_KEY_HERE>",
146
- },
147
- });
148
-
149
- const res = await sdk.candidate.listAtsCandidates({
150
- connectionId: "<value>",
151
- fields: [
152
- "<value>",
153
- ],
154
- });
155
-
156
- if (res.statusCode == 200) {
157
- // handle response
158
- }
159
- }
160
-
161
- run();
162
- ```
163
-
164
- ### Parameters
165
-
166
- | Parameter | Type | Required | Description |
167
- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
168
- | `request` | [operations.ListAtsCandidatesRequest](../../sdk/models/operations/listatscandidatesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
169
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
170
-
171
-
172
- ### Response
173
-
174
- **Promise<[operations.ListAtsCandidatesResponse](../../sdk/models/operations/listatscandidatesresponse.md)>**
175
- ### Errors
176
-
177
- | Error Object | Status Code | Content Type |
178
- | --------------- | --------------- | --------------- |
179
- | errors.SDKError | 4xx-5xx | */* |
180
-
181
- ## patchAtsCandidate
182
-
183
- Update a candidate
184
-
185
- ### Example Usage
186
-
187
- ```typescript
188
- import { UnifiedTo } from "@unified-api/typescript-sdk";
189
- import { AtsEmailType, AtsTelephoneType, Origin } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
190
-
191
- async function run() {
192
- const sdk = new UnifiedTo({
193
- security: {
194
- jwt: "<YOUR_API_KEY_HERE>",
195
- },
196
- });
197
-
198
- const res = await sdk.candidate.patchAtsCandidate({
199
- atsCandidate: {
200
- address: {},
201
- emails: [
202
- {
203
- email: "Tracy.Collins13@gmail.com",
204
- },
205
- ],
206
- linkUrls: [
207
- "<value>",
208
- ],
209
- raw: {
210
- "key": "<value>",
211
- },
212
- sources: [
213
- "<value>",
214
- ],
215
- tags: [
216
- "<value>",
217
- ],
218
- telephones: [
219
- {
220
- telephone: "<value>",
221
- },
222
- ],
223
- },
224
- connectionId: "<value>",
225
- id: "<id>",
226
- });
227
-
228
- if (res.statusCode == 200) {
229
- // handle response
230
- }
231
- }
232
-
233
- run();
234
- ```
235
-
236
- ### Parameters
237
-
238
- | Parameter | Type | Required | Description |
239
- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
240
- | `request` | [operations.PatchAtsCandidateRequest](../../sdk/models/operations/patchatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
241
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
242
-
243
-
244
- ### Response
245
-
246
- **Promise<[operations.PatchAtsCandidateResponse](../../sdk/models/operations/patchatscandidateresponse.md)>**
247
- ### Errors
248
-
249
- | Error Object | Status Code | Content Type |
250
- | --------------- | --------------- | --------------- |
251
- | errors.SDKError | 4xx-5xx | */* |
252
-
253
- ## removeAtsCandidate
254
-
255
- Remove a candidate
256
-
257
- ### Example Usage
258
-
259
- ```typescript
260
- import { UnifiedTo } from "@unified-api/typescript-sdk";
261
-
262
- async function run() {
263
- const sdk = new UnifiedTo({
264
- security: {
265
- jwt: "<YOUR_API_KEY_HERE>",
266
- },
267
- });
268
-
269
- const res = await sdk.candidate.removeAtsCandidate({
270
- connectionId: "<value>",
271
- id: "<id>",
272
- });
273
-
274
- if (res.statusCode == 200) {
275
- // handle response
276
- }
277
- }
278
-
279
- run();
280
- ```
281
-
282
- ### Parameters
283
-
284
- | Parameter | Type | Required | Description |
285
- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
286
- | `request` | [operations.RemoveAtsCandidateRequest](../../sdk/models/operations/removeatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
287
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
288
-
289
-
290
- ### Response
291
-
292
- **Promise<[operations.RemoveAtsCandidateResponse](../../sdk/models/operations/removeatscandidateresponse.md)>**
293
- ### Errors
294
-
295
- | Error Object | Status Code | Content Type |
296
- | --------------- | --------------- | --------------- |
297
- | errors.SDKError | 4xx-5xx | */* |
298
-
299
- ## updateAtsCandidate
300
-
301
- Update a candidate
302
-
303
- ### Example Usage
304
-
305
- ```typescript
306
- import { UnifiedTo } from "@unified-api/typescript-sdk";
307
- import { AtsEmailType, AtsTelephoneType, Origin } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
308
-
309
- async function run() {
310
- const sdk = new UnifiedTo({
311
- security: {
312
- jwt: "<YOUR_API_KEY_HERE>",
313
- },
314
- });
315
-
316
- const res = await sdk.candidate.updateAtsCandidate({
317
- atsCandidate: {
318
- address: {},
319
- emails: [
320
- {
321
- email: "Gaetano86@hotmail.com",
322
- },
323
- ],
324
- linkUrls: [
325
- "<value>",
326
- ],
327
- raw: {
328
- "key": "<value>",
329
- },
330
- sources: [
331
- "<value>",
332
- ],
333
- tags: [
334
- "<value>",
335
- ],
336
- telephones: [
337
- {
338
- telephone: "<value>",
339
- },
340
- ],
341
- },
342
- connectionId: "<value>",
343
- id: "<id>",
344
- });
345
-
346
- if (res.statusCode == 200) {
347
- // handle response
348
- }
349
- }
350
-
351
- run();
352
- ```
353
-
354
- ### Parameters
355
-
356
- | Parameter | Type | Required | Description |
357
- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
358
- | `request` | [operations.UpdateAtsCandidateRequest](../../sdk/models/operations/updateatscandidaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
359
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
360
-
361
-
362
- ### Response
363
-
364
- **Promise<[operations.UpdateAtsCandidateResponse](../../sdk/models/operations/updateatscandidateresponse.md)>**
365
- ### Errors
366
-
367
- | Error Object | Status Code | Content Type |
368
- | --------------- | --------------- | --------------- |
369
- | errors.SDKError | 4xx-5xx | */* |