@fenixalliance/abs-api-client 1.0.9 → 1.0.10
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.
- package/app/index.js +2 -2
- package/app/index.ts +1 -1
- package/clients/contentService/services/PortalsService.js +22 -11
- package/clients/contentService/services/PortalsService.ts +22 -11
- package/clients/crmService/services/ContactsService.js +86 -28
- package/clients/crmService/services/ContactsService.ts +86 -28
- package/clients/holderService/index.js +7 -3
- package/clients/holderService/index.ts +3 -2
- package/clients/holderService/services/{HolderService.js → IdentityService.js} +58 -176
- package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +58 -200
- package/clients/holderService/services/TenantsService.js +151 -0
- package/clients/holderService/services/TenantsService.ts +176 -0
- package/clients/holderService/services/UserService.js +364 -0
- package/clients/holderService/services/UserService.ts +421 -0
- package/clients/storageService/services/AvatarsService.js +19 -8
- package/clients/storageService/services/AvatarsService.ts +19 -8
- package/clients/systemService/services/ModulesService.js +4 -2
- package/clients/systemService/services/ModulesService.ts +4 -2
- package/clients/systemService/services/TenantsService.js +24 -8
- package/clients/systemService/services/TenantsService.ts +24 -8
- package/clients/tenantService/index.js +1 -29
- package/clients/tenantService/index.ts +7 -20
- package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → tenantService/models/TenantIndustryDtoListEnvelope.ts} +3 -3
- package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/services/SizesService.js +15 -5
- package/clients/tenantService/services/SizesService.ts +15 -5
- package/clients/tenantService/services/TenantsService.js +2554 -233
- package/clients/tenantService/services/TenantsService.ts +3004 -307
- package/package.json +1 -1
- package/schemas/contentService/schema.s.ts +850 -817
- package/schemas/crmService/schema.s.ts +1776 -1516
- package/schemas/holderService/schema.s.ts +256 -115
- package/schemas/storageService/schema.s.ts +439 -394
- package/schemas/systemService/schema.s.ts +465 -387
- package/schemas/tenantService/schema.s.ts +5713 -4820
- package/clients/tenantService/services/DepartmentsService.js +0 -161
- package/clients/tenantService/services/DepartmentsService.ts +0 -192
- package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
- package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
- package/clients/tenantService/services/EnrollmentsService.js +0 -163
- package/clients/tenantService/services/EnrollmentsService.ts +0 -195
- package/clients/tenantService/services/IndustriesService.js +0 -161
- package/clients/tenantService/services/IndustriesService.ts +0 -190
- package/clients/tenantService/services/InvitationsService.js +0 -128
- package/clients/tenantService/services/InvitationsService.ts +0 -150
- package/clients/tenantService/services/PositionsService.js +0 -161
- package/clients/tenantService/services/PositionsService.ts +0 -192
- package/clients/tenantService/services/SegmentsService.js +0 -161
- package/clients/tenantService/services/SegmentsService.ts +0 -191
- package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
- package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
- package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
- package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
- package/clients/tenantService/services/TeamRecordsService.js +0 -161
- package/clients/tenantService/services/TeamRecordsService.ts +0 -192
- package/clients/tenantService/services/TeamsService.js +0 -161
- package/clients/tenantService/services/TeamsService.ts +0 -192
- package/clients/tenantService/services/TerritoriesService.js +0 -161
- package/clients/tenantService/services/TerritoriesService.ts +0 -192
- package/clients/tenantService/services/TypesService.js +0 -149
- package/clients/tenantService/services/TypesService.ts +0 -176
- package/clients/tenantService/services/UnitsService.js +0 -159
- package/clients/tenantService/services/UnitsService.ts +0 -190
- /package/clients/{holderService/models/EmptyEnvelopeEnvelope.js → tenantService/models/TenantIndustryDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamContactEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.js → TenantTeamDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamEmployeeEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamProjectEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → TenantTeamRecordDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.js → TenantTypeDtoListEnvelope.js} +0 -0
|
@@ -5,12 +5,14 @@ const OpenAPI_1 = require("../core/OpenAPI");
|
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class ContactsService {
|
|
7
7
|
/**
|
|
8
|
+
* Get all business owned contacts
|
|
9
|
+
* Get all business owned contacts
|
|
8
10
|
* @param tenantId
|
|
9
11
|
* @param xApiVersion
|
|
10
12
|
* @returns ContactDtoListEnvelope OK
|
|
11
13
|
* @throws ApiError
|
|
12
14
|
*/
|
|
13
|
-
static
|
|
15
|
+
static getContactsAsync(tenantId, xApiVersion) {
|
|
14
16
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
15
17
|
method: 'GET',
|
|
16
18
|
url: '/api/v2/CrmService/Contacts',
|
|
@@ -27,13 +29,15 @@ class ContactsService {
|
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
32
|
+
* Create a new contact
|
|
33
|
+
* Create a new contact
|
|
30
34
|
* @param tenantId
|
|
31
35
|
* @param xApiVersion
|
|
32
36
|
* @param requestBody
|
|
33
37
|
* @returns EmptyEnvelope OK
|
|
34
38
|
* @throws ApiError
|
|
35
39
|
*/
|
|
36
|
-
static
|
|
40
|
+
static createContactAsync(tenantId, xApiVersion, requestBody) {
|
|
37
41
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
38
42
|
method: 'POST',
|
|
39
43
|
url: '/api/v2/CrmService/Contacts',
|
|
@@ -52,12 +56,14 @@ class ContactsService {
|
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
59
|
+
* Get all business owned contacts count
|
|
60
|
+
* Get all business owned contacts count
|
|
55
61
|
* @param tenantId
|
|
56
62
|
* @param xApiVersion
|
|
57
63
|
* @returns ContactDtoListEnvelope OK
|
|
58
64
|
* @throws ApiError
|
|
59
65
|
*/
|
|
60
|
-
static
|
|
66
|
+
static getContactsCountAsync(tenantId, xApiVersion) {
|
|
61
67
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
68
|
method: 'GET',
|
|
63
69
|
url: '/api/v2/CrmService/Contacts/Count',
|
|
@@ -74,12 +80,14 @@ class ContactsService {
|
|
|
74
80
|
});
|
|
75
81
|
}
|
|
76
82
|
/**
|
|
83
|
+
* Get all business owned contacts
|
|
84
|
+
* Get all business owned contacts
|
|
77
85
|
* @param tenantId
|
|
78
86
|
* @param xApiVersion
|
|
79
87
|
* @returns ExtendedContactDtoListEnvelope OK
|
|
80
88
|
* @throws ApiError
|
|
81
89
|
*/
|
|
82
|
-
static
|
|
90
|
+
static getExtendedContactsAsync(tenantId, xApiVersion) {
|
|
83
91
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
84
92
|
method: 'GET',
|
|
85
93
|
url: '/api/v2/CrmService/Contacts/Extended',
|
|
@@ -96,13 +104,15 @@ class ContactsService {
|
|
|
96
104
|
});
|
|
97
105
|
}
|
|
98
106
|
/**
|
|
107
|
+
* Get a contact by ID
|
|
108
|
+
* Get a contact by ID
|
|
99
109
|
* @param tenantId
|
|
100
110
|
* @param contactId
|
|
101
111
|
* @param xApiVersion
|
|
102
112
|
* @returns ContactDtoEnvelope OK
|
|
103
113
|
* @throws ApiError
|
|
104
114
|
*/
|
|
105
|
-
static
|
|
115
|
+
static getContactAsync(tenantId, contactId, xApiVersion) {
|
|
106
116
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
107
117
|
method: 'GET',
|
|
108
118
|
url: '/api/v2/CrmService/Contacts/{contactId}',
|
|
@@ -122,6 +132,8 @@ class ContactsService {
|
|
|
122
132
|
});
|
|
123
133
|
}
|
|
124
134
|
/**
|
|
135
|
+
* Update a contact
|
|
136
|
+
* Update a contact
|
|
125
137
|
* @param tenantId
|
|
126
138
|
* @param contactId
|
|
127
139
|
* @param xApiVersion
|
|
@@ -129,7 +141,7 @@ class ContactsService {
|
|
|
129
141
|
* @returns EmptyEnvelope OK
|
|
130
142
|
* @throws ApiError
|
|
131
143
|
*/
|
|
132
|
-
static
|
|
144
|
+
static updateContactAsync(tenantId, contactId, xApiVersion, requestBody) {
|
|
133
145
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
134
146
|
method: 'PUT',
|
|
135
147
|
url: '/api/v2/CrmService/Contacts/{contactId}',
|
|
@@ -151,13 +163,15 @@ class ContactsService {
|
|
|
151
163
|
});
|
|
152
164
|
}
|
|
153
165
|
/**
|
|
166
|
+
* Delete a contact
|
|
167
|
+
* Delete a contact
|
|
154
168
|
* @param tenantId
|
|
155
169
|
* @param contactId
|
|
156
170
|
* @param xApiVersion
|
|
157
171
|
* @returns EmptyEnvelope OK
|
|
158
172
|
* @throws ApiError
|
|
159
173
|
*/
|
|
160
|
-
static
|
|
174
|
+
static deleteContactAsync(tenantId, contactId, xApiVersion) {
|
|
161
175
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
162
176
|
method: 'DELETE',
|
|
163
177
|
url: '/api/v2/CrmService/Contacts/{contactId}',
|
|
@@ -177,6 +191,8 @@ class ContactsService {
|
|
|
177
191
|
});
|
|
178
192
|
}
|
|
179
193
|
/**
|
|
194
|
+
* Patch a contact
|
|
195
|
+
* Patch a contact
|
|
180
196
|
* @param tenantId
|
|
181
197
|
* @param contactId
|
|
182
198
|
* @param xApiVersion
|
|
@@ -184,7 +200,7 @@ class ContactsService {
|
|
|
184
200
|
* @returns EmptyEnvelope OK
|
|
185
201
|
* @throws ApiError
|
|
186
202
|
*/
|
|
187
|
-
static
|
|
203
|
+
static patchContactAsync(tenantId, contactId, xApiVersion, requestBody) {
|
|
188
204
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
189
205
|
method: 'PATCH',
|
|
190
206
|
url: '/api/v2/CrmService/Contacts/{contactId}',
|
|
@@ -206,13 +222,15 @@ class ContactsService {
|
|
|
206
222
|
});
|
|
207
223
|
}
|
|
208
224
|
/**
|
|
225
|
+
* Get a contact by ID
|
|
226
|
+
* Get a contact by ID
|
|
209
227
|
* @param tenantId
|
|
210
228
|
* @param contactId
|
|
211
229
|
* @param xApiVersion
|
|
212
230
|
* @returns ExtendedContactDtoEnvelope OK
|
|
213
231
|
* @throws ApiError
|
|
214
232
|
*/
|
|
215
|
-
static
|
|
233
|
+
static getExtendedContactAsync(tenantId, contactId, xApiVersion) {
|
|
216
234
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
217
235
|
method: 'GET',
|
|
218
236
|
url: '/api/v2/CrmService/Contacts/{contactId}/Extended',
|
|
@@ -232,12 +250,14 @@ class ContactsService {
|
|
|
232
250
|
});
|
|
233
251
|
}
|
|
234
252
|
/**
|
|
253
|
+
* Get all contacts of type individual
|
|
254
|
+
* Get all contacts of type individual
|
|
235
255
|
* @param tenantId
|
|
236
256
|
* @param xApiVersion
|
|
237
257
|
* @returns ContactDtoListEnvelope OK
|
|
238
258
|
* @throws ApiError
|
|
239
259
|
*/
|
|
240
|
-
static
|
|
260
|
+
static getBusinessOwnedIndividualsAsync(tenantId, xApiVersion) {
|
|
241
261
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
242
262
|
method: 'GET',
|
|
243
263
|
url: '/api/v2/CrmService/Contacts/Individuals',
|
|
@@ -254,12 +274,14 @@ class ContactsService {
|
|
|
254
274
|
});
|
|
255
275
|
}
|
|
256
276
|
/**
|
|
277
|
+
* Get all contacts of type individual count
|
|
278
|
+
* Get all contacts of type individual count
|
|
257
279
|
* @param tenantId
|
|
258
280
|
* @param xApiVersion
|
|
259
281
|
* @returns ContactDtoListEnvelope OK
|
|
260
282
|
* @throws ApiError
|
|
261
283
|
*/
|
|
262
|
-
static
|
|
284
|
+
static getBusinessOwnedIndividualsCountAsync(tenantId, xApiVersion) {
|
|
263
285
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
264
286
|
method: 'GET',
|
|
265
287
|
url: '/api/v2/CrmService/Contacts/Individuals/Count',
|
|
@@ -276,12 +298,14 @@ class ContactsService {
|
|
|
276
298
|
});
|
|
277
299
|
}
|
|
278
300
|
/**
|
|
301
|
+
* Get all contacts of type individual
|
|
302
|
+
* Get all contacts of type individual
|
|
279
303
|
* @param tenantId
|
|
280
304
|
* @param xApiVersion
|
|
281
305
|
* @returns ExtendedContactDtoListEnvelope OK
|
|
282
306
|
* @throws ApiError
|
|
283
307
|
*/
|
|
284
|
-
static
|
|
308
|
+
static getExtendedBusinessOwnedIndividualsAsync(tenantId, xApiVersion) {
|
|
285
309
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
286
310
|
method: 'GET',
|
|
287
311
|
url: '/api/v2/CrmService/Contacts/Individuals/Extended',
|
|
@@ -298,13 +322,15 @@ class ContactsService {
|
|
|
298
322
|
});
|
|
299
323
|
}
|
|
300
324
|
/**
|
|
325
|
+
* Get a Contact of type Individual by ID
|
|
326
|
+
* Get a Contact of type Individual by ID
|
|
301
327
|
* @param tenantId
|
|
302
328
|
* @param contactId
|
|
303
329
|
* @param xApiVersion
|
|
304
330
|
* @returns ContactDtoEnvelope OK
|
|
305
331
|
* @throws ApiError
|
|
306
332
|
*/
|
|
307
|
-
static
|
|
333
|
+
static getBusinessOwnedIndividualAsync(tenantId, contactId, xApiVersion) {
|
|
308
334
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
309
335
|
method: 'GET',
|
|
310
336
|
url: '/api/v2/CrmService/Contacts/Individuals/{contactId}',
|
|
@@ -325,12 +351,14 @@ class ContactsService {
|
|
|
325
351
|
});
|
|
326
352
|
}
|
|
327
353
|
/**
|
|
354
|
+
* Get all contacts of type organization
|
|
355
|
+
* Get all contacts of type organization
|
|
328
356
|
* @param tenantId
|
|
329
357
|
* @param xApiVersion
|
|
330
358
|
* @returns ContactDto OK
|
|
331
359
|
* @throws ApiError
|
|
332
360
|
*/
|
|
333
|
-
static
|
|
361
|
+
static getBusinessOwnedOrganizationsAsync(tenantId, xApiVersion) {
|
|
334
362
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
335
363
|
method: 'GET',
|
|
336
364
|
url: '/api/v2/CrmService/Contacts/Organizations',
|
|
@@ -347,12 +375,14 @@ class ContactsService {
|
|
|
347
375
|
});
|
|
348
376
|
}
|
|
349
377
|
/**
|
|
378
|
+
* Get all contacts of type organization count
|
|
379
|
+
* Get all contacts of type organization count
|
|
350
380
|
* @param tenantId
|
|
351
381
|
* @param xApiVersion
|
|
352
382
|
* @returns ContactDtoListEnvelope OK
|
|
353
383
|
* @throws ApiError
|
|
354
384
|
*/
|
|
355
|
-
static
|
|
385
|
+
static getBusinessOwnedOrganizationsCountAsync(tenantId, xApiVersion) {
|
|
356
386
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
357
387
|
method: 'GET',
|
|
358
388
|
url: '/api/v2/CrmService/Contacts/Organizations/Count',
|
|
@@ -369,12 +399,14 @@ class ContactsService {
|
|
|
369
399
|
});
|
|
370
400
|
}
|
|
371
401
|
/**
|
|
402
|
+
* Get all contacts of type organization
|
|
403
|
+
* Get all contacts of type organization
|
|
372
404
|
* @param tenantId
|
|
373
405
|
* @param xApiVersion
|
|
374
406
|
* @returns ExtendedContactDtoListEnvelope OK
|
|
375
407
|
* @throws ApiError
|
|
376
408
|
*/
|
|
377
|
-
static
|
|
409
|
+
static getExtendedBusinessOwnedOrganizationsAsync(tenantId, xApiVersion) {
|
|
378
410
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
379
411
|
method: 'GET',
|
|
380
412
|
url: '/api/v2/CrmService/Contacts/Organizations/Extended',
|
|
@@ -391,13 +423,15 @@ class ContactsService {
|
|
|
391
423
|
});
|
|
392
424
|
}
|
|
393
425
|
/**
|
|
426
|
+
* Get a Contact of type Organization by ID
|
|
427
|
+
* Get a Contact of type Organization by ID
|
|
394
428
|
* @param tenantId
|
|
395
429
|
* @param contactId
|
|
396
430
|
* @param xApiVersion
|
|
397
431
|
* @returns ContactDtoEnvelope OK
|
|
398
432
|
* @throws ApiError
|
|
399
433
|
*/
|
|
400
|
-
static
|
|
434
|
+
static getBusinessOwnedOrganizationAsync(tenantId, contactId, xApiVersion) {
|
|
401
435
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
402
436
|
method: 'GET',
|
|
403
437
|
url: '/api/v2/CrmService/Contacts/Organizations/{contactId}',
|
|
@@ -418,13 +452,15 @@ class ContactsService {
|
|
|
418
452
|
});
|
|
419
453
|
}
|
|
420
454
|
/**
|
|
455
|
+
* Get a contact's cart
|
|
456
|
+
* Get a contact's cart
|
|
421
457
|
* @param tenantId
|
|
422
458
|
* @param contactId
|
|
423
459
|
* @param xApiVersion
|
|
424
460
|
* @returns CartDtoEnvelope OK
|
|
425
461
|
* @throws ApiError
|
|
426
462
|
*/
|
|
427
|
-
static
|
|
463
|
+
static getContactCartAsync(tenantId, contactId, xApiVersion) {
|
|
428
464
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
429
465
|
method: 'GET',
|
|
430
466
|
url: '/api/v2/CrmService/Contacts/{contactId}/Cart',
|
|
@@ -445,6 +481,8 @@ class ContactsService {
|
|
|
445
481
|
});
|
|
446
482
|
}
|
|
447
483
|
/**
|
|
484
|
+
* Get a contact's avatar
|
|
485
|
+
* Get a contact's avatar
|
|
448
486
|
* @param tenantId
|
|
449
487
|
* @param contactId
|
|
450
488
|
* @param xApiVersion
|
|
@@ -471,6 +509,8 @@ class ContactsService {
|
|
|
471
509
|
});
|
|
472
510
|
}
|
|
473
511
|
/**
|
|
512
|
+
* Update a contact's avatar
|
|
513
|
+
* Update a contact's avatar
|
|
474
514
|
* @param contactId
|
|
475
515
|
* @param tenantId
|
|
476
516
|
* @param xApiVersion
|
|
@@ -478,7 +518,7 @@ class ContactsService {
|
|
|
478
518
|
* @returns EmptyEnvelope OK
|
|
479
519
|
* @throws ApiError
|
|
480
520
|
*/
|
|
481
|
-
static
|
|
521
|
+
static updateContactAvatarAsync(contactId, tenantId, xApiVersion, formData) {
|
|
482
522
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
483
523
|
method: 'POST',
|
|
484
524
|
url: '/api/v2/CrmService/Contacts/{contactId}/Avatar',
|
|
@@ -500,13 +540,15 @@ class ContactsService {
|
|
|
500
540
|
});
|
|
501
541
|
}
|
|
502
542
|
/**
|
|
543
|
+
* Get a contact's wallet
|
|
544
|
+
* Get a contact's wallet
|
|
503
545
|
* @param tenantId
|
|
504
546
|
* @param contactId
|
|
505
547
|
* @param xApiVersion
|
|
506
548
|
* @returns WalletDtoEnvelope OK
|
|
507
549
|
* @throws ApiError
|
|
508
550
|
*/
|
|
509
|
-
static
|
|
551
|
+
static getContactWalletAsync(tenantId, contactId, xApiVersion) {
|
|
510
552
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
511
553
|
method: 'GET',
|
|
512
554
|
url: '/api/v2/CrmService/Contacts/{contactId}/Wallet',
|
|
@@ -527,13 +569,15 @@ class ContactsService {
|
|
|
527
569
|
});
|
|
528
570
|
}
|
|
529
571
|
/**
|
|
572
|
+
* Get a contact's social profiles
|
|
573
|
+
* Get a contact's social profiles
|
|
530
574
|
* @param tenantId
|
|
531
575
|
* @param contactId
|
|
532
576
|
* @param xApiVersion
|
|
533
577
|
* @returns ContactProfileDtoListEnvelope OK
|
|
534
578
|
* @throws ApiError
|
|
535
579
|
*/
|
|
536
|
-
static
|
|
580
|
+
static getContactProfilesAsync(tenantId, contactId, xApiVersion) {
|
|
537
581
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
538
582
|
method: 'GET',
|
|
539
583
|
url: '/api/v2/CrmService/Contacts/{contactId}/Profiles',
|
|
@@ -554,13 +598,15 @@ class ContactsService {
|
|
|
554
598
|
});
|
|
555
599
|
}
|
|
556
600
|
/**
|
|
601
|
+
* Get a contact's social profile
|
|
602
|
+
* Get a contact's social profile
|
|
557
603
|
* @param tenantId
|
|
558
604
|
* @param contactId
|
|
559
605
|
* @param xApiVersion
|
|
560
606
|
* @returns SocialProfileDtoEnvelope OK
|
|
561
607
|
* @throws ApiError
|
|
562
608
|
*/
|
|
563
|
-
static
|
|
609
|
+
static getContactSocialProfileAsync(tenantId, contactId, xApiVersion) {
|
|
564
610
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
565
611
|
method: 'GET',
|
|
566
612
|
url: '/api/v2/CrmService/Contacts/{contactId}/SocialProfile',
|
|
@@ -581,13 +627,15 @@ class ContactsService {
|
|
|
581
627
|
});
|
|
582
628
|
}
|
|
583
629
|
/**
|
|
630
|
+
* Get individual related organizations
|
|
631
|
+
* Get individual related organizations
|
|
584
632
|
* @param tenantId
|
|
585
633
|
* @param contactId
|
|
586
634
|
* @param xApiVersion
|
|
587
635
|
* @returns ContactDtoListEnvelope OK
|
|
588
636
|
* @throws ApiError
|
|
589
637
|
*/
|
|
590
|
-
static
|
|
638
|
+
static getIndividualRelatedOrganizationsAsync(tenantId, contactId, xApiVersion) {
|
|
591
639
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
592
640
|
method: 'GET',
|
|
593
641
|
url: '/api/v2/CrmService/Contacts/Individuals/{contactId}/Organizations',
|
|
@@ -607,13 +655,15 @@ class ContactsService {
|
|
|
607
655
|
});
|
|
608
656
|
}
|
|
609
657
|
/**
|
|
658
|
+
* Get individual related individuals
|
|
659
|
+
* Get individual related individuals
|
|
610
660
|
* @param tenantId
|
|
611
661
|
* @param contactId
|
|
612
662
|
* @param xApiVersion
|
|
613
663
|
* @returns ContactDtoListEnvelope OK
|
|
614
664
|
* @throws ApiError
|
|
615
665
|
*/
|
|
616
|
-
static
|
|
666
|
+
static getIndividualRelatedIndividualsAsync(tenantId, contactId, xApiVersion) {
|
|
617
667
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
618
668
|
method: 'GET',
|
|
619
669
|
url: '/api/v2/CrmService/Contacts/Individuals/{contactId}/Individuals',
|
|
@@ -633,13 +683,15 @@ class ContactsService {
|
|
|
633
683
|
});
|
|
634
684
|
}
|
|
635
685
|
/**
|
|
686
|
+
* Get organization related individuals
|
|
687
|
+
* Get organization related individuals
|
|
636
688
|
* @param tenantId
|
|
637
689
|
* @param contactId
|
|
638
690
|
* @param xApiVersion
|
|
639
691
|
* @returns ContactDtoListEnvelope OK
|
|
640
692
|
* @throws ApiError
|
|
641
693
|
*/
|
|
642
|
-
static
|
|
694
|
+
static getOrganizationRelatedIndividualsAsync(tenantId, contactId, xApiVersion) {
|
|
643
695
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
644
696
|
method: 'GET',
|
|
645
697
|
url: '/api/v2/CrmService/Contacts/Organizations/{contactId}/Individuals',
|
|
@@ -659,13 +711,15 @@ class ContactsService {
|
|
|
659
711
|
});
|
|
660
712
|
}
|
|
661
713
|
/**
|
|
714
|
+
* Get organization related organizations
|
|
715
|
+
* Get organization related organizations
|
|
662
716
|
* @param tenantId
|
|
663
717
|
* @param contactId
|
|
664
718
|
* @param xApiVersion
|
|
665
719
|
* @returns ContactDtoListEnvelope OK
|
|
666
720
|
* @throws ApiError
|
|
667
721
|
*/
|
|
668
|
-
static
|
|
722
|
+
static getOrganizationRelatedOrganizationsAsync(tenantId, contactId, xApiVersion) {
|
|
669
723
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
670
724
|
method: 'GET',
|
|
671
725
|
url: '/api/v2/CrmService/Contacts/Organizations/{contactId}/Organizations',
|
|
@@ -685,13 +739,15 @@ class ContactsService {
|
|
|
685
739
|
});
|
|
686
740
|
}
|
|
687
741
|
/**
|
|
742
|
+
* Upsert a tenant onto another tenant's contact list
|
|
743
|
+
* Upsert a tenant onto another tenant's contact list
|
|
688
744
|
* @param tenantId
|
|
689
745
|
* @param relatedTenantId
|
|
690
746
|
* @param xApiVersion
|
|
691
747
|
* @returns ContactDtoEnvelope OK
|
|
692
748
|
* @throws ApiError
|
|
693
749
|
*/
|
|
694
|
-
static
|
|
750
|
+
static upsertTenantOntoAnotherTenantContactListAsync(tenantId, relatedTenantId, xApiVersion) {
|
|
695
751
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
696
752
|
method: 'POST',
|
|
697
753
|
url: '/api/v2/CrmService/Contacts/Organizations/Upsert',
|
|
@@ -709,13 +765,15 @@ class ContactsService {
|
|
|
709
765
|
});
|
|
710
766
|
}
|
|
711
767
|
/**
|
|
768
|
+
* Upsert a user onto a tenant's contact list
|
|
769
|
+
* Upsert a user onto a tenant's contact list
|
|
712
770
|
* @param tenantId
|
|
713
771
|
* @param relatedUserId
|
|
714
772
|
* @param xApiVersion
|
|
715
773
|
* @returns ContactDtoEnvelope OK
|
|
716
774
|
* @throws ApiError
|
|
717
775
|
*/
|
|
718
|
-
static
|
|
776
|
+
static upsertUserOntoAnotherTenantContactListAsync(tenantId, relatedUserId, xApiVersion) {
|
|
719
777
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
720
778
|
method: 'POST',
|
|
721
779
|
url: '/api/v2/CrmService/Contacts/Individuals/Upsert',
|