@d19n/youfibre-odin-sdk 1.0.19 → 1.0.21

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 (146) hide show
  1. package/dist/api-sdk-v1/BillingRequestApi.d.ts +0 -7
  2. package/dist/api-sdk-v1/BillingRequestApi.js +0 -26
  3. package/dist/api-sdk-v1/CaseApi.d.ts +0 -7
  4. package/dist/api-sdk-v1/CaseApi.js +0 -26
  5. package/dist/api-sdk-v1/ConsumptionRateApi.d.ts +0 -7
  6. package/dist/api-sdk-v1/ConsumptionRateApi.js +0 -26
  7. package/dist/api-sdk-v1/ConsumptionScheduleApi.d.ts +0 -7
  8. package/dist/api-sdk-v1/ConsumptionScheduleApi.js +0 -26
  9. package/dist/api-sdk-v1/ContactApi.d.ts +87 -3
  10. package/dist/api-sdk-v1/ContactApi.js +319 -7
  11. package/dist/api-sdk-v1/ContactIdentityApi.d.ts +0 -7
  12. package/dist/api-sdk-v1/ContactIdentityApi.js +0 -26
  13. package/dist/api-sdk-v1/FileApi.d.ts +338 -3
  14. package/dist/api-sdk-v1/FileApi.js +1249 -7
  15. package/dist/api-sdk-v1/InvoiceItemApi.d.ts +0 -7
  16. package/dist/api-sdk-v1/InvoiceItemApi.js +0 -26
  17. package/dist/api-sdk-v1/LeadApi.d.ts +24 -3
  18. package/dist/api-sdk-v1/LeadApi.js +85 -7
  19. package/dist/api-sdk-v1/MilestoneApi.d.ts +0 -7
  20. package/dist/api-sdk-v1/MilestoneApi.js +0 -26
  21. package/dist/api-sdk-v1/NoteApi.d.ts +3 -4
  22. package/dist/api-sdk-v1/NoteApi.js +7 -13
  23. package/dist/api-sdk-v1/OfferApi.d.ts +0 -7
  24. package/dist/api-sdk-v1/OfferApi.js +0 -26
  25. package/dist/api-sdk-v1/OrderApi.d.ts +7 -8
  26. package/dist/api-sdk-v1/OrderApi.js +21 -27
  27. package/dist/api-sdk-v1/OrderItemApi.d.ts +0 -7
  28. package/dist/api-sdk-v1/OrderItemApi.js +0 -26
  29. package/dist/api-sdk-v1/OrganizationApi.d.ts +0 -7
  30. package/dist/api-sdk-v1/OrganizationApi.js +0 -26
  31. package/dist/api-sdk-v1/ProductApi.d.ts +1 -9
  32. package/dist/api-sdk-v1/ProductApi.js +0 -31
  33. package/dist/api-sdk-v1/ProductComponentApi.d.ts +0 -7
  34. package/dist/api-sdk-v1/ProductComponentApi.js +0 -26
  35. package/dist/api-sdk-v1/RestrictionApi.d.ts +0 -7
  36. package/dist/api-sdk-v1/RestrictionApi.js +0 -26
  37. package/dist/api-sdk-v1/ServiceApi.d.ts +0 -7
  38. package/dist/api-sdk-v1/ServiceApi.js +0 -26
  39. package/dist/api-sdk-v1/ServiceAppointmentConfigApi.d.ts +12 -0
  40. package/dist/api-sdk-v1/ServiceAppointmentConfigApi.js +40 -0
  41. package/dist/api-sdk-v1/SplitOrderApi.d.ts +2 -3
  42. package/dist/api-sdk-v1/SplitOrderApi.js +6 -12
  43. package/dist/api-sdk-v1/TransactionApi.d.ts +0 -7
  44. package/dist/api-sdk-v1/TransactionApi.js +0 -26
  45. package/dist/api-sdk-v1/UserApi.d.ts +18 -0
  46. package/dist/api-sdk-v1/UserApi.js +60 -0
  47. package/dist/api-sdk-v1/WorkOrderApi.d.ts +44 -3
  48. package/dist/api-sdk-v1/WorkOrderApi.js +157 -7
  49. package/dist/db-sdk-v1/BillingRequestDb.d.ts +0 -7
  50. package/dist/db-sdk-v1/BillingRequestDb.js +0 -33
  51. package/dist/db-sdk-v1/CaseDb.d.ts +0 -7
  52. package/dist/db-sdk-v1/CaseDb.js +0 -33
  53. package/dist/db-sdk-v1/ConsumptionRateDb.d.ts +0 -7
  54. package/dist/db-sdk-v1/ConsumptionRateDb.js +0 -33
  55. package/dist/db-sdk-v1/ConsumptionScheduleDb.d.ts +0 -7
  56. package/dist/db-sdk-v1/ConsumptionScheduleDb.js +0 -33
  57. package/dist/db-sdk-v1/ContactDb.d.ts +87 -3
  58. package/dist/db-sdk-v1/ContactDb.js +403 -7
  59. package/dist/db-sdk-v1/ContactIdentityDb.d.ts +0 -7
  60. package/dist/db-sdk-v1/ContactIdentityDb.js +0 -33
  61. package/dist/db-sdk-v1/FileDb.d.ts +338 -3
  62. package/dist/db-sdk-v1/FileDb.js +1585 -7
  63. package/dist/db-sdk-v1/InvoiceItemDb.d.ts +0 -7
  64. package/dist/db-sdk-v1/InvoiceItemDb.js +0 -33
  65. package/dist/db-sdk-v1/LeadDb.d.ts +24 -3
  66. package/dist/db-sdk-v1/LeadDb.js +106 -7
  67. package/dist/db-sdk-v1/MilestoneDb.d.ts +0 -7
  68. package/dist/db-sdk-v1/MilestoneDb.js +0 -33
  69. package/dist/db-sdk-v1/NoteDb.d.ts +3 -4
  70. package/dist/db-sdk-v1/NoteDb.js +7 -13
  71. package/dist/db-sdk-v1/OfferDb.d.ts +0 -7
  72. package/dist/db-sdk-v1/OfferDb.js +0 -33
  73. package/dist/db-sdk-v1/OrderDb.d.ts +7 -8
  74. package/dist/db-sdk-v1/OrderDb.js +28 -34
  75. package/dist/db-sdk-v1/OrderItemDb.d.ts +0 -7
  76. package/dist/db-sdk-v1/OrderItemDb.js +0 -33
  77. package/dist/db-sdk-v1/OrganizationDb.d.ts +0 -7
  78. package/dist/db-sdk-v1/OrganizationDb.js +0 -33
  79. package/dist/db-sdk-v1/ProductComponentDb.d.ts +0 -7
  80. package/dist/db-sdk-v1/ProductComponentDb.js +0 -33
  81. package/dist/db-sdk-v1/ProductDb.d.ts +1 -9
  82. package/dist/db-sdk-v1/ProductDb.js +0 -38
  83. package/dist/db-sdk-v1/RestrictionDb.d.ts +0 -7
  84. package/dist/db-sdk-v1/RestrictionDb.js +0 -33
  85. package/dist/db-sdk-v1/ServiceAppointmentConfigDb.d.ts +12 -0
  86. package/dist/db-sdk-v1/ServiceAppointmentConfigDb.js +54 -0
  87. package/dist/db-sdk-v1/ServiceDb.d.ts +0 -7
  88. package/dist/db-sdk-v1/ServiceDb.js +0 -33
  89. package/dist/db-sdk-v1/SplitOrderDb.d.ts +2 -3
  90. package/dist/db-sdk-v1/SplitOrderDb.js +6 -12
  91. package/dist/db-sdk-v1/TransactionDb.d.ts +0 -7
  92. package/dist/db-sdk-v1/TransactionDb.js +0 -33
  93. package/dist/db-sdk-v1/UserDb.d.ts +18 -0
  94. package/dist/db-sdk-v1/UserDb.js +81 -0
  95. package/dist/db-sdk-v1/WorkOrderDb.d.ts +44 -3
  96. package/dist/db-sdk-v1/WorkOrderDb.js +199 -7
  97. package/package.json +2 -2
  98. package/src/api-sdk-v1/BillingRequestApi.ts +0 -27
  99. package/src/api-sdk-v1/CaseApi.ts +0 -27
  100. package/src/api-sdk-v1/ConsumptionRateApi.ts +0 -27
  101. package/src/api-sdk-v1/ConsumptionScheduleApi.ts +0 -27
  102. package/src/api-sdk-v1/ContactApi.ts +343 -19
  103. package/src/api-sdk-v1/ContactIdentityApi.ts +0 -27
  104. package/src/api-sdk-v1/FileApi.ts +1310 -19
  105. package/src/api-sdk-v1/InvoiceItemApi.ts +0 -27
  106. package/src/api-sdk-v1/LeadApi.ts +100 -19
  107. package/src/api-sdk-v1/MilestoneApi.ts +0 -27
  108. package/src/api-sdk-v1/NoteApi.ts +7 -12
  109. package/src/api-sdk-v1/OfferApi.ts +0 -27
  110. package/src/api-sdk-v1/OrderApi.ts +23 -28
  111. package/src/api-sdk-v1/OrderItemApi.ts +0 -27
  112. package/src/api-sdk-v1/OrganizationApi.ts +0 -27
  113. package/src/api-sdk-v1/ProductApi.ts +0 -31
  114. package/src/api-sdk-v1/ProductComponentApi.ts +0 -27
  115. package/src/api-sdk-v1/RestrictionApi.ts +0 -27
  116. package/src/api-sdk-v1/ServiceApi.ts +0 -27
  117. package/src/api-sdk-v1/ServiceAppointmentConfigApi.ts +44 -0
  118. package/src/api-sdk-v1/SplitOrderApi.ts +17 -22
  119. package/src/api-sdk-v1/TransactionApi.ts +0 -27
  120. package/src/api-sdk-v1/UserApi.ts +66 -0
  121. package/src/api-sdk-v1/WorkOrderApi.ts +178 -21
  122. package/src/db-sdk-v1/BillingRequestDb.ts +0 -35
  123. package/src/db-sdk-v1/CaseDb.ts +0 -35
  124. package/src/db-sdk-v1/ConsumptionRateDb.ts +0 -35
  125. package/src/db-sdk-v1/ConsumptionScheduleDb.ts +0 -35
  126. package/src/db-sdk-v1/ContactDb.ts +443 -23
  127. package/src/db-sdk-v1/ContactIdentityDb.ts +0 -35
  128. package/src/db-sdk-v1/FileDb.ts +1698 -23
  129. package/src/db-sdk-v1/InvoiceItemDb.ts +0 -35
  130. package/src/db-sdk-v1/LeadDb.ts +128 -23
  131. package/src/db-sdk-v1/MilestoneDb.ts +0 -35
  132. package/src/db-sdk-v1/NoteDb.ts +7 -12
  133. package/src/db-sdk-v1/OfferDb.ts +0 -35
  134. package/src/db-sdk-v1/OrderDb.ts +31 -36
  135. package/src/db-sdk-v1/OrderItemDb.ts +0 -35
  136. package/src/db-sdk-v1/OrganizationDb.ts +0 -35
  137. package/src/db-sdk-v1/ProductComponentDb.ts +0 -35
  138. package/src/db-sdk-v1/ProductDb.ts +0 -39
  139. package/src/db-sdk-v1/RestrictionDb.ts +0 -35
  140. package/src/db-sdk-v1/ServiceAppointmentConfigDb.ts +60 -0
  141. package/src/db-sdk-v1/ServiceDb.ts +0 -35
  142. package/src/db-sdk-v1/SplitOrderDb.ts +20 -25
  143. package/src/db-sdk-v1/TransactionDb.ts +0 -35
  144. package/src/db-sdk-v1/UserDb.ts +90 -0
  145. package/src/db-sdk-v1/WorkOrderDb.ts +229 -24
  146. package/src/generators/runner.ts +2 -3
@@ -91,17 +91,17 @@ class ContactApi extends api_provider_1.ApiProvider {
91
91
  });
92
92
  }
93
93
  // Use this function when you want to return a single record
94
- getContacts(contactId) {
94
+ getOrganizations(contactId) {
95
95
  return __awaiter(this, void 0, void 0, function* () {
96
- return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Contact');
96
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Organization');
97
97
  });
98
98
  }
99
- linkOrganizationContacts(contactId, contactIds) {
99
+ linkOrganizationContacts(contactId, organizationIds) {
100
100
  return __awaiter(this, void 0, void 0, function* () {
101
101
  const associationDtos = [];
102
- for (const param of contactIds) {
102
+ for (const param of organizationIds) {
103
103
  associationDtos.push({
104
- entity: 'CrmModule:Contact',
104
+ entity: 'CrmModule:Organization',
105
105
  recordId: param.id,
106
106
  linkType: 'Organization__Contact',
107
107
  relationType: param === null || param === void 0 ? void 0 : param.relationType,
@@ -111,9 +111,35 @@ class ContactApi extends api_provider_1.ApiProvider {
111
111
  return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
112
112
  });
113
113
  }
114
- unLinkOrganizationContacts(contactId, linkedContactId) {
114
+ unLinkOrganizationContacts(contactId, linkedOrganizationId) {
115
115
  return __awaiter(this, void 0, void 0, function* () {
116
- return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedContactId);
116
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedOrganizationId);
117
+ });
118
+ }
119
+ // Use this function when you want to return a single record
120
+ getAccounts(contactId) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Account');
123
+ });
124
+ }
125
+ linkBillingContacts(contactId, accountIds) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const associationDtos = [];
128
+ for (const param of accountIds) {
129
+ associationDtos.push({
130
+ entity: 'CrmModule:Account',
131
+ recordId: param.id,
132
+ linkType: 'BillingContact',
133
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
134
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
135
+ });
136
+ }
137
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
138
+ });
139
+ }
140
+ unLinkBillingContacts(contactId, linkedAccountId) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedAccountId);
117
143
  });
118
144
  }
119
145
  // Use this function when you want to return a single record
@@ -169,6 +195,84 @@ class ContactApi extends api_provider_1.ApiProvider {
169
195
  });
170
196
  }
171
197
  // Use this function when you want to return a single record
198
+ getWorkOrders(contactId) {
199
+ return __awaiter(this, void 0, void 0, function* () {
200
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'WorkOrder');
201
+ });
202
+ }
203
+ linkWorkOrderContacts(contactId, workOrderIds) {
204
+ return __awaiter(this, void 0, void 0, function* () {
205
+ const associationDtos = [];
206
+ for (const param of workOrderIds) {
207
+ associationDtos.push({
208
+ entity: 'FieldServiceModule:WorkOrder',
209
+ recordId: param.id,
210
+ linkType: 'WorkOrder__Contact',
211
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
212
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
213
+ });
214
+ }
215
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
216
+ });
217
+ }
218
+ unLinkWorkOrderContacts(contactId, linkedWorkOrderId) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedWorkOrderId);
221
+ });
222
+ }
223
+ // Use this function when you want to return a single record
224
+ getOrders(contactId) {
225
+ return __awaiter(this, void 0, void 0, function* () {
226
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Order');
227
+ });
228
+ }
229
+ linkOrderContacts(contactId, orderIds) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ const associationDtos = [];
232
+ for (const param of orderIds) {
233
+ associationDtos.push({
234
+ entity: 'OrderModule:Order',
235
+ recordId: param.id,
236
+ linkType: 'Order__Contact',
237
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
238
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
239
+ });
240
+ }
241
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
242
+ });
243
+ }
244
+ unLinkOrderContacts(contactId, linkedOrderId) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedOrderId);
247
+ });
248
+ }
249
+ // Use this function when you want to return a single record
250
+ getLeads(contactId) {
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Lead');
253
+ });
254
+ }
255
+ linkLeadContacts(contactId, leadIds) {
256
+ return __awaiter(this, void 0, void 0, function* () {
257
+ const associationDtos = [];
258
+ for (const param of leadIds) {
259
+ associationDtos.push({
260
+ entity: 'CrmModule:Lead',
261
+ recordId: param.id,
262
+ linkType: 'Lead__Contact',
263
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
264
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
265
+ });
266
+ }
267
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
268
+ });
269
+ }
270
+ unLinkLeadContacts(contactId, linkedLeadId) {
271
+ return __awaiter(this, void 0, void 0, function* () {
272
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedLeadId);
273
+ });
274
+ }
275
+ // Use this function when you want to return a single record
172
276
  getAddresss(contactId) {
173
277
  return __awaiter(this, void 0, void 0, function* () {
174
278
  return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Address');
@@ -221,6 +325,32 @@ class ContactApi extends api_provider_1.ApiProvider {
221
325
  });
222
326
  }
223
327
  // Use this function when you want to return a single record
328
+ getInvoices(contactId) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Invoice');
331
+ });
332
+ }
333
+ linkInvoiceContacts(contactId, invoiceIds) {
334
+ return __awaiter(this, void 0, void 0, function* () {
335
+ const associationDtos = [];
336
+ for (const param of invoiceIds) {
337
+ associationDtos.push({
338
+ entity: 'BillingModule:Invoice',
339
+ recordId: param.id,
340
+ linkType: 'Invoice__Contact',
341
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
342
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
343
+ });
344
+ }
345
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
346
+ });
347
+ }
348
+ unLinkInvoiceContacts(contactId, linkedInvoiceId) {
349
+ return __awaiter(this, void 0, void 0, function* () {
350
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedInvoiceId);
351
+ });
352
+ }
353
+ // Use this function when you want to return a single record
224
354
  getBillingRequests(contactId) {
225
355
  return __awaiter(this, void 0, void 0, function* () {
226
356
  return yield this._getLinks(this.moduleName, this.entityName, contactId, 'BillingRequest');
@@ -273,6 +403,58 @@ class ContactApi extends api_provider_1.ApiProvider {
273
403
  });
274
404
  }
275
405
  // Use this function when you want to return a single record
406
+ getCommissions(contactId) {
407
+ return __awaiter(this, void 0, void 0, function* () {
408
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Commission');
409
+ });
410
+ }
411
+ linkCommissionContacts(contactId, commissionIds) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ const associationDtos = [];
414
+ for (const param of commissionIds) {
415
+ associationDtos.push({
416
+ entity: 'BillingModule:Commission',
417
+ recordId: param.id,
418
+ linkType: 'Commission__Contact',
419
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
420
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
421
+ });
422
+ }
423
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
424
+ });
425
+ }
426
+ unLinkCommissionContacts(contactId, linkedCommissionId) {
427
+ return __awaiter(this, void 0, void 0, function* () {
428
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedCommissionId);
429
+ });
430
+ }
431
+ // Use this function when you want to return a single record
432
+ getOneTouchSwitchs(contactId) {
433
+ return __awaiter(this, void 0, void 0, function* () {
434
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'OneTouchSwitch');
435
+ });
436
+ }
437
+ linkOneTouchSwitchContacts(contactId, oneTouchSwitchIds) {
438
+ return __awaiter(this, void 0, void 0, function* () {
439
+ const associationDtos = [];
440
+ for (const param of oneTouchSwitchIds) {
441
+ associationDtos.push({
442
+ entity: 'OrderModule:OneTouchSwitch',
443
+ recordId: param.id,
444
+ linkType: 'OneTouchSwitch__Contact',
445
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
446
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
447
+ });
448
+ }
449
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
450
+ });
451
+ }
452
+ unLinkOneTouchSwitchContacts(contactId, linkedOneTouchSwitchId) {
453
+ return __awaiter(this, void 0, void 0, function* () {
454
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedOneTouchSwitchId);
455
+ });
456
+ }
457
+ // Use this function when you want to return a single record
276
458
  getContactIdentitys(contactId) {
277
459
  return __awaiter(this, void 0, void 0, function* () {
278
460
  return yield this._getLinks(this.moduleName, this.entityName, contactId, 'ContactIdentity');
@@ -325,6 +507,32 @@ class ContactApi extends api_provider_1.ApiProvider {
325
507
  });
326
508
  }
327
509
  // Use this function when you want to return a single record
510
+ getDeactivationApprovals(contactId) {
511
+ return __awaiter(this, void 0, void 0, function* () {
512
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'DeactivationApproval');
513
+ });
514
+ }
515
+ linkDeactivationApprovalContacts(contactId, deactivationApprovalIds) {
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ const associationDtos = [];
518
+ for (const param of deactivationApprovalIds) {
519
+ associationDtos.push({
520
+ entity: 'OrderModule:DeactivationApproval',
521
+ recordId: param.id,
522
+ linkType: 'DeactivationApproval__Contact',
523
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
524
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
525
+ });
526
+ }
527
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
528
+ });
529
+ }
530
+ unLinkDeactivationApprovalContacts(contactId, linkedDeactivationApprovalId) {
531
+ return __awaiter(this, void 0, void 0, function* () {
532
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedDeactivationApprovalId);
533
+ });
534
+ }
535
+ // Use this function when you want to return a single record
328
536
  getPhoneNumbers(contactId) {
329
537
  return __awaiter(this, void 0, void 0, function* () {
330
538
  return yield this._getLinks(this.moduleName, this.entityName, contactId, 'PhoneNumber');
@@ -351,6 +559,58 @@ class ContactApi extends api_provider_1.ApiProvider {
351
559
  });
352
560
  }
353
561
  // Use this function when you want to return a single record
562
+ getOrderRemediationTasks(contactId) {
563
+ return __awaiter(this, void 0, void 0, function* () {
564
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'OrderRemediationTask');
565
+ });
566
+ }
567
+ linkOrderRemediationTaskContacts(contactId, orderRemediationTaskIds) {
568
+ return __awaiter(this, void 0, void 0, function* () {
569
+ const associationDtos = [];
570
+ for (const param of orderRemediationTaskIds) {
571
+ associationDtos.push({
572
+ entity: 'OrderModule:OrderRemediationTask',
573
+ recordId: param.id,
574
+ linkType: 'OrderRemediationTask__Contact',
575
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
576
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
577
+ });
578
+ }
579
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
580
+ });
581
+ }
582
+ unLinkOrderRemediationTaskContacts(contactId, linkedOrderRemediationTaskId) {
583
+ return __awaiter(this, void 0, void 0, function* () {
584
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedOrderRemediationTaskId);
585
+ });
586
+ }
587
+ // Use this function when you want to return a single record
588
+ getCases(contactId) {
589
+ return __awaiter(this, void 0, void 0, function* () {
590
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Case');
591
+ });
592
+ }
593
+ linkCaseContacts(contactId, caseIds) {
594
+ return __awaiter(this, void 0, void 0, function* () {
595
+ const associationDtos = [];
596
+ for (const param of caseIds) {
597
+ associationDtos.push({
598
+ entity: 'SupportModule:Case',
599
+ recordId: param.id,
600
+ linkType: 'Case__Contact',
601
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
602
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
603
+ });
604
+ }
605
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
606
+ });
607
+ }
608
+ unLinkCaseContacts(contactId, linkedCaseId) {
609
+ return __awaiter(this, void 0, void 0, function* () {
610
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedCaseId);
611
+ });
612
+ }
613
+ // Use this function when you want to return a single record
354
614
  getAppointments(contactId) {
355
615
  return __awaiter(this, void 0, void 0, function* () {
356
616
  return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Appointment');
@@ -377,6 +637,32 @@ class ContactApi extends api_provider_1.ApiProvider {
377
637
  });
378
638
  }
379
639
  // Use this function when you want to return a single record
640
+ getCalls(contactId) {
641
+ return __awaiter(this, void 0, void 0, function* () {
642
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Call');
643
+ });
644
+ }
645
+ linkCallContacts(contactId, callIds) {
646
+ return __awaiter(this, void 0, void 0, function* () {
647
+ const associationDtos = [];
648
+ for (const param of callIds) {
649
+ associationDtos.push({
650
+ entity: 'NotificationModule:Call',
651
+ recordId: param.id,
652
+ linkType: 'Call__Contact',
653
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
654
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
655
+ });
656
+ }
657
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
658
+ });
659
+ }
660
+ unLinkCallContacts(contactId, linkedCallId) {
661
+ return __awaiter(this, void 0, void 0, function* () {
662
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedCallId);
663
+ });
664
+ }
665
+ // Use this function when you want to return a single record
380
666
  getPaymentMethods(contactId) {
381
667
  return __awaiter(this, void 0, void 0, function* () {
382
668
  return yield this._getLinks(this.moduleName, this.entityName, contactId, 'PaymentMethod');
@@ -402,5 +688,31 @@ class ContactApi extends api_provider_1.ApiProvider {
402
688
  return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedPaymentMethodId);
403
689
  });
404
690
  }
691
+ // Use this function when you want to return a single record
692
+ getFingerprints(contactId) {
693
+ return __awaiter(this, void 0, void 0, function* () {
694
+ return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Fingerprint');
695
+ });
696
+ }
697
+ linkFingerprintContacts(contactId, fingerprintIds) {
698
+ return __awaiter(this, void 0, void 0, function* () {
699
+ const associationDtos = [];
700
+ for (const param of fingerprintIds) {
701
+ associationDtos.push({
702
+ entity: 'CrmModule:Fingerprint',
703
+ recordId: param.id,
704
+ linkType: 'Fingerprint__Contact',
705
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
706
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
707
+ });
708
+ }
709
+ return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
710
+ });
711
+ }
712
+ unLinkFingerprintContacts(contactId, linkedFingerprintId) {
713
+ return __awaiter(this, void 0, void 0, function* () {
714
+ return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedFingerprintId);
715
+ });
716
+ }
405
717
  }
406
718
  exports.ContactApi = ContactApi;
@@ -34,13 +34,6 @@ export declare class ContactIdentityApi extends ApiProvider {
34
34
  relatedAssociationId?: string;
35
35
  }[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
36
36
  unLinkContactIdentityPaymentMethods(contactIdentityId: string, linkedPaymentMethodId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
37
- getContactIdentitys(contactIdentityId: string): Promise<any>;
38
- linkContactIdentityContactIdentitys(contactIdentityId: string, contactIdentityIds: {
39
- id: string;
40
- relationType?: RelationTypeEnum;
41
- relatedAssociationId?: string;
42
- }[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
43
- unLinkContactIdentityContactIdentitys(contactIdentityId: string, linkedContactIdentityId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
44
37
  getContacts(contactIdentityId: string): Promise<any>;
45
38
  linkContactContactIdentitys(contactIdentityId: string, contactIds: {
46
39
  id: string;
@@ -117,32 +117,6 @@ class ContactIdentityApi extends api_provider_1.ApiProvider {
117
117
  });
118
118
  }
119
119
  // Use this function when you want to return a single record
120
- getContactIdentitys(contactIdentityId) {
121
- return __awaiter(this, void 0, void 0, function* () {
122
- return yield this._getLinks(this.moduleName, this.entityName, contactIdentityId, 'ContactIdentity');
123
- });
124
- }
125
- linkContactIdentityContactIdentitys(contactIdentityId, contactIdentityIds) {
126
- return __awaiter(this, void 0, void 0, function* () {
127
- const associationDtos = [];
128
- for (const param of contactIdentityIds) {
129
- associationDtos.push({
130
- entity: 'CrmModule:ContactIdentity',
131
- recordId: param.id,
132
- linkType: 'ContactIdentity__ContactIdentity',
133
- relationType: param === null || param === void 0 ? void 0 : param.relationType,
134
- relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
135
- });
136
- }
137
- return yield this._createLinks(this.moduleName, this.entityName, contactIdentityId, associationDtos);
138
- });
139
- }
140
- unLinkContactIdentityContactIdentitys(contactIdentityId, linkedContactIdentityId) {
141
- return __awaiter(this, void 0, void 0, function* () {
142
- return yield this._deleteLinks(this.moduleName, this.entityName, contactIdentityId, linkedContactIdentityId);
143
- });
144
- }
145
- // Use this function when you want to return a single record
146
120
  getContacts(contactIdentityId) {
147
121
  return __awaiter(this, void 0, void 0, function* () {
148
122
  return yield this._getLinks(this.moduleName, this.entityName, contactIdentityId, 'Contact');