@d19n/youfibre-odin-sdk 1.0.83 → 1.0.85

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 (179) hide show
  1. package/dist/api-sdk-v2/AfpInvoiceFileApi.d.ts +1 -0
  2. package/dist/api-sdk-v2/AfpInvoiceFileApi.js +1 -0
  3. package/dist/api-sdk-v2/ConfigApi.d.ts +35 -0
  4. package/dist/api-sdk-v2/ConfigApi.js +125 -0
  5. package/dist/api-sdk-v2/ContactApi.d.ts +15 -15
  6. package/dist/api-sdk-v2/ContactApi.js +15 -15
  7. package/dist/api-sdk-v2/ContractBuyOutApi.d.ts +39 -0
  8. package/dist/api-sdk-v2/ContractBuyOutApi.js +129 -0
  9. package/dist/api-sdk-v2/CsvFileApi.d.ts +1 -0
  10. package/dist/api-sdk-v2/CsvFileApi.js +1 -0
  11. package/dist/api-sdk-v2/EmailFileApi.d.ts +1 -0
  12. package/dist/api-sdk-v2/EmailFileApi.js +1 -0
  13. package/dist/api-sdk-v2/FileApi.d.ts +1 -0
  14. package/dist/api-sdk-v2/FileApi.js +1 -0
  15. package/dist/api-sdk-v2/InvoiceFileApi.d.ts +1 -0
  16. package/dist/api-sdk-v2/InvoiceFileApi.js +1 -0
  17. package/dist/api-sdk-v2/LeadApi.d.ts +4 -4
  18. package/dist/api-sdk-v2/LeadApi.js +4 -4
  19. package/dist/api-sdk-v2/NaProblemEvidenceFileApi.d.ts +1 -0
  20. package/dist/api-sdk-v2/NaProblemEvidenceFileApi.js +1 -0
  21. package/dist/api-sdk-v2/NaSolutionEvidenceFileApi.d.ts +1 -0
  22. package/dist/api-sdk-v2/NaSolutionEvidenceFileApi.js +1 -0
  23. package/dist/api-sdk-v2/OpenreachA55FileApi.d.ts +1 -0
  24. package/dist/api-sdk-v2/OpenreachA55FileApi.js +1 -0
  25. package/dist/api-sdk-v2/OrderApi.d.ts +1 -0
  26. package/dist/api-sdk-v2/OrderApi.js +1 -0
  27. package/dist/api-sdk-v2/OtdrFileApi.d.ts +1 -0
  28. package/dist/api-sdk-v2/OtdrFileApi.js +1 -0
  29. package/dist/api-sdk-v2/UserApi.d.ts +1 -0
  30. package/dist/api-sdk-v2/UserApi.js +1 -0
  31. package/dist/db-sdk-v2/ConfigDb.d.ts +24 -0
  32. package/dist/db-sdk-v2/ConfigDb.js +102 -0
  33. package/dist/db-sdk-v2/ContractBuyOutDb.d.ts +28 -0
  34. package/dist/db-sdk-v2/ContractBuyOutDb.js +106 -0
  35. package/dist/db-sdk-v2/FileDb.d.ts +1 -0
  36. package/dist/db-sdk-v2/FileDb.js +1 -0
  37. package/dist/db-sdk-v2/OrderDb.d.ts +1 -0
  38. package/dist/db-sdk-v2/OrderDb.js +1 -0
  39. package/dist/db-sdk-v2/UserDb.d.ts +1 -0
  40. package/dist/db-sdk-v2/UserDb.js +1 -0
  41. package/dist/entities-v2/AfpInvoiceFile.d.ts +2 -0
  42. package/dist/entities-v2/Case.d.ts +2 -2
  43. package/dist/entities-v2/Case.js +1 -1
  44. package/dist/entities-v2/ChangeReason.d.ts +3 -0
  45. package/dist/entities-v2/ChangeReason.js +3 -0
  46. package/dist/entities-v2/CollectionWorkOrder.d.ts +12 -1
  47. package/dist/entities-v2/CollectionWorkOrder.js +10 -1
  48. package/dist/entities-v2/ContractBuyOut.d.ts +77 -0
  49. package/dist/entities-v2/ContractBuyOut.js +42 -0
  50. package/dist/entities-v2/CreditNote.d.ts +4 -4
  51. package/dist/entities-v2/CreditNote.js +2 -2
  52. package/dist/entities-v2/CsvFile.d.ts +2 -0
  53. package/dist/entities-v2/EmailFile.d.ts +2 -0
  54. package/dist/entities-v2/File.d.ts +2 -0
  55. package/dist/entities-v2/FinanceWorkOrder.d.ts +4 -1
  56. package/dist/entities-v2/FinanceWorkOrder.js +3 -0
  57. package/dist/entities-v2/InspectionWorkOrder.d.ts +4 -1
  58. package/dist/entities-v2/InspectionWorkOrder.js +3 -0
  59. package/dist/entities-v2/InstallBusinessWorkOrder.d.ts +4 -1
  60. package/dist/entities-v2/InstallBusinessWorkOrder.js +3 -0
  61. package/dist/entities-v2/InstallServiceWorkOrder.d.ts +4 -1
  62. package/dist/entities-v2/InstallServiceWorkOrder.js +3 -0
  63. package/dist/entities-v2/InstallWorkOrder.d.ts +4 -1
  64. package/dist/entities-v2/InstallWorkOrder.js +3 -0
  65. package/dist/entities-v2/InvoiceFile.d.ts +2 -0
  66. package/dist/entities-v2/Lead.d.ts +53 -52
  67. package/dist/entities-v2/Lead.js +30 -30
  68. package/dist/entities-v2/NaProblemEvidenceFile.d.ts +2 -0
  69. package/dist/entities-v2/NaSolutionEvidenceFile.d.ts +2 -0
  70. package/dist/entities-v2/NetworkAdjustmentWorkOrder.d.ts +4 -1
  71. package/dist/entities-v2/NetworkAdjustmentWorkOrder.js +3 -0
  72. package/dist/entities-v2/OntReplacementApproval.d.ts +1 -0
  73. package/dist/entities-v2/OpenreachA55File.d.ts +2 -0
  74. package/dist/entities-v2/Order.d.ts +3 -1
  75. package/dist/entities-v2/OtdrFile.d.ts +2 -0
  76. package/dist/entities-v2/OutageCase.d.ts +2 -2
  77. package/dist/entities-v2/OutageCase.js +1 -1
  78. package/dist/entities-v2/OutcomeFormBlockageA55.d.ts +36 -36
  79. package/dist/entities-v2/OutcomeFormBlockageA55.js +36 -36
  80. package/dist/entities-v2/OutcomeFormOverlayRealA55.d.ts +40 -40
  81. package/dist/entities-v2/OutcomeFormOverlayRealA55.js +38 -38
  82. package/dist/entities-v2/OutcomeFormRemediationRequiredReason.d.ts +12 -12
  83. package/dist/entities-v2/OutcomeFormRemediationRequiredReason.js +11 -11
  84. package/dist/entities-v2/OutcomeFormServiceVisitAudit.d.ts +37 -37
  85. package/dist/entities-v2/OutcomeFormServiceVisitAudit.js +28 -28
  86. package/dist/entities-v2/OutcomeFormWayleaveAudit.d.ts +2 -0
  87. package/dist/entities-v2/OverlayRealA55.d.ts +40 -40
  88. package/dist/entities-v2/OverlayRealA55.js +38 -38
  89. package/dist/entities-v2/PlanningWorkOrder.d.ts +4 -1
  90. package/dist/entities-v2/PlanningWorkOrder.js +3 -0
  91. package/dist/entities-v2/PrePullWorkOrder.d.ts +4 -1
  92. package/dist/entities-v2/PrePullWorkOrder.js +3 -0
  93. package/dist/entities-v2/RemediationRequiredReason.d.ts +12 -12
  94. package/dist/entities-v2/RemediationRequiredReason.js +11 -11
  95. package/dist/entities-v2/RemediationWorkOrder.d.ts +4 -1
  96. package/dist/entities-v2/RemediationWorkOrder.js +3 -0
  97. package/dist/entities-v2/SaCancelChangeReason.d.ts +1 -0
  98. package/dist/entities-v2/SaCancelChangeReason.js +1 -0
  99. package/dist/entities-v2/SaDelayChangeReason.d.ts +1 -0
  100. package/dist/entities-v2/SaDelayChangeReason.js +1 -0
  101. package/dist/entities-v2/SaRescheduleChangeReason.d.ts +1 -0
  102. package/dist/entities-v2/SaRescheduleChangeReason.js +1 -0
  103. package/dist/entities-v2/ServiceWorkOrder.d.ts +4 -1
  104. package/dist/entities-v2/ServiceWorkOrder.js +3 -0
  105. package/dist/entities-v2/User.d.ts +2 -0
  106. package/dist/entities-v2/Visit.d.ts +60 -60
  107. package/dist/entities-v2/Visit.js +49 -49
  108. package/dist/entities-v2/WayleaveAudit.d.ts +1 -0
  109. package/dist/entities-v2/WayleaveWorkOrder.d.ts +4 -1
  110. package/dist/entities-v2/WayleaveWorkOrder.js +3 -0
  111. package/dist/entities-v2/WorkOrder.d.ts +12 -1
  112. package/dist/entities-v2/WorkOrder.js +10 -1
  113. package/dist/types-v1/Types.d.ts +5 -4
  114. package/dist/types-v1/Types.js +5 -4
  115. package/package.json +2 -2
  116. package/src/api-sdk-v2/AfpInvoiceFileApi.ts +6 -0
  117. package/src/api-sdk-v2/ConfigApi.ts +132 -0
  118. package/src/api-sdk-v2/ContactApi.ts +84 -84
  119. package/src/api-sdk-v2/ContractBuyOutApi.ts +150 -0
  120. package/src/api-sdk-v2/CsvFileApi.ts +6 -0
  121. package/src/api-sdk-v2/EmailFileApi.ts +6 -0
  122. package/src/api-sdk-v2/FileApi.ts +6 -0
  123. package/src/api-sdk-v2/InvoiceFileApi.ts +6 -0
  124. package/src/api-sdk-v2/LeadApi.ts +18 -18
  125. package/src/api-sdk-v2/NaProblemEvidenceFileApi.ts +6 -0
  126. package/src/api-sdk-v2/NaSolutionEvidenceFileApi.ts +6 -0
  127. package/src/api-sdk-v2/OpenreachA55FileApi.ts +6 -0
  128. package/src/api-sdk-v2/OrderApi.ts +6 -0
  129. package/src/api-sdk-v2/OtdrFileApi.ts +6 -0
  130. package/src/api-sdk-v2/UserApi.ts +6 -0
  131. package/src/db-sdk-v2/ConfigDb.ts +113 -0
  132. package/src/db-sdk-v2/ContractBuyOutDb.ts +137 -0
  133. package/src/db-sdk-v2/FileDb.ts +8 -0
  134. package/src/db-sdk-v2/OrderDb.ts +8 -0
  135. package/src/db-sdk-v2/UserDb.ts +8 -0
  136. package/src/entities-v2/AfpInvoiceFile.ts +2 -0
  137. package/src/entities-v2/Case.ts +3 -3
  138. package/src/entities-v2/ChangeReason.ts +3 -0
  139. package/src/entities-v2/CollectionWorkOrder.ts +14 -0
  140. package/src/entities-v2/ContractBuyOut.ts +87 -0
  141. package/src/entities-v2/CreditNote.ts +6 -6
  142. package/src/entities-v2/CsvFile.ts +2 -0
  143. package/src/entities-v2/EmailFile.ts +2 -0
  144. package/src/entities-v2/File.ts +2 -0
  145. package/src/entities-v2/FinanceWorkOrder.ts +3 -0
  146. package/src/entities-v2/InspectionWorkOrder.ts +3 -0
  147. package/src/entities-v2/InstallBusinessWorkOrder.ts +3 -0
  148. package/src/entities-v2/InstallServiceWorkOrder.ts +3 -0
  149. package/src/entities-v2/InstallWorkOrder.ts +3 -0
  150. package/src/entities-v2/InvoiceFile.ts +2 -0
  151. package/src/entities-v2/Lead.ts +75 -74
  152. package/src/entities-v2/NaProblemEvidenceFile.ts +2 -0
  153. package/src/entities-v2/NaSolutionEvidenceFile.ts +2 -0
  154. package/src/entities-v2/NetworkAdjustmentWorkOrder.ts +3 -0
  155. package/src/entities-v2/OntReplacementApproval.ts +1 -0
  156. package/src/entities-v2/OpenreachA55File.ts +2 -0
  157. package/src/entities-v2/Order.ts +3 -1
  158. package/src/entities-v2/OtdrFile.ts +2 -0
  159. package/src/entities-v2/OutageCase.ts +3 -3
  160. package/src/entities-v2/OutcomeFormBlockageA55.ts +45 -45
  161. package/src/entities-v2/OutcomeFormOverlayRealA55.ts +51 -51
  162. package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +13 -13
  163. package/src/entities-v2/OutcomeFormServiceVisitAudit.ts +50 -50
  164. package/src/entities-v2/OutcomeFormWayleaveAudit.ts +2 -0
  165. package/src/entities-v2/OverlayRealA55.ts +51 -51
  166. package/src/entities-v2/PlanningWorkOrder.ts +3 -0
  167. package/src/entities-v2/PrePullWorkOrder.ts +3 -0
  168. package/src/entities-v2/RemediationRequiredReason.ts +13 -13
  169. package/src/entities-v2/RemediationWorkOrder.ts +3 -0
  170. package/src/entities-v2/SaCancelChangeReason.ts +1 -0
  171. package/src/entities-v2/SaDelayChangeReason.ts +1 -0
  172. package/src/entities-v2/SaRescheduleChangeReason.ts +1 -0
  173. package/src/entities-v2/ServiceWorkOrder.ts +3 -0
  174. package/src/entities-v2/User.ts +2 -0
  175. package/src/entities-v2/Visit.ts +75 -75
  176. package/src/entities-v2/WayleaveAudit.ts +1 -0
  177. package/src/entities-v2/WayleaveWorkOrder.ts +3 -0
  178. package/src/entities-v2/WorkOrder.ts +14 -0
  179. package/src/types-v1/Types.ts +5 -4
@@ -65,6 +65,7 @@ export declare class AfpInvoiceFileApi extends ApiProvider {
65
65
  readonly ohexternalaudit_file: ApiRecordLinkManager;
66
66
  readonly attachments: ApiRecordLinkManager;
67
67
  readonly message_file: ApiRecordLinkManager;
68
+ readonly contractbuyout_file: ApiRecordLinkManager;
68
69
  readonly note: ApiRecordLinkManager;
69
70
  constructor(authParams?: OauthParams, authToken?: string);
70
71
  setRecord(sourceRecord: any): void;
@@ -74,6 +74,7 @@ class AfpInvoiceFileApi extends api_provider_1.ApiProvider {
74
74
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
75
75
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
76
76
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
77
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
77
78
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
78
79
  }
79
80
  setRecord(sourceRecord) {
@@ -0,0 +1,35 @@
1
+ import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
2
+ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
3
+ import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
4
+ import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
5
+ export declare class ConfigApi extends ApiProvider {
6
+ protected readonly authToken?: string;
7
+ private readonly moduleName;
8
+ private readonly entityName;
9
+ private sourceRecord;
10
+ constructor(authParams?: OauthParams, authToken?: string);
11
+ setRecord(sourceRecord: any): void;
12
+ schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
13
+ search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
14
+ searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
15
+ reIndex(body: {
16
+ id: string;
17
+ schemaId: string;
18
+ }[]): Promise<any>;
19
+ get(configId: string): Promise<any>;
20
+ getMany(configIds: string[]): Promise<any[]>;
21
+ upsert(upsertDto: OdinRecordCreateDto): Promise<any>;
22
+ upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
23
+ update(updateDto: OdinRecordUpdateDto): Promise<any>;
24
+ updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
25
+ delete(configId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
26
+ deleteMany(configIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
27
+ restore(configIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
28
+ applyAction(actionName: string, dtos: any[]): Promise<any[]>;
29
+ getVersions(): Promise<{
30
+ [key: string]: Record<string, any>;
31
+ }>;
32
+ getRevisionTimeline(): Promise<{
33
+ [key: string]: Record<string, any>[];
34
+ }>;
35
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ConfigApi = void 0;
13
+ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
14
+ class ConfigApi extends api_provider_1.ApiProvider {
15
+ constructor(authParams, authToken) {
16
+ super(authParams, authToken);
17
+ this.authToken = authToken;
18
+ this.moduleName = 'SchemaModule';
19
+ this.entityName = 'Config';
20
+ }
21
+ setRecord(sourceRecord) {
22
+ this.sourceRecord = sourceRecord;
23
+ }
24
+ schema() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return yield this.getSchema(this.moduleName, this.entityName);
27
+ });
28
+ }
29
+ // Use this function when you want to search and handle all pagination on your own
30
+ search(params) {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ return yield this._searchRecords(this.moduleName, this.entityName, params);
33
+ });
34
+ }
35
+ // Use this function when you want paginating through the results to be handled
36
+ searchAndPaginate(params) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
39
+ });
40
+ }
41
+ // Use this function to re-index records in elastic search
42
+ reIndex(body) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return yield this._reIndexRecords(body);
45
+ });
46
+ }
47
+ // Use this function when you want to return a single record
48
+ get(configId) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, configId);
51
+ this.setRecord(res);
52
+ return res;
53
+ });
54
+ }
55
+ // Use this function when you want to return many records by primaryKeys
56
+ getMany(configIds) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, configIds);
59
+ });
60
+ }
61
+ // Use this function when you want to upsert one record
62
+ upsert(upsertDto) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
65
+ return res[0];
66
+ });
67
+ }
68
+ // Use this function when you want to upsert many records
69
+ upsertMany(upsertDtos) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
72
+ });
73
+ }
74
+ // Use this function when you want to update one record
75
+ update(updateDto) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
78
+ return res[0];
79
+ });
80
+ }
81
+ // Use this function when you want to update many records
82
+ updateMany(updateDtos) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ return yield this._update(this.moduleName, this.entityName, updateDtos);
85
+ });
86
+ }
87
+ // Use this function when you want to delete one record
88
+ delete(configId) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const res = yield this._delete(this.moduleName, this.entityName, [configId]);
91
+ return res[0];
92
+ });
93
+ }
94
+ // Use this function when you want to delete many records
95
+ deleteMany(configIds) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ return yield this._delete(this.moduleName, this.entityName, configIds);
98
+ });
99
+ }
100
+ // Use this function when you want to restore one or many records
101
+ restore(configIds) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ return yield this._restore(this.moduleName, this.entityName, configIds);
104
+ });
105
+ }
106
+ // Use this function when you want to apply actions
107
+ applyAction(actionName, dtos) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ return yield this._applyAction(this.moduleName, this.entityName, actionName, dtos);
110
+ });
111
+ }
112
+ // Use this function when you want to return the versions for a single record
113
+ getVersions() {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
116
+ });
117
+ }
118
+ // Use this function when you want to return the change history for a single record
119
+ getRevisionTimeline() {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
122
+ });
123
+ }
124
+ }
125
+ exports.ConfigApi = ConfigApi;
@@ -8,31 +8,31 @@ export declare class ContactApi extends ApiProvider {
8
8
  private readonly moduleName;
9
9
  private readonly entityName;
10
10
  private sourceRecord;
11
- readonly organization: ApiRecordLinkManager;
12
- readonly account: ApiRecordLinkManager;
11
+ readonly organization__contact: ApiRecordLinkManager;
12
+ readonly billingcontact: ApiRecordLinkManager;
13
+ readonly workorder__contact: ApiRecordLinkManager;
14
+ readonly order__contact: ApiRecordLinkManager;
15
+ readonly lead__contact: ApiRecordLinkManager;
16
+ readonly invoice__contact: ApiRecordLinkManager;
17
+ readonly commission__contact: ApiRecordLinkManager;
18
+ readonly contact__contact: ApiRecordLinkManager;
19
+ readonly onetouchswitch__contact: ApiRecordLinkManager;
20
+ readonly deactivationapproval__contact: ApiRecordLinkManager;
21
+ readonly orderremediationtask__contact: ApiRecordLinkManager;
22
+ readonly call__contact: ApiRecordLinkManager;
23
+ readonly fingerprint__contact: ApiRecordLinkManager;
24
+ readonly case__contact: ApiRecordLinkManager;
25
+ readonly email_contact: ApiRecordLinkManager;
13
26
  readonly activity: ApiRecordLinkManager;
14
27
  readonly note: ApiRecordLinkManager;
15
- readonly workorder: ApiRecordLinkManager;
16
- readonly order: ApiRecordLinkManager;
17
- readonly lead: ApiRecordLinkManager;
18
28
  readonly address: ApiRecordLinkManager;
19
29
  readonly smsmessage: ApiRecordLinkManager;
20
- readonly invoice: ApiRecordLinkManager;
21
30
  readonly billingrequest: ApiRecordLinkManager;
22
31
  readonly file: ApiRecordLinkManager;
23
- readonly commission: ApiRecordLinkManager;
24
- readonly contact: ApiRecordLinkManager;
25
- readonly onetouchswitch: ApiRecordLinkManager;
26
32
  readonly contactidentity: ApiRecordLinkManager;
27
33
  readonly paymentmethodrefund: ApiRecordLinkManager;
28
- readonly deactivationapproval: ApiRecordLinkManager;
29
34
  readonly phonenumber: ApiRecordLinkManager;
30
- readonly orderremediationtask: ApiRecordLinkManager;
31
35
  readonly appointment: ApiRecordLinkManager;
32
- readonly call: ApiRecordLinkManager;
33
- readonly fingerprint: ApiRecordLinkManager;
34
- readonly case: ApiRecordLinkManager;
35
- readonly email: ApiRecordLinkManager;
36
36
  readonly paymentmethod: ApiRecordLinkManager;
37
37
  constructor(authParams?: OauthParams, authToken?: string);
38
38
  setRecord(sourceRecord: any): void;
@@ -18,31 +18,31 @@ class ContactApi extends api_provider_1.ApiProvider {
18
18
  this.authToken = authToken;
19
19
  this.moduleName = 'CrmModule';
20
20
  this.entityName = 'Contact';
21
- this.organization = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Organization', 'Organization__Contact');
22
- this.account = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Account', 'BillingContact');
21
+ this.organization__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Organization__Contact');
22
+ this.billingcontact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'BillingContact');
23
+ this.workorder__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'WorkOrder__Contact');
24
+ this.order__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Order__Contact');
25
+ this.lead__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Lead__Contact');
26
+ this.invoice__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Invoice__Contact');
27
+ this.commission__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Commission__Contact');
28
+ this.contact__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
29
+ this.onetouchswitch__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'OneTouchSwitch__Contact');
30
+ this.deactivationapproval__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'DeactivationApproval__Contact');
31
+ this.orderremediationtask__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'OrderRemediationTask__Contact');
32
+ this.call__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Call__Contact');
33
+ this.fingerprint__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Fingerprint__Contact');
34
+ this.case__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Case__Contact');
35
+ this.email_contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Email_Contact');
23
36
  this.activity = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SchemaModule:Activity', 'Contact__Activity');
24
37
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SupportModule:Note', 'Contact__Note');
25
- this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
26
- this.order = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
27
- this.lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Lead', 'Lead__Contact');
28
38
  this.address = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
29
39
  this.smsmessage = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'NotificationModule:SmsMessage', 'Contact__SmsMessage');
30
- this.invoice = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:Invoice', 'Invoice__Contact');
31
40
  this.billingrequest = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
32
41
  this.file = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SchemaModule:File', 'Contact__File');
33
- this.commission = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:Commission', 'Commission__Contact');
34
- this.contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
35
- this.onetouchswitch = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Contact');
36
42
  this.contactidentity = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
37
43
  this.paymentmethodrefund = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:PaymentMethodRefund', 'Contact__PaymentMethodRefund');
38
- this.deactivationapproval = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:DeactivationApproval', 'DeactivationApproval__Contact');
39
44
  this.phonenumber = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:PhoneNumber', 'Contact__PhoneNumber');
40
- this.orderremediationtask = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:OrderRemediationTask', 'OrderRemediationTask__Contact');
41
45
  this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Appointment', 'Contact__Appointment');
42
- this.call = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'NotificationModule:Call', 'Call__Contact');
43
- this.fingerprint = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Fingerprint', 'Fingerprint__Contact');
44
- this.case = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SupportModule:Case', 'Case__Contact');
45
- this.email = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'NotificationModule:Email', 'Email_Contact');
46
46
  this.paymentmethod = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:PaymentMethod', 'Contact__PaymentMethod');
47
47
  }
48
48
  setRecord(sourceRecord) {
@@ -0,0 +1,39 @@
1
+ import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
2
+ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
3
+ import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
4
+ import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
5
+ import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
6
+ export declare class ContractBuyOutApi extends ApiProvider {
7
+ protected readonly authToken?: string;
8
+ private readonly moduleName;
9
+ private readonly entityName;
10
+ private sourceRecord;
11
+ readonly file: ApiRecordLinkManager;
12
+ readonly user: ApiRecordLinkManager;
13
+ readonly order: ApiRecordLinkManager;
14
+ constructor(authParams?: OauthParams, authToken?: string);
15
+ setRecord(sourceRecord: any): void;
16
+ schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
17
+ search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
18
+ searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
19
+ reIndex(body: {
20
+ id: string;
21
+ schemaId: string;
22
+ }[]): Promise<any>;
23
+ get(contractBuyOutId: string): Promise<any>;
24
+ getMany(contractBuyOutIds: string[]): Promise<any[]>;
25
+ upsert(upsertDto: OdinRecordCreateDto): Promise<any>;
26
+ upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
27
+ update(updateDto: OdinRecordUpdateDto): Promise<any>;
28
+ updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
29
+ delete(contractBuyOutId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
30
+ deleteMany(contractBuyOutIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
31
+ restore(contractBuyOutIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
32
+ applyAction(actionName: string, dtos: any[]): Promise<any[]>;
33
+ getVersions(): Promise<{
34
+ [key: string]: Record<string, any>;
35
+ }>;
36
+ getRevisionTimeline(): Promise<{
37
+ [key: string]: Record<string, any>[];
38
+ }>;
39
+ }
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ContractBuyOutApi = void 0;
13
+ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
14
+ const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
15
+ class ContractBuyOutApi extends api_provider_1.ApiProvider {
16
+ constructor(authParams, authToken) {
17
+ super(authParams, authToken);
18
+ this.authToken = authToken;
19
+ this.moduleName = 'OrderModule';
20
+ this.entityName = 'ContractBuyOut';
21
+ this.file = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:ContractBuyOut', 'SchemaModule:File', 'ContractBuyOut_File');
22
+ this.user = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:ContractBuyOut', 'IdentityModule:User', 'ContractBuyOut_User');
23
+ this.order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:ContractBuyOut', 'OrderModule:Order', 'Order_ContractBuyOut');
24
+ }
25
+ setRecord(sourceRecord) {
26
+ this.sourceRecord = sourceRecord;
27
+ }
28
+ schema() {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ return yield this.getSchema(this.moduleName, this.entityName);
31
+ });
32
+ }
33
+ // Use this function when you want to search and handle all pagination on your own
34
+ search(params) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return yield this._searchRecords(this.moduleName, this.entityName, params);
37
+ });
38
+ }
39
+ // Use this function when you want paginating through the results to be handled
40
+ searchAndPaginate(params) {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
43
+ });
44
+ }
45
+ // Use this function to re-index records in elastic search
46
+ reIndex(body) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ return yield this._reIndexRecords(body);
49
+ });
50
+ }
51
+ // Use this function when you want to return a single record
52
+ get(contractBuyOutId) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, contractBuyOutId);
55
+ this.setRecord(res);
56
+ return res;
57
+ });
58
+ }
59
+ // Use this function when you want to return many records by primaryKeys
60
+ getMany(contractBuyOutIds) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, contractBuyOutIds);
63
+ });
64
+ }
65
+ // Use this function when you want to upsert one record
66
+ upsert(upsertDto) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
69
+ return res[0];
70
+ });
71
+ }
72
+ // Use this function when you want to upsert many records
73
+ upsertMany(upsertDtos) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
76
+ });
77
+ }
78
+ // Use this function when you want to update one record
79
+ update(updateDto) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
82
+ return res[0];
83
+ });
84
+ }
85
+ // Use this function when you want to update many records
86
+ updateMany(updateDtos) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ return yield this._update(this.moduleName, this.entityName, updateDtos);
89
+ });
90
+ }
91
+ // Use this function when you want to delete one record
92
+ delete(contractBuyOutId) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const res = yield this._delete(this.moduleName, this.entityName, [contractBuyOutId]);
95
+ return res[0];
96
+ });
97
+ }
98
+ // Use this function when you want to delete many records
99
+ deleteMany(contractBuyOutIds) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ return yield this._delete(this.moduleName, this.entityName, contractBuyOutIds);
102
+ });
103
+ }
104
+ // Use this function when you want to restore one or many records
105
+ restore(contractBuyOutIds) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ return yield this._restore(this.moduleName, this.entityName, contractBuyOutIds);
108
+ });
109
+ }
110
+ // Use this function when you want to apply actions
111
+ applyAction(actionName, dtos) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ return yield this._applyAction(this.moduleName, this.entityName, actionName, dtos);
114
+ });
115
+ }
116
+ // Use this function when you want to return the versions for a single record
117
+ getVersions() {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
120
+ });
121
+ }
122
+ // Use this function when you want to return the change history for a single record
123
+ getRevisionTimeline() {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
126
+ });
127
+ }
128
+ }
129
+ exports.ContractBuyOutApi = ContractBuyOutApi;
@@ -65,6 +65,7 @@ export declare class CsvFileApi extends ApiProvider {
65
65
  readonly ohexternalaudit_file: ApiRecordLinkManager;
66
66
  readonly attachments: ApiRecordLinkManager;
67
67
  readonly message_file: ApiRecordLinkManager;
68
+ readonly contractbuyout_file: ApiRecordLinkManager;
68
69
  readonly note: ApiRecordLinkManager;
69
70
  constructor(authParams?: OauthParams, authToken?: string);
70
71
  setRecord(sourceRecord: any): void;
@@ -74,6 +74,7 @@ class CsvFileApi extends api_provider_1.ApiProvider {
74
74
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
75
75
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
76
76
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
77
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
77
78
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
78
79
  }
79
80
  setRecord(sourceRecord) {
@@ -65,6 +65,7 @@ export declare class EmailFileApi extends ApiProvider {
65
65
  readonly ohexternalaudit_file: ApiRecordLinkManager;
66
66
  readonly attachments: ApiRecordLinkManager;
67
67
  readonly message_file: ApiRecordLinkManager;
68
+ readonly contractbuyout_file: ApiRecordLinkManager;
68
69
  readonly note: ApiRecordLinkManager;
69
70
  constructor(authParams?: OauthParams, authToken?: string);
70
71
  setRecord(sourceRecord: any): void;
@@ -74,6 +74,7 @@ class EmailFileApi extends api_provider_1.ApiProvider {
74
74
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
75
75
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
76
76
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
77
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
77
78
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
78
79
  }
79
80
  setRecord(sourceRecord) {
@@ -63,6 +63,7 @@ export declare class FileApi extends ApiProvider {
63
63
  readonly ohexternalaudit_file: ApiRecordLinkManager;
64
64
  readonly attachments: ApiRecordLinkManager;
65
65
  readonly message_file: ApiRecordLinkManager;
66
+ readonly contractbuyout_file: ApiRecordLinkManager;
66
67
  readonly note: ApiRecordLinkManager;
67
68
  constructor(authParams?: OauthParams, authToken?: string);
68
69
  setRecord(sourceRecord: any): void;
@@ -73,6 +73,7 @@ class FileApi extends api_provider_1.ApiProvider {
73
73
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
74
74
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
75
75
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
76
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
76
77
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
77
78
  }
78
79
  setRecord(sourceRecord) {
@@ -65,6 +65,7 @@ export declare class InvoiceFileApi extends ApiProvider {
65
65
  readonly ohexternalaudit_file: ApiRecordLinkManager;
66
66
  readonly attachments: ApiRecordLinkManager;
67
67
  readonly message_file: ApiRecordLinkManager;
68
+ readonly contractbuyout_file: ApiRecordLinkManager;
68
69
  readonly note: ApiRecordLinkManager;
69
70
  constructor(authParams?: OauthParams, authToken?: string);
70
71
  setRecord(sourceRecord: any): void;
@@ -74,6 +74,7 @@ class InvoiceFileApi extends api_provider_1.ApiProvider {
74
74
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
75
75
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
76
76
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
77
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
77
78
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
78
79
  }
79
80
  setRecord(sourceRecord) {
@@ -16,14 +16,14 @@ export declare class LeadApi extends ApiProvider {
16
16
  readonly contact: ApiRecordLinkManager;
17
17
  readonly commission: ApiRecordLinkManager;
18
18
  readonly file: ApiRecordLinkManager;
19
- readonly workorder: ApiRecordLinkManager;
20
- readonly crmdataset: ApiRecordLinkManager;
19
+ readonly workorder__lead: ApiRecordLinkManager;
20
+ readonly crmdataset__lead: ApiRecordLinkManager;
21
+ readonly call__lead: ApiRecordLinkManager;
22
+ readonly fingerprint__lead: ApiRecordLinkManager;
21
23
  readonly visit: ApiRecordLinkManager;
22
24
  readonly appointment: ApiRecordLinkManager;
23
- readonly call: ApiRecordLinkManager;
24
25
  readonly order: ApiRecordLinkManager;
25
26
  readonly address: ApiRecordLinkManager;
26
- readonly fingerprint: ApiRecordLinkManager;
27
27
  constructor(authParams?: OauthParams, authToken?: string);
28
28
  setRecord(sourceRecord: any): void;
29
29
  schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
@@ -26,14 +26,14 @@ class LeadApi extends api_provider_1.ApiProvider {
26
26
  this.contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Contact', 'Lead__Contact');
27
27
  this.commission = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'BillingModule:Commission', 'Lead__Commission');
28
28
  this.file = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'SchemaModule:File', 'Lead__File');
29
- this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'FieldServiceModule:WorkOrder', 'WorkOrder__Lead');
30
- this.crmdataset = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:CrmDataset', 'CrmDataset__Lead');
29
+ this.workorder__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'WorkOrder__Lead');
30
+ this.crmdataset__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'CrmDataset__Lead');
31
+ this.call__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'Call__Lead');
32
+ this.fingerprint__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'Fingerprint__Lead');
31
33
  this.visit = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Visit', 'Lead__Visit');
32
34
  this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Appointment', 'Lead_Appointment');
33
- this.call = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'NotificationModule:Call', 'Call__Lead');
34
35
  this.order = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'OrderModule:Order', 'Lead_Order');
35
36
  this.address = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Address', 'Lead_Address');
36
- this.fingerprint = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Fingerprint', 'Fingerprint__Lead');
37
37
  }
38
38
  setRecord(sourceRecord) {
39
39
  this.sourceRecord = sourceRecord;
@@ -65,6 +65,7 @@ export declare class NaProblemEvidenceFileApi extends ApiProvider {
65
65
  readonly ohexternalaudit_file: ApiRecordLinkManager;
66
66
  readonly attachments: ApiRecordLinkManager;
67
67
  readonly message_file: ApiRecordLinkManager;
68
+ readonly contractbuyout_file: ApiRecordLinkManager;
68
69
  readonly note: ApiRecordLinkManager;
69
70
  constructor(authParams?: OauthParams, authToken?: string);
70
71
  setRecord(sourceRecord: any): void;
@@ -74,6 +74,7 @@ class NaProblemEvidenceFileApi extends api_provider_1.ApiProvider {
74
74
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
75
75
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
76
76
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
77
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
77
78
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
78
79
  }
79
80
  setRecord(sourceRecord) {
@@ -65,6 +65,7 @@ export declare class NaSolutionEvidenceFileApi extends ApiProvider {
65
65
  readonly ohexternalaudit_file: ApiRecordLinkManager;
66
66
  readonly attachments: ApiRecordLinkManager;
67
67
  readonly message_file: ApiRecordLinkManager;
68
+ readonly contractbuyout_file: ApiRecordLinkManager;
68
69
  readonly note: ApiRecordLinkManager;
69
70
  constructor(authParams?: OauthParams, authToken?: string);
70
71
  setRecord(sourceRecord: any): void;
@@ -74,6 +74,7 @@ class NaSolutionEvidenceFileApi extends api_provider_1.ApiProvider {
74
74
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
75
75
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
76
76
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
77
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
77
78
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
78
79
  }
79
80
  setRecord(sourceRecord) {
@@ -65,6 +65,7 @@ export declare class OpenreachA55FileApi extends ApiProvider {
65
65
  readonly ohexternalaudit_file: ApiRecordLinkManager;
66
66
  readonly attachments: ApiRecordLinkManager;
67
67
  readonly message_file: ApiRecordLinkManager;
68
+ readonly contractbuyout_file: ApiRecordLinkManager;
68
69
  readonly note: ApiRecordLinkManager;
69
70
  constructor(authParams?: OauthParams, authToken?: string);
70
71
  setRecord(sourceRecord: any): void;
@@ -74,6 +74,7 @@ class OpenreachA55FileApi extends api_provider_1.ApiProvider {
74
74
  this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
75
75
  this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
76
76
  this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
77
+ this.contractbuyout_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ContractBuyOut_File');
77
78
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
78
79
  }
79
80
  setRecord(sourceRecord) {
@@ -40,6 +40,7 @@ export declare class OrderApi extends ApiProvider {
40
40
  readonly phonenumber: ApiRecordLinkManager;
41
41
  readonly contactidentity: ApiRecordLinkManager;
42
42
  readonly onetouchswitch: ApiRecordLinkManager;
43
+ readonly contractbuyout: ApiRecordLinkManager;
43
44
  constructor(authParams?: OauthParams, authToken?: string);
44
45
  setRecord(sourceRecord: any): void;
45
46
  schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;