@d19n/youfibre-odin-sdk 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-sdk-v1/BillingRequestApi.d.ts +7 -0
- package/dist/api-sdk-v1/BillingRequestApi.js +26 -0
- package/dist/api-sdk-v1/CaseApi.d.ts +7 -0
- package/dist/api-sdk-v1/CaseApi.js +26 -0
- package/dist/api-sdk-v1/ConsumptionRateApi.d.ts +7 -0
- package/dist/api-sdk-v1/ConsumptionRateApi.js +26 -0
- package/dist/api-sdk-v1/ConsumptionScheduleApi.d.ts +7 -0
- package/dist/api-sdk-v1/ConsumptionScheduleApi.js +26 -0
- package/dist/api-sdk-v1/ContactApi.d.ts +7 -0
- package/dist/api-sdk-v1/ContactApi.js +26 -0
- package/dist/api-sdk-v1/ContactIdentityApi.d.ts +7 -0
- package/dist/api-sdk-v1/ContactIdentityApi.js +26 -0
- package/dist/api-sdk-v1/CustomerDeviceOntRemovalApi.d.ts +7 -0
- package/dist/api-sdk-v1/CustomerDeviceOntRemovalApi.js +26 -0
- package/dist/api-sdk-v1/FileApi.d.ts +0 -49
- package/dist/api-sdk-v1/FileApi.js +0 -182
- package/dist/api-sdk-v1/InvoiceItemApi.d.ts +7 -0
- package/dist/api-sdk-v1/InvoiceItemApi.js +26 -0
- package/dist/api-sdk-v1/MilestoneApi.d.ts +7 -0
- package/dist/api-sdk-v1/MilestoneApi.js +26 -0
- package/dist/api-sdk-v1/NoteApi.d.ts +7 -0
- package/dist/api-sdk-v1/NoteApi.js +26 -0
- package/dist/api-sdk-v1/OfferApi.d.ts +7 -0
- package/dist/api-sdk-v1/OfferApi.js +26 -0
- package/dist/api-sdk-v1/OrderApi.d.ts +7 -0
- package/dist/api-sdk-v1/OrderApi.js +26 -0
- package/dist/api-sdk-v1/OrderItemApi.d.ts +7 -0
- package/dist/api-sdk-v1/OrderItemApi.js +26 -0
- package/dist/api-sdk-v1/OrganizationApi.d.ts +7 -0
- package/dist/api-sdk-v1/OrganizationApi.js +26 -0
- package/dist/api-sdk-v1/ProductApi.d.ts +9 -1
- package/dist/api-sdk-v1/ProductApi.js +31 -0
- package/dist/api-sdk-v1/ProductComponentApi.d.ts +7 -0
- package/dist/api-sdk-v1/ProductComponentApi.js +26 -0
- package/dist/api-sdk-v1/RestrictionApi.d.ts +7 -0
- package/dist/api-sdk-v1/RestrictionApi.js +26 -0
- package/dist/api-sdk-v1/ServiceApi.d.ts +7 -0
- package/dist/api-sdk-v1/ServiceApi.js +26 -0
- package/dist/api-sdk-v1/SplitOrderApi.d.ts +7 -0
- package/dist/api-sdk-v1/SplitOrderApi.js +26 -0
- package/dist/api-sdk-v1/TransactionApi.d.ts +7 -0
- package/dist/api-sdk-v1/TransactionApi.js +26 -0
- package/dist/api-sdk-v1/WorkOrderApi.d.ts +14 -0
- package/dist/api-sdk-v1/WorkOrderApi.js +52 -0
- package/dist/db-sdk-v1/BillingRequestDb.d.ts +7 -0
- package/dist/db-sdk-v1/BillingRequestDb.js +33 -0
- package/dist/db-sdk-v1/CaseDb.d.ts +7 -0
- package/dist/db-sdk-v1/CaseDb.js +33 -0
- package/dist/db-sdk-v1/ConsumptionRateDb.d.ts +7 -0
- package/dist/db-sdk-v1/ConsumptionRateDb.js +33 -0
- package/dist/db-sdk-v1/ConsumptionScheduleDb.d.ts +7 -0
- package/dist/db-sdk-v1/ConsumptionScheduleDb.js +33 -0
- package/dist/db-sdk-v1/ContactDb.d.ts +7 -0
- package/dist/db-sdk-v1/ContactDb.js +33 -0
- package/dist/db-sdk-v1/ContactIdentityDb.d.ts +7 -0
- package/dist/db-sdk-v1/ContactIdentityDb.js +33 -0
- package/dist/db-sdk-v1/FileDb.d.ts +0 -49
- package/dist/db-sdk-v1/FileDb.js +0 -231
- package/dist/db-sdk-v1/InvoiceItemDb.d.ts +7 -0
- package/dist/db-sdk-v1/InvoiceItemDb.js +33 -0
- package/dist/db-sdk-v1/MilestoneDb.d.ts +7 -0
- package/dist/db-sdk-v1/MilestoneDb.js +33 -0
- package/dist/db-sdk-v1/NoteDb.d.ts +7 -0
- package/dist/db-sdk-v1/NoteDb.js +33 -0
- package/dist/db-sdk-v1/OfferDb.d.ts +7 -0
- package/dist/db-sdk-v1/OfferDb.js +33 -0
- package/dist/db-sdk-v1/OrderDb.d.ts +7 -0
- package/dist/db-sdk-v1/OrderDb.js +33 -0
- package/dist/db-sdk-v1/OrderItemDb.d.ts +7 -0
- package/dist/db-sdk-v1/OrderItemDb.js +33 -0
- package/dist/db-sdk-v1/OrganizationDb.d.ts +7 -0
- package/dist/db-sdk-v1/OrganizationDb.js +33 -0
- package/dist/db-sdk-v1/ProductComponentDb.d.ts +7 -0
- package/dist/db-sdk-v1/ProductComponentDb.js +33 -0
- package/dist/db-sdk-v1/ProductDb.d.ts +9 -1
- package/dist/db-sdk-v1/ProductDb.js +38 -0
- package/dist/db-sdk-v1/RestrictionDb.d.ts +7 -0
- package/dist/db-sdk-v1/RestrictionDb.js +33 -0
- package/dist/db-sdk-v1/ServiceDb.d.ts +7 -0
- package/dist/db-sdk-v1/ServiceDb.js +33 -0
- package/dist/db-sdk-v1/SplitOrderDb.d.ts +7 -0
- package/dist/db-sdk-v1/SplitOrderDb.js +33 -0
- package/dist/db-sdk-v1/TransactionDb.d.ts +7 -0
- package/dist/db-sdk-v1/TransactionDb.js +33 -0
- package/dist/db-sdk-v1/WorkOrderDb.d.ts +14 -0
- package/dist/db-sdk-v1/WorkOrderDb.js +66 -0
- package/package.json +2 -2
- package/src/api-sdk-v1/BillingRequestApi.ts +27 -0
- package/src/api-sdk-v1/CaseApi.ts +27 -0
- package/src/api-sdk-v1/ConsumptionRateApi.ts +27 -0
- package/src/api-sdk-v1/ConsumptionScheduleApi.ts +27 -0
- package/src/api-sdk-v1/ContactApi.ts +27 -0
- package/src/api-sdk-v1/ContactIdentityApi.ts +27 -0
- package/src/api-sdk-v1/CustomerDeviceOntRemovalApi.ts +27 -0
- package/src/api-sdk-v1/FileApi.ts +0 -189
- package/src/api-sdk-v1/InvoiceItemApi.ts +27 -0
- package/src/api-sdk-v1/MilestoneApi.ts +27 -0
- package/src/api-sdk-v1/NoteApi.ts +27 -0
- package/src/api-sdk-v1/OfferApi.ts +27 -0
- package/src/api-sdk-v1/OrderApi.ts +27 -0
- package/src/api-sdk-v1/OrderItemApi.ts +27 -0
- package/src/api-sdk-v1/OrganizationApi.ts +27 -0
- package/src/api-sdk-v1/ProductApi.ts +31 -0
- package/src/api-sdk-v1/ProductComponentApi.ts +27 -0
- package/src/api-sdk-v1/RestrictionApi.ts +27 -0
- package/src/api-sdk-v1/ServiceApi.ts +27 -0
- package/src/api-sdk-v1/SplitOrderApi.ts +27 -0
- package/src/api-sdk-v1/TransactionApi.ts +27 -0
- package/src/api-sdk-v1/WorkOrderApi.ts +54 -0
- package/src/db-sdk-v1/BillingRequestDb.ts +35 -0
- package/src/db-sdk-v1/CaseDb.ts +35 -0
- package/src/db-sdk-v1/ConsumptionRateDb.ts +35 -0
- package/src/db-sdk-v1/ConsumptionScheduleDb.ts +35 -0
- package/src/db-sdk-v1/ContactDb.ts +35 -0
- package/src/db-sdk-v1/ContactIdentityDb.ts +35 -0
- package/src/db-sdk-v1/FileDb.ts +0 -245
- package/src/db-sdk-v1/InvoiceItemDb.ts +35 -0
- package/src/db-sdk-v1/MilestoneDb.ts +35 -0
- package/src/db-sdk-v1/NoteDb.ts +35 -0
- package/src/db-sdk-v1/OfferDb.ts +35 -0
- package/src/db-sdk-v1/OrderDb.ts +35 -0
- package/src/db-sdk-v1/OrderItemDb.ts +35 -0
- package/src/db-sdk-v1/OrganizationDb.ts +35 -0
- package/src/db-sdk-v1/ProductComponentDb.ts +35 -0
- package/src/db-sdk-v1/ProductDb.ts +39 -0
- package/src/db-sdk-v1/RestrictionDb.ts +35 -0
- package/src/db-sdk-v1/ServiceDb.ts +35 -0
- package/src/db-sdk-v1/SplitOrderDb.ts +35 -0
- package/src/db-sdk-v1/TransactionDb.ts +35 -0
- package/src/db-sdk-v1/WorkOrderDb.ts +70 -0
|
@@ -34,6 +34,13 @@ export declare class BillingRequestApi extends ApiProvider {
|
|
|
34
34
|
relatedAssociationId?: string;
|
|
35
35
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
36
|
unLinkContactBillingRequests(billingRequestId: string, linkedContactId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
|
+
getBillingRequests(billingRequestId: string): Promise<any>;
|
|
38
|
+
linkBillingRequestBillingRequests(billingRequestId: string, billingRequestIds: {
|
|
39
|
+
id: string;
|
|
40
|
+
relationType?: RelationTypeEnum;
|
|
41
|
+
relatedAssociationId?: string;
|
|
42
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
|
+
unLinkBillingRequestBillingRequests(billingRequestId: string, linkedBillingRequestId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
44
|
getFiles(billingRequestId: string): Promise<any>;
|
|
38
45
|
linkBillingRequestFiles(billingRequestId: string, fileIds: {
|
|
39
46
|
id: string;
|
|
@@ -117,6 +117,32 @@ class BillingRequestApi extends api_provider_1.ApiProvider {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
// Use this function when you want to return a single record
|
|
120
|
+
getBillingRequests(billingRequestId) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
return yield this._getLinks(this.moduleName, this.entityName, billingRequestId, 'BillingRequest');
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
linkBillingRequestBillingRequests(billingRequestId, billingRequestIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const associationDtos = [];
|
|
128
|
+
for (const param of billingRequestIds) {
|
|
129
|
+
associationDtos.push({
|
|
130
|
+
entity: 'BillingModule:BillingRequest',
|
|
131
|
+
recordId: param.id,
|
|
132
|
+
linkType: 'BillingRequest__BillingRequest',
|
|
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, billingRequestId, associationDtos);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
unLinkBillingRequestBillingRequests(billingRequestId, linkedBillingRequestId) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, billingRequestId, linkedBillingRequestId);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
// Use this function when you want to return a single record
|
|
120
146
|
getFiles(billingRequestId) {
|
|
121
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
148
|
return yield this._getLinks(this.moduleName, this.entityName, billingRequestId, 'File');
|
|
@@ -27,6 +27,13 @@ export declare class CaseApi extends ApiProvider {
|
|
|
27
27
|
update(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
28
28
|
delete(caseIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
29
29
|
restore(caseIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
30
|
+
getCases(caseId: string): Promise<any>;
|
|
31
|
+
linkCaseCases(caseId: string, caseIds: {
|
|
32
|
+
id: string;
|
|
33
|
+
relationType?: RelationTypeEnum;
|
|
34
|
+
relatedAssociationId?: string;
|
|
35
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
|
+
unLinkCaseCases(caseId: string, linkedCaseId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
30
37
|
getFiles(caseId: string): Promise<any>;
|
|
31
38
|
linkCaseFiles(caseId: string, fileIds: {
|
|
32
39
|
id: string;
|
|
@@ -91,6 +91,32 @@ class CaseApi extends api_provider_1.ApiProvider {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
// Use this function when you want to return a single record
|
|
94
|
+
getCases(caseId) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield this._getLinks(this.moduleName, this.entityName, caseId, 'Case');
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
linkCaseCases(caseId, caseIds) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const associationDtos = [];
|
|
102
|
+
for (const param of caseIds) {
|
|
103
|
+
associationDtos.push({
|
|
104
|
+
entity: 'SupportModule:Case',
|
|
105
|
+
recordId: param.id,
|
|
106
|
+
linkType: 'Case__Case',
|
|
107
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
108
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return yield this._createLinks(this.moduleName, this.entityName, caseId, associationDtos);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
unLinkCaseCases(caseId, linkedCaseId) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, caseId, linkedCaseId);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
// Use this function when you want to return a single record
|
|
94
120
|
getFiles(caseId) {
|
|
95
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
122
|
return yield this._getLinks(this.moduleName, this.entityName, caseId, 'File');
|
|
@@ -34,4 +34,11 @@ export declare class ConsumptionRateApi extends ApiProvider {
|
|
|
34
34
|
relatedAssociationId?: string;
|
|
35
35
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
36
|
unLinkConsumptionScheduleConsumptionRates(consumptionRateId: string, linkedConsumptionScheduleId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
|
+
getConsumptionRates(consumptionRateId: string): Promise<any>;
|
|
38
|
+
linkConsumptionRateConsumptionRates(consumptionRateId: string, consumptionRateIds: {
|
|
39
|
+
id: string;
|
|
40
|
+
relationType?: RelationTypeEnum;
|
|
41
|
+
relatedAssociationId?: string;
|
|
42
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
|
+
unLinkConsumptionRateConsumptionRates(consumptionRateId: string, linkedConsumptionRateId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
44
|
}
|
|
@@ -116,5 +116,31 @@ class ConsumptionRateApi extends api_provider_1.ApiProvider {
|
|
|
116
116
|
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionRateId, linkedConsumptionScheduleId);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
+
// Use this function when you want to return a single record
|
|
120
|
+
getConsumptionRates(consumptionRateId) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
return yield this._getLinks(this.moduleName, this.entityName, consumptionRateId, 'ConsumptionRate');
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
linkConsumptionRateConsumptionRates(consumptionRateId, consumptionRateIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const associationDtos = [];
|
|
128
|
+
for (const param of consumptionRateIds) {
|
|
129
|
+
associationDtos.push({
|
|
130
|
+
entity: 'ProductModule:ConsumptionRate',
|
|
131
|
+
recordId: param.id,
|
|
132
|
+
linkType: 'ConsumptionRate__ConsumptionRate',
|
|
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, consumptionRateId, associationDtos);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
unLinkConsumptionRateConsumptionRates(consumptionRateId, linkedConsumptionRateId) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionRateId, linkedConsumptionRateId);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
119
145
|
}
|
|
120
146
|
exports.ConsumptionRateApi = ConsumptionRateApi;
|
|
@@ -41,4 +41,11 @@ export declare class ConsumptionScheduleApi extends ApiProvider {
|
|
|
41
41
|
relatedAssociationId?: string;
|
|
42
42
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
43
|
unLinkProductConsumptionSchedules(consumptionScheduleId: string, linkedProductId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
|
+
getConsumptionSchedules(consumptionScheduleId: string): Promise<any>;
|
|
45
|
+
linkConsumptionScheduleConsumptionSchedules(consumptionScheduleId: string, consumptionScheduleIds: {
|
|
46
|
+
id: string;
|
|
47
|
+
relationType?: RelationTypeEnum;
|
|
48
|
+
relatedAssociationId?: string;
|
|
49
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
50
|
+
unLinkConsumptionScheduleConsumptionSchedules(consumptionScheduleId: string, linkedConsumptionScheduleId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
51
|
}
|
|
@@ -142,5 +142,31 @@ class ConsumptionScheduleApi extends api_provider_1.ApiProvider {
|
|
|
142
142
|
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionScheduleId, linkedProductId);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
+
// Use this function when you want to return a single record
|
|
146
|
+
getConsumptionSchedules(consumptionScheduleId) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
return yield this._getLinks(this.moduleName, this.entityName, consumptionScheduleId, 'ConsumptionSchedule');
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
linkConsumptionScheduleConsumptionSchedules(consumptionScheduleId, consumptionScheduleIds) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const associationDtos = [];
|
|
154
|
+
for (const param of consumptionScheduleIds) {
|
|
155
|
+
associationDtos.push({
|
|
156
|
+
entity: 'ProductModule:ConsumptionSchedule',
|
|
157
|
+
recordId: param.id,
|
|
158
|
+
linkType: 'ConsumptionSchedule__ConsumptionSchedule',
|
|
159
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
160
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
return yield this._createLinks(this.moduleName, this.entityName, consumptionScheduleId, associationDtos);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
unLinkConsumptionScheduleConsumptionSchedules(consumptionScheduleId, linkedConsumptionScheduleId) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionScheduleId, linkedConsumptionScheduleId);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
145
171
|
}
|
|
146
172
|
exports.ConsumptionScheduleApi = ConsumptionScheduleApi;
|
|
@@ -118,6 +118,13 @@ export declare class ContactApi extends ApiProvider {
|
|
|
118
118
|
relatedAssociationId?: string;
|
|
119
119
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
120
120
|
unLinkCommissionContacts(contactId: string, linkedCommissionId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
121
|
+
getContacts(contactId: string): Promise<any>;
|
|
122
|
+
linkContactContacts(contactId: string, contactIds: {
|
|
123
|
+
id: string;
|
|
124
|
+
relationType?: RelationTypeEnum;
|
|
125
|
+
relatedAssociationId?: string;
|
|
126
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
127
|
+
unLinkContactContacts(contactId: string, linkedContactId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
121
128
|
getOneTouchSwitchs(contactId: string): Promise<any>;
|
|
122
129
|
linkOneTouchSwitchContacts(contactId: string, oneTouchSwitchIds: {
|
|
123
130
|
id: string;
|
|
@@ -429,6 +429,32 @@ class ContactApi extends api_provider_1.ApiProvider {
|
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
// Use this function when you want to return a single record
|
|
432
|
+
getContacts(contactId) {
|
|
433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Contact');
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
linkContactContacts(contactId, contactIds) {
|
|
438
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
439
|
+
const associationDtos = [];
|
|
440
|
+
for (const param of contactIds) {
|
|
441
|
+
associationDtos.push({
|
|
442
|
+
entity: 'CrmModule:Contact',
|
|
443
|
+
recordId: param.id,
|
|
444
|
+
linkType: 'Contact__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
|
+
unLinkContactContacts(contactId, linkedContactId) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, contactId, linkedContactId);
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
// Use this function when you want to return a single record
|
|
432
458
|
getOneTouchSwitchs(contactId) {
|
|
433
459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
434
460
|
return yield this._getLinks(this.moduleName, this.entityName, contactId, 'OneTouchSwitch');
|
|
@@ -34,6 +34,13 @@ 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[]>;
|
|
37
44
|
getContacts(contactIdentityId: string): Promise<any>;
|
|
38
45
|
linkContactContactIdentitys(contactIdentityId: string, contactIds: {
|
|
39
46
|
id: string;
|
|
@@ -117,6 +117,32 @@ 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
|
|
120
146
|
getContacts(contactIdentityId) {
|
|
121
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
148
|
return yield this._getLinks(this.moduleName, this.entityName, contactIdentityId, 'Contact');
|
|
@@ -34,4 +34,11 @@ export declare class CustomerDeviceOntRemovalApi extends ApiProvider {
|
|
|
34
34
|
relatedAssociationId?: string;
|
|
35
35
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
36
|
unLinkCustomerDeviceOntCustomerDeviceOntRemovals(customerDeviceOntRemovalId: string, linkedCustomerDeviceOntId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
|
+
getWorkOrders(customerDeviceOntRemovalId: string): Promise<any>;
|
|
38
|
+
linkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId: string, workOrderIds: {
|
|
39
|
+
id: string;
|
|
40
|
+
relationType?: RelationTypeEnum;
|
|
41
|
+
relatedAssociationId?: string;
|
|
42
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
|
+
unLinkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId: string, linkedWorkOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
44
|
}
|
|
@@ -116,5 +116,31 @@ class CustomerDeviceOntRemovalApi extends api_provider_1.ApiProvider {
|
|
|
116
116
|
return yield this._deleteLinks(this.moduleName, this.entityName, customerDeviceOntRemovalId, linkedCustomerDeviceOntId);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
+
// Use this function when you want to return a single record
|
|
120
|
+
getWorkOrders(customerDeviceOntRemovalId) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
return yield this._getLinks(this.moduleName, this.entityName, customerDeviceOntRemovalId, 'WorkOrder');
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
linkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId, workOrderIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const associationDtos = [];
|
|
128
|
+
for (const param of workOrderIds) {
|
|
129
|
+
associationDtos.push({
|
|
130
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
131
|
+
recordId: param.id,
|
|
132
|
+
linkType: 'WorkOrder_CustomerDeviceOntRemoval',
|
|
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, customerDeviceOntRemovalId, associationDtos);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
unLinkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId, linkedWorkOrderId) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, customerDeviceOntRemovalId, linkedWorkOrderId);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
119
145
|
}
|
|
120
146
|
exports.CustomerDeviceOntRemovalApi = CustomerDeviceOntRemovalApi;
|
|
@@ -62,13 +62,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
62
62
|
relatedAssociationId?: string;
|
|
63
63
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
64
64
|
unLinkInternalInstallAuditFiles(fileId: string, linkedInternalInstallAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
65
|
-
getKnowledgeArticles(fileId: string): Promise<any>;
|
|
66
|
-
linkKnowledgeArticleFiles(fileId: string, knowledgeArticleIds: {
|
|
67
|
-
id: string;
|
|
68
|
-
relationType?: RelationTypeEnum;
|
|
69
|
-
relatedAssociationId?: string;
|
|
70
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
71
|
-
unLinkKnowledgeArticleFiles(fileId: string, linkedKnowledgeArticleId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
72
65
|
getCases(fileId: string): Promise<any>;
|
|
73
66
|
linkCaseFiles(fileId: string, caseIds: {
|
|
74
67
|
id: string;
|
|
@@ -216,20 +209,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
216
209
|
relatedAssociationId?: string;
|
|
217
210
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
218
211
|
unLinkVisitFiles(fileId: string, linkedVisitId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
219
|
-
getNetomniaFtth2StageInstallAudits(fileId: string): Promise<any>;
|
|
220
|
-
linkNetomniaFtth2StageInstallAuditFiles(fileId: string, netomniaFtth2StageInstallAuditIds: {
|
|
221
|
-
id: string;
|
|
222
|
-
relationType?: RelationTypeEnum;
|
|
223
|
-
relatedAssociationId?: string;
|
|
224
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
225
|
-
unLinkNetomniaFtth2StageInstallAuditFiles(fileId: string, linkedNetomniaFtth2StageInstallAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
226
|
-
getYfStockCounts(fileId: string): Promise<any>;
|
|
227
|
-
linkYfStockCountFiles(fileId: string, yfStockCountIds: {
|
|
228
|
-
id: string;
|
|
229
|
-
relationType?: RelationTypeEnum;
|
|
230
|
-
relatedAssociationId?: string;
|
|
231
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
232
|
-
unLinkYfStockCountFiles(fileId: string, linkedYfStockCountId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
233
212
|
getYfEquipmentCollections(fileId: string): Promise<any>;
|
|
234
213
|
linkYfEquipmentCollectionFiles(fileId: string, yfEquipmentCollectionIds: {
|
|
235
214
|
id: string;
|
|
@@ -320,27 +299,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
320
299
|
relatedAssociationId?: string;
|
|
321
300
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
322
301
|
unLinkUgAuditOfInstallationFiles(fileId: string, linkedUgAuditOfInstallationId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
323
|
-
getUgRetroAudits(fileId: string): Promise<any>;
|
|
324
|
-
linkUgRetroAuditFiles(fileId: string, ugRetroAuditIds: {
|
|
325
|
-
id: string;
|
|
326
|
-
relationType?: RelationTypeEnum;
|
|
327
|
-
relatedAssociationId?: string;
|
|
328
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
329
|
-
unLinkUgRetroAuditFiles(fileId: string, linkedUgRetroAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
330
|
-
getOhRetroAudits(fileId: string): Promise<any>;
|
|
331
|
-
linkOhRetroAuditFiles(fileId: string, ohRetroAuditIds: {
|
|
332
|
-
id: string;
|
|
333
|
-
relationType?: RelationTypeEnum;
|
|
334
|
-
relatedAssociationId?: string;
|
|
335
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
336
|
-
unLinkOhRetroAuditFiles(fileId: string, linkedOhRetroAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
337
|
-
getRemediationOutcomeForms(fileId: string): Promise<any>;
|
|
338
|
-
linkRemediationOutcomeFormFiles(fileId: string, remediationOutcomeFormIds: {
|
|
339
|
-
id: string;
|
|
340
|
-
relationType?: RelationTypeEnum;
|
|
341
|
-
relatedAssociationId?: string;
|
|
342
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
343
|
-
unLinkRemediationOutcomeFormFiles(fileId: string, linkedRemediationOutcomeFormId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
344
302
|
getUgInProgressAudits(fileId: string): Promise<any>;
|
|
345
303
|
linkUgInProgressAuditFiles(fileId: string, ugInProgressAuditIds: {
|
|
346
304
|
id: string;
|
|
@@ -355,13 +313,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
355
313
|
relatedAssociationId?: string;
|
|
356
314
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
357
315
|
unLinkOhInProgressAuditFiles(fileId: string, linkedOhInProgressAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
358
|
-
getBlockageA55s(fileId: string): Promise<any>;
|
|
359
|
-
linkOverlayA55Files(fileId: string, blockageA55Ids: {
|
|
360
|
-
id: string;
|
|
361
|
-
relationType?: RelationTypeEnum;
|
|
362
|
-
relatedAssociationId?: string;
|
|
363
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
364
|
-
unLinkOverlayA55Files(fileId: string, linkedBlockageA55Id: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
365
316
|
getOverlayRealA55s(fileId: string): Promise<any>;
|
|
366
317
|
linkOverlayRealA55Files(fileId: string, overlayRealA55Ids: {
|
|
367
318
|
id: string;
|
|
@@ -221,32 +221,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
// Use this function when you want to return a single record
|
|
224
|
-
getKnowledgeArticles(fileId) {
|
|
225
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'KnowledgeArticle');
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
linkKnowledgeArticleFiles(fileId, knowledgeArticleIds) {
|
|
230
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
const associationDtos = [];
|
|
232
|
-
for (const param of knowledgeArticleIds) {
|
|
233
|
-
associationDtos.push({
|
|
234
|
-
entity: 'SupportModule:KnowledgeArticle',
|
|
235
|
-
recordId: param.id,
|
|
236
|
-
linkType: 'KnowledgeArticle__File',
|
|
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, fileId, associationDtos);
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
unLinkKnowledgeArticleFiles(fileId, linkedKnowledgeArticleId) {
|
|
245
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedKnowledgeArticleId);
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
// Use this function when you want to return a single record
|
|
250
224
|
getCases(fileId) {
|
|
251
225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
226
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'Case');
|
|
@@ -793,58 +767,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
793
767
|
});
|
|
794
768
|
}
|
|
795
769
|
// Use this function when you want to return a single record
|
|
796
|
-
getNetomniaFtth2StageInstallAudits(fileId) {
|
|
797
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'NetomniaFtth2StageInstallAudit');
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
linkNetomniaFtth2StageInstallAuditFiles(fileId, netomniaFtth2StageInstallAuditIds) {
|
|
802
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
803
|
-
const associationDtos = [];
|
|
804
|
-
for (const param of netomniaFtth2StageInstallAuditIds) {
|
|
805
|
-
associationDtos.push({
|
|
806
|
-
entity: 'FieldServiceModule:NetomniaFtth2StageInstallAudit',
|
|
807
|
-
recordId: param.id,
|
|
808
|
-
linkType: 'NetomniaFtth2StageInstallAudit__File',
|
|
809
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
810
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
unLinkNetomniaFtth2StageInstallAuditFiles(fileId, linkedNetomniaFtth2StageInstallAuditId) {
|
|
817
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
818
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedNetomniaFtth2StageInstallAuditId);
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
// Use this function when you want to return a single record
|
|
822
|
-
getYfStockCounts(fileId) {
|
|
823
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
824
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'YfStockCount');
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
linkYfStockCountFiles(fileId, yfStockCountIds) {
|
|
828
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
829
|
-
const associationDtos = [];
|
|
830
|
-
for (const param of yfStockCountIds) {
|
|
831
|
-
associationDtos.push({
|
|
832
|
-
entity: 'FieldServiceModule:YfStockCount',
|
|
833
|
-
recordId: param.id,
|
|
834
|
-
linkType: 'YfStockCount__File',
|
|
835
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
836
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
unLinkYfStockCountFiles(fileId, linkedYfStockCountId) {
|
|
843
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
844
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedYfStockCountId);
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
// Use this function when you want to return a single record
|
|
848
770
|
getYfEquipmentCollections(fileId) {
|
|
849
771
|
return __awaiter(this, void 0, void 0, function* () {
|
|
850
772
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'YfEquipmentCollection');
|
|
@@ -1177,84 +1099,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
1177
1099
|
});
|
|
1178
1100
|
}
|
|
1179
1101
|
// Use this function when you want to return a single record
|
|
1180
|
-
getUgRetroAudits(fileId) {
|
|
1181
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1182
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'UgRetroAudit');
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
linkUgRetroAuditFiles(fileId, ugRetroAuditIds) {
|
|
1186
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1187
|
-
const associationDtos = [];
|
|
1188
|
-
for (const param of ugRetroAuditIds) {
|
|
1189
|
-
associationDtos.push({
|
|
1190
|
-
entity: 'FieldServiceModule:UgRetroAudit',
|
|
1191
|
-
recordId: param.id,
|
|
1192
|
-
linkType: 'UgRetroAudit__File',
|
|
1193
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1194
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
unLinkUgRetroAuditFiles(fileId, linkedUgRetroAuditId) {
|
|
1201
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1202
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedUgRetroAuditId);
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
// Use this function when you want to return a single record
|
|
1206
|
-
getOhRetroAudits(fileId) {
|
|
1207
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1208
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'OhRetroAudit');
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
linkOhRetroAuditFiles(fileId, ohRetroAuditIds) {
|
|
1212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1213
|
-
const associationDtos = [];
|
|
1214
|
-
for (const param of ohRetroAuditIds) {
|
|
1215
|
-
associationDtos.push({
|
|
1216
|
-
entity: 'FieldServiceModule:OhRetroAudit',
|
|
1217
|
-
recordId: param.id,
|
|
1218
|
-
linkType: 'OhRetroAudit__File',
|
|
1219
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1220
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
unLinkOhRetroAuditFiles(fileId, linkedOhRetroAuditId) {
|
|
1227
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1228
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedOhRetroAuditId);
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
// Use this function when you want to return a single record
|
|
1232
|
-
getRemediationOutcomeForms(fileId) {
|
|
1233
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1234
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'RemediationOutcomeForm');
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
linkRemediationOutcomeFormFiles(fileId, remediationOutcomeFormIds) {
|
|
1238
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1239
|
-
const associationDtos = [];
|
|
1240
|
-
for (const param of remediationOutcomeFormIds) {
|
|
1241
|
-
associationDtos.push({
|
|
1242
|
-
entity: 'FieldServiceModule:RemediationOutcomeForm',
|
|
1243
|
-
recordId: param.id,
|
|
1244
|
-
linkType: 'RemediationOutcomeForm_File',
|
|
1245
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1246
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
unLinkRemediationOutcomeFormFiles(fileId, linkedRemediationOutcomeFormId) {
|
|
1253
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1254
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedRemediationOutcomeFormId);
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
// Use this function when you want to return a single record
|
|
1258
1102
|
getUgInProgressAudits(fileId) {
|
|
1259
1103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1260
1104
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'UgInProgressAudit');
|
|
@@ -1307,32 +1151,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
1307
1151
|
});
|
|
1308
1152
|
}
|
|
1309
1153
|
// Use this function when you want to return a single record
|
|
1310
|
-
getBlockageA55s(fileId) {
|
|
1311
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1312
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'BlockageA55');
|
|
1313
|
-
});
|
|
1314
|
-
}
|
|
1315
|
-
linkOverlayA55Files(fileId, blockageA55Ids) {
|
|
1316
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
|
-
const associationDtos = [];
|
|
1318
|
-
for (const param of blockageA55Ids) {
|
|
1319
|
-
associationDtos.push({
|
|
1320
|
-
entity: 'FieldServiceModule:BlockageA55',
|
|
1321
|
-
recordId: param.id,
|
|
1322
|
-
linkType: 'OverlayA55_File',
|
|
1323
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1324
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
unLinkOverlayA55Files(fileId, linkedBlockageA55Id) {
|
|
1331
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1332
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedBlockageA55Id);
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
// Use this function when you want to return a single record
|
|
1336
1154
|
getOverlayRealA55s(fileId) {
|
|
1337
1155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1338
1156
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'OverlayRealA55');
|
|
@@ -34,4 +34,11 @@ export declare class InvoiceItemApi extends ApiProvider {
|
|
|
34
34
|
relatedAssociationId?: string;
|
|
35
35
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
36
|
unLinkInvoiceInvoiceItems(invoiceItemId: string, linkedInvoiceId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
|
+
getInvoiceItems(invoiceItemId: string): Promise<any>;
|
|
38
|
+
linkInvoiceItemInvoiceItems(invoiceItemId: string, invoiceItemIds: {
|
|
39
|
+
id: string;
|
|
40
|
+
relationType?: RelationTypeEnum;
|
|
41
|
+
relatedAssociationId?: string;
|
|
42
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
|
+
unLinkInvoiceItemInvoiceItems(invoiceItemId: string, linkedInvoiceItemId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
44
|
}
|