@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
|
@@ -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 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
|
}
|
|
@@ -116,5 +116,31 @@ class InvoiceItemApi extends api_provider_1.ApiProvider {
|
|
|
116
116
|
return yield this._deleteLinks(this.moduleName, this.entityName, invoiceItemId, linkedInvoiceId);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
+
// Use this function when you want to return a single record
|
|
120
|
+
getInvoiceItems(invoiceItemId) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
return yield this._getLinks(this.moduleName, this.entityName, invoiceItemId, 'InvoiceItem');
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
linkInvoiceItemInvoiceItems(invoiceItemId, invoiceItemIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const associationDtos = [];
|
|
128
|
+
for (const param of invoiceItemIds) {
|
|
129
|
+
associationDtos.push({
|
|
130
|
+
entity: 'BillingModule:InvoiceItem',
|
|
131
|
+
recordId: param.id,
|
|
132
|
+
linkType: 'InvoiceItem__InvoiceItem',
|
|
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, invoiceItemId, associationDtos);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
unLinkInvoiceItemInvoiceItems(invoiceItemId, linkedInvoiceItemId) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, invoiceItemId, linkedInvoiceItemId);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
119
145
|
}
|
|
120
146
|
exports.InvoiceItemApi = InvoiceItemApi;
|
|
@@ -41,6 +41,13 @@ export declare class MilestoneApi extends ApiProvider {
|
|
|
41
41
|
relatedAssociationId?: string;
|
|
42
42
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
43
|
unLinkMilestoneTasks(milestoneId: string, linkedTaskId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
|
+
getMilestones(milestoneId: string): Promise<any>;
|
|
45
|
+
linkMilestoneMilestones(milestoneId: string, milestoneIds: {
|
|
46
|
+
id: string;
|
|
47
|
+
relationType?: RelationTypeEnum;
|
|
48
|
+
relatedAssociationId?: string;
|
|
49
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
50
|
+
unLinkMilestoneMilestones(milestoneId: string, linkedMilestoneId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
44
51
|
getNotes(milestoneId: string): Promise<any>;
|
|
45
52
|
linkMilestoneNotes(milestoneId: string, noteIds: {
|
|
46
53
|
id: string;
|
|
@@ -143,6 +143,32 @@ class MilestoneApi extends api_provider_1.ApiProvider {
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
// Use this function when you want to return a single record
|
|
146
|
+
getMilestones(milestoneId) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
return yield this._getLinks(this.moduleName, this.entityName, milestoneId, 'Milestone');
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
linkMilestoneMilestones(milestoneId, milestoneIds) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const associationDtos = [];
|
|
154
|
+
for (const param of milestoneIds) {
|
|
155
|
+
associationDtos.push({
|
|
156
|
+
entity: 'ProjectModule:Milestone',
|
|
157
|
+
recordId: param.id,
|
|
158
|
+
linkType: 'Milestone__Milestone',
|
|
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, milestoneId, associationDtos);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
unLinkMilestoneMilestones(milestoneId, linkedMilestoneId) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, milestoneId, linkedMilestoneId);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
// Use this function when you want to return a single record
|
|
146
172
|
getNotes(milestoneId) {
|
|
147
173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
174
|
return yield this._getLinks(this.moduleName, this.entityName, milestoneId, 'Note');
|
|
@@ -356,6 +356,13 @@ export declare class NoteApi extends ApiProvider {
|
|
|
356
356
|
relatedAssociationId?: string;
|
|
357
357
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
358
358
|
unLinkSmsMessageNotes(noteId: string, linkedSmsMessageId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
359
|
+
getNotes(noteId: string): Promise<any>;
|
|
360
|
+
linkNoteNotes(noteId: string, noteIds: {
|
|
361
|
+
id: string;
|
|
362
|
+
relationType?: RelationTypeEnum;
|
|
363
|
+
relatedAssociationId?: string;
|
|
364
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
365
|
+
unLinkNoteNotes(noteId: string, linkedNoteId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
359
366
|
linkNoteFiles(noteId: string, fileIds: {
|
|
360
367
|
id: string;
|
|
361
368
|
relationType?: RelationTypeEnum;
|
|
@@ -1312,6 +1312,32 @@ class NoteApi extends api_provider_1.ApiProvider {
|
|
|
1312
1312
|
return yield this._deleteLinks(this.moduleName, this.entityName, noteId, linkedSmsMessageId);
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
|
+
// Use this function when you want to return a single record
|
|
1316
|
+
getNotes(noteId) {
|
|
1317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1318
|
+
return yield this._getLinks(this.moduleName, this.entityName, noteId, 'Note');
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
linkNoteNotes(noteId, noteIds) {
|
|
1322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1323
|
+
const associationDtos = [];
|
|
1324
|
+
for (const param of noteIds) {
|
|
1325
|
+
associationDtos.push({
|
|
1326
|
+
entity: 'SupportModule:Note',
|
|
1327
|
+
recordId: param.id,
|
|
1328
|
+
linkType: 'Note__Note',
|
|
1329
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1330
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
return yield this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
unLinkNoteNotes(noteId, linkedNoteId) {
|
|
1337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1338
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, noteId, linkedNoteId);
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1315
1341
|
linkNoteFiles(noteId, fileIds) {
|
|
1316
1342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
1343
|
const associationDtos = [];
|
|
@@ -48,6 +48,13 @@ export declare class OfferApi extends ApiProvider {
|
|
|
48
48
|
relatedAssociationId?: string;
|
|
49
49
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
50
50
|
unLinkOrderItemOffers(offerId: string, linkedOrderItemId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
51
|
+
getOffers(offerId: string): Promise<any>;
|
|
52
|
+
linkOfferOffers(offerId: string, offerIds: {
|
|
53
|
+
id: string;
|
|
54
|
+
relationType?: RelationTypeEnum;
|
|
55
|
+
relatedAssociationId?: string;
|
|
56
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
57
|
+
unLinkOfferOffers(offerId: string, linkedOfferId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
51
58
|
getDiscounts(offerId: string): Promise<any>;
|
|
52
59
|
linkOfferDiscounts(offerId: string, discountIds: {
|
|
53
60
|
id: string;
|
|
@@ -169,6 +169,32 @@ class OfferApi extends api_provider_1.ApiProvider {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
// Use this function when you want to return a single record
|
|
172
|
+
getOffers(offerId) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
return yield this._getLinks(this.moduleName, this.entityName, offerId, 'Offer');
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
linkOfferOffers(offerId, offerIds) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
const associationDtos = [];
|
|
180
|
+
for (const param of offerIds) {
|
|
181
|
+
associationDtos.push({
|
|
182
|
+
entity: 'ProductModule:Offer',
|
|
183
|
+
recordId: param.id,
|
|
184
|
+
linkType: 'Offer__Offer',
|
|
185
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
186
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
return yield this._createLinks(this.moduleName, this.entityName, offerId, associationDtos);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
unLinkOfferOffers(offerId, linkedOfferId) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, offerId, linkedOfferId);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
// Use this function when you want to return a single record
|
|
172
198
|
getDiscounts(offerId) {
|
|
173
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
174
200
|
return yield this._getLinks(this.moduleName, this.entityName, offerId, 'Discount');
|
|
@@ -126,6 +126,13 @@ export declare class OrderApi extends ApiProvider {
|
|
|
126
126
|
relatedAssociationId?: string;
|
|
127
127
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
128
128
|
unLinkOrderActivitys(orderId: string, linkedActivityId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
129
|
+
getOrders(orderId: string): Promise<any>;
|
|
130
|
+
linkOrderOrders(orderId: string, orderIds: {
|
|
131
|
+
id: string;
|
|
132
|
+
relationType?: RelationTypeEnum;
|
|
133
|
+
relatedAssociationId?: string;
|
|
134
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
135
|
+
unLinkOrderOrders(orderId: string, linkedOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
129
136
|
getPicRequests(orderId: string): Promise<any>;
|
|
130
137
|
linkPicRequestOrders(orderId: string, picRequestIds: {
|
|
131
138
|
id: string;
|
|
@@ -460,6 +460,32 @@ class OrderApi extends api_provider_1.ApiProvider {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
// Use this function when you want to return a single record
|
|
463
|
+
getOrders(orderId) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
return yield this._getLinks(this.moduleName, this.entityName, orderId, 'Order');
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
linkOrderOrders(orderId, orderIds) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
470
|
+
const associationDtos = [];
|
|
471
|
+
for (const param of orderIds) {
|
|
472
|
+
associationDtos.push({
|
|
473
|
+
entity: 'OrderModule:Order',
|
|
474
|
+
recordId: param.id,
|
|
475
|
+
linkType: 'Order__Order',
|
|
476
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
477
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
return yield this._createLinks(this.moduleName, this.entityName, orderId, associationDtos);
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
unLinkOrderOrders(orderId, linkedOrderId) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
485
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, orderId, linkedOrderId);
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
// Use this function when you want to return a single record
|
|
463
489
|
getPicRequests(orderId) {
|
|
464
490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
465
491
|
return yield this._getLinks(this.moduleName, this.entityName, orderId, 'PICRequest');
|
|
@@ -111,6 +111,13 @@ export declare class OrderItemApi extends ApiProvider {
|
|
|
111
111
|
relatedAssociationId?: string;
|
|
112
112
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
113
113
|
unLinkOrderItemActivitys(orderItemId: string, linkedActivityId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
114
|
+
getOrderItems(orderItemId: string): Promise<any>;
|
|
115
|
+
linkOrderItemOrderItems(orderItemId: string, orderItemIds: {
|
|
116
|
+
id: string;
|
|
117
|
+
relationType?: RelationTypeEnum;
|
|
118
|
+
relatedAssociationId?: string;
|
|
119
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
120
|
+
unLinkOrderItemOrderItems(orderItemId: string, linkedOrderItemId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
114
121
|
getVoiceConfigurations(orderItemId: string): Promise<any>;
|
|
115
122
|
linkOrderItemVoiceConfigurations(orderItemId: string, voiceConfigurationIds: {
|
|
116
123
|
id: string;
|
|
@@ -403,6 +403,32 @@ class OrderItemApi extends api_provider_1.ApiProvider {
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
// Use this function when you want to return a single record
|
|
406
|
+
getOrderItems(orderItemId) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
return yield this._getLinks(this.moduleName, this.entityName, orderItemId, 'OrderItem');
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
linkOrderItemOrderItems(orderItemId, orderItemIds) {
|
|
412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
413
|
+
const associationDtos = [];
|
|
414
|
+
for (const param of orderItemIds) {
|
|
415
|
+
associationDtos.push({
|
|
416
|
+
entity: 'OrderModule:OrderItem',
|
|
417
|
+
recordId: param.id,
|
|
418
|
+
linkType: 'OrderItem__OrderItem',
|
|
419
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
420
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
return yield this._createLinks(this.moduleName, this.entityName, orderItemId, associationDtos);
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
unLinkOrderItemOrderItems(orderItemId, linkedOrderItemId) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
428
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, orderItemId, linkedOrderItemId);
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
// Use this function when you want to return a single record
|
|
406
432
|
getVoiceConfigurations(orderItemId) {
|
|
407
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
434
|
return yield this._getLinks(this.moduleName, this.entityName, orderItemId, 'VoiceConfiguration');
|
|
@@ -48,4 +48,11 @@ export declare class OrganizationApi extends ApiProvider {
|
|
|
48
48
|
relatedAssociationId?: string;
|
|
49
49
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
50
50
|
unLinkLeadOrganizations(organizationId: string, linkedLeadId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
51
|
+
getOrganizations(organizationId: string): Promise<any>;
|
|
52
|
+
linkOrganizationOrganizations(organizationId: string, organizationIds: {
|
|
53
|
+
id: string;
|
|
54
|
+
relationType?: RelationTypeEnum;
|
|
55
|
+
relatedAssociationId?: string;
|
|
56
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
57
|
+
unLinkOrganizationOrganizations(organizationId: string, linkedOrganizationId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
51
58
|
}
|
|
@@ -168,5 +168,31 @@ class OrganizationApi extends api_provider_1.ApiProvider {
|
|
|
168
168
|
return yield this._deleteLinks(this.moduleName, this.entityName, organizationId, linkedLeadId);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
+
// Use this function when you want to return a single record
|
|
172
|
+
getOrganizations(organizationId) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
return yield this._getLinks(this.moduleName, this.entityName, organizationId, 'Organization');
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
linkOrganizationOrganizations(organizationId, organizationIds) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
const associationDtos = [];
|
|
180
|
+
for (const param of organizationIds) {
|
|
181
|
+
associationDtos.push({
|
|
182
|
+
entity: 'CrmModule:Organization',
|
|
183
|
+
recordId: param.id,
|
|
184
|
+
linkType: 'Organization__Organization',
|
|
185
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
186
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
return yield this._createLinks(this.moduleName, this.entityName, organizationId, associationDtos);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
unLinkOrganizationOrganizations(organizationId, linkedOrganizationId) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, organizationId, linkedOrganizationId);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
171
197
|
}
|
|
172
198
|
exports.OrganizationApi = OrganizationApi;
|