@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,348 +0,0 @@
1
- # Customer
2
- (*customer*)
3
-
4
- ### Available Operations
5
-
6
- * [createTicketingCustomer](#createticketingcustomer) - Create a customer
7
- * [getTicketingCustomer](#getticketingcustomer) - Retrieve a customer
8
- * [listTicketingCustomers](#listticketingcustomers) - List all customers
9
- * [patchTicketingCustomer](#patchticketingcustomer) - Update a customer
10
- * [removeTicketingCustomer](#removeticketingcustomer) - Remove a customer
11
- * [updateTicketingCustomer](#updateticketingcustomer) - Update a customer
12
-
13
- ## createTicketingCustomer
14
-
15
- Create a customer
16
-
17
- ### Example Usage
18
-
19
- ```typescript
20
- import { UnifiedTo } from "@unified-api/typescript-sdk";
21
- import { TicketingEmailType, TicketingTelephoneType } 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.customer.createTicketingCustomer({
31
- ticketingCustomer: {
32
- emails: [
33
- {
34
- email: "Guadalupe78@yahoo.com",
35
- },
36
- ],
37
- raw: {
38
- "key": "<value>",
39
- },
40
- tags: [
41
- "<value>",
42
- ],
43
- telephones: [
44
- {
45
- telephone: "<value>",
46
- },
47
- ],
48
- },
49
- connectionId: "<value>",
50
- });
51
-
52
- if (res.statusCode == 200) {
53
- // handle response
54
- }
55
- }
56
-
57
- run();
58
- ```
59
-
60
- ### Parameters
61
-
62
- | Parameter | Type | Required | Description |
63
- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
64
- | `request` | [operations.CreateTicketingCustomerRequest](../../sdk/models/operations/createticketingcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
65
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
66
-
67
-
68
- ### Response
69
-
70
- **Promise<[operations.CreateTicketingCustomerResponse](../../sdk/models/operations/createticketingcustomerresponse.md)>**
71
- ### Errors
72
-
73
- | Error Object | Status Code | Content Type |
74
- | --------------- | --------------- | --------------- |
75
- | errors.SDKError | 4xx-5xx | */* |
76
-
77
- ## getTicketingCustomer
78
-
79
- Retrieve a customer
80
-
81
- ### Example Usage
82
-
83
- ```typescript
84
- import { UnifiedTo } from "@unified-api/typescript-sdk";
85
-
86
- async function run() {
87
- const sdk = new UnifiedTo({
88
- security: {
89
- jwt: "<YOUR_API_KEY_HERE>",
90
- },
91
- });
92
-
93
- const res = await sdk.customer.getTicketingCustomer({
94
- connectionId: "<value>",
95
- fields: [
96
- "<value>",
97
- ],
98
- id: "<id>",
99
- });
100
-
101
- if (res.statusCode == 200) {
102
- // handle response
103
- }
104
- }
105
-
106
- run();
107
- ```
108
-
109
- ### Parameters
110
-
111
- | Parameter | Type | Required | Description |
112
- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
113
- | `request` | [operations.GetTicketingCustomerRequest](../../sdk/models/operations/getticketingcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
114
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
115
-
116
-
117
- ### Response
118
-
119
- **Promise<[operations.GetTicketingCustomerResponse](../../sdk/models/operations/getticketingcustomerresponse.md)>**
120
- ### Errors
121
-
122
- | Error Object | Status Code | Content Type |
123
- | --------------- | --------------- | --------------- |
124
- | errors.SDKError | 4xx-5xx | */* |
125
-
126
- ## listTicketingCustomers
127
-
128
- List all customers
129
-
130
- ### Example Usage
131
-
132
- ```typescript
133
- import { UnifiedTo } from "@unified-api/typescript-sdk";
134
-
135
- async function run() {
136
- const sdk = new UnifiedTo({
137
- security: {
138
- jwt: "<YOUR_API_KEY_HERE>",
139
- },
140
- });
141
-
142
- const res = await sdk.customer.listTicketingCustomers({
143
- connectionId: "<value>",
144
- fields: [
145
- "<value>",
146
- ],
147
- });
148
-
149
- if (res.statusCode == 200) {
150
- // handle response
151
- }
152
- }
153
-
154
- run();
155
- ```
156
-
157
- ### Parameters
158
-
159
- | Parameter | Type | Required | Description |
160
- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
161
- | `request` | [operations.ListTicketingCustomersRequest](../../sdk/models/operations/listticketingcustomersrequest.md) | :heavy_check_mark: | The request object to use for the request. |
162
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
163
-
164
-
165
- ### Response
166
-
167
- **Promise<[operations.ListTicketingCustomersResponse](../../sdk/models/operations/listticketingcustomersresponse.md)>**
168
- ### Errors
169
-
170
- | Error Object | Status Code | Content Type |
171
- | --------------- | --------------- | --------------- |
172
- | errors.SDKError | 4xx-5xx | */* |
173
-
174
- ## patchTicketingCustomer
175
-
176
- Update a customer
177
-
178
- ### Example Usage
179
-
180
- ```typescript
181
- import { UnifiedTo } from "@unified-api/typescript-sdk";
182
- import { TicketingEmailType, TicketingTelephoneType } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
183
-
184
- async function run() {
185
- const sdk = new UnifiedTo({
186
- security: {
187
- jwt: "<YOUR_API_KEY_HERE>",
188
- },
189
- });
190
-
191
- const res = await sdk.customer.patchTicketingCustomer({
192
- ticketingCustomer: {
193
- emails: [
194
- {
195
- email: "Raymundo93@hotmail.com",
196
- },
197
- ],
198
- raw: {
199
- "key": "<value>",
200
- },
201
- tags: [
202
- "<value>",
203
- ],
204
- telephones: [
205
- {
206
- telephone: "<value>",
207
- },
208
- ],
209
- },
210
- connectionId: "<value>",
211
- id: "<id>",
212
- });
213
-
214
- if (res.statusCode == 200) {
215
- // handle response
216
- }
217
- }
218
-
219
- run();
220
- ```
221
-
222
- ### Parameters
223
-
224
- | Parameter | Type | Required | Description |
225
- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
226
- | `request` | [operations.PatchTicketingCustomerRequest](../../sdk/models/operations/patchticketingcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
227
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
228
-
229
-
230
- ### Response
231
-
232
- **Promise<[operations.PatchTicketingCustomerResponse](../../sdk/models/operations/patchticketingcustomerresponse.md)>**
233
- ### Errors
234
-
235
- | Error Object | Status Code | Content Type |
236
- | --------------- | --------------- | --------------- |
237
- | errors.SDKError | 4xx-5xx | */* |
238
-
239
- ## removeTicketingCustomer
240
-
241
- Remove a customer
242
-
243
- ### Example Usage
244
-
245
- ```typescript
246
- import { UnifiedTo } from "@unified-api/typescript-sdk";
247
-
248
- async function run() {
249
- const sdk = new UnifiedTo({
250
- security: {
251
- jwt: "<YOUR_API_KEY_HERE>",
252
- },
253
- });
254
-
255
- const res = await sdk.customer.removeTicketingCustomer({
256
- connectionId: "<value>",
257
- id: "<id>",
258
- });
259
-
260
- if (res.statusCode == 200) {
261
- // handle response
262
- }
263
- }
264
-
265
- run();
266
- ```
267
-
268
- ### Parameters
269
-
270
- | Parameter | Type | Required | Description |
271
- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
272
- | `request` | [operations.RemoveTicketingCustomerRequest](../../sdk/models/operations/removeticketingcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
273
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
274
-
275
-
276
- ### Response
277
-
278
- **Promise<[operations.RemoveTicketingCustomerResponse](../../sdk/models/operations/removeticketingcustomerresponse.md)>**
279
- ### Errors
280
-
281
- | Error Object | Status Code | Content Type |
282
- | --------------- | --------------- | --------------- |
283
- | errors.SDKError | 4xx-5xx | */* |
284
-
285
- ## updateTicketingCustomer
286
-
287
- Update a customer
288
-
289
- ### Example Usage
290
-
291
- ```typescript
292
- import { UnifiedTo } from "@unified-api/typescript-sdk";
293
- import { TicketingEmailType, TicketingTelephoneType } from "@unified-api/typescript-sdk/dist/sdk/models/shared";
294
-
295
- async function run() {
296
- const sdk = new UnifiedTo({
297
- security: {
298
- jwt: "<YOUR_API_KEY_HERE>",
299
- },
300
- });
301
-
302
- const res = await sdk.customer.updateTicketingCustomer({
303
- ticketingCustomer: {
304
- emails: [
305
- {
306
- email: "Mohamed.Friesen@hotmail.com",
307
- },
308
- ],
309
- raw: {
310
- "key": "<value>",
311
- },
312
- tags: [
313
- "<value>",
314
- ],
315
- telephones: [
316
- {
317
- telephone: "<value>",
318
- },
319
- ],
320
- },
321
- connectionId: "<value>",
322
- id: "<id>",
323
- });
324
-
325
- if (res.statusCode == 200) {
326
- // handle response
327
- }
328
- }
329
-
330
- run();
331
- ```
332
-
333
- ### Parameters
334
-
335
- | Parameter | Type | Required | Description |
336
- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
337
- | `request` | [operations.UpdateTicketingCustomerRequest](../../sdk/models/operations/updateticketingcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
338
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
339
-
340
-
341
- ### Response
342
-
343
- **Promise<[operations.UpdateTicketingCustomerResponse](../../sdk/models/operations/updateticketingcustomerresponse.md)>**
344
- ### Errors
345
-
346
- | Error Object | Status Code | Content Type |
347
- | --------------- | --------------- | --------------- |
348
- | errors.SDKError | 4xx-5xx | */* |
@@ -1,315 +0,0 @@
1
- # Deal
2
- (*deal*)
3
-
4
- ### Available Operations
5
-
6
- * [createCrmDeal](#createcrmdeal) - Create a deal
7
- * [getCrmDeal](#getcrmdeal) - Retrieve a deal
8
- * [listCrmDeals](#listcrmdeals) - List all deals
9
- * [patchCrmDeal](#patchcrmdeal) - Update a deal
10
- * [removeCrmDeal](#removecrmdeal) - Remove a deal
11
- * [updateCrmDeal](#updatecrmdeal) - Update a deal
12
-
13
- ## createCrmDeal
14
-
15
- Create a deal
16
-
17
- ### Example Usage
18
-
19
- ```typescript
20
- import { UnifiedTo } from "@unified-api/typescript-sdk";
21
-
22
- async function run() {
23
- const sdk = new UnifiedTo({
24
- security: {
25
- jwt: "<YOUR_API_KEY_HERE>",
26
- },
27
- });
28
-
29
- const res = await sdk.deal.createCrmDeal({
30
- crmDeal: {
31
- raw: {
32
- "key": "<value>",
33
- },
34
- tags: [
35
- "<value>",
36
- ],
37
- },
38
- connectionId: "<value>",
39
- });
40
-
41
- if (res.statusCode == 200) {
42
- // handle response
43
- }
44
- }
45
-
46
- run();
47
- ```
48
-
49
- ### Parameters
50
-
51
- | Parameter | Type | Required | Description |
52
- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
53
- | `request` | [operations.CreateCrmDealRequest](../../sdk/models/operations/createcrmdealrequest.md) | :heavy_check_mark: | The request object to use for the request. |
54
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
55
-
56
-
57
- ### Response
58
-
59
- **Promise<[operations.CreateCrmDealResponse](../../sdk/models/operations/createcrmdealresponse.md)>**
60
- ### Errors
61
-
62
- | Error Object | Status Code | Content Type |
63
- | --------------- | --------------- | --------------- |
64
- | errors.SDKError | 4xx-5xx | */* |
65
-
66
- ## getCrmDeal
67
-
68
- Retrieve a deal
69
-
70
- ### Example Usage
71
-
72
- ```typescript
73
- import { UnifiedTo } from "@unified-api/typescript-sdk";
74
-
75
- async function run() {
76
- const sdk = new UnifiedTo({
77
- security: {
78
- jwt: "<YOUR_API_KEY_HERE>",
79
- },
80
- });
81
-
82
- const res = await sdk.deal.getCrmDeal({
83
- connectionId: "<value>",
84
- fields: [
85
- "<value>",
86
- ],
87
- id: "<id>",
88
- });
89
-
90
- if (res.statusCode == 200) {
91
- // handle response
92
- }
93
- }
94
-
95
- run();
96
- ```
97
-
98
- ### Parameters
99
-
100
- | Parameter | Type | Required | Description |
101
- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
102
- | `request` | [operations.GetCrmDealRequest](../../sdk/models/operations/getcrmdealrequest.md) | :heavy_check_mark: | The request object to use for the request. |
103
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
104
-
105
-
106
- ### Response
107
-
108
- **Promise<[operations.GetCrmDealResponse](../../sdk/models/operations/getcrmdealresponse.md)>**
109
- ### Errors
110
-
111
- | Error Object | Status Code | Content Type |
112
- | --------------- | --------------- | --------------- |
113
- | errors.SDKError | 4xx-5xx | */* |
114
-
115
- ## listCrmDeals
116
-
117
- List all deals
118
-
119
- ### Example Usage
120
-
121
- ```typescript
122
- import { UnifiedTo } from "@unified-api/typescript-sdk";
123
-
124
- async function run() {
125
- const sdk = new UnifiedTo({
126
- security: {
127
- jwt: "<YOUR_API_KEY_HERE>",
128
- },
129
- });
130
-
131
- const res = await sdk.deal.listCrmDeals({
132
- connectionId: "<value>",
133
- fields: [
134
- "<value>",
135
- ],
136
- });
137
-
138
- if (res.statusCode == 200) {
139
- // handle response
140
- }
141
- }
142
-
143
- run();
144
- ```
145
-
146
- ### Parameters
147
-
148
- | Parameter | Type | Required | Description |
149
- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
150
- | `request` | [operations.ListCrmDealsRequest](../../sdk/models/operations/listcrmdealsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
151
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
152
-
153
-
154
- ### Response
155
-
156
- **Promise<[operations.ListCrmDealsResponse](../../sdk/models/operations/listcrmdealsresponse.md)>**
157
- ### Errors
158
-
159
- | Error Object | Status Code | Content Type |
160
- | --------------- | --------------- | --------------- |
161
- | errors.SDKError | 4xx-5xx | */* |
162
-
163
- ## patchCrmDeal
164
-
165
- Update a deal
166
-
167
- ### Example Usage
168
-
169
- ```typescript
170
- import { UnifiedTo } from "@unified-api/typescript-sdk";
171
-
172
- async function run() {
173
- const sdk = new UnifiedTo({
174
- security: {
175
- jwt: "<YOUR_API_KEY_HERE>",
176
- },
177
- });
178
-
179
- const res = await sdk.deal.patchCrmDeal({
180
- crmDeal: {
181
- raw: {
182
- "key": "<value>",
183
- },
184
- tags: [
185
- "<value>",
186
- ],
187
- },
188
- connectionId: "<value>",
189
- id: "<id>",
190
- });
191
-
192
- if (res.statusCode == 200) {
193
- // handle response
194
- }
195
- }
196
-
197
- run();
198
- ```
199
-
200
- ### Parameters
201
-
202
- | Parameter | Type | Required | Description |
203
- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
204
- | `request` | [operations.PatchCrmDealRequest](../../sdk/models/operations/patchcrmdealrequest.md) | :heavy_check_mark: | The request object to use for the request. |
205
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
206
-
207
-
208
- ### Response
209
-
210
- **Promise<[operations.PatchCrmDealResponse](../../sdk/models/operations/patchcrmdealresponse.md)>**
211
- ### Errors
212
-
213
- | Error Object | Status Code | Content Type |
214
- | --------------- | --------------- | --------------- |
215
- | errors.SDKError | 4xx-5xx | */* |
216
-
217
- ## removeCrmDeal
218
-
219
- Remove a deal
220
-
221
- ### Example Usage
222
-
223
- ```typescript
224
- import { UnifiedTo } from "@unified-api/typescript-sdk";
225
-
226
- async function run() {
227
- const sdk = new UnifiedTo({
228
- security: {
229
- jwt: "<YOUR_API_KEY_HERE>",
230
- },
231
- });
232
-
233
- const res = await sdk.deal.removeCrmDeal({
234
- connectionId: "<value>",
235
- id: "<id>",
236
- });
237
-
238
- if (res.statusCode == 200) {
239
- // handle response
240
- }
241
- }
242
-
243
- run();
244
- ```
245
-
246
- ### Parameters
247
-
248
- | Parameter | Type | Required | Description |
249
- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
250
- | `request` | [operations.RemoveCrmDealRequest](../../sdk/models/operations/removecrmdealrequest.md) | :heavy_check_mark: | The request object to use for the request. |
251
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
252
-
253
-
254
- ### Response
255
-
256
- **Promise<[operations.RemoveCrmDealResponse](../../sdk/models/operations/removecrmdealresponse.md)>**
257
- ### Errors
258
-
259
- | Error Object | Status Code | Content Type |
260
- | --------------- | --------------- | --------------- |
261
- | errors.SDKError | 4xx-5xx | */* |
262
-
263
- ## updateCrmDeal
264
-
265
- Update a deal
266
-
267
- ### Example Usage
268
-
269
- ```typescript
270
- import { UnifiedTo } from "@unified-api/typescript-sdk";
271
-
272
- async function run() {
273
- const sdk = new UnifiedTo({
274
- security: {
275
- jwt: "<YOUR_API_KEY_HERE>",
276
- },
277
- });
278
-
279
- const res = await sdk.deal.updateCrmDeal({
280
- crmDeal: {
281
- raw: {
282
- "key": "<value>",
283
- },
284
- tags: [
285
- "<value>",
286
- ],
287
- },
288
- connectionId: "<value>",
289
- id: "<id>",
290
- });
291
-
292
- if (res.statusCode == 200) {
293
- // handle response
294
- }
295
- }
296
-
297
- run();
298
- ```
299
-
300
- ### Parameters
301
-
302
- | Parameter | Type | Required | Description |
303
- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
304
- | `request` | [operations.UpdateCrmDealRequest](../../sdk/models/operations/updatecrmdealrequest.md) | :heavy_check_mark: | The request object to use for the request. |
305
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
306
-
307
-
308
- ### Response
309
-
310
- **Promise<[operations.UpdateCrmDealResponse](../../sdk/models/operations/updatecrmdealresponse.md)>**
311
- ### Errors
312
-
313
- | Error Object | Status Code | Content Type |
314
- | --------------- | --------------- | --------------- |
315
- | errors.SDKError | 4xx-5xx | */* |