@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
@@ -247,17 +247,17 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
247
247
  });
248
248
  }
249
249
  // Use this function when you want to return a single record
250
- getWorkOrders(workOrderId) {
250
+ getAccounts(workOrderId) {
251
251
  return __awaiter(this, void 0, void 0, function* () {
252
- return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'WorkOrder');
252
+ return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'Account');
253
253
  });
254
254
  }
255
- linkAccountWorkOrders(workOrderId, workOrderIds) {
255
+ linkAccountWorkOrders(workOrderId, accountIds) {
256
256
  return __awaiter(this, void 0, void 0, function* () {
257
257
  const associationDtos = [];
258
- for (const param of workOrderIds) {
258
+ for (const param of accountIds) {
259
259
  associationDtos.push({
260
- entity: 'FieldServiceModule:WorkOrder',
260
+ entity: 'CrmModule:Account',
261
261
  recordId: param.id,
262
262
  linkType: 'Account__WorkOrder',
263
263
  relationType: param === null || param === void 0 ? void 0 : param.relationType,
@@ -267,9 +267,9 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
267
267
  return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
268
268
  });
269
269
  }
270
- unLinkAccountWorkOrders(workOrderId, linkedWorkOrderId) {
270
+ unLinkAccountWorkOrders(workOrderId, linkedAccountId) {
271
271
  return __awaiter(this, void 0, void 0, function* () {
272
- return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedWorkOrderId);
272
+ return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedAccountId);
273
273
  });
274
274
  }
275
275
  // Use this function when you want to return a single record
@@ -455,6 +455,32 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
455
455
  });
456
456
  }
457
457
  // Use this function when you want to return a single record
458
+ getPaymentMethodRefunds(workOrderId) {
459
+ return __awaiter(this, void 0, void 0, function* () {
460
+ return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'PaymentMethodRefund');
461
+ });
462
+ }
463
+ linkPaymentMethodRefundWorkOrders(workOrderId, paymentMethodRefundIds) {
464
+ return __awaiter(this, void 0, void 0, function* () {
465
+ const associationDtos = [];
466
+ for (const param of paymentMethodRefundIds) {
467
+ associationDtos.push({
468
+ entity: 'BillingModule:PaymentMethodRefund',
469
+ recordId: param.id,
470
+ linkType: 'PaymentMethodRefund__WorkOrder',
471
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
472
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
473
+ });
474
+ }
475
+ return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
476
+ });
477
+ }
478
+ unLinkPaymentMethodRefundWorkOrders(workOrderId, linkedPaymentMethodRefundId) {
479
+ return __awaiter(this, void 0, void 0, function* () {
480
+ return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedPaymentMethodRefundId);
481
+ });
482
+ }
483
+ // Use this function when you want to return a single record
458
484
  getLeads(workOrderId) {
459
485
  return __awaiter(this, void 0, void 0, function* () {
460
486
  return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'Lead');
@@ -585,6 +611,32 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
585
611
  });
586
612
  }
587
613
  // Use this function when you want to return a single record
614
+ getOrders(workOrderId) {
615
+ return __awaiter(this, void 0, void 0, function* () {
616
+ return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'Order');
617
+ });
618
+ }
619
+ linkOrderWorkOrders(workOrderId, orderIds) {
620
+ return __awaiter(this, void 0, void 0, function* () {
621
+ const associationDtos = [];
622
+ for (const param of orderIds) {
623
+ associationDtos.push({
624
+ entity: 'OrderModule:Order',
625
+ recordId: param.id,
626
+ linkType: 'Order__WorkOrder',
627
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
628
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
629
+ });
630
+ }
631
+ return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
632
+ });
633
+ }
634
+ unLinkOrderWorkOrders(workOrderId, linkedOrderId) {
635
+ return __awaiter(this, void 0, void 0, function* () {
636
+ return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedOrderId);
637
+ });
638
+ }
639
+ // Use this function when you want to return a single record
588
640
  getServiceAppointmentConfigs(workOrderId) {
589
641
  return __awaiter(this, void 0, void 0, function* () {
590
642
  return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'ServiceAppointmentConfig');
@@ -663,6 +715,84 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
663
715
  });
664
716
  }
665
717
  // Use this function when you want to return a single record
718
+ getOrderRemediationTasks(workOrderId) {
719
+ return __awaiter(this, void 0, void 0, function* () {
720
+ return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'OrderRemediationTask');
721
+ });
722
+ }
723
+ linkOrderRemediationTaskWorkOrders(workOrderId, orderRemediationTaskIds) {
724
+ return __awaiter(this, void 0, void 0, function* () {
725
+ const associationDtos = [];
726
+ for (const param of orderRemediationTaskIds) {
727
+ associationDtos.push({
728
+ entity: 'OrderModule:OrderRemediationTask',
729
+ recordId: param.id,
730
+ linkType: 'OrderRemediationTask__WorkOrder',
731
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
732
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
733
+ });
734
+ }
735
+ return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
736
+ });
737
+ }
738
+ unLinkOrderRemediationTaskWorkOrders(workOrderId, linkedOrderRemediationTaskId) {
739
+ return __awaiter(this, void 0, void 0, function* () {
740
+ return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedOrderRemediationTaskId);
741
+ });
742
+ }
743
+ // Use this function when you want to return a single record
744
+ getCases(workOrderId) {
745
+ return __awaiter(this, void 0, void 0, function* () {
746
+ return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'Case');
747
+ });
748
+ }
749
+ linkCaseWorkOrders(workOrderId, caseIds) {
750
+ return __awaiter(this, void 0, void 0, function* () {
751
+ const associationDtos = [];
752
+ for (const param of caseIds) {
753
+ associationDtos.push({
754
+ entity: 'SupportModule:Case',
755
+ recordId: param.id,
756
+ linkType: 'Case__WorkOrder',
757
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
758
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
759
+ });
760
+ }
761
+ return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
762
+ });
763
+ }
764
+ unLinkCaseWorkOrders(workOrderId, linkedCaseId) {
765
+ return __awaiter(this, void 0, void 0, function* () {
766
+ return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedCaseId);
767
+ });
768
+ }
769
+ // Use this function when you want to return a single record
770
+ getCalls(workOrderId) {
771
+ return __awaiter(this, void 0, void 0, function* () {
772
+ return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'Call');
773
+ });
774
+ }
775
+ linkCallWorkOrders(workOrderId, callIds) {
776
+ return __awaiter(this, void 0, void 0, function* () {
777
+ const associationDtos = [];
778
+ for (const param of callIds) {
779
+ associationDtos.push({
780
+ entity: 'NotificationModule:Call',
781
+ recordId: param.id,
782
+ linkType: 'Call__WorkOrder',
783
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
784
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
785
+ });
786
+ }
787
+ return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
788
+ });
789
+ }
790
+ unLinkCallWorkOrders(workOrderId, linkedCallId) {
791
+ return __awaiter(this, void 0, void 0, function* () {
792
+ return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedCallId);
793
+ });
794
+ }
795
+ // Use this function when you want to return a single record
666
796
  getPermissionToFails(workOrderId) {
667
797
  return __awaiter(this, void 0, void 0, function* () {
668
798
  return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'PermissionToFail');
@@ -844,6 +974,26 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
844
974
  return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedTeamId);
845
975
  });
846
976
  }
977
+ linkWorkOrderOwners(workOrderId, userIds) {
978
+ return __awaiter(this, void 0, void 0, function* () {
979
+ const associationDtos = [];
980
+ for (const param of userIds) {
981
+ associationDtos.push({
982
+ entity: 'IdentityModule:User',
983
+ recordId: param.id,
984
+ linkType: 'WorkOrderOwner',
985
+ relationType: param === null || param === void 0 ? void 0 : param.relationType,
986
+ relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
987
+ });
988
+ }
989
+ return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
990
+ });
991
+ }
992
+ unLinkWorkOrderOwners(workOrderId, linkedUserId) {
993
+ return __awaiter(this, void 0, void 0, function* () {
994
+ return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedUserId);
995
+ });
996
+ }
847
997
  // Use this function when you want to return a single record
848
998
  getNetomniaFtthServiceVisitSheets(workOrderId) {
849
999
  return __awaiter(this, void 0, void 0, function* () {
@@ -24,13 +24,6 @@ export declare class BillingRequestDb extends DbProvider {
24
24
  relatedAssociationId?: string;
25
25
  }[]): Promise<any>;
26
26
  unlinkContactBillingRequests(billingRequestId: string, linkedContactIds: string[]): Promise<any>;
27
- getBillingRequests(billingRequestId: string): Promise<any>;
28
- linkBillingRequestBillingRequests(billingRequestId: string, billingRequestIds: {
29
- id: string;
30
- relationType?: RelationTypeEnum;
31
- relatedAssociationId?: string;
32
- }[]): Promise<any>;
33
- unlinkBillingRequestBillingRequests(billingRequestId: string, linkedBillingRequestIds: string[]): Promise<any>;
34
27
  getFiles(billingRequestId: string): Promise<any>;
35
28
  linkBillingRequestFiles(billingRequestId: string, fileIds: {
36
29
  id: string;
@@ -113,39 +113,6 @@ class BillingRequestDb extends db_provider_1.DbProvider {
113
113
  });
114
114
  }
115
115
  // Use this function when you want to return a single record
116
- getBillingRequests(billingRequestId) {
117
- return __awaiter(this, void 0, void 0, function* () {
118
- return yield this._getLinks(this.moduleName, this.entityName, billingRequestId, 'BillingRequest');
119
- });
120
- }
121
- linkBillingRequestBillingRequests(billingRequestId, billingRequestIds) {
122
- return __awaiter(this, void 0, void 0, function* () {
123
- const associationDtos = [];
124
- for (const param of billingRequestIds) {
125
- associationDtos.push({
126
- entity: 'BillingModule:BillingRequest',
127
- recordId: param.id,
128
- linkType: 'BillingRequest__BillingRequest',
129
- relationType: param === null || param === void 0 ? void 0 : param.relationType,
130
- relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
131
- });
132
- }
133
- return yield this._createLinks(this.moduleName, this.entityName, billingRequestId, associationDtos);
134
- });
135
- }
136
- unlinkBillingRequestBillingRequests(billingRequestId, linkedBillingRequestIds) {
137
- return __awaiter(this, void 0, void 0, function* () {
138
- const associationDtos = [];
139
- for (const pk of linkedBillingRequestIds) {
140
- associationDtos.push({
141
- primaryKey: billingRequestId,
142
- linkedRecordPrimaryKey: pk,
143
- });
144
- }
145
- return yield this._deleteLinks(this.moduleName, this.entityName, billingRequestId, associationDtos);
146
- });
147
- }
148
- // Use this function when you want to return a single record
149
116
  getFiles(billingRequestId) {
150
117
  return __awaiter(this, void 0, void 0, function* () {
151
118
  return yield this._getLinks(this.moduleName, this.entityName, billingRequestId, 'File');
@@ -17,13 +17,6 @@ export declare class CaseDb extends DbProvider {
17
17
  update(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
18
18
  delete(caseIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordDeleted[]>;
19
19
  restore(caseIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordRestored[]>;
20
- getCases(caseId: string): Promise<any>;
21
- linkCaseCases(caseId: string, caseIds: {
22
- id: string;
23
- relationType?: RelationTypeEnum;
24
- relatedAssociationId?: string;
25
- }[]): Promise<any>;
26
- unlinkCaseCases(caseId: string, linkedCaseIds: string[]): Promise<any>;
27
20
  getFiles(caseId: string): Promise<any>;
28
21
  linkCaseFiles(caseId: string, fileIds: {
29
22
  id: string;
@@ -80,39 +80,6 @@ class CaseDb extends db_provider_1.DbProvider {
80
80
  });
81
81
  }
82
82
  // Use this function when you want to return a single record
83
- getCases(caseId) {
84
- return __awaiter(this, void 0, void 0, function* () {
85
- return yield this._getLinks(this.moduleName, this.entityName, caseId, 'Case');
86
- });
87
- }
88
- linkCaseCases(caseId, caseIds) {
89
- return __awaiter(this, void 0, void 0, function* () {
90
- const associationDtos = [];
91
- for (const param of caseIds) {
92
- associationDtos.push({
93
- entity: 'SupportModule:Case',
94
- recordId: param.id,
95
- linkType: 'Case__Case',
96
- relationType: param === null || param === void 0 ? void 0 : param.relationType,
97
- relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
98
- });
99
- }
100
- return yield this._createLinks(this.moduleName, this.entityName, caseId, associationDtos);
101
- });
102
- }
103
- unlinkCaseCases(caseId, linkedCaseIds) {
104
- return __awaiter(this, void 0, void 0, function* () {
105
- const associationDtos = [];
106
- for (const pk of linkedCaseIds) {
107
- associationDtos.push({
108
- primaryKey: caseId,
109
- linkedRecordPrimaryKey: pk,
110
- });
111
- }
112
- return yield this._deleteLinks(this.moduleName, this.entityName, caseId, associationDtos);
113
- });
114
- }
115
- // Use this function when you want to return a single record
116
83
  getFiles(caseId) {
117
84
  return __awaiter(this, void 0, void 0, function* () {
118
85
  return yield this._getLinks(this.moduleName, this.entityName, caseId, 'File');
@@ -24,11 +24,4 @@ export declare class ConsumptionRateDb extends DbProvider {
24
24
  relatedAssociationId?: string;
25
25
  }[]): Promise<any>;
26
26
  unlinkConsumptionScheduleConsumptionRates(consumptionRateId: string, linkedConsumptionScheduleIds: string[]): Promise<any>;
27
- getConsumptionRates(consumptionRateId: string): Promise<any>;
28
- linkConsumptionRateConsumptionRates(consumptionRateId: string, consumptionRateIds: {
29
- id: string;
30
- relationType?: RelationTypeEnum;
31
- relatedAssociationId?: string;
32
- }[]): Promise<any>;
33
- unlinkConsumptionRateConsumptionRates(consumptionRateId: string, linkedConsumptionRateIds: string[]): Promise<any>;
34
27
  }
@@ -112,38 +112,5 @@ class ConsumptionRateDb extends db_provider_1.DbProvider {
112
112
  return yield this._deleteLinks(this.moduleName, this.entityName, consumptionRateId, associationDtos);
113
113
  });
114
114
  }
115
- // Use this function when you want to return a single record
116
- getConsumptionRates(consumptionRateId) {
117
- return __awaiter(this, void 0, void 0, function* () {
118
- return yield this._getLinks(this.moduleName, this.entityName, consumptionRateId, 'ConsumptionRate');
119
- });
120
- }
121
- linkConsumptionRateConsumptionRates(consumptionRateId, consumptionRateIds) {
122
- return __awaiter(this, void 0, void 0, function* () {
123
- const associationDtos = [];
124
- for (const param of consumptionRateIds) {
125
- associationDtos.push({
126
- entity: 'ProductModule:ConsumptionRate',
127
- recordId: param.id,
128
- linkType: 'ConsumptionRate__ConsumptionRate',
129
- relationType: param === null || param === void 0 ? void 0 : param.relationType,
130
- relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
131
- });
132
- }
133
- return yield this._createLinks(this.moduleName, this.entityName, consumptionRateId, associationDtos);
134
- });
135
- }
136
- unlinkConsumptionRateConsumptionRates(consumptionRateId, linkedConsumptionRateIds) {
137
- return __awaiter(this, void 0, void 0, function* () {
138
- const associationDtos = [];
139
- for (const pk of linkedConsumptionRateIds) {
140
- associationDtos.push({
141
- primaryKey: consumptionRateId,
142
- linkedRecordPrimaryKey: pk,
143
- });
144
- }
145
- return yield this._deleteLinks(this.moduleName, this.entityName, consumptionRateId, associationDtos);
146
- });
147
- }
148
115
  }
149
116
  exports.ConsumptionRateDb = ConsumptionRateDb;
@@ -31,11 +31,4 @@ export declare class ConsumptionScheduleDb extends DbProvider {
31
31
  relatedAssociationId?: string;
32
32
  }[]): Promise<any>;
33
33
  unlinkProductConsumptionSchedules(consumptionScheduleId: string, linkedProductIds: string[]): Promise<any>;
34
- getConsumptionSchedules(consumptionScheduleId: string): Promise<any>;
35
- linkConsumptionScheduleConsumptionSchedules(consumptionScheduleId: string, consumptionScheduleIds: {
36
- id: string;
37
- relationType?: RelationTypeEnum;
38
- relatedAssociationId?: string;
39
- }[]): Promise<any>;
40
- unlinkConsumptionScheduleConsumptionSchedules(consumptionScheduleId: string, linkedConsumptionScheduleIds: string[]): Promise<any>;
41
34
  }
@@ -145,38 +145,5 @@ class ConsumptionScheduleDb extends db_provider_1.DbProvider {
145
145
  return yield this._deleteLinks(this.moduleName, this.entityName, consumptionScheduleId, associationDtos);
146
146
  });
147
147
  }
148
- // Use this function when you want to return a single record
149
- getConsumptionSchedules(consumptionScheduleId) {
150
- return __awaiter(this, void 0, void 0, function* () {
151
- return yield this._getLinks(this.moduleName, this.entityName, consumptionScheduleId, 'ConsumptionSchedule');
152
- });
153
- }
154
- linkConsumptionScheduleConsumptionSchedules(consumptionScheduleId, consumptionScheduleIds) {
155
- return __awaiter(this, void 0, void 0, function* () {
156
- const associationDtos = [];
157
- for (const param of consumptionScheduleIds) {
158
- associationDtos.push({
159
- entity: 'ProductModule:ConsumptionSchedule',
160
- recordId: param.id,
161
- linkType: 'ConsumptionSchedule__ConsumptionSchedule',
162
- relationType: param === null || param === void 0 ? void 0 : param.relationType,
163
- relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
164
- });
165
- }
166
- return yield this._createLinks(this.moduleName, this.entityName, consumptionScheduleId, associationDtos);
167
- });
168
- }
169
- unlinkConsumptionScheduleConsumptionSchedules(consumptionScheduleId, linkedConsumptionScheduleIds) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- const associationDtos = [];
172
- for (const pk of linkedConsumptionScheduleIds) {
173
- associationDtos.push({
174
- primaryKey: consumptionScheduleId,
175
- linkedRecordPrimaryKey: pk,
176
- });
177
- }
178
- return yield this._deleteLinks(this.moduleName, this.entityName, consumptionScheduleId, associationDtos);
179
- });
180
- }
181
148
  }
182
149
  exports.ConsumptionScheduleDb = ConsumptionScheduleDb;
@@ -17,13 +17,20 @@ export declare class ContactDb extends DbProvider {
17
17
  update(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
18
18
  delete(contactIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordDeleted[]>;
19
19
  restore(contactIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordRestored[]>;
20
- getContacts(contactId: string): Promise<any>;
21
- linkOrganizationContacts(contactId: string, contactIds: {
20
+ getOrganizations(contactId: string): Promise<any>;
21
+ linkOrganizationContacts(contactId: string, organizationIds: {
22
22
  id: string;
23
23
  relationType?: RelationTypeEnum;
24
24
  relatedAssociationId?: string;
25
25
  }[]): Promise<any>;
26
- unlinkOrganizationContacts(contactId: string, linkedContactIds: string[]): Promise<any>;
26
+ unlinkOrganizationContacts(contactId: string, linkedOrganizationIds: string[]): Promise<any>;
27
+ getAccounts(contactId: string): Promise<any>;
28
+ linkBillingContacts(contactId: string, accountIds: {
29
+ id: string;
30
+ relationType?: RelationTypeEnum;
31
+ relatedAssociationId?: string;
32
+ }[]): Promise<any>;
33
+ unlinkBillingContacts(contactId: string, linkedAccountIds: string[]): Promise<any>;
27
34
  getActivitys(contactId: string): Promise<any>;
28
35
  linkContactActivitys(contactId: string, activityIds: {
29
36
  id: string;
@@ -38,6 +45,27 @@ export declare class ContactDb extends DbProvider {
38
45
  relatedAssociationId?: string;
39
46
  }[]): Promise<any>;
40
47
  unlinkContactNotes(contactId: string, linkedNoteIds: string[]): Promise<any>;
48
+ getWorkOrders(contactId: string): Promise<any>;
49
+ linkWorkOrderContacts(contactId: string, workOrderIds: {
50
+ id: string;
51
+ relationType?: RelationTypeEnum;
52
+ relatedAssociationId?: string;
53
+ }[]): Promise<any>;
54
+ unlinkWorkOrderContacts(contactId: string, linkedWorkOrderIds: string[]): Promise<any>;
55
+ getOrders(contactId: string): Promise<any>;
56
+ linkOrderContacts(contactId: string, orderIds: {
57
+ id: string;
58
+ relationType?: RelationTypeEnum;
59
+ relatedAssociationId?: string;
60
+ }[]): Promise<any>;
61
+ unlinkOrderContacts(contactId: string, linkedOrderIds: string[]): Promise<any>;
62
+ getLeads(contactId: string): Promise<any>;
63
+ linkLeadContacts(contactId: string, leadIds: {
64
+ id: string;
65
+ relationType?: RelationTypeEnum;
66
+ relatedAssociationId?: string;
67
+ }[]): Promise<any>;
68
+ unlinkLeadContacts(contactId: string, linkedLeadIds: string[]): Promise<any>;
41
69
  getAddresss(contactId: string): Promise<any>;
42
70
  linkContactAddresss(contactId: string, addressIds: {
43
71
  id: string;
@@ -52,6 +80,13 @@ export declare class ContactDb extends DbProvider {
52
80
  relatedAssociationId?: string;
53
81
  }[]): Promise<any>;
54
82
  unlinkContactSmsMessages(contactId: string, linkedSmsMessageIds: string[]): Promise<any>;
83
+ getInvoices(contactId: string): Promise<any>;
84
+ linkInvoiceContacts(contactId: string, invoiceIds: {
85
+ id: string;
86
+ relationType?: RelationTypeEnum;
87
+ relatedAssociationId?: string;
88
+ }[]): Promise<any>;
89
+ unlinkInvoiceContacts(contactId: string, linkedInvoiceIds: string[]): Promise<any>;
55
90
  getBillingRequests(contactId: string): Promise<any>;
56
91
  linkContactBillingRequests(contactId: string, billingRequestIds: {
57
92
  id: string;
@@ -66,6 +101,20 @@ export declare class ContactDb extends DbProvider {
66
101
  relatedAssociationId?: string;
67
102
  }[]): Promise<any>;
68
103
  unlinkContactFiles(contactId: string, linkedFileIds: string[]): Promise<any>;
104
+ getCommissions(contactId: string): Promise<any>;
105
+ linkCommissionContacts(contactId: string, commissionIds: {
106
+ id: string;
107
+ relationType?: RelationTypeEnum;
108
+ relatedAssociationId?: string;
109
+ }[]): Promise<any>;
110
+ unlinkCommissionContacts(contactId: string, linkedCommissionIds: string[]): Promise<any>;
111
+ getOneTouchSwitchs(contactId: string): Promise<any>;
112
+ linkOneTouchSwitchContacts(contactId: string, oneTouchSwitchIds: {
113
+ id: string;
114
+ relationType?: RelationTypeEnum;
115
+ relatedAssociationId?: string;
116
+ }[]): Promise<any>;
117
+ unlinkOneTouchSwitchContacts(contactId: string, linkedOneTouchSwitchIds: string[]): Promise<any>;
69
118
  getContactIdentitys(contactId: string): Promise<any>;
70
119
  linkContactContactIdentitys(contactId: string, contactIdentityIds: {
71
120
  id: string;
@@ -80,6 +129,13 @@ export declare class ContactDb extends DbProvider {
80
129
  relatedAssociationId?: string;
81
130
  }[]): Promise<any>;
82
131
  unlinkContactPaymentMethodRefunds(contactId: string, linkedPaymentMethodRefundIds: string[]): Promise<any>;
132
+ getDeactivationApprovals(contactId: string): Promise<any>;
133
+ linkDeactivationApprovalContacts(contactId: string, deactivationApprovalIds: {
134
+ id: string;
135
+ relationType?: RelationTypeEnum;
136
+ relatedAssociationId?: string;
137
+ }[]): Promise<any>;
138
+ unlinkDeactivationApprovalContacts(contactId: string, linkedDeactivationApprovalIds: string[]): Promise<any>;
83
139
  getPhoneNumbers(contactId: string): Promise<any>;
84
140
  linkContactPhoneNumbers(contactId: string, phoneNumberIds: {
85
141
  id: string;
@@ -87,6 +143,20 @@ export declare class ContactDb extends DbProvider {
87
143
  relatedAssociationId?: string;
88
144
  }[]): Promise<any>;
89
145
  unlinkContactPhoneNumbers(contactId: string, linkedPhoneNumberIds: string[]): Promise<any>;
146
+ getOrderRemediationTasks(contactId: string): Promise<any>;
147
+ linkOrderRemediationTaskContacts(contactId: string, orderRemediationTaskIds: {
148
+ id: string;
149
+ relationType?: RelationTypeEnum;
150
+ relatedAssociationId?: string;
151
+ }[]): Promise<any>;
152
+ unlinkOrderRemediationTaskContacts(contactId: string, linkedOrderRemediationTaskIds: string[]): Promise<any>;
153
+ getCases(contactId: string): Promise<any>;
154
+ linkCaseContacts(contactId: string, caseIds: {
155
+ id: string;
156
+ relationType?: RelationTypeEnum;
157
+ relatedAssociationId?: string;
158
+ }[]): Promise<any>;
159
+ unlinkCaseContacts(contactId: string, linkedCaseIds: string[]): Promise<any>;
90
160
  getAppointments(contactId: string): Promise<any>;
91
161
  linkContactAppointments(contactId: string, appointmentIds: {
92
162
  id: string;
@@ -94,6 +164,13 @@ export declare class ContactDb extends DbProvider {
94
164
  relatedAssociationId?: string;
95
165
  }[]): Promise<any>;
96
166
  unlinkContactAppointments(contactId: string, linkedAppointmentIds: string[]): Promise<any>;
167
+ getCalls(contactId: string): Promise<any>;
168
+ linkCallContacts(contactId: string, callIds: {
169
+ id: string;
170
+ relationType?: RelationTypeEnum;
171
+ relatedAssociationId?: string;
172
+ }[]): Promise<any>;
173
+ unlinkCallContacts(contactId: string, linkedCallIds: string[]): Promise<any>;
97
174
  getPaymentMethods(contactId: string): Promise<any>;
98
175
  linkContactPaymentMethods(contactId: string, paymentMethodIds: {
99
176
  id: string;
@@ -101,4 +178,11 @@ export declare class ContactDb extends DbProvider {
101
178
  relatedAssociationId?: string;
102
179
  }[]): Promise<any>;
103
180
  unlinkContactPaymentMethods(contactId: string, linkedPaymentMethodIds: string[]): Promise<any>;
181
+ getFingerprints(contactId: string): Promise<any>;
182
+ linkFingerprintContacts(contactId: string, fingerprintIds: {
183
+ id: string;
184
+ relationType?: RelationTypeEnum;
185
+ relatedAssociationId?: string;
186
+ }[]): Promise<any>;
187
+ unlinkFingerprintContacts(contactId: string, linkedFingerprintIds: string[]): Promise<any>;
104
188
  }