@d19n/youfibre-odin-sdk 2.0.365 → 2.0.367
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/README.md +6 -26
- package/dist/EntityRegistry.d.ts +0 -8
- package/dist/EntityRegistry.js +0 -8
- package/dist/OdinApiClient.d.ts +0 -16
- package/dist/OdinApiClient.js +0 -32
- package/dist/OdinDbClient.d.ts +0 -16
- package/dist/OdinDbClient.js +0 -32
- package/dist/accessors-v2/index.d.ts +0 -4
- package/dist/accessors-v2/index.js +2 -10
- package/dist/actions-v2/CancelOrderForEtfPaidDto.d.ts +67 -0
- package/dist/actions-v2/CancelOrderForEtfPaidDto.js +59 -0
- package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
- package/dist/actions-v2/CreateOutboundDialSessionDto.d.ts +15 -1
- package/dist/actions-v2/UpdateOutboundDialSessionDto.d.ts +15 -1
- package/dist/actions-v2/UpdateoutbounddialcampaignDto.d.ts +8 -1
- package/dist/api-sdk-v2/QaReportAmendmentApi.d.ts +48 -0
- package/dist/api-sdk-v2/QaReportAmendmentApi.js +155 -0
- package/dist/api-sdk-v2/QaReportApi.d.ts +2 -0
- package/dist/api-sdk-v2/QaReportApi.js +6 -0
- package/dist/db-accessors-v2/index.d.ts +0 -4
- package/dist/db-accessors-v2/index.js +2 -10
- package/dist/db-sdk-v2/CrmDatasetDb.d.ts +2 -2
- package/dist/db-sdk-v2/CrmDatasetDb.js +4 -4
- package/dist/db-sdk-v2/QaReportAmendmentDb.d.ts +120 -0
- package/dist/db-sdk-v2/QaReportAmendmentDb.js +204 -0
- package/dist/db-sdk-v2/QaReportDb.d.ts +2 -0
- package/dist/db-sdk-v2/QaReportDb.js +6 -0
- package/dist/entities-v2/CreditNote.d.ts +2 -1
- package/dist/entities-v2/CreditNote.js +2 -1
- package/dist/entities-v2/HomeMove.d.ts +23 -1
- package/dist/entities-v2/HomeMove.js +17 -1
- package/dist/entities-v2/OrderItem.d.ts +2 -0
- package/dist/entities-v2/OrderItem.js +2 -0
- package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
- package/dist/entities-v2/OutboundDialCampaign.js +2 -0
- package/dist/entities-v2/OutboundDialSession.d.ts +17 -1
- package/dist/entities-v2/OutboundDialSession.js +4 -0
- package/dist/entities-v2/QaReport.d.ts +70 -1
- package/dist/entities-v2/QaReport.js +31 -1
- package/dist/entities-v2/QaReportAmendment.d.ts +209 -0
- package/dist/entities-v2/QaReportAmendment.js +120 -0
- package/dist/entities-v2/YfAgentLocation.d.ts +25 -1
- package/dist/entities-v2/YfAgentLocation.js +6 -0
- package/dist/records-v2/OrderRecord.d.ts +25 -0
- package/dist/records-v2/OrderRecord.js +29 -0
- package/dist/records-v2/index.d.ts +0 -4
- package/dist/records-v2/index.js +2 -14
- package/package.json +1 -1
- package/dist/accessors-v2/QaAutoFailAccessor.d.ts +0 -112
- package/dist/accessors-v2/QaAutoFailAccessor.js +0 -191
- package/dist/accessors-v2/QaRubricAccessor.d.ts +0 -112
- package/dist/accessors-v2/QaRubricAccessor.js +0 -191
- package/dist/accessors-v2/QaRubricItemAccessor.d.ts +0 -112
- package/dist/accessors-v2/QaRubricItemAccessor.js +0 -191
- package/dist/accessors-v2/QaRubricSectionAccessor.d.ts +0 -112
- package/dist/accessors-v2/QaRubricSectionAccessor.js +0 -191
- package/dist/actions-v2/UpdateQaAutoFailDto.d.ts +0 -102
- package/dist/actions-v2/UpdateQaAutoFailDto.js +0 -56
- package/dist/actions-v2/UpdateQaRubricDto.d.ts +0 -103
- package/dist/actions-v2/UpdateQaRubricDto.js +0 -56
- package/dist/actions-v2/UpdateQaRubricItemDto.d.ts +0 -157
- package/dist/actions-v2/UpdateQaRubricItemDto.js +0 -56
- package/dist/actions-v2/UpdateQaRubricSectionDto.d.ts +0 -87
- package/dist/actions-v2/UpdateQaRubricSectionDto.js +0 -56
- package/dist/db-accessors-v2/QaAutoFailDbAccessor.d.ts +0 -180
- package/dist/db-accessors-v2/QaAutoFailDbAccessor.js +0 -265
- package/dist/db-accessors-v2/QaRubricDbAccessor.d.ts +0 -180
- package/dist/db-accessors-v2/QaRubricDbAccessor.js +0 -265
- package/dist/db-accessors-v2/QaRubricItemDbAccessor.d.ts +0 -180
- package/dist/db-accessors-v2/QaRubricItemDbAccessor.js +0 -265
- package/dist/db-accessors-v2/QaRubricSectionDbAccessor.d.ts +0 -180
- package/dist/db-accessors-v2/QaRubricSectionDbAccessor.js +0 -265
- package/dist/records-v2/QaAutoFailRecord.d.ts +0 -205
- package/dist/records-v2/QaAutoFailRecord.js +0 -275
- package/dist/records-v2/QaRubricItemRecord.d.ts +0 -205
- package/dist/records-v2/QaRubricItemRecord.js +0 -275
- package/dist/records-v2/QaRubricRecord.d.ts +0 -225
- package/dist/records-v2/QaRubricRecord.js +0 -308
- package/dist/records-v2/QaRubricSectionRecord.d.ts +0 -225
- package/dist/records-v2/QaRubricSectionRecord.js +0 -308
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.QaReportAmendmentApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use OdinApiClient.
|
|
17
|
+
*
|
|
18
|
+
* Migration:
|
|
19
|
+
* - Old: new QaReportAmendmentApi(authParams).get(id)
|
|
20
|
+
* - New: new odin.qareportamendment.get(id)
|
|
21
|
+
*
|
|
22
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
23
|
+
*/
|
|
24
|
+
class QaReportAmendmentApi extends api_provider_1.ApiProvider {
|
|
25
|
+
constructor(authParams, authToken) {
|
|
26
|
+
super(authParams, authToken);
|
|
27
|
+
this.authToken = authToken;
|
|
28
|
+
this.moduleName = 'SupportModule';
|
|
29
|
+
this.entityName = 'QaReportAmendment';
|
|
30
|
+
// Link managers are lazy-loaded on first access
|
|
31
|
+
}
|
|
32
|
+
// ============================================
|
|
33
|
+
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
34
|
+
// ============================================
|
|
35
|
+
// Usage remains identical: api.address.list(recordId)
|
|
36
|
+
get qareport() {
|
|
37
|
+
if (!this._qareport) {
|
|
38
|
+
this._qareport = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SupportModule:QaReportAmendment', 'SupportModule:QaReport', 'QaReport__Amendment');
|
|
39
|
+
}
|
|
40
|
+
return this._qareport;
|
|
41
|
+
}
|
|
42
|
+
// ============================================
|
|
43
|
+
// STANDARD METHODS (Unchanged API)
|
|
44
|
+
// ============================================
|
|
45
|
+
setRecord(sourceRecord) {
|
|
46
|
+
this.sourceRecord = sourceRecord;
|
|
47
|
+
}
|
|
48
|
+
schema() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
54
|
+
search(params) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// Use this function when you want paginating through the results to be handled
|
|
60
|
+
searchAndPaginate(params) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// Use this function to re-index records in elastic search
|
|
66
|
+
reIndex(body) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return yield this._reIndexRecords(body);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Use this function when you want to return a single record
|
|
72
|
+
get(qaReportAmendmentId) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, qaReportAmendmentId);
|
|
75
|
+
if (res)
|
|
76
|
+
this.setRecord(res);
|
|
77
|
+
return res;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
// Use this function when you want to return many records by primaryKeys
|
|
81
|
+
getMany(qaReportAmendmentIds) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, qaReportAmendmentIds);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
// Use this function when you want to upsert one record
|
|
87
|
+
upsert(upsertDto) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
90
|
+
return res[0];
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Use this function when you want to upsert many records
|
|
94
|
+
upsertMany(upsertDtos) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
// Use this function when you want to update one record
|
|
100
|
+
update(updateDto) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
103
|
+
return res[0];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Use this function when you want to update many records
|
|
107
|
+
updateMany(updateDtos) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// Use this function when you want to delete one record
|
|
113
|
+
delete(qaReportAmendmentId) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return yield this._delete(this.moduleName, this.entityName, [qaReportAmendmentId]);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Use this function when you want to delete many records
|
|
119
|
+
deleteMany(qaReportAmendmentIds) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return yield this._delete(this.moduleName, this.entityName, qaReportAmendmentIds);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
// Use this function when you want to restore one or many records
|
|
125
|
+
restore(qaReportAmendmentIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
return yield this._restore(this.moduleName, this.entityName, qaReportAmendmentIds);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
// Use this function when you want to apply a single action
|
|
131
|
+
applyAction(dto) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
return yield this._applyAction(this.moduleName, this.entityName, dto);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
// Use this function when you want to bulk apply actions
|
|
137
|
+
bulkApplyActions(dtos) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
return yield this._bulkApplyActions(this.moduleName, this.entityName, dtos);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// Use this function when you want to return the versions for a single record
|
|
143
|
+
getVersions() {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Use this function when you want to return the change history for a single record
|
|
149
|
+
getRevisionTimeline() {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.QaReportAmendmentApi = QaReportAmendmentApi;
|
|
@@ -18,8 +18,10 @@ export declare class QaReportApi extends ApiProvider {
|
|
|
18
18
|
private readonly entityName;
|
|
19
19
|
private sourceRecord;
|
|
20
20
|
private _case?;
|
|
21
|
+
private _qareportamendment?;
|
|
21
22
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
23
|
get case(): ApiRecordLinkManager;
|
|
24
|
+
get qareportamendment(): ApiRecordLinkManager;
|
|
23
25
|
setRecord(sourceRecord: any): void;
|
|
24
26
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
25
27
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaReportProperties>>>;
|
|
@@ -39,6 +39,12 @@ class QaReportApi extends api_provider_1.ApiProvider {
|
|
|
39
39
|
}
|
|
40
40
|
return this._case;
|
|
41
41
|
}
|
|
42
|
+
get qareportamendment() {
|
|
43
|
+
if (!this._qareportamendment) {
|
|
44
|
+
this._qareportamendment = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SupportModule:QaReport', 'SupportModule:QaReportAmendment', 'QaReport__Amendment');
|
|
45
|
+
}
|
|
46
|
+
return this._qareportamendment;
|
|
47
|
+
}
|
|
42
48
|
// ============================================
|
|
43
49
|
// STANDARD METHODS (Unchanged API)
|
|
44
50
|
// ============================================
|
|
@@ -99,11 +99,7 @@ export { PgWebhookDbAccessor, PgWebhookDbSearchResponse } from './PgWebhookDbAcc
|
|
|
99
99
|
export { PriceBookDbAccessor, PriceBookDbSearchResponse } from './PriceBookDbAccessor';
|
|
100
100
|
export { ProductDbAccessor, ProductDbSearchResponse } from './ProductDbAccessor';
|
|
101
101
|
export { PushNotificationDbAccessor, PushNotificationDbSearchResponse } from './PushNotificationDbAccessor';
|
|
102
|
-
export { QaAutoFailDbAccessor, QaAutoFailDbSearchResponse } from './QaAutoFailDbAccessor';
|
|
103
102
|
export { QaReportDbAccessor, QaReportDbSearchResponse } from './QaReportDbAccessor';
|
|
104
|
-
export { QaRubricItemDbAccessor, QaRubricItemDbSearchResponse } from './QaRubricItemDbAccessor';
|
|
105
|
-
export { QaRubricDbAccessor, QaRubricDbSearchResponse } from './QaRubricDbAccessor';
|
|
106
|
-
export { QaRubricSectionDbAccessor, QaRubricSectionDbSearchResponse } from './QaRubricSectionDbAccessor';
|
|
107
103
|
export { RecontractDbAccessor, RecontractDbSearchResponse } from './RecontractDbAccessor';
|
|
108
104
|
export { ReferralDbAccessor, ReferralDbSearchResponse } from './ReferralDbAccessor';
|
|
109
105
|
export { RegionDbAccessor, RegionDbSearchResponse } from './RegionDbAccessor';
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.InvoiceDbAccessor = exports.InvoiceItemDbAccessor = exports.ImpersonationTrackerDbAccessor = exports.HomeMoveDbAccessor = exports.FileDbAccessor = exports.FieldServiceProductDbAccessor = exports.FieldServiceDispatchedProductDbAccessor = exports.ExchangeDbAccessor = exports.EquipmentReturnDbAccessor = exports.EquipmentReturnItemDbAccessor = exports.EmailTemplateDbAccessor = exports.EmailSenderDbAccessor = exports.EmailDbAccessor = exports.DocumentDbAccessor = exports.DocumentProcessingDbAccessor = exports.DiscountDbAccessor = exports.DataIssueDbAccessor = exports.CustomerPhonePortingDbAccessor = exports.CustomerDeviceRouterDbAccessor = exports.CustomerDeviceDbAccessor = exports.CustomerDeviceOntDbAccessor = exports.CustomerDeviceConfigurationDbAccessor = exports.CustomerDeviceAtaDbAccessor = exports.CrmDatasetDbAccessor = exports.CreditNoteDbAccessor = exports.ConversationSummaryFeedbackDbAccessor = exports.ConversationDbAccessor = exports.ContractBuyOutDbAccessor = exports.ContactDbAccessor = exports.ContactIdentityDbAccessor = exports.ConfigDbAccessor = exports.ChurnRequestDbAccessor = exports.ChangeReasonDbAccessor = exports.CaseDbAccessor = exports.CampaignDbAccessor = exports.CallDbAccessor = exports.CallLegDbAccessor = exports.BrskEntityMigrationErrorDbAccessor = exports.BngProvisionDbAccessor = exports.BillingRequestDbAccessor = exports.BillingAdjustmentDbAccessor = exports.AppointmentDbAccessor = exports.AgentStatusDbAccessor = exports.AffiliateCodeDbAccessor = exports.AddressDbAccessor = exports.AddressInteractionDbAccessor = exports.ActivityDbAccessor = exports.ActivityLogDbAccessor = exports.AccountDbAccessor = exports.AccountCreditDbAccessor = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.YfWifiSurveyDbAccessor = exports.YfFieldVisitOutcomeFormDbAccessor = exports.YfAgentLocationDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioWorkerDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = exports.TwilioCallEventDbAccessor = exports.TwilioActivityDbAccessor = exports.TransactionDbAccessor = exports.TimeSlotDbAccessor = exports.TeamDbAccessor = exports.SmsTemplateDbAccessor = exports.SmsMessageDbAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormDbAccessor = exports.ServiceDbAccessor = exports.ServiceAppointmentDbAccessor = exports.ServiceAppointmentConfigDbAccessor = exports.ScheduleSlotDbAccessor = exports.SalesTerritoryDbAccessor =
|
|
13
|
+
exports.RewardDbAccessor = exports.ReturnsDbAccessor = exports.RemediationRequiredReasonDbAccessor = exports.RemediationOutcomeFormDbAccessor = exports.RegionDbAccessor = exports.ReferralDbAccessor = exports.RecontractDbAccessor = exports.QaReportDbAccessor = exports.PushNotificationDbAccessor = exports.ProductDbAccessor = exports.PriceBookDbAccessor = exports.PgWebhookDbAccessor = exports.PgWebhookAttemptDbAccessor = exports.PgVocalinkDbAccessor = exports.PgTransactionDbAccessor = exports.PgSortCodeSubstitutionDbAccessor = exports.PgReportEventDbAccessor = exports.PgPaymentMethodDbAccessor = exports.PgLogDbAccessor = exports.PgFileAllocationDbAccessor = exports.PgDisputeDbAccessor = exports.PgDirectDebitFileDbAccessor = exports.PgContactDbAccessor = exports.PgAccountValidationDbAccessor = exports.PermissionToFailDbAccessor = exports.PaymentDbAccessor = exports.PaymentMethodRefundDbAccessor = exports.PaymentMethodDbAccessor = exports.PICRequestDbAccessor = exports.OverlayRealA55DbAccessor = exports.OutboundDialSessionDbAccessor = exports.OutboundDialCampaignDbAccessor = exports.OutboundDialCampaignCaseDbAccessor = exports.OutageDbAccessor = exports.OrderDbAccessor = exports.OrderKciDbAccessor = exports.OrderItemDbAccessor = exports.OrderCheckDbAccessor = exports.OntReplacementApprovalDbAccessor = exports.OneTouchSwitchDbAccessor = exports.OhExternalAuditDbAccessor = exports.OfferTemplateDbAccessor = exports.OfferDbAccessor = exports.NotificationTemplateDbAccessor = exports.NoteDbAccessor = exports.NetworkDeviceDbAccessor = exports.ModifyServiceRequestDbAccessor = exports.MessageDbAccessor = exports.LeadDbAccessor = exports.KnowledgeArticleDbAccessor = void 0;
|
|
14
|
+
exports.YfWifiSurveyDbAccessor = exports.YfFieldVisitOutcomeFormDbAccessor = exports.YfAgentLocationDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioWorkerDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = exports.TwilioCallEventDbAccessor = exports.TwilioActivityDbAccessor = exports.TransactionDbAccessor = exports.TimeSlotDbAccessor = exports.TeamDbAccessor = exports.SmsTemplateDbAccessor = exports.SmsMessageDbAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormDbAccessor = exports.ServiceDbAccessor = exports.ServiceAppointmentDbAccessor = exports.ServiceAppointmentConfigDbAccessor = exports.ScheduleSlotDbAccessor = exports.SalesTerritoryDbAccessor = void 0;
|
|
15
15
|
var AccountCreditDbAccessor_1 = require("./AccountCreditDbAccessor");
|
|
16
16
|
Object.defineProperty(exports, "AccountCreditDbAccessor", { enumerable: true, get: function () { return AccountCreditDbAccessor_1.AccountCreditDbAccessor; } });
|
|
17
17
|
var AccountDbAccessor_1 = require("./AccountDbAccessor");
|
|
@@ -196,16 +196,8 @@ var ProductDbAccessor_1 = require("./ProductDbAccessor");
|
|
|
196
196
|
Object.defineProperty(exports, "ProductDbAccessor", { enumerable: true, get: function () { return ProductDbAccessor_1.ProductDbAccessor; } });
|
|
197
197
|
var PushNotificationDbAccessor_1 = require("./PushNotificationDbAccessor");
|
|
198
198
|
Object.defineProperty(exports, "PushNotificationDbAccessor", { enumerable: true, get: function () { return PushNotificationDbAccessor_1.PushNotificationDbAccessor; } });
|
|
199
|
-
var QaAutoFailDbAccessor_1 = require("./QaAutoFailDbAccessor");
|
|
200
|
-
Object.defineProperty(exports, "QaAutoFailDbAccessor", { enumerable: true, get: function () { return QaAutoFailDbAccessor_1.QaAutoFailDbAccessor; } });
|
|
201
199
|
var QaReportDbAccessor_1 = require("./QaReportDbAccessor");
|
|
202
200
|
Object.defineProperty(exports, "QaReportDbAccessor", { enumerable: true, get: function () { return QaReportDbAccessor_1.QaReportDbAccessor; } });
|
|
203
|
-
var QaRubricItemDbAccessor_1 = require("./QaRubricItemDbAccessor");
|
|
204
|
-
Object.defineProperty(exports, "QaRubricItemDbAccessor", { enumerable: true, get: function () { return QaRubricItemDbAccessor_1.QaRubricItemDbAccessor; } });
|
|
205
|
-
var QaRubricDbAccessor_1 = require("./QaRubricDbAccessor");
|
|
206
|
-
Object.defineProperty(exports, "QaRubricDbAccessor", { enumerable: true, get: function () { return QaRubricDbAccessor_1.QaRubricDbAccessor; } });
|
|
207
|
-
var QaRubricSectionDbAccessor_1 = require("./QaRubricSectionDbAccessor");
|
|
208
|
-
Object.defineProperty(exports, "QaRubricSectionDbAccessor", { enumerable: true, get: function () { return QaRubricSectionDbAccessor_1.QaRubricSectionDbAccessor; } });
|
|
209
201
|
var RecontractDbAccessor_1 = require("./RecontractDbAccessor");
|
|
210
202
|
Object.defineProperty(exports, "RecontractDbAccessor", { enumerable: true, get: function () { return RecontractDbAccessor_1.RecontractDbAccessor; } });
|
|
211
203
|
var ReferralDbAccessor_1 = require("./ReferralDbAccessor");
|
|
@@ -24,7 +24,7 @@ export declare class CrmDatasetDb extends DbProvider {
|
|
|
24
24
|
private _note?;
|
|
25
25
|
private _lead?;
|
|
26
26
|
private _team?;
|
|
27
|
-
private
|
|
27
|
+
private _crmdataset?;
|
|
28
28
|
private _address?;
|
|
29
29
|
private _salesterritory?;
|
|
30
30
|
private _user?;
|
|
@@ -32,7 +32,7 @@ export declare class CrmDatasetDb extends DbProvider {
|
|
|
32
32
|
get note(): DbRecordLinkManager;
|
|
33
33
|
get lead(): DbRecordLinkManager;
|
|
34
34
|
get team(): DbRecordLinkManager;
|
|
35
|
-
get
|
|
35
|
+
get crmdataset(): DbRecordLinkManager;
|
|
36
36
|
get address(): DbRecordLinkManager;
|
|
37
37
|
get salesterritory(): DbRecordLinkManager;
|
|
38
38
|
get user(): DbRecordLinkManager;
|
|
@@ -56,11 +56,11 @@ class CrmDatasetDb extends db_provider_1.DbProvider {
|
|
|
56
56
|
}
|
|
57
57
|
return this._team;
|
|
58
58
|
}
|
|
59
|
-
get
|
|
60
|
-
if (!this.
|
|
61
|
-
this.
|
|
59
|
+
get crmdataset() {
|
|
60
|
+
if (!this._crmdataset) {
|
|
61
|
+
this._crmdataset = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:CrmDataset', 'CrmModule:CrmDataset', 'Exchange__CrmDataset');
|
|
62
62
|
}
|
|
63
|
-
return this.
|
|
63
|
+
return this._crmdataset;
|
|
64
64
|
}
|
|
65
65
|
get address() {
|
|
66
66
|
if (!this._address) {
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
|
+
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
3
|
+
import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
|
|
4
|
+
import { QaReportAmendmentProperties } from '../entities-v2/QaReportAmendment';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use OdinDbClient.
|
|
7
|
+
*
|
|
8
|
+
* Migration:
|
|
9
|
+
* - Old: new QaReportAmendmentApi(authParams).get(id)
|
|
10
|
+
* - New: new odin.qareportamendment.get(id)
|
|
11
|
+
*
|
|
12
|
+
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
13
|
+
*
|
|
14
|
+
* Supports separate query options and provider options:
|
|
15
|
+
* - Constructor level: new QaReportAmendmentDb(principal, dbService, { omitPermissionsCheck: true })
|
|
16
|
+
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
17
|
+
*/
|
|
18
|
+
export declare class QaReportAmendmentDb extends DbProvider {
|
|
19
|
+
protected readonly principal: any;
|
|
20
|
+
protected readonly dbService: any;
|
|
21
|
+
private readonly moduleName;
|
|
22
|
+
private readonly entityName;
|
|
23
|
+
private sourceRecord;
|
|
24
|
+
private _qareport?;
|
|
25
|
+
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
26
|
+
get qareport(): DbRecordLinkManager;
|
|
27
|
+
setRecord(sourceRecord: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Search records with manual pagination control
|
|
30
|
+
* @param params - Search parameters
|
|
31
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
32
|
+
*/
|
|
33
|
+
searchRecords(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaReportAmendmentProperties>>>;
|
|
34
|
+
/**
|
|
35
|
+
* Search all records with automatic pagination
|
|
36
|
+
* @param params - Search parameters
|
|
37
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
38
|
+
*/
|
|
39
|
+
searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaReportAmendmentProperties>>>;
|
|
40
|
+
/**
|
|
41
|
+
* Get a single record by primary key
|
|
42
|
+
* @param qaReportAmendmentId - Record ID
|
|
43
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
44
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Simple get
|
|
48
|
+
* const record = await db.getByPrimaryKey(id);
|
|
49
|
+
*
|
|
50
|
+
* // With related entities
|
|
51
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
|
|
52
|
+
*
|
|
53
|
+
* // With permissions bypass
|
|
54
|
+
* const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
|
|
55
|
+
*
|
|
56
|
+
* // Both options
|
|
57
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
58
|
+
*/
|
|
59
|
+
getByPrimaryKey(qaReportAmendmentId: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaReportAmendmentProperties>>;
|
|
60
|
+
/**
|
|
61
|
+
* Get multiple records by primary keys
|
|
62
|
+
* @param qaReportAmendmentIds - Array of record IDs
|
|
63
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
64
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
65
|
+
*/
|
|
66
|
+
getManyByPrimaryKey(qaReportAmendmentIds: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaReportAmendmentProperties>[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Upsert a single record
|
|
69
|
+
* @param upsertDto - Record to upsert
|
|
70
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
71
|
+
*/
|
|
72
|
+
upsert(upsertDto: OdinRecordCreateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes>;
|
|
73
|
+
/**
|
|
74
|
+
* Upsert multiple records
|
|
75
|
+
* @param upsertDtos - Records to upsert
|
|
76
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
77
|
+
*/
|
|
78
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Update a single record
|
|
81
|
+
* @param updateDto - Record to update
|
|
82
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
83
|
+
*/
|
|
84
|
+
update(updateDto: OdinRecordUpdateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes>;
|
|
85
|
+
/**
|
|
86
|
+
* Update multiple records
|
|
87
|
+
* @param updateDtos - Records to update
|
|
88
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
89
|
+
*/
|
|
90
|
+
updateMany(updateDtos: OdinRecordUpdateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes[]>;
|
|
91
|
+
/**
|
|
92
|
+
* Delete one or many records
|
|
93
|
+
* @param qaReportAmendmentIds - Record IDs to delete
|
|
94
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
95
|
+
*/
|
|
96
|
+
delete(qaReportAmendmentIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordDeleted[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Restore one or many deleted records
|
|
99
|
+
* @param qaReportAmendmentIds - Record IDs to restore
|
|
100
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
101
|
+
*/
|
|
102
|
+
restore(qaReportAmendmentIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordRestored[]>;
|
|
103
|
+
/**
|
|
104
|
+
* Apply an action to a record
|
|
105
|
+
* @param actionName - The action key
|
|
106
|
+
* @param dto - The action DTO
|
|
107
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
108
|
+
*/
|
|
109
|
+
applyAction(actionName: string, dto: any, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").IDbRecordCreateUpdateRes[]>;
|
|
110
|
+
/**
|
|
111
|
+
* Get version history for the current source record
|
|
112
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
113
|
+
*/
|
|
114
|
+
getVersions(providerOptions?: DbProviderOptions): Promise<any>;
|
|
115
|
+
/**
|
|
116
|
+
* Get revision timeline for the current source record
|
|
117
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
118
|
+
*/
|
|
119
|
+
getRevisionTimeline(providerOptions?: DbProviderOptions): Promise<any>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.QaReportAmendmentDb = void 0;
|
|
13
|
+
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
14
|
+
const db_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/db.record.link.manager");
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use OdinDbClient.
|
|
17
|
+
*
|
|
18
|
+
* Migration:
|
|
19
|
+
* - Old: new QaReportAmendmentApi(authParams).get(id)
|
|
20
|
+
* - New: new odin.qareportamendment.get(id)
|
|
21
|
+
*
|
|
22
|
+
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
23
|
+
*
|
|
24
|
+
* Supports separate query options and provider options:
|
|
25
|
+
* - Constructor level: new QaReportAmendmentDb(principal, dbService, { omitPermissionsCheck: true })
|
|
26
|
+
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
27
|
+
*/
|
|
28
|
+
class QaReportAmendmentDb extends db_provider_1.DbProvider {
|
|
29
|
+
constructor(principal, dbService, defaultOptions) {
|
|
30
|
+
super(principal, dbService, defaultOptions);
|
|
31
|
+
this.moduleName = 'SupportModule';
|
|
32
|
+
this.entityName = 'QaReportAmendment';
|
|
33
|
+
this.principal = principal;
|
|
34
|
+
this.dbService = dbService;
|
|
35
|
+
// Link managers are lazy-loaded on first access
|
|
36
|
+
}
|
|
37
|
+
// ============================================
|
|
38
|
+
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
39
|
+
// ============================================
|
|
40
|
+
// Usage remains identical: db.address.list(recordId)
|
|
41
|
+
get qareport() {
|
|
42
|
+
if (!this._qareport) {
|
|
43
|
+
this._qareport = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:QaReportAmendment', 'SupportModule:QaReport', 'QaReport__Amendment');
|
|
44
|
+
}
|
|
45
|
+
return this._qareport;
|
|
46
|
+
}
|
|
47
|
+
// ============================================
|
|
48
|
+
// STANDARD METHODS
|
|
49
|
+
// ============================================
|
|
50
|
+
// Methods support separate query options and provider options for clean API
|
|
51
|
+
setRecord(sourceRecord) {
|
|
52
|
+
this.sourceRecord = sourceRecord;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Search records with manual pagination control
|
|
56
|
+
* @param params - Search parameters
|
|
57
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
58
|
+
*/
|
|
59
|
+
searchRecords(params, providerOptions) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params, providerOptions);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Search all records with automatic pagination
|
|
66
|
+
* @param params - Search parameters
|
|
67
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
68
|
+
*/
|
|
69
|
+
searchAllRecordsAndPaginate(params, providerOptions) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params, 0, providerOptions);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get a single record by primary key
|
|
76
|
+
* @param qaReportAmendmentId - Record ID
|
|
77
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
78
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* // Simple get
|
|
82
|
+
* const record = await db.getByPrimaryKey(id);
|
|
83
|
+
*
|
|
84
|
+
* // With related entities
|
|
85
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
|
|
86
|
+
*
|
|
87
|
+
* // With permissions bypass
|
|
88
|
+
* const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
|
|
89
|
+
*
|
|
90
|
+
* // Both options
|
|
91
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
92
|
+
*/
|
|
93
|
+
getByPrimaryKey(qaReportAmendmentId, queryOptions, providerOptions) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, qaReportAmendmentId, queryOptions, providerOptions);
|
|
96
|
+
if (res)
|
|
97
|
+
this.setRecord(res);
|
|
98
|
+
return res;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get multiple records by primary keys
|
|
103
|
+
* @param qaReportAmendmentIds - Array of record IDs
|
|
104
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
105
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
106
|
+
*/
|
|
107
|
+
getManyByPrimaryKey(qaReportAmendmentIds, queryOptions, providerOptions) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, qaReportAmendmentIds, queryOptions, providerOptions);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Upsert a single record
|
|
114
|
+
* @param upsertDto - Record to upsert
|
|
115
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
116
|
+
*/
|
|
117
|
+
upsert(upsertDto, providerOptions) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto], providerOptions);
|
|
120
|
+
return res[0];
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Upsert multiple records
|
|
125
|
+
* @param upsertDtos - Records to upsert
|
|
126
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
127
|
+
*/
|
|
128
|
+
upsertMany(upsertDtos, providerOptions) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos, providerOptions);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Update a single record
|
|
135
|
+
* @param updateDto - Record to update
|
|
136
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
137
|
+
*/
|
|
138
|
+
update(updateDto, providerOptions) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto], providerOptions);
|
|
141
|
+
return res[0];
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Update multiple records
|
|
146
|
+
* @param updateDtos - Records to update
|
|
147
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
148
|
+
*/
|
|
149
|
+
updateMany(updateDtos, providerOptions) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos, providerOptions);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Delete one or many records
|
|
156
|
+
* @param qaReportAmendmentIds - Record IDs to delete
|
|
157
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
158
|
+
*/
|
|
159
|
+
delete(qaReportAmendmentIds, providerOptions) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
return yield this._delete(this.moduleName, this.entityName, qaReportAmendmentIds, providerOptions);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Restore one or many deleted records
|
|
166
|
+
* @param qaReportAmendmentIds - Record IDs to restore
|
|
167
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
168
|
+
*/
|
|
169
|
+
restore(qaReportAmendmentIds, providerOptions) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
return yield this._restore(this.moduleName, this.entityName, qaReportAmendmentIds, providerOptions);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Apply an action to a record
|
|
176
|
+
* @param actionName - The action key
|
|
177
|
+
* @param dto - The action DTO
|
|
178
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
179
|
+
*/
|
|
180
|
+
applyAction(actionName, dto, providerOptions) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
return yield this._applyAction(this.moduleName, this.entityName, dto, providerOptions);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Get version history for the current source record
|
|
187
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
188
|
+
*/
|
|
189
|
+
getVersions(providerOptions) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Get revision timeline for the current source record
|
|
196
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
197
|
+
*/
|
|
198
|
+
getRevisionTimeline(providerOptions) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
exports.QaReportAmendmentDb = QaReportAmendmentDb;
|
|
@@ -22,8 +22,10 @@ export declare class QaReportDb extends DbProvider {
|
|
|
22
22
|
private readonly entityName;
|
|
23
23
|
private sourceRecord;
|
|
24
24
|
private _case?;
|
|
25
|
+
private _qareportamendment?;
|
|
25
26
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
26
27
|
get case(): DbRecordLinkManager;
|
|
28
|
+
get qareportamendment(): DbRecordLinkManager;
|
|
27
29
|
setRecord(sourceRecord: any): void;
|
|
28
30
|
/**
|
|
29
31
|
* Search records with manual pagination control
|
|
@@ -44,6 +44,12 @@ class QaReportDb extends db_provider_1.DbProvider {
|
|
|
44
44
|
}
|
|
45
45
|
return this._case;
|
|
46
46
|
}
|
|
47
|
+
get qareportamendment() {
|
|
48
|
+
if (!this._qareportamendment) {
|
|
49
|
+
this._qareportamendment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:QaReport', 'SupportModule:QaReportAmendment', 'QaReport__Amendment');
|
|
50
|
+
}
|
|
51
|
+
return this._qareportamendment;
|
|
52
|
+
}
|
|
47
53
|
// ============================================
|
|
48
54
|
// STANDARD METHODS
|
|
49
55
|
// ============================================
|
|
@@ -43,7 +43,7 @@ export declare enum CreditNoteEntityTypes {
|
|
|
43
43
|
* - `OTS_ORDER_CANCELLATION` - OTS Order Cancellation
|
|
44
44
|
* - `PAYMENT_ARRANGEMENT` - Payment Arrangement
|
|
45
45
|
* - `PAYMENT_ERROR` - Payment Error
|
|
46
|
-
* - ... and
|
|
46
|
+
* - ... and 6 more
|
|
47
47
|
*/
|
|
48
48
|
export declare enum CreditNoteReason {
|
|
49
49
|
BAD_DEBT_WRITE_OFF = "BAD_DEBT_WRITE_OFF",
|
|
@@ -65,6 +65,7 @@ export declare enum CreditNoteReason {
|
|
|
65
65
|
RETENTION = "RETENTION",
|
|
66
66
|
SALES_MIS_SOLD = "SALES_MISSOLD",
|
|
67
67
|
SERVICE_CALL_DISCOUNT = "SERVICE_CALL_DISCOUNT",
|
|
68
|
+
SETTLED_BY_ETF = "SETTLED_BY_ETF",
|
|
68
69
|
TARIFF_CHANGE = "TARIFF_CHANGE"
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
@@ -43,7 +43,7 @@ var CreditNoteEntityTypes;
|
|
|
43
43
|
* - `OTS_ORDER_CANCELLATION` - OTS Order Cancellation
|
|
44
44
|
* - `PAYMENT_ARRANGEMENT` - Payment Arrangement
|
|
45
45
|
* - `PAYMENT_ERROR` - Payment Error
|
|
46
|
-
* - ... and
|
|
46
|
+
* - ... and 6 more
|
|
47
47
|
*/
|
|
48
48
|
var CreditNoteReason;
|
|
49
49
|
(function (CreditNoteReason) {
|
|
@@ -66,6 +66,7 @@ var CreditNoteReason;
|
|
|
66
66
|
CreditNoteReason["RETENTION"] = "RETENTION";
|
|
67
67
|
CreditNoteReason["SALES_MIS_SOLD"] = "SALES_MISSOLD";
|
|
68
68
|
CreditNoteReason["SERVICE_CALL_DISCOUNT"] = "SERVICE_CALL_DISCOUNT";
|
|
69
|
+
CreditNoteReason["SETTLED_BY_ETF"] = "SETTLED_BY_ETF";
|
|
69
70
|
CreditNoteReason["TARIFF_CHANGE"] = "TARIFF_CHANGE";
|
|
70
71
|
})(CreditNoteReason = exports.CreditNoteReason || (exports.CreditNoteReason = {}));
|
|
71
72
|
/**
|