@d19n/youfibre-odin-sdk 1.0.21 → 1.0.22
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/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 +7 -0
- package/dist/api-sdk-v1/WorkOrderApi.js +26 -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/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 +7 -0
- package/dist/db-sdk-v1/WorkOrderDb.js +33 -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/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 +27 -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/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 +35 -0
|
@@ -113,6 +113,39 @@ class ContactIdentityDb extends db_provider_1.DbProvider {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
// Use this function when you want to return a single record
|
|
116
|
+
getContactIdentitys(contactIdentityId) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this._getLinks(this.moduleName, this.entityName, contactIdentityId, 'ContactIdentity');
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
linkContactIdentityContactIdentitys(contactIdentityId, contactIdentityIds) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const associationDtos = [];
|
|
124
|
+
for (const param of contactIdentityIds) {
|
|
125
|
+
associationDtos.push({
|
|
126
|
+
entity: 'CrmModule:ContactIdentity',
|
|
127
|
+
recordId: param.id,
|
|
128
|
+
linkType: 'ContactIdentity__ContactIdentity',
|
|
129
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
130
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return yield this._createLinks(this.moduleName, this.entityName, contactIdentityId, associationDtos);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
unlinkContactIdentityContactIdentitys(contactIdentityId, linkedContactIdentityIds) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const associationDtos = [];
|
|
139
|
+
for (const pk of linkedContactIdentityIds) {
|
|
140
|
+
associationDtos.push({
|
|
141
|
+
primaryKey: contactIdentityId,
|
|
142
|
+
linkedRecordPrimaryKey: pk,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, contactIdentityId, associationDtos);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Use this function when you want to return a single record
|
|
116
149
|
getContacts(contactIdentityId) {
|
|
117
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
151
|
return yield this._getLinks(this.moduleName, this.entityName, contactIdentityId, 'Contact');
|
|
@@ -24,4 +24,11 @@ export declare class InvoiceItemDb extends DbProvider {
|
|
|
24
24
|
relatedAssociationId?: string;
|
|
25
25
|
}[]): Promise<any>;
|
|
26
26
|
unlinkInvoiceInvoiceItems(invoiceItemId: string, linkedInvoiceIds: string[]): Promise<any>;
|
|
27
|
+
getInvoiceItems(invoiceItemId: string): Promise<any>;
|
|
28
|
+
linkInvoiceItemInvoiceItems(invoiceItemId: string, invoiceItemIds: {
|
|
29
|
+
id: string;
|
|
30
|
+
relationType?: RelationTypeEnum;
|
|
31
|
+
relatedAssociationId?: string;
|
|
32
|
+
}[]): Promise<any>;
|
|
33
|
+
unlinkInvoiceItemInvoiceItems(invoiceItemId: string, linkedInvoiceItemIds: string[]): Promise<any>;
|
|
27
34
|
}
|
|
@@ -112,5 +112,38 @@ class InvoiceItemDb extends db_provider_1.DbProvider {
|
|
|
112
112
|
return yield this._deleteLinks(this.moduleName, this.entityName, invoiceItemId, associationDtos);
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
+
// Use this function when you want to return a single record
|
|
116
|
+
getInvoiceItems(invoiceItemId) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this._getLinks(this.moduleName, this.entityName, invoiceItemId, 'InvoiceItem');
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
linkInvoiceItemInvoiceItems(invoiceItemId, invoiceItemIds) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const associationDtos = [];
|
|
124
|
+
for (const param of invoiceItemIds) {
|
|
125
|
+
associationDtos.push({
|
|
126
|
+
entity: 'BillingModule:InvoiceItem',
|
|
127
|
+
recordId: param.id,
|
|
128
|
+
linkType: 'InvoiceItem__InvoiceItem',
|
|
129
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
130
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return yield this._createLinks(this.moduleName, this.entityName, invoiceItemId, associationDtos);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
unlinkInvoiceItemInvoiceItems(invoiceItemId, linkedInvoiceItemIds) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const associationDtos = [];
|
|
139
|
+
for (const pk of linkedInvoiceItemIds) {
|
|
140
|
+
associationDtos.push({
|
|
141
|
+
primaryKey: invoiceItemId,
|
|
142
|
+
linkedRecordPrimaryKey: pk,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, invoiceItemId, associationDtos);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
115
148
|
}
|
|
116
149
|
exports.InvoiceItemDb = InvoiceItemDb;
|
|
@@ -31,6 +31,13 @@ export declare class MilestoneDb extends DbProvider {
|
|
|
31
31
|
relatedAssociationId?: string;
|
|
32
32
|
}[]): Promise<any>;
|
|
33
33
|
unlinkMilestoneTasks(milestoneId: string, linkedTaskIds: string[]): Promise<any>;
|
|
34
|
+
getMilestones(milestoneId: string): Promise<any>;
|
|
35
|
+
linkMilestoneMilestones(milestoneId: string, milestoneIds: {
|
|
36
|
+
id: string;
|
|
37
|
+
relationType?: RelationTypeEnum;
|
|
38
|
+
relatedAssociationId?: string;
|
|
39
|
+
}[]): Promise<any>;
|
|
40
|
+
unlinkMilestoneMilestones(milestoneId: string, linkedMilestoneIds: string[]): Promise<any>;
|
|
34
41
|
getNotes(milestoneId: string): Promise<any>;
|
|
35
42
|
linkMilestoneNotes(milestoneId: string, noteIds: {
|
|
36
43
|
id: string;
|
|
@@ -146,6 +146,39 @@ class MilestoneDb extends db_provider_1.DbProvider {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
// Use this function when you want to return a single record
|
|
149
|
+
getMilestones(milestoneId) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._getLinks(this.moduleName, this.entityName, milestoneId, 'Milestone');
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
linkMilestoneMilestones(milestoneId, milestoneIds) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const associationDtos = [];
|
|
157
|
+
for (const param of milestoneIds) {
|
|
158
|
+
associationDtos.push({
|
|
159
|
+
entity: 'ProjectModule:Milestone',
|
|
160
|
+
recordId: param.id,
|
|
161
|
+
linkType: 'Milestone__Milestone',
|
|
162
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
163
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
return yield this._createLinks(this.moduleName, this.entityName, milestoneId, associationDtos);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
unlinkMilestoneMilestones(milestoneId, linkedMilestoneIds) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const associationDtos = [];
|
|
172
|
+
for (const pk of linkedMilestoneIds) {
|
|
173
|
+
associationDtos.push({
|
|
174
|
+
primaryKey: milestoneId,
|
|
175
|
+
linkedRecordPrimaryKey: pk,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, milestoneId, associationDtos);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
// Use this function when you want to return a single record
|
|
149
182
|
getNotes(milestoneId) {
|
|
150
183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
184
|
return yield this._getLinks(this.moduleName, this.entityName, milestoneId, 'Note');
|
|
@@ -346,6 +346,13 @@ export declare class NoteDb extends DbProvider {
|
|
|
346
346
|
relatedAssociationId?: string;
|
|
347
347
|
}[]): Promise<any>;
|
|
348
348
|
unlinkSmsMessageNotes(noteId: string, linkedSmsMessageIds: string[]): Promise<any>;
|
|
349
|
+
getNotes(noteId: string): Promise<any>;
|
|
350
|
+
linkNoteNotes(noteId: string, noteIds: {
|
|
351
|
+
id: string;
|
|
352
|
+
relationType?: RelationTypeEnum;
|
|
353
|
+
relatedAssociationId?: string;
|
|
354
|
+
}[]): Promise<any>;
|
|
355
|
+
unlinkNoteNotes(noteId: string, linkedNoteIds: string[]): Promise<any>;
|
|
349
356
|
linkNoteFiles(noteId: string, fileIds: {
|
|
350
357
|
id: string;
|
|
351
358
|
relationType?: RelationTypeEnum;
|
package/dist/db-sdk-v1/NoteDb.js
CHANGED
|
@@ -1630,6 +1630,39 @@ class NoteDb extends db_provider_1.DbProvider {
|
|
|
1630
1630
|
return yield this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
|
+
// Use this function when you want to return a single record
|
|
1634
|
+
getNotes(noteId) {
|
|
1635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1636
|
+
return yield this._getLinks(this.moduleName, this.entityName, noteId, 'Note');
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
linkNoteNotes(noteId, noteIds) {
|
|
1640
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1641
|
+
const associationDtos = [];
|
|
1642
|
+
for (const param of noteIds) {
|
|
1643
|
+
associationDtos.push({
|
|
1644
|
+
entity: 'SupportModule:Note',
|
|
1645
|
+
recordId: param.id,
|
|
1646
|
+
linkType: 'Note__Note',
|
|
1647
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1648
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
return yield this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1652
|
+
});
|
|
1653
|
+
}
|
|
1654
|
+
unlinkNoteNotes(noteId, linkedNoteIds) {
|
|
1655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1656
|
+
const associationDtos = [];
|
|
1657
|
+
for (const pk of linkedNoteIds) {
|
|
1658
|
+
associationDtos.push({
|
|
1659
|
+
primaryKey: noteId,
|
|
1660
|
+
linkedRecordPrimaryKey: pk,
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1664
|
+
});
|
|
1665
|
+
}
|
|
1633
1666
|
linkNoteFiles(noteId, fileIds) {
|
|
1634
1667
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1635
1668
|
const associationDtos = [];
|
|
@@ -38,6 +38,13 @@ export declare class OfferDb extends DbProvider {
|
|
|
38
38
|
relatedAssociationId?: string;
|
|
39
39
|
}[]): Promise<any>;
|
|
40
40
|
unlinkOrderItemOffers(offerId: string, linkedOrderItemIds: string[]): Promise<any>;
|
|
41
|
+
getOffers(offerId: string): Promise<any>;
|
|
42
|
+
linkOfferOffers(offerId: string, offerIds: {
|
|
43
|
+
id: string;
|
|
44
|
+
relationType?: RelationTypeEnum;
|
|
45
|
+
relatedAssociationId?: string;
|
|
46
|
+
}[]): Promise<any>;
|
|
47
|
+
unlinkOfferOffers(offerId: string, linkedOfferIds: string[]): Promise<any>;
|
|
41
48
|
getDiscounts(offerId: string): Promise<any>;
|
|
42
49
|
linkOfferDiscounts(offerId: string, discountIds: {
|
|
43
50
|
id: string;
|
|
@@ -179,6 +179,39 @@ class OfferDb extends db_provider_1.DbProvider {
|
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
// Use this function when you want to return a single record
|
|
182
|
+
getOffers(offerId) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
return yield this._getLinks(this.moduleName, this.entityName, offerId, 'Offer');
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
linkOfferOffers(offerId, offerIds) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const associationDtos = [];
|
|
190
|
+
for (const param of offerIds) {
|
|
191
|
+
associationDtos.push({
|
|
192
|
+
entity: 'ProductModule:Offer',
|
|
193
|
+
recordId: param.id,
|
|
194
|
+
linkType: 'Offer__Offer',
|
|
195
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
196
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return yield this._createLinks(this.moduleName, this.entityName, offerId, associationDtos);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
unlinkOfferOffers(offerId, linkedOfferIds) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const associationDtos = [];
|
|
205
|
+
for (const pk of linkedOfferIds) {
|
|
206
|
+
associationDtos.push({
|
|
207
|
+
primaryKey: offerId,
|
|
208
|
+
linkedRecordPrimaryKey: pk,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, offerId, associationDtos);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
// Use this function when you want to return a single record
|
|
182
215
|
getDiscounts(offerId) {
|
|
183
216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
184
217
|
return yield this._getLinks(this.moduleName, this.entityName, offerId, 'Discount');
|
|
@@ -116,6 +116,13 @@ export declare class OrderDb extends DbProvider {
|
|
|
116
116
|
relatedAssociationId?: string;
|
|
117
117
|
}[]): Promise<any>;
|
|
118
118
|
unlinkOrderActivitys(orderId: string, linkedActivityIds: string[]): Promise<any>;
|
|
119
|
+
getOrders(orderId: string): Promise<any>;
|
|
120
|
+
linkOrderOrders(orderId: string, orderIds: {
|
|
121
|
+
id: string;
|
|
122
|
+
relationType?: RelationTypeEnum;
|
|
123
|
+
relatedAssociationId?: string;
|
|
124
|
+
}[]): Promise<any>;
|
|
125
|
+
unlinkOrderOrders(orderId: string, linkedOrderIds: string[]): Promise<any>;
|
|
119
126
|
getPicRequests(orderId: string): Promise<any>;
|
|
120
127
|
linkPicRequestOrders(orderId: string, picRequestIds: {
|
|
121
128
|
id: string;
|
|
@@ -547,6 +547,39 @@ class OrderDb extends db_provider_1.DbProvider {
|
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
// Use this function when you want to return a single record
|
|
550
|
+
getOrders(orderId) {
|
|
551
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
552
|
+
return yield this._getLinks(this.moduleName, this.entityName, orderId, 'Order');
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
linkOrderOrders(orderId, orderIds) {
|
|
556
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
557
|
+
const associationDtos = [];
|
|
558
|
+
for (const param of orderIds) {
|
|
559
|
+
associationDtos.push({
|
|
560
|
+
entity: 'OrderModule:Order',
|
|
561
|
+
recordId: param.id,
|
|
562
|
+
linkType: 'Order__Order',
|
|
563
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
564
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
return yield this._createLinks(this.moduleName, this.entityName, orderId, associationDtos);
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
unlinkOrderOrders(orderId, linkedOrderIds) {
|
|
571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
+
const associationDtos = [];
|
|
573
|
+
for (const pk of linkedOrderIds) {
|
|
574
|
+
associationDtos.push({
|
|
575
|
+
primaryKey: orderId,
|
|
576
|
+
linkedRecordPrimaryKey: pk,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, orderId, associationDtos);
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
// Use this function when you want to return a single record
|
|
550
583
|
getPicRequests(orderId) {
|
|
551
584
|
return __awaiter(this, void 0, void 0, function* () {
|
|
552
585
|
return yield this._getLinks(this.moduleName, this.entityName, orderId, 'PICRequest');
|
|
@@ -101,6 +101,13 @@ export declare class OrderItemDb extends DbProvider {
|
|
|
101
101
|
relatedAssociationId?: string;
|
|
102
102
|
}[]): Promise<any>;
|
|
103
103
|
unlinkOrderItemActivitys(orderItemId: string, linkedActivityIds: string[]): Promise<any>;
|
|
104
|
+
getOrderItems(orderItemId: string): Promise<any>;
|
|
105
|
+
linkOrderItemOrderItems(orderItemId: string, orderItemIds: {
|
|
106
|
+
id: string;
|
|
107
|
+
relationType?: RelationTypeEnum;
|
|
108
|
+
relatedAssociationId?: string;
|
|
109
|
+
}[]): Promise<any>;
|
|
110
|
+
unlinkOrderItemOrderItems(orderItemId: string, linkedOrderItemIds: string[]): Promise<any>;
|
|
104
111
|
getVoiceConfigurations(orderItemId: string): Promise<any>;
|
|
105
112
|
linkOrderItemVoiceConfigurations(orderItemId: string, voiceConfigurationIds: {
|
|
106
113
|
id: string;
|
|
@@ -476,6 +476,39 @@ class OrderItemDb extends db_provider_1.DbProvider {
|
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
// Use this function when you want to return a single record
|
|
479
|
+
getOrderItems(orderItemId) {
|
|
480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
481
|
+
return yield this._getLinks(this.moduleName, this.entityName, orderItemId, 'OrderItem');
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
linkOrderItemOrderItems(orderItemId, orderItemIds) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
486
|
+
const associationDtos = [];
|
|
487
|
+
for (const param of orderItemIds) {
|
|
488
|
+
associationDtos.push({
|
|
489
|
+
entity: 'OrderModule:OrderItem',
|
|
490
|
+
recordId: param.id,
|
|
491
|
+
linkType: 'OrderItem__OrderItem',
|
|
492
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
493
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
return yield this._createLinks(this.moduleName, this.entityName, orderItemId, associationDtos);
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
unlinkOrderItemOrderItems(orderItemId, linkedOrderItemIds) {
|
|
500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
501
|
+
const associationDtos = [];
|
|
502
|
+
for (const pk of linkedOrderItemIds) {
|
|
503
|
+
associationDtos.push({
|
|
504
|
+
primaryKey: orderItemId,
|
|
505
|
+
linkedRecordPrimaryKey: pk,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, orderItemId, associationDtos);
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
// Use this function when you want to return a single record
|
|
479
512
|
getVoiceConfigurations(orderItemId) {
|
|
480
513
|
return __awaiter(this, void 0, void 0, function* () {
|
|
481
514
|
return yield this._getLinks(this.moduleName, this.entityName, orderItemId, 'VoiceConfiguration');
|
|
@@ -38,4 +38,11 @@ export declare class OrganizationDb extends DbProvider {
|
|
|
38
38
|
relatedAssociationId?: string;
|
|
39
39
|
}[]): Promise<any>;
|
|
40
40
|
unlinkLeadOrganizations(organizationId: string, linkedLeadIds: string[]): Promise<any>;
|
|
41
|
+
getOrganizations(organizationId: string): Promise<any>;
|
|
42
|
+
linkOrganizationOrganizations(organizationId: string, organizationIds: {
|
|
43
|
+
id: string;
|
|
44
|
+
relationType?: RelationTypeEnum;
|
|
45
|
+
relatedAssociationId?: string;
|
|
46
|
+
}[]): Promise<any>;
|
|
47
|
+
unlinkOrganizationOrganizations(organizationId: string, linkedOrganizationIds: string[]): Promise<any>;
|
|
41
48
|
}
|
|
@@ -178,5 +178,38 @@ class OrganizationDb extends db_provider_1.DbProvider {
|
|
|
178
178
|
return yield this._deleteLinks(this.moduleName, this.entityName, organizationId, associationDtos);
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
+
// Use this function when you want to return a single record
|
|
182
|
+
getOrganizations(organizationId) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
return yield this._getLinks(this.moduleName, this.entityName, organizationId, 'Organization');
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
linkOrganizationOrganizations(organizationId, organizationIds) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const associationDtos = [];
|
|
190
|
+
for (const param of organizationIds) {
|
|
191
|
+
associationDtos.push({
|
|
192
|
+
entity: 'CrmModule:Organization',
|
|
193
|
+
recordId: param.id,
|
|
194
|
+
linkType: 'Organization__Organization',
|
|
195
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
196
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return yield this._createLinks(this.moduleName, this.entityName, organizationId, associationDtos);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
unlinkOrganizationOrganizations(organizationId, linkedOrganizationIds) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const associationDtos = [];
|
|
205
|
+
for (const pk of linkedOrganizationIds) {
|
|
206
|
+
associationDtos.push({
|
|
207
|
+
primaryKey: organizationId,
|
|
208
|
+
linkedRecordPrimaryKey: pk,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, organizationId, associationDtos);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
181
214
|
}
|
|
182
215
|
exports.OrganizationDb = OrganizationDb;
|
|
@@ -31,4 +31,11 @@ export declare class ProductComponentDb extends DbProvider {
|
|
|
31
31
|
relatedAssociationId?: string;
|
|
32
32
|
}[]): Promise<any>;
|
|
33
33
|
unlinkProductProductComponents(productComponentId: string, linkedProductIds: string[]): Promise<any>;
|
|
34
|
+
getProductComponents(productComponentId: string): Promise<any>;
|
|
35
|
+
linkProductComponentProductComponents(productComponentId: string, productComponentIds: {
|
|
36
|
+
id: string;
|
|
37
|
+
relationType?: RelationTypeEnum;
|
|
38
|
+
relatedAssociationId?: string;
|
|
39
|
+
}[]): Promise<any>;
|
|
40
|
+
unlinkProductComponentProductComponents(productComponentId: string, linkedProductComponentIds: string[]): Promise<any>;
|
|
34
41
|
}
|
|
@@ -145,5 +145,38 @@ class ProductComponentDb extends db_provider_1.DbProvider {
|
|
|
145
145
|
return yield this._deleteLinks(this.moduleName, this.entityName, productComponentId, associationDtos);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
+
// Use this function when you want to return a single record
|
|
149
|
+
getProductComponents(productComponentId) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._getLinks(this.moduleName, this.entityName, productComponentId, 'ProductComponent');
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
linkProductComponentProductComponents(productComponentId, productComponentIds) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const associationDtos = [];
|
|
157
|
+
for (const param of productComponentIds) {
|
|
158
|
+
associationDtos.push({
|
|
159
|
+
entity: 'ProductModule:ProductComponent',
|
|
160
|
+
recordId: param.id,
|
|
161
|
+
linkType: 'ProductComponent__ProductComponent',
|
|
162
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
163
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
return yield this._createLinks(this.moduleName, this.entityName, productComponentId, associationDtos);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
unlinkProductComponentProductComponents(productComponentId, linkedProductComponentIds) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const associationDtos = [];
|
|
172
|
+
for (const pk of linkedProductComponentIds) {
|
|
173
|
+
associationDtos.push({
|
|
174
|
+
primaryKey: productComponentId,
|
|
175
|
+
linkedRecordPrimaryKey: pk,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, productComponentId, associationDtos);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
148
181
|
}
|
|
149
182
|
exports.ProductComponentDb = ProductComponentDb;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DbProvider } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
2
|
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
3
|
-
import { OdinRecordCreateDto, OdinRecordUpdateDto, RelationTypeEnum } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto, OdinLinkedRecordUpdateDto, RelationTypeEnum } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
4
4
|
export declare class ProductDb extends DbProvider {
|
|
5
5
|
protected readonly principal: any;
|
|
6
6
|
protected readonly dbService: any;
|
|
@@ -80,4 +80,12 @@ export declare class ProductDb extends DbProvider {
|
|
|
80
80
|
relatedAssociationId?: string;
|
|
81
81
|
}[]): Promise<any>;
|
|
82
82
|
unlinkOrderItemProducts(productId: string, linkedOrderItemIds: string[]): Promise<any>;
|
|
83
|
+
getProducts(productId: string): Promise<any>;
|
|
84
|
+
linkProductProducts(productId: string, productIds: {
|
|
85
|
+
id: string;
|
|
86
|
+
relationType?: RelationTypeEnum;
|
|
87
|
+
relatedAssociationId?: string;
|
|
88
|
+
}[]): Promise<any>;
|
|
89
|
+
unlinkProductProducts(productId: string, linkedProductIds: string[]): Promise<any>;
|
|
90
|
+
updateProductProductLinkProperties(productId: string, dbRecordAssociationId: string, updateDto: OdinLinkedRecordUpdateDto): Promise<any>;
|
|
83
91
|
}
|
|
@@ -376,5 +376,43 @@ class ProductDb extends db_provider_1.DbProvider {
|
|
|
376
376
|
return yield this._deleteLinks(this.moduleName, this.entityName, productId, associationDtos);
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
+
// Use this function when you want to return a single record
|
|
380
|
+
getProducts(productId) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
return yield this._getLinks(this.moduleName, this.entityName, productId, 'Product');
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
linkProductProducts(productId, productIds) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
const associationDtos = [];
|
|
388
|
+
for (const param of productIds) {
|
|
389
|
+
associationDtos.push({
|
|
390
|
+
entity: 'ProductModule:Product',
|
|
391
|
+
recordId: param.id,
|
|
392
|
+
linkType: 'Product__Product',
|
|
393
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
394
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
return yield this._createLinks(this.moduleName, this.entityName, productId, associationDtos);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
unlinkProductProducts(productId, linkedProductIds) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
const associationDtos = [];
|
|
403
|
+
for (const pk of linkedProductIds) {
|
|
404
|
+
associationDtos.push({
|
|
405
|
+
primaryKey: productId,
|
|
406
|
+
linkedRecordPrimaryKey: pk,
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, productId, associationDtos);
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
updateProductProductLinkProperties(productId, dbRecordAssociationId, updateDto) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
return yield this._updateLinkProperties('ProductModule', 'Product', productId, dbRecordAssociationId, updateDto);
|
|
415
|
+
});
|
|
416
|
+
}
|
|
379
417
|
}
|
|
380
418
|
exports.ProductDb = ProductDb;
|
|
@@ -31,4 +31,11 @@ export declare class RestrictionDb extends DbProvider {
|
|
|
31
31
|
relatedAssociationId?: string;
|
|
32
32
|
}[]): Promise<any>;
|
|
33
33
|
unlinkProductComponentRestrictions(restrictionId: string, linkedProductComponentIds: string[]): Promise<any>;
|
|
34
|
+
getRestrictions(restrictionId: string): Promise<any>;
|
|
35
|
+
linkRestrictionRestrictions(restrictionId: string, restrictionIds: {
|
|
36
|
+
id: string;
|
|
37
|
+
relationType?: RelationTypeEnum;
|
|
38
|
+
relatedAssociationId?: string;
|
|
39
|
+
}[]): Promise<any>;
|
|
40
|
+
unlinkRestrictionRestrictions(restrictionId: string, linkedRestrictionIds: string[]): Promise<any>;
|
|
34
41
|
}
|
|
@@ -145,5 +145,38 @@ class RestrictionDb extends db_provider_1.DbProvider {
|
|
|
145
145
|
return yield this._deleteLinks(this.moduleName, this.entityName, restrictionId, associationDtos);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
+
// Use this function when you want to return a single record
|
|
149
|
+
getRestrictions(restrictionId) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._getLinks(this.moduleName, this.entityName, restrictionId, 'Restriction');
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
linkRestrictionRestrictions(restrictionId, restrictionIds) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const associationDtos = [];
|
|
157
|
+
for (const param of restrictionIds) {
|
|
158
|
+
associationDtos.push({
|
|
159
|
+
entity: 'ProductModule:Restriction',
|
|
160
|
+
recordId: param.id,
|
|
161
|
+
linkType: 'Restriction__Restriction',
|
|
162
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
163
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
return yield this._createLinks(this.moduleName, this.entityName, restrictionId, associationDtos);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
unlinkRestrictionRestrictions(restrictionId, linkedRestrictionIds) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const associationDtos = [];
|
|
172
|
+
for (const pk of linkedRestrictionIds) {
|
|
173
|
+
associationDtos.push({
|
|
174
|
+
primaryKey: restrictionId,
|
|
175
|
+
linkedRecordPrimaryKey: pk,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, restrictionId, associationDtos);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
148
181
|
}
|
|
149
182
|
exports.RestrictionDb = RestrictionDb;
|
|
@@ -24,4 +24,11 @@ export declare class ServiceDb extends DbProvider {
|
|
|
24
24
|
relatedAssociationId?: string;
|
|
25
25
|
}[]): Promise<any>;
|
|
26
26
|
unlinkProductServices(serviceId: string, linkedProductIds: string[]): Promise<any>;
|
|
27
|
+
getServices(serviceId: string): Promise<any>;
|
|
28
|
+
linkServiceServices(serviceId: string, serviceIds: {
|
|
29
|
+
id: string;
|
|
30
|
+
relationType?: RelationTypeEnum;
|
|
31
|
+
relatedAssociationId?: string;
|
|
32
|
+
}[]): Promise<any>;
|
|
33
|
+
unlinkServiceServices(serviceId: string, linkedServiceIds: string[]): Promise<any>;
|
|
27
34
|
}
|
|
@@ -112,5 +112,38 @@ class ServiceDb extends db_provider_1.DbProvider {
|
|
|
112
112
|
return yield this._deleteLinks(this.moduleName, this.entityName, serviceId, associationDtos);
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
+
// Use this function when you want to return a single record
|
|
116
|
+
getServices(serviceId) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this._getLinks(this.moduleName, this.entityName, serviceId, 'Service');
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
linkServiceServices(serviceId, serviceIds) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const associationDtos = [];
|
|
124
|
+
for (const param of serviceIds) {
|
|
125
|
+
associationDtos.push({
|
|
126
|
+
entity: 'ServiceModule:Service',
|
|
127
|
+
recordId: param.id,
|
|
128
|
+
linkType: 'Service__Service',
|
|
129
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
130
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return yield this._createLinks(this.moduleName, this.entityName, serviceId, associationDtos);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
unlinkServiceServices(serviceId, linkedServiceIds) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const associationDtos = [];
|
|
139
|
+
for (const pk of linkedServiceIds) {
|
|
140
|
+
associationDtos.push({
|
|
141
|
+
primaryKey: serviceId,
|
|
142
|
+
linkedRecordPrimaryKey: pk,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, serviceId, associationDtos);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
115
148
|
}
|
|
116
149
|
exports.ServiceDb = ServiceDb;
|